From e595760389cc3918a21e83b2a44eb32bee447564 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 20 Mar 2018 03:18:39 +0000 Subject: [PATCH 1/2] Generated from 195d61581efdedcda2602bc8b4733b19f3217e11 Merge remote-tracking branch 'upstream/master' into MySqlPostgreSqlConStr --- .../lib/dataFactoryManagementClient.d.ts | 6 +- .../lib/dataFactoryManagementClient.js | 4 + .../lib/models/activity.js | 25 + .../lib/models/activityDependency.js | 12 + .../lib/models/activityPolicy.js | 21 + .../lib/models/activityRun.js | 12 + .../lib/models/activityRunsListResponse.js | 12 + .../lib/models/amazonMWSLinkedService.js | 35 + .../lib/models/amazonMWSObjectDataset.js | 20 + .../lib/models/amazonMWSSource.js | 6 + .../lib/models/amazonRedshiftLinkedService.js | 44 +- .../lib/models/amazonRedshiftSource.js | 8 + .../lib/models/amazonS3Dataset.js | 44 + .../lib/models/amazonS3LinkedService.js | 44 +- .../lib/models/avroFormat.js | 6 + .../lib/models/azureBatchLinkedService.js | 46 +- .../lib/models/azureBlobDataset.js | 44 + .../azureDataLakeAnalyticsLinkedService.js | 44 +- .../lib/models/azureDataLakeStoreDataset.js | 44 + .../models/azureDataLakeStoreLinkedService.js | 44 +- .../lib/models/azureDataLakeStoreSink.js | 6 + .../lib/models/azureDataLakeStoreSource.js | 6 + .../models/azureDatabricksLinkedService.js | 197 +++ .../lib/models/azureKeyVaultLinkedService.js | 35 + .../models/azureKeyVaultSecretReference.js | 7 + .../models/azureMLBatchExecutionActivity.js | 30 + .../lib/models/azureMLLinkedService.js | 53 +- .../models/azureMLUpdateResourceActivity.js | 32 + .../lib/models/azureMLWebServiceFile.js | 2 + .../lib/models/azureMySqlLinkedService.js | 44 +- .../lib/models/azureMySqlSource.js | 6 + .../lib/models/azureMySqlTableDataset.js | 20 + .../models/azurePostgreSqlLinkedService.js | 35 + .../lib/models/azurePostgreSqlSource.js | 6 + .../lib/models/azurePostgreSqlTableDataset.js | 20 + .../lib/models/azureQueueSink.js | 6 + .../lib/models/azureSearchIndexDataset.js | 20 + .../lib/models/azureSearchIndexSink.js | 6 + .../lib/models/azureSearchLinkedService.js | 44 +- .../lib/models/azureSqlDWLinkedService.js | 80 +- .../lib/models/azureSqlDWTableDataset.js | 20 + .../models/azureSqlDatabaseLinkedService.js | 80 +- .../lib/models/azureSqlTableDataset.js | 20 + .../lib/models/azureStorageLinkedService.js | 53 +- .../lib/models/azureTableDataset.js | 20 + .../lib/models/azureTableSink.js | 6 + .../lib/models/azureTableSource.js | 6 + .../lib/models/blobSink.js | 6 + .../lib/models/blobSource.js | 6 + .../lib/models/blobTrigger.js | 23 +- .../lib/models/cassandraLinkedService.js | 44 +- .../lib/models/cassandraSource.js | 6 + .../lib/models/cassandraTableDataset.js | 20 + .../lib/models/concurLinkedService.js | 35 + .../lib/models/concurObjectDataset.js | 20 + .../lib/models/concurSource.js | 6 + .../lib/models/controlActivity.js | 18 + .../lib/models/copyActivity.js | 92 ++ .../lib/models/copySink.js | 13 + .../lib/models/copySource.js | 13 + .../lib/models/copyTranslator.js | 13 + .../lib/models/cosmosDbLinkedService.js | 44 +- .../lib/models/couchbaseLinkedService.js | 35 + .../lib/models/couchbaseSource.js | 6 + .../lib/models/couchbaseTableDataset.js | 20 + .../lib/models/customActivity.js | 32 + .../models/customDataSourceLinkedService.js | 35 + .../lib/models/customDataset.js | 20 + .../models/dataLakeAnalyticsUSQLActivity.js | 32 + .../lib/models/databricksNotebookActivity.js | 157 +++ .../lib/models/dataset.js | 31 + .../lib/models/datasetBZip2Compression.js | 6 + .../lib/models/datasetCompression.js | 13 + .../lib/models/datasetDeflateCompression.js | 6 + .../lib/models/datasetGZipCompression.js | 6 + .../lib/models/datasetResource.js | 16 + .../lib/models/datasetStorageFormat.js | 13 + .../models/datasetZipDeflateCompression.js | 6 + .../lib/models/db2LinkedService.js | 53 +- .../lib/models/documentDbCollectionDataset.js | 20 + .../lib/models/documentDbCollectionSink.js | 6 + .../lib/models/documentDbCollectionSource.js | 6 + .../lib/models/drillLinkedService.js | 35 + .../lib/models/drillSource.js | 6 + .../lib/models/drillTableDataset.js | 20 + .../lib/models/dynamicsEntityDataset.js | 20 + .../lib/models/dynamicsLinkedService.js | 45 + .../lib/models/dynamicsSink.js | 6 + .../lib/models/dynamicsSource.js | 6 + .../lib/models/eloquaLinkedService.js | 35 + .../lib/models/eloquaObjectDataset.js | 20 + .../lib/models/eloquaSource.js | 6 + .../lib/models/executePipelineActivity.js | 18 + .../lib/models/executeSSISPackageActivity.js | 181 +++ .../lib/models/executionActivity.js | 34 + .../lib/models/factory.js | 12 + .../lib/models/factoryListResponse.js | 12 + .../lib/models/fileServerLinkedService.js | 44 +- .../lib/models/fileShareDataset.js | 44 + .../lib/models/fileSystemSink.js | 6 + .../lib/models/fileSystemSource.js | 6 + .../lib/models/filterActivity.js | 124 ++ .../lib/models/forEachActivity.js | 44 +- .../lib/models/ftpServerLinkedService.js | 44 +- .../lib/models/getMetadataActivity.js | 30 + .../lib/models/googleBigQueryLinkedService.js | 67 ++ .../lib/models/googleBigQueryObjectDataset.js | 20 + .../lib/models/googleBigQuerySource.js | 6 + .../lib/models/greenplumLinkedService.js | 35 + .../lib/models/greenplumSource.js | 6 + .../lib/models/greenplumTableDataset.js | 20 + .../lib/models/hBaseLinkedService.js | 35 + .../lib/models/hBaseObjectDataset.js | 20 + .../lib/models/hBaseSource.js | 6 + .../lib/models/hDInsightHiveActivity.js | 32 + .../lib/models/hDInsightLinkedService.js | 48 +- .../lib/models/hDInsightMapReduceActivity.js | 32 + .../models/hDInsightOnDemandLinkedService.js | 93 +- .../lib/models/hDInsightPigActivity.js | 32 + .../lib/models/hDInsightSparkActivity.js | 32 + .../lib/models/hDInsightStreamingActivity.js | 32 + .../lib/models/hdfsLinkedService.js | 44 +- .../lib/models/hdfsSource.js | 6 + .../lib/models/hiveLinkedService.js | 35 + .../lib/models/hiveObjectDataset.js | 20 + .../lib/models/hiveSource.js | 6 + .../lib/models/httpDataset.js | 44 + .../lib/models/httpLinkedService.js | 44 +- .../lib/models/httpSource.js | 6 + .../lib/models/hubspotLinkedService.js | 35 + .../lib/models/hubspotObjectDataset.js | 20 + .../lib/models/hubspotSource.js | 6 + .../lib/models/ifConditionActivity.js | 42 + .../lib/models/impalaLinkedService.js | 35 + .../lib/models/impalaObjectDataset.js | 20 + .../lib/models/impalaSource.js | 6 + .../lib/models/index.d.ts | 1056 ++++++++++++++--- .../datafactoryManagement/lib/models/index.js | 46 +- .../lib/models/integrationRuntime.js | 13 + .../integrationRuntimeComputeProperties.js | 24 + .../integrationRuntimeConnectionInfo.js | 12 + ...ationRuntimeCustomSetupScriptProperties.js | 70 ++ .../integrationRuntimeMonitoringData.js | 12 + .../models/integrationRuntimeNodeIpAddress.js | 54 + .../integrationRuntimeNodeMonitoringData.js | 12 + .../integrationRuntimeRemoveNodeRequest.js | 12 + .../lib/models/integrationRuntimeResource.js | 12 + .../integrationRuntimeSsisCatalogInfo.js | 21 + .../integrationRuntimeSsisProperties.js | 58 + .../lib/models/integrationRuntimeStatus.js | 23 + .../integrationRuntimeStatusResponse.js | 14 + .../integrationRuntimeVNetProperties.js | 12 + .../lib/models/jiraLinkedService.js | 35 + .../lib/models/jiraObjectDataset.js | 20 + .../lib/models/jiraSource.js | 6 + .../lib/models/jsonFormat.js | 6 + .../lib/models/linkedIntegrationRuntime.js | 93 ++ .../lib/models/linkedIntegrationRuntimeKey.js | 76 ++ .../linkedIntegrationRuntimeProperties.js | 58 + .../models/linkedIntegrationRuntimeRbac.js | 70 ++ .../lib/models/linkedService.js | 45 + .../lib/models/linkedServiceReference.js | 15 + .../lib/models/linkedServiceResource.js | 15 + .../lib/models/lookupActivity.js | 42 + .../lib/models/magentoLinkedService.js | 35 + .../lib/models/magentoObjectDataset.js | 20 + .../lib/models/magentoSource.js | 6 + .../lib/models/managedIntegrationRuntime.js | 45 + .../models/managedIntegrationRuntimeError.js | 12 + .../models/managedIntegrationRuntimeNode.js | 24 + ...anagedIntegrationRuntimeOperationResult.js | 21 + .../models/managedIntegrationRuntimeStatus.js | 52 + .../lib/models/mariaDBLinkedService.js | 35 + .../lib/models/mariaDBSource.js | 6 + .../lib/models/mariaDBTableDataset.js | 20 + .../lib/models/marketoLinkedService.js | 35 + .../lib/models/marketoObjectDataset.js | 20 + .../lib/models/marketoSource.js | 6 + .../lib/models/mongoDbCollectionDataset.js | 20 + .../lib/models/mongoDbLinkedService.js | 64 +- .../lib/models/mongoDbSource.js | 6 + .../lib/models/multiplePipelineTrigger.js | 6 + .../lib/models/mySqlLinkedService.js | 82 +- .../lib/models/netezzaLinkedService.js | 130 ++ .../lib/models/netezzaSource.js | 84 ++ .../lib/models/netezzaTableDataset.js | 113 ++ .../lib/models/oDataLinkedService.js | 44 +- .../lib/models/oDataResourceDataset.js | 20 + .../lib/models/odbcLinkedService.js | 62 +- .../lib/models/odbcSink.js | 6 + .../lib/models/oracleLinkedService.js | 44 +- .../lib/models/oracleSink.js | 6 + .../lib/models/oracleSource.js | 6 + .../lib/models/oracleTableDataset.js | 20 + .../lib/models/orcFormat.js | 6 + .../lib/models/parameterSpecification.js | 2 +- .../lib/models/parquetFormat.js | 6 + .../lib/models/paypalLinkedService.js | 35 + .../lib/models/paypalObjectDataset.js | 20 + .../lib/models/paypalSource.js | 6 + .../lib/models/phoenixLinkedService.js | 35 + .../lib/models/phoenixObjectDataset.js | 20 + .../lib/models/phoenixSource.js | 6 + .../lib/models/pipelineListResponse.js | 12 + .../lib/models/pipelineResource.js | 40 + .../lib/models/pipelineRun.js | 12 + .../lib/models/pipelineRunQueryResponse.js | 12 + .../lib/models/polybaseSettings.js | 12 + .../lib/models/postgreSqlLinkedService.js | 82 +- .../lib/models/prestoLinkedService.js | 35 + .../lib/models/prestoObjectDataset.js | 20 + .../lib/models/prestoSource.js | 6 + .../lib/models/quickBooksLinkedService.js | 35 + .../lib/models/quickBooksObjectDataset.js | 20 + .../lib/models/quickBooksSource.js | 6 + .../lib/models/recurrenceSchedule.js | 24 + .../models/recurrenceScheduleOccurrence.js | 12 + .../models/redirectIncompatibleRowSettings.js | 12 + .../lib/models/redshiftUnloadSettings.js | 2 + .../lib/models/relationalSource.js | 6 + .../lib/models/relationalTableDataset.js | 20 + .../lib/models/sSISPackageLocation.js | 52 + .../lib/models/salesforceLinkedService.js | 35 + .../salesforceMarketingCloudLinkedService.js | 173 +++ .../salesforceMarketingCloudObjectDataset.js | 113 ++ .../models/salesforceMarketingCloudSource.js | 84 ++ .../lib/models/salesforceObjectDataset.js | 20 + .../lib/models/salesforceSink.js | 6 + .../lib/models/salesforceSource.js | 15 + .../lib/models/sapBWLinkedService.js | 44 +- .../sapCloudForCustomerLinkedService.js | 44 +- .../sapCloudForCustomerResourceDataset.js | 20 + .../lib/models/sapCloudForCustomerSink.js | 6 + .../lib/models/sapCloudForCustomerSource.js | 6 + .../lib/models/sapEccLinkedService.js | 150 +++ .../lib/models/sapEccResourceDataset.js | 122 ++ .../lib/models/sapEccSource.js | 84 ++ .../lib/models/sapHanaLinkedService.js | 44 +- .../lib/models/scheduleTrigger.js | 22 +- .../lib/models/scheduleTriggerRecurrence.js | 24 + .../lib/models/secretBase.js | 1 + .../lib/models/secureString.js | 6 + .../models/selfHostedIntegrationRuntime.js | 21 + .../selfHostedIntegrationRuntimeNode.js | 12 + .../selfHostedIntegrationRuntimeStatus.js | 53 + .../lib/models/serviceNowLinkedService.js | 35 + .../lib/models/serviceNowObjectDataset.js | 20 + .../lib/models/serviceNowSource.js | 6 + .../lib/models/sftpServerLinkedService.js | 62 +- .../lib/models/shopifyLinkedService.js | 35 + .../lib/models/shopifyObjectDataset.js | 20 + .../lib/models/shopifySource.js | 6 + .../lib/models/sparkLinkedService.js | 35 + .../lib/models/sparkObjectDataset.js | 20 + .../lib/models/sparkSource.js | 6 + .../lib/models/sqlDWSink.js | 18 + .../lib/models/sqlDWSource.js | 6 + .../lib/models/sqlServerLinkedService.js | 53 +- .../sqlServerStoredProcedureActivity.js | 30 + .../lib/models/sqlServerTableDataset.js | 20 + .../lib/models/sqlSink.js | 6 + .../lib/models/sqlSource.js | 6 + .../lib/models/squareLinkedService.js | 35 + .../lib/models/squareObjectDataset.js | 20 + .../lib/models/squareSource.js | 6 + .../lib/models/stagingSettings.js | 14 + .../lib/models/sybaseLinkedService.js | 44 +- .../lib/models/tabularTranslator.js | 6 + .../lib/models/teradataLinkedService.js | 53 +- .../lib/models/textFormat.js | 6 + .../lib/models/trigger.js | 13 + .../lib/models/triggerResource.js | 12 + .../lib/models/triggerRun.js | 12 + .../lib/models/triggerRunListResponse.js | 12 + .../lib/models/tumblingWindowTrigger.js | 22 +- .../lib/models/untilActivity.js | 30 + .../updateIntegrationRuntimeNodeRequest.js | 57 + .../models/updateIntegrationRuntimeRequest.js | 65 + .../lib/models/verticaLinkedService.js | 130 ++ .../lib/models/verticaSource.js | 84 ++ .../lib/models/verticaTableDataset.js | 113 ++ .../lib/models/waitActivity.js | 18 + .../lib/models/webActivity.js | 36 +- .../lib/models/webActivityAuthentication.js | 21 +- .../lib/models/webAnonymousAuthentication.js | 6 + .../lib/models/webBasicAuthentication.js | 15 +- .../webClientCertificateAuthentication.js | 24 +- .../lib/models/webLinkedService.js | 35 + .../models/webLinkedServiceTypeProperties.js | 1 + .../lib/models/webSource.js | 6 + .../lib/models/webTableDataset.js | 20 + .../lib/models/xeroLinkedService.js | 35 + .../lib/models/xeroObjectDataset.js | 20 + .../lib/models/xeroSource.js | 6 + .../lib/models/zohoLinkedService.js | 35 + .../lib/models/zohoObjectDataset.js | 20 + .../lib/models/zohoSource.js | 6 + .../lib/operations/datasets.js | 18 + .../lib/operations/index.d.ts | 419 ++++++- .../lib/operations/index.js | 1 + .../lib/operations/integrationRuntimeNodes.js | 979 +++++++++++++++ .../lib/operations/integrationRuntimes.js | 851 ++++++++++++- .../lib/operations/linkedServices.js | 18 + .../lib/operations/pipelines.js | 9 + 304 files changed, 11897 insertions(+), 405 deletions(-) create mode 100644 lib/services/datafactoryManagement/lib/models/azureDatabricksLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/models/databricksNotebookActivity.js create mode 100644 lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js create mode 100644 lib/services/datafactoryManagement/lib/models/filterActivity.js create mode 100644 lib/services/datafactoryManagement/lib/models/integrationRuntimeCustomSetupScriptProperties.js create mode 100644 lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeIpAddress.js create mode 100644 lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntime.js create mode 100644 lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeKey.js create mode 100644 lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeProperties.js create mode 100644 lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeRbac.js create mode 100644 lib/services/datafactoryManagement/lib/models/netezzaLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/models/netezzaSource.js create mode 100644 lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js create mode 100644 lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudSource.js create mode 100644 lib/services/datafactoryManagement/lib/models/sapEccLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js create mode 100644 lib/services/datafactoryManagement/lib/models/sapEccSource.js create mode 100644 lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeNodeRequest.js create mode 100644 lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeRequest.js create mode 100644 lib/services/datafactoryManagement/lib/models/verticaLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/models/verticaSource.js create mode 100644 lib/services/datafactoryManagement/lib/models/verticaTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/operations/integrationRuntimeNodes.js diff --git a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts index 30b1a95c0d..ad4a3fd100 100644 --- a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts +++ b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts @@ -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 @@ -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; @@ -66,4 +68,4 @@ declare class DataFactoryManagementClient extends AzureServiceClient { triggers: operations.Triggers; } -export = DataFactoryManagementClient; +export { DataFactoryManagementClient, models as DataFactoryManagementModels }; diff --git a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js index 6e2ce0c380..f72faa7c08 100644 --- a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js +++ b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js @@ -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); @@ -88,3 +89,6 @@ class DataFactoryManagementClient extends ServiceClient { } module.exports = DataFactoryManagementClient; +module.exports['default'] = DataFactoryManagementClient; +module.exports.DataFactoryManagementClient = DataFactoryManagementClient; +module.exports.DataFactoryManagementModels = models; diff --git a/lib/services/datafactoryManagement/lib/models/activity.js b/lib/services/datafactoryManagement/lib/models/activity.js index 087df4eee0..d7b43be811 100644 --- a/lib/services/datafactoryManagement/lib/models/activity.js +++ b/lib/services/datafactoryManagement/lib/models/activity.js @@ -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' @@ -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' } } @@ -78,6 +102,7 @@ class Activity { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/activityDependency.js b/lib/services/datafactoryManagement/lib/models/activityDependency.js index 6cd5586a98..8058e27194 100644 --- a/lib/services/datafactoryManagement/lib/models/activityDependency.js +++ b/lib/services/datafactoryManagement/lib/models/activityDependency.js @@ -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: { diff --git a/lib/services/datafactoryManagement/lib/models/activityPolicy.js b/lib/services/datafactoryManagement/lib/models/activityPolicy.js index a4f3d2bee8..b3b092348a 100644 --- a/lib/services/datafactoryManagement/lib/models/activityPolicy.js +++ b/lib/services/datafactoryManagement/lib/models/activityPolicy.js @@ -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() { } @@ -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: { @@ -66,6 +80,13 @@ class ActivityPolicy { type: { name: 'Number' } + }, + secureOutput: { + required: false, + serializedName: 'secureOutput', + type: { + name: 'Boolean' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/activityRun.js b/lib/services/datafactoryManagement/lib/models/activityRun.js index a7bac363df..eec19281b9 100644 --- a/lib/services/datafactoryManagement/lib/models/activityRun.js +++ b/lib/services/datafactoryManagement/lib/models/activityRun.js @@ -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: { diff --git a/lib/services/datafactoryManagement/lib/models/activityRunsListResponse.js b/lib/services/datafactoryManagement/lib/models/activityRunsListResponse.js index ba4b3d2abb..6735e59b9e 100644 --- a/lib/services/datafactoryManagement/lib/models/activityRunsListResponse.js +++ b/lib/services/datafactoryManagement/lib/models/activityRunsListResponse.js @@ -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' } } diff --git a/lib/services/datafactoryManagement/lib/models/amazonMWSLinkedService.js b/lib/services/datafactoryManagement/lib/models/amazonMWSLinkedService.js index 3633adfade..be565f69eb 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonMWSLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/amazonMWSLinkedService.js @@ -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: { @@ -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' } diff --git a/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js b/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js index 235733201b..e4346d72ac 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js @@ -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: { @@ -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' } diff --git a/lib/services/datafactoryManagement/lib/models/amazonMWSSource.js b/lib/services/datafactoryManagement/lib/models/amazonMWSSource.js index 1e7e623b58..2a13e3b767 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonMWSSource.js +++ b/lib/services/datafactoryManagement/lib/models/amazonMWSSource.js @@ -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: { @@ -58,6 +63,7 @@ class AmazonMWSSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/amazonRedshiftLinkedService.js b/lib/services/datafactoryManagement/lib/models/amazonRedshiftLinkedService.js index f7fc095c7b..e571510985 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonRedshiftLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/amazonRedshiftLinkedService.js @@ -25,7 +25,7 @@ class AmazonRedshiftLinkedService extends models['LinkedService'] { * @member {object} [username] The username of the Amazon Redshift source. * Type: string (or Expression with resultType string). * @member {object} [password] The password of the Amazon Redshift source. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} database The database name of the Amazon Redshift source. * Type: string (or Expression with resultType string). * @member {object} [port] The TCP port number that the Amazon Redshift @@ -51,6 +51,11 @@ class AmazonRedshiftLinkedService extends models['LinkedService'] { serializedName: 'AmazonRedshift', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AmazonRedshiftLinkedService', modelProperties: { connectVia: { @@ -68,9 +73,39 @@ class AmazonRedshiftLinkedService 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' } @@ -94,7 +129,12 @@ class AmazonRedshiftLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, database: { diff --git a/lib/services/datafactoryManagement/lib/models/amazonRedshiftSource.js b/lib/services/datafactoryManagement/lib/models/amazonRedshiftSource.js index bcbb7248f2..4c20bdbf13 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonRedshiftSource.js +++ b/lib/services/datafactoryManagement/lib/models/amazonRedshiftSource.js @@ -32,6 +32,8 @@ class AmazonRedshiftSource extends models['CopySource'] { * @member {string} * [redshiftUnloadSettings.s3LinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [redshiftUnloadSettings.s3LinkedServiceName.parameters] + * Arguments for LinkedService. * @member {object} [redshiftUnloadSettings.bucketName] The bucket of the * interim Amazon S3 which will be used to store the unloaded data from * Amazon Redshift source. The bucket must be in the same region as the @@ -54,6 +56,11 @@ class AmazonRedshiftSource extends models['CopySource'] { serializedName: 'AmazonRedshiftSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'AmazonRedshiftSource', modelProperties: { sourceRetryCount: { @@ -73,6 +80,7 @@ class AmazonRedshiftSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js b/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js index 2f3128e794..a33be82fd7 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js +++ b/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js @@ -54,6 +54,11 @@ class AmazonS3Dataset extends models['Dataset'] { serializedName: 'AmazonS3Object', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AmazonS3Dataset', modelProperties: { description: { @@ -94,9 +99,24 @@ class AmazonS3Dataset 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' } @@ -134,6 +154,18 @@ class AmazonS3Dataset extends models['Dataset'] { serializedName: 'typeProperties.format', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -147,6 +179,18 @@ class AmazonS3Dataset extends models['Dataset'] { serializedName: 'typeProperties.compression', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/amazonS3LinkedService.js b/lib/services/datafactoryManagement/lib/models/amazonS3LinkedService.js index 3e379109f4..0c2304b112 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonS3LinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/amazonS3LinkedService.js @@ -25,7 +25,7 @@ class AmazonS3LinkedService extends models['LinkedService'] { * with resultType string). * @member {object} [secretAccessKey] The secret access key of the Amazon S3 * Identity and Access Management (IAM) user. - * @member {string} [secretAccessKey.value] Value of secure string. + * @member {string} [secretAccessKey.type] Polymorphic Discriminator * @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). @@ -46,6 +46,11 @@ class AmazonS3LinkedService extends models['LinkedService'] { serializedName: 'AmazonS3', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AmazonS3LinkedService', modelProperties: { connectVia: { @@ -63,9 +68,39 @@ class AmazonS3LinkedService 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' } @@ -82,7 +117,12 @@ class AmazonS3LinkedService extends models['LinkedService'] { serializedName: 'typeProperties.secretAccessKey', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/avroFormat.js b/lib/services/datafactoryManagement/lib/models/avroFormat.js index 036de65cf0..ea8eebba35 100644 --- a/lib/services/datafactoryManagement/lib/models/avroFormat.js +++ b/lib/services/datafactoryManagement/lib/models/avroFormat.js @@ -37,6 +37,11 @@ class AvroFormat extends models['DatasetStorageFormat'] { serializedName: 'AvroFormat', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', className: 'AvroFormat', modelProperties: { serializer: { @@ -56,6 +61,7 @@ class AvroFormat extends models['DatasetStorageFormat'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureBatchLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureBatchLinkedService.js index fef85c6e87..3c4f00cfd8 100644 --- a/lib/services/datafactoryManagement/lib/models/azureBatchLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureBatchLinkedService.js @@ -23,7 +23,7 @@ class AzureBatchLinkedService extends models['LinkedService'] { * @member {object} accountName The Azure Batch account name. Type: string * (or Expression with resultType string). * @member {object} [accessKey] The Azure Batch account access key. - * @member {string} [accessKey.value] Value of secure string. + * @member {string} [accessKey.type] Polymorphic Discriminator * @member {object} batchUri The Azure Batch URI. Type: string (or Expression * with resultType string). * @member {object} poolName The Azure Batch pool name. Type: string (or @@ -32,6 +32,8 @@ class AzureBatchLinkedService extends models['LinkedService'] { * reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. * @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). @@ -52,6 +54,11 @@ class AzureBatchLinkedService extends models['LinkedService'] { serializedName: 'AzureBatch', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureBatchLinkedService', modelProperties: { connectVia: { @@ -69,9 +76,39 @@ class AzureBatchLinkedService 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' } @@ -88,7 +125,12 @@ class AzureBatchLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.accessKey', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, batchUri: { diff --git a/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js b/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js index 4249e6803d..2c1b818229 100644 --- a/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js @@ -52,6 +52,11 @@ class AzureBlobDataset extends models['Dataset'] { serializedName: 'AzureBlob', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzureBlobDataset', modelProperties: { description: { @@ -92,9 +97,24 @@ class AzureBlobDataset 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' } @@ -125,6 +145,18 @@ class AzureBlobDataset extends models['Dataset'] { serializedName: 'typeProperties.format', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -138,6 +170,18 @@ class AzureBlobDataset extends models['Dataset'] { serializedName: 'typeProperties.compression', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/azureDataLakeAnalyticsLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureDataLakeAnalyticsLinkedService.js index f6d88958f7..4475d5a9fc 100644 --- a/lib/services/datafactoryManagement/lib/models/azureDataLakeAnalyticsLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureDataLakeAnalyticsLinkedService.js @@ -27,7 +27,7 @@ class AzureDataLakeAnalyticsLinkedService extends models['LinkedService'] { * (or Expression with resultType string). * @member {object} [servicePrincipalKey] The Key of the application used to * authenticate against the Azure Data Lake Analytics account. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} tenant The name or ID of the tenant to which the service * principal belongs. Type: string (or Expression with resultType string). * @member {object} [subscriptionId] Data Lake Analytics account subscription @@ -58,6 +58,11 @@ class AzureDataLakeAnalyticsLinkedService extends models['LinkedService'] { serializedName: 'AzureDataLakeAnalytics', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureDataLakeAnalyticsLinkedService', modelProperties: { connectVia: { @@ -75,9 +80,39 @@ class AzureDataLakeAnalyticsLinkedService 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' } @@ -101,7 +136,12 @@ class AzureDataLakeAnalyticsLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.servicePrincipalKey', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, tenant: { diff --git a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js index 5d0efecd5b..acb1d905e0 100644 --- a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js @@ -50,6 +50,11 @@ class AzureDataLakeStoreDataset extends models['Dataset'] { serializedName: 'AzureDataLakeStoreFile', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzureDataLakeStoreDataset', modelProperties: { description: { @@ -90,9 +95,24 @@ class AzureDataLakeStoreDataset 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' } @@ -116,6 +136,18 @@ class AzureDataLakeStoreDataset extends models['Dataset'] { serializedName: 'typeProperties.format', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -129,6 +161,18 @@ class AzureDataLakeStoreDataset extends models['Dataset'] { serializedName: 'typeProperties.compression', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreLinkedService.js index 4450404a3f..e5129d8c8f 100644 --- a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreLinkedService.js @@ -27,7 +27,7 @@ class AzureDataLakeStoreLinkedService extends models['LinkedService'] { * Expression with resultType string). * @member {object} [servicePrincipalKey] The Key of the application used to * authenticate against the Azure Data Lake Store account. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} [tenant] The name or ID of the tenant to which the * service principal belongs. Type: string (or Expression with resultType * string). @@ -59,6 +59,11 @@ class AzureDataLakeStoreLinkedService extends models['LinkedService'] { serializedName: 'AzureDataLakeStore', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureDataLakeStoreLinkedService', modelProperties: { connectVia: { @@ -76,9 +81,39 @@ class AzureDataLakeStoreLinkedService 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' } @@ -102,7 +137,12 @@ class AzureDataLakeStoreLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.servicePrincipalKey', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, tenant: { diff --git a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSink.js b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSink.js index a0e146192b..8579b2c97b 100644 --- a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSink.js +++ b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSink.js @@ -40,6 +40,11 @@ class AzureDataLakeStoreSink extends models['CopySink'] { serializedName: 'AzureDataLakeStoreSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'AzureDataLakeStoreSink', modelProperties: { writeBatchSize: { @@ -73,6 +78,7 @@ class AzureDataLakeStoreSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSource.js b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSource.js index 056f8343a8..d1bd29f33a 100644 --- a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSource.js +++ b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreSource.js @@ -40,6 +40,11 @@ class AzureDataLakeStoreSource extends models['CopySource'] { serializedName: 'AzureDataLakeStoreSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'AzureDataLakeStoreSource', modelProperties: { sourceRetryCount: { @@ -59,6 +64,7 @@ class AzureDataLakeStoreSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureDatabricksLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureDatabricksLinkedService.js new file mode 100644 index 0000000000..8f6d5a7670 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/azureDatabricksLinkedService.js @@ -0,0 +1,197 @@ +/* + * 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'); + +/** + * Azure Databricks linked service. + * + * @extends models['LinkedService'] + */ +class AzureDatabricksLinkedService extends models['LinkedService'] { + /** + * Create a AzureDatabricksLinkedService. + * @member {object} domain .azuredatabricks.net, domain name of your + * Databricks deployment. Type: string (or Expression with resultType + * string). + * @member {object} accessToken Access token for databricks REST API. Refer + * to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: + * string (or Expression with resultType string). + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [existingClusterId] The id of an existing cluster that + * will be used for all runs of this job. Type: string (or Expression with + * resultType string). + * @member {object} [newClusterVersion] The Spark version of new cluster. + * Type: string (or Expression with resultType string). + * @member {object} [newClusterNumOfWorker] Number of worker nodes that new + * cluster should have. A string formatted Int32, like '1' means numOfWorker + * is 1 or '1:10' means auto-scale from 1 as min and 10 as max. Type: string + * (or Expression with resultType string). + * @member {object} [newClusterNodeType] The node types of new cluster. Type: + * string (or Expression with resultType string). + * @member {object} [newClusterSparkConf] a set of optional, user-specified + * Spark configuration key-value pairs. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureDatabricksLinkedService + * + * @returns {object} metadata of AzureDatabricksLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureDatabricks', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureDatabricksLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + domain: { + required: true, + serializedName: 'typeProperties.domain', + type: { + name: 'Object' + } + }, + accessToken: { + required: true, + serializedName: 'typeProperties.accessToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + existingClusterId: { + required: false, + serializedName: 'typeProperties.existingClusterId', + type: { + name: 'Object' + } + }, + newClusterVersion: { + required: false, + serializedName: 'typeProperties.newClusterVersion', + type: { + name: 'Object' + } + }, + newClusterNumOfWorker: { + required: false, + serializedName: 'typeProperties.newClusterNumOfWorker', + type: { + name: 'Object' + } + }, + newClusterNodeType: { + required: false, + serializedName: 'typeProperties.newClusterNodeType', + type: { + name: 'Object' + } + }, + newClusterSparkConf: { + required: false, + serializedName: 'typeProperties.newClusterSparkConf', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureDatabricksLinkedService; diff --git a/lib/services/datafactoryManagement/lib/models/azureKeyVaultLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureKeyVaultLinkedService.js index 4944f81b5f..6cfb00ca9d 100644 --- a/lib/services/datafactoryManagement/lib/models/azureKeyVaultLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureKeyVaultLinkedService.js @@ -40,6 +40,11 @@ class AzureKeyVaultLinkedService extends models['LinkedService'] { serializedName: 'AzureKeyVault', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureKeyVaultLinkedService', modelProperties: { connectVia: { @@ -57,9 +62,39 @@ class AzureKeyVaultLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azureKeyVaultSecretReference.js b/lib/services/datafactoryManagement/lib/models/azureKeyVaultSecretReference.js index bc2bd9378a..6493a950cf 100644 --- a/lib/services/datafactoryManagement/lib/models/azureKeyVaultSecretReference.js +++ b/lib/services/datafactoryManagement/lib/models/azureKeyVaultSecretReference.js @@ -22,6 +22,7 @@ class AzureKeyVaultSecretReference extends models['SecretBase'] { * Create a AzureKeyVaultSecretReference. * @member {object} store The Azure Key Vault linked service reference. * @member {string} [store.referenceName] Reference LinkedService name. + * @member {object} [store.parameters] Arguments for LinkedService. * @member {object} secretName The name of the secret in Azure Key Vault. * Type: string (or Expression with resultType string). * @member {object} [secretVersion] The version of the secret in Azure Key @@ -44,11 +45,17 @@ class AzureKeyVaultSecretReference extends models['SecretBase'] { serializedName: 'AzureKeyVaultSecret', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', className: 'AzureKeyVaultSecretReference', modelProperties: { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureMLBatchExecutionActivity.js b/lib/services/datafactoryManagement/lib/models/azureMLBatchExecutionActivity.js index 7a84532f1a..b8bed79284 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMLBatchExecutionActivity.js +++ b/lib/services/datafactoryManagement/lib/models/azureMLBatchExecutionActivity.js @@ -50,6 +50,11 @@ class AzureMLBatchExecutionActivity extends models['ExecutionActivity'] { serializedName: 'AzureMLBatchExecution', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'AzureMLBatchExecutionActivity', modelProperties: { name: { @@ -76,6 +81,18 @@ class AzureMLBatchExecutionActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -84,6 +101,7 @@ class AzureMLBatchExecutionActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -101,6 +119,18 @@ class AzureMLBatchExecutionActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/azureMLLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureMLLinkedService.js index 3610a69a6f..1e33facd4b 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMLLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureMLLinkedService.js @@ -24,7 +24,7 @@ class AzureMLLinkedService extends models['LinkedService'] { * Web Service endpoint. Type: string (or Expression with resultType string). * @member {object} apiKey The API key for accessing the Azure ML model * endpoint. - * @member {string} [apiKey.value] Value of secure string. + * @member {string} [apiKey.type] Polymorphic Discriminator * @member {object} [updateResourceEndpoint] The Update Resource REST URL for * an Azure ML Web Service endpoint. Type: string (or Expression with * resultType string). @@ -34,7 +34,7 @@ class AzureMLLinkedService extends models['LinkedService'] { * @member {object} [servicePrincipalKey] The key of the service principal * used to authenticate against the ARM-based updateResourceEndpoint of an * Azure ML web service. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} [tenant] The name or ID of the tenant to which the * service principal belongs. Type: string (or Expression with resultType * string). @@ -58,6 +58,11 @@ class AzureMLLinkedService extends models['LinkedService'] { serializedName: 'AzureML', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureMLLinkedService', modelProperties: { connectVia: { @@ -75,9 +80,39 @@ class AzureMLLinkedService 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' } @@ -94,7 +129,12 @@ class AzureMLLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.apiKey', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, updateResourceEndpoint: { @@ -116,7 +156,12 @@ class AzureMLLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.servicePrincipalKey', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, tenant: { diff --git a/lib/services/datafactoryManagement/lib/models/azureMLUpdateResourceActivity.js b/lib/services/datafactoryManagement/lib/models/azureMLUpdateResourceActivity.js index 2e7b020005..eef9a9d136 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMLUpdateResourceActivity.js +++ b/lib/services/datafactoryManagement/lib/models/azureMLUpdateResourceActivity.js @@ -28,6 +28,8 @@ class AzureMLUpdateResourceActivity extends models['ExecutionActivity'] { * update operation. * @member {string} [trainedModelLinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [trainedModelLinkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} trainedModelFilePath The relative file path in * trainedModelLinkedService to represent the .ilearner file that will be * uploaded by the update operation. Type: string (or Expression with @@ -49,6 +51,11 @@ class AzureMLUpdateResourceActivity extends models['ExecutionActivity'] { serializedName: 'AzureMLUpdateResource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'AzureMLUpdateResourceActivity', modelProperties: { name: { @@ -75,6 +82,18 @@ class AzureMLUpdateResourceActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -83,6 +102,7 @@ class AzureMLUpdateResourceActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -100,6 +120,18 @@ class AzureMLUpdateResourceActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/azureMLWebServiceFile.js b/lib/services/datafactoryManagement/lib/models/azureMLWebServiceFile.js index 92d6c49a2c..0e0fc87c7e 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMLWebServiceFile.js +++ b/lib/services/datafactoryManagement/lib/models/azureMLWebServiceFile.js @@ -26,6 +26,8 @@ class AzureMLWebServiceFile { * LinkedService, where Azure ML WebService Input/Output file located. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. */ constructor() { } diff --git a/lib/services/datafactoryManagement/lib/models/azureMySqlLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureMySqlLinkedService.js index bf1fa1e889..cf0826791b 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMySqlLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureMySqlLinkedService.js @@ -21,7 +21,7 @@ class AzureMySqlLinkedService extends models['LinkedService'] { /** * Create a AzureMySqlLinkedService. * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). @@ -42,6 +42,11 @@ class AzureMySqlLinkedService extends models['LinkedService'] { serializedName: 'AzureMySql', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureMySqlLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class AzureMySqlLinkedService 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' } @@ -71,7 +106,12 @@ class AzureMySqlLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/azureMySqlSource.js b/lib/services/datafactoryManagement/lib/models/azureMySqlSource.js index 41d2102ba2..75eae8ab98 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMySqlSource.js +++ b/lib/services/datafactoryManagement/lib/models/azureMySqlSource.js @@ -39,6 +39,11 @@ class AzureMySqlSource extends models['CopySource'] { serializedName: 'AzureMySqlSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'AzureMySqlSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class AzureMySqlSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js index acab1aef5a..6530928127 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js @@ -39,6 +39,11 @@ class AzureMySqlTableDataset extends models['Dataset'] { serializedName: 'AzureMySqlTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzureMySqlTableDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class AzureMySqlTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlLinkedService.js b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlLinkedService.js index d87afbd448..8a535d4ded 100644 --- a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlLinkedService.js @@ -42,6 +42,11 @@ class AzurePostgreSqlLinkedService extends models['LinkedService'] { serializedName: 'AzurePostgreSql', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzurePostgreSqlLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class AzurePostgreSqlLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlSource.js b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlSource.js index b81e8963d8..b1fd487dbc 100644 --- a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlSource.js +++ b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlSource.js @@ -39,6 +39,11 @@ class AzurePostgreSqlSource extends models['CopySource'] { serializedName: 'AzurePostgreSqlSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'AzurePostgreSqlSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class AzurePostgreSqlSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js index 32ddd781b4..1898710ca0 100644 --- a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js @@ -37,6 +37,11 @@ class AzurePostgreSqlTableDataset extends models['Dataset'] { serializedName: 'AzurePostgreSqlTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzurePostgreSqlTableDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class AzurePostgreSqlTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azureQueueSink.js b/lib/services/datafactoryManagement/lib/models/azureQueueSink.js index 1b0340dc8a..4af0fd638e 100644 --- a/lib/services/datafactoryManagement/lib/models/azureQueueSink.js +++ b/lib/services/datafactoryManagement/lib/models/azureQueueSink.js @@ -37,6 +37,11 @@ class AzureQueueSink extends models['CopySink'] { serializedName: 'AzureQueueSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'AzureQueueSink', modelProperties: { writeBatchSize: { @@ -70,6 +75,7 @@ class AzureQueueSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js b/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js index 58cada5520..db5899a383 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js @@ -39,6 +39,11 @@ class AzureSearchIndexDataset extends models['Dataset'] { serializedName: 'AzureSearchIndex', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzureSearchIndexDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class AzureSearchIndexDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azureSearchIndexSink.js b/lib/services/datafactoryManagement/lib/models/azureSearchIndexSink.js index 58288f6912..7cc5972c20 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSearchIndexSink.js +++ b/lib/services/datafactoryManagement/lib/models/azureSearchIndexSink.js @@ -40,6 +40,11 @@ class AzureSearchIndexSink extends models['CopySink'] { serializedName: 'AzureSearchIndexSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'AzureSearchIndexSink', modelProperties: { writeBatchSize: { @@ -73,6 +78,7 @@ class AzureSearchIndexSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureSearchLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureSearchLinkedService.js index fa4984608c..d59c0671d9 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSearchLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureSearchLinkedService.js @@ -23,7 +23,7 @@ class AzureSearchLinkedService extends models['LinkedService'] { * @member {object} url URL for Azure Search service. Type: string (or * Expression with resultType string). * @member {object} [key] Admin Key for Azure Search service - * @member {string} [key.value] Value of secure string. + * @member {string} [key.type] Polymorphic Discriminator * @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). @@ -44,6 +44,11 @@ class AzureSearchLinkedService extends models['LinkedService'] { serializedName: 'AzureSearch', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureSearchLinkedService', modelProperties: { connectVia: { @@ -61,9 +66,39 @@ class AzureSearchLinkedService 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' } @@ -80,7 +115,12 @@ class AzureSearchLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.key', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/azureSqlDWLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureSqlDWLinkedService.js index 9ec7ce559b..6264ac19be 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSqlDWLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureSqlDWLinkedService.js @@ -21,7 +21,16 @@ class AzureSqlDWLinkedService extends models['LinkedService'] { /** * Create a AzureSqlDWLinkedService. * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal + * used to authenticate against Azure SQL Data Warehouse. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the + * service principal belongs. Type: string (or Expression with resultType + * string). * @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). @@ -42,6 +51,11 @@ class AzureSqlDWLinkedService extends models['LinkedService'] { serializedName: 'AzureSqlDW', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureSqlDWLinkedService', modelProperties: { connectVia: { @@ -59,9 +73,39 @@ class AzureSqlDWLinkedService 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' } @@ -71,7 +115,39 @@ class AzureSqlDWLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: false, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js index 38d9b5600d..46cb2abb95 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js @@ -39,6 +39,11 @@ class AzureSqlDWTableDataset extends models['Dataset'] { serializedName: 'AzureSqlDWTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzureSqlDWTableDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class AzureSqlDWTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azureSqlDatabaseLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureSqlDatabaseLinkedService.js index dd1ff481fd..0ca9d4baaf 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSqlDatabaseLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureSqlDatabaseLinkedService.js @@ -21,7 +21,16 @@ class AzureSqlDatabaseLinkedService extends models['LinkedService'] { /** * Create a AzureSqlDatabaseLinkedService. * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Database. Type: string (or Expression + * with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal + * used to authenticate against Azure SQL Database. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the + * service principal belongs. Type: string (or Expression with resultType + * string). * @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). @@ -42,6 +51,11 @@ class AzureSqlDatabaseLinkedService extends models['LinkedService'] { serializedName: 'AzureSqlDatabase', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureSqlDatabaseLinkedService', modelProperties: { connectVia: { @@ -59,9 +73,39 @@ class AzureSqlDatabaseLinkedService 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' } @@ -71,7 +115,39 @@ class AzureSqlDatabaseLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: false, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js index 8c083c6ccc..ed0d558f1e 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js @@ -39,6 +39,11 @@ class AzureSqlTableDataset extends models['Dataset'] { serializedName: 'AzureSqlTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzureSqlTableDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class AzureSqlTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azureStorageLinkedService.js b/lib/services/datafactoryManagement/lib/models/azureStorageLinkedService.js index 74ed872658..4fcf76727b 100644 --- a/lib/services/datafactoryManagement/lib/models/azureStorageLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/azureStorageLinkedService.js @@ -22,10 +22,10 @@ class AzureStorageLinkedService extends models['LinkedService'] { * Create a AzureStorageLinkedService. * @member {object} [connectionString] The connection string. It is mutually * exclusive with sasUri property. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @member {object} [sasUri] SAS URI of the Azure Storage resource. It is * mutually exclusive with connectionString property. - * @member {string} [sasUri.value] Value of secure string. + * @member {string} [sasUri.type] Polymorphic Discriminator * @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). @@ -46,6 +46,11 @@ class AzureStorageLinkedService extends models['LinkedService'] { serializedName: 'AzureStorage', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'AzureStorageLinkedService', modelProperties: { connectVia: { @@ -63,9 +68,39 @@ class AzureStorageLinkedService 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' } @@ -75,7 +110,12 @@ class AzureStorageLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, sasUri: { @@ -83,7 +123,12 @@ class AzureStorageLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.sasUri', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/azureTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureTableDataset.js index 70f1f1705c..d54214ec17 100644 --- a/lib/services/datafactoryManagement/lib/models/azureTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureTableDataset.js @@ -39,6 +39,11 @@ class AzureTableDataset extends models['Dataset'] { serializedName: 'AzureTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'AzureTableDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class AzureTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/azureTableSink.js b/lib/services/datafactoryManagement/lib/models/azureTableSink.js index bee283e681..9284deb142 100644 --- a/lib/services/datafactoryManagement/lib/models/azureTableSink.js +++ b/lib/services/datafactoryManagement/lib/models/azureTableSink.js @@ -45,6 +45,11 @@ class AzureTableSink extends models['CopySink'] { serializedName: 'AzureTableSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'AzureTableSink', modelProperties: { writeBatchSize: { @@ -78,6 +83,7 @@ class AzureTableSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/azureTableSource.js b/lib/services/datafactoryManagement/lib/models/azureTableSource.js index a6668aea4b..8b159f5f59 100644 --- a/lib/services/datafactoryManagement/lib/models/azureTableSource.js +++ b/lib/services/datafactoryManagement/lib/models/azureTableSource.js @@ -42,6 +42,11 @@ class AzureTableSource extends models['CopySource'] { serializedName: 'AzureTableSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'AzureTableSource', modelProperties: { sourceRetryCount: { @@ -61,6 +66,7 @@ class AzureTableSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/blobSink.js b/lib/services/datafactoryManagement/lib/models/blobSink.js index 09f017110b..0c549d1d5f 100644 --- a/lib/services/datafactoryManagement/lib/models/blobSink.js +++ b/lib/services/datafactoryManagement/lib/models/blobSink.js @@ -46,6 +46,11 @@ class BlobSink extends models['CopySink'] { serializedName: 'BlobSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'BlobSink', modelProperties: { writeBatchSize: { @@ -79,6 +84,7 @@ class BlobSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/blobSource.js b/lib/services/datafactoryManagement/lib/models/blobSource.js index 458db79f2b..8072f09c5c 100644 --- a/lib/services/datafactoryManagement/lib/models/blobSource.js +++ b/lib/services/datafactoryManagement/lib/models/blobSource.js @@ -44,6 +44,11 @@ class BlobSource extends models['CopySource'] { serializedName: 'BlobSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'BlobSource', modelProperties: { sourceRetryCount: { @@ -63,6 +68,7 @@ class BlobSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/blobTrigger.js b/lib/services/datafactoryManagement/lib/models/blobTrigger.js index 8a850f5590..924220a262 100644 --- a/lib/services/datafactoryManagement/lib/models/blobTrigger.js +++ b/lib/services/datafactoryManagement/lib/models/blobTrigger.js @@ -20,14 +20,14 @@ const models = require('./index'); class BlobTrigger extends models['MultiplePipelineTrigger'] { /** * Create a BlobTrigger. - * @member {string} [folderPath] The path of the container/folder that will + * @member {string} folderPath The path of the container/folder that will * trigger the pipeline. - * @member {number} [maxConcurrency] The max number of parallel files to - * handle when it is triggered. - * @member {object} [linkedService] The Azure Storage linked service - * reference. + * @member {number} maxConcurrency The max number of parallel files to handle + * when it is triggered. + * @member {object} linkedService The Azure Storage linked service reference. * @member {string} [linkedService.referenceName] Reference LinkedService * name. + * @member {object} [linkedService.parameters] Arguments for LinkedService. */ constructor() { super(); @@ -45,6 +45,11 @@ class BlobTrigger extends models['MultiplePipelineTrigger'] { serializedName: 'BlobTrigger', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', className: 'BlobTrigger', modelProperties: { description: { @@ -65,6 +70,7 @@ class BlobTrigger extends models['MultiplePipelineTrigger'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -85,22 +91,23 @@ class BlobTrigger extends models['MultiplePipelineTrigger'] { } }, folderPath: { - required: false, + required: true, serializedName: 'typeProperties.folderPath', type: { name: 'String' } }, maxConcurrency: { - required: false, + required: true, serializedName: 'typeProperties.maxConcurrency', type: { name: 'Number' } }, linkedService: { - required: false, + required: true, serializedName: 'typeProperties.linkedService', + defaultValue: {}, type: { name: 'Composite', className: 'LinkedServiceReference' diff --git a/lib/services/datafactoryManagement/lib/models/cassandraLinkedService.js b/lib/services/datafactoryManagement/lib/models/cassandraLinkedService.js index 98686d17d4..50d0e63445 100644 --- a/lib/services/datafactoryManagement/lib/models/cassandraLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/cassandraLinkedService.js @@ -29,7 +29,7 @@ class CassandraLinkedService extends models['LinkedService'] { * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -50,6 +50,11 @@ class CassandraLinkedService extends models['LinkedService'] { serializedName: 'Cassandra', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'CassandraLinkedService', modelProperties: { connectVia: { @@ -67,9 +72,39 @@ class CassandraLinkedService 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' } @@ -107,7 +142,12 @@ class CassandraLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/cassandraSource.js b/lib/services/datafactoryManagement/lib/models/cassandraSource.js index cc62cf04c7..5f1b750203 100644 --- a/lib/services/datafactoryManagement/lib/models/cassandraSource.js +++ b/lib/services/datafactoryManagement/lib/models/cassandraSource.js @@ -48,6 +48,11 @@ class CassandraSource extends models['CopySource'] { serializedName: 'CassandraSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'CassandraSource', modelProperties: { sourceRetryCount: { @@ -67,6 +72,7 @@ class CassandraSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js b/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js index e32673cab4..344c041167 100644 --- a/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js @@ -41,6 +41,11 @@ class CassandraTableDataset extends models['Dataset'] { serializedName: 'CassandraTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'CassandraTableDataset', modelProperties: { description: { @@ -81,9 +86,24 @@ class CassandraTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/concurLinkedService.js b/lib/services/datafactoryManagement/lib/models/concurLinkedService.js index 03b1277603..204f58e022 100644 --- a/lib/services/datafactoryManagement/lib/models/concurLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/concurLinkedService.js @@ -55,6 +55,11 @@ class ConcurLinkedService extends models['LinkedService'] { serializedName: 'Concur', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'ConcurLinkedService', modelProperties: { connectVia: { @@ -72,9 +77,39 @@ class ConcurLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js b/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js index 9e7f699dc5..4c56cff600 100644 --- a/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js @@ -37,6 +37,11 @@ class ConcurObjectDataset extends models['Dataset'] { serializedName: 'ConcurObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'ConcurObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class ConcurObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/concurSource.js b/lib/services/datafactoryManagement/lib/models/concurSource.js index 84a7a30255..d9003bafd8 100644 --- a/lib/services/datafactoryManagement/lib/models/concurSource.js +++ b/lib/services/datafactoryManagement/lib/models/concurSource.js @@ -39,6 +39,11 @@ class ConcurSource extends models['CopySource'] { serializedName: 'ConcurSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'ConcurSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class ConcurSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/controlActivity.js b/lib/services/datafactoryManagement/lib/models/controlActivity.js index e6062e8868..d168d2ca5e 100644 --- a/lib/services/datafactoryManagement/lib/models/controlActivity.js +++ b/lib/services/datafactoryManagement/lib/models/controlActivity.js @@ -37,6 +37,11 @@ class ControlActivity extends models['Activity'] { serializedName: 'Container', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'ControlActivity', modelProperties: { name: { @@ -63,6 +68,18 @@ class ControlActivity extends models['Activity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -71,6 +88,7 @@ class ControlActivity extends models['Activity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/copyActivity.js b/lib/services/datafactoryManagement/lib/models/copyActivity.js index dc273b1556..7bf0329a97 100644 --- a/lib/services/datafactoryManagement/lib/models/copyActivity.js +++ b/lib/services/datafactoryManagement/lib/models/copyActivity.js @@ -51,6 +51,8 @@ class CopyActivity extends models['ExecutionActivity'] { * service reference. * @member {string} [stagingSettings.linkedServiceName.referenceName] * Reference LinkedService name. + * @member {object} [stagingSettings.linkedServiceName.parameters] Arguments + * for LinkedService. * @member {object} [stagingSettings.path] The path to storage for storing * the interim data. Type: string (or Expression with resultType string). * @member {object} [stagingSettings.enableCompression] Specifies whether to @@ -94,6 +96,11 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'Copy', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'CopyActivity', modelProperties: { name: { @@ -120,6 +127,18 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -128,6 +147,7 @@ class CopyActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -145,6 +165,18 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, @@ -153,6 +185,18 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'typeProperties.source', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -166,6 +210,18 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'typeProperties.sink', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -179,6 +235,18 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'typeProperties.translator', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -199,6 +267,18 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'typeProperties.stagingSettings', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'StagingSettings' } }, @@ -228,6 +308,18 @@ class CopyActivity extends models['ExecutionActivity'] { serializedName: 'typeProperties.redirectIncompatibleRowSettings', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'RedirectIncompatibleRowSettings' } }, diff --git a/lib/services/datafactoryManagement/lib/models/copySink.js b/lib/services/datafactoryManagement/lib/models/copySink.js index d0a473ec95..1e9e0a1aa9 100644 --- a/lib/services/datafactoryManagement/lib/models/copySink.js +++ b/lib/services/datafactoryManagement/lib/models/copySink.js @@ -44,6 +44,18 @@ class CopySink { serializedName: 'CopySink', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -82,6 +94,7 @@ class CopySink { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/copySource.js b/lib/services/datafactoryManagement/lib/models/copySource.js index 6d02d5f47b..6b6d4814ea 100644 --- a/lib/services/datafactoryManagement/lib/models/copySource.js +++ b/lib/services/datafactoryManagement/lib/models/copySource.js @@ -39,6 +39,18 @@ class CopySource { serializedName: 'CopySource', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -63,6 +75,7 @@ class CopySource { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/copyTranslator.js b/lib/services/datafactoryManagement/lib/models/copyTranslator.js index e969a7afe2..1a354627dc 100644 --- a/lib/services/datafactoryManagement/lib/models/copyTranslator.js +++ b/lib/services/datafactoryManagement/lib/models/copyTranslator.js @@ -34,6 +34,18 @@ class CopyTranslator { serializedName: 'CopyTranslator', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -44,6 +56,7 @@ class CopyTranslator { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/cosmosDbLinkedService.js b/lib/services/datafactoryManagement/lib/models/cosmosDbLinkedService.js index 9284c63e9b..8927393b84 100644 --- a/lib/services/datafactoryManagement/lib/models/cosmosDbLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/cosmosDbLinkedService.js @@ -21,7 +21,7 @@ class CosmosDbLinkedService extends models['LinkedService'] { /** * Create a CosmosDbLinkedService. * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). @@ -42,6 +42,11 @@ class CosmosDbLinkedService extends models['LinkedService'] { serializedName: 'CosmosDb', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'CosmosDbLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class CosmosDbLinkedService 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' } @@ -71,7 +106,12 @@ class CosmosDbLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/couchbaseLinkedService.js b/lib/services/datafactoryManagement/lib/models/couchbaseLinkedService.js index 382bf1e1db..75c18a0ddb 100644 --- a/lib/services/datafactoryManagement/lib/models/couchbaseLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/couchbaseLinkedService.js @@ -42,6 +42,11 @@ class CouchbaseLinkedService extends models['LinkedService'] { serializedName: 'Couchbase', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'CouchbaseLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class CouchbaseLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/couchbaseSource.js b/lib/services/datafactoryManagement/lib/models/couchbaseSource.js index 14f07ffee7..57b814e3bc 100644 --- a/lib/services/datafactoryManagement/lib/models/couchbaseSource.js +++ b/lib/services/datafactoryManagement/lib/models/couchbaseSource.js @@ -39,6 +39,11 @@ class CouchbaseSource extends models['CopySource'] { serializedName: 'CouchbaseSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'CouchbaseSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class CouchbaseSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js b/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js index 671751a385..186ed81054 100644 --- a/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js @@ -37,6 +37,11 @@ class CouchbaseTableDataset extends models['Dataset'] { serializedName: 'CouchbaseTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'CouchbaseTableDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class CouchbaseTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/customActivity.js b/lib/services/datafactoryManagement/lib/models/customActivity.js index bf7cf9714e..e499559410 100644 --- a/lib/services/datafactoryManagement/lib/models/customActivity.js +++ b/lib/services/datafactoryManagement/lib/models/customActivity.js @@ -26,6 +26,8 @@ class CustomActivity extends models['ExecutionActivity'] { * reference. * @member {string} [resourceLinkedService.referenceName] Reference * LinkedService name. + * @member {object} [resourceLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [folderPath] Folder path for resource files Type: string * (or Expression with resultType string). * @member {object} [referenceObjects] Reference objects @@ -53,6 +55,11 @@ class CustomActivity extends models['ExecutionActivity'] { serializedName: 'Custom', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'CustomActivity', modelProperties: { name: { @@ -79,6 +86,18 @@ class CustomActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -87,6 +106,7 @@ class CustomActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -104,6 +124,18 @@ class CustomActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/customDataSourceLinkedService.js b/lib/services/datafactoryManagement/lib/models/customDataSourceLinkedService.js index 5150aab7ed..b61e4c7268 100644 --- a/lib/services/datafactoryManagement/lib/models/customDataSourceLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/customDataSourceLinkedService.js @@ -38,6 +38,11 @@ class CustomDataSourceLinkedService extends models['LinkedService'] { serializedName: 'CustomDataSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'CustomDataSourceLinkedService', modelProperties: { connectVia: { @@ -55,9 +60,39 @@ class CustomDataSourceLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/customDataset.js b/lib/services/datafactoryManagement/lib/models/customDataset.js index f769b075cf..aba8b57202 100644 --- a/lib/services/datafactoryManagement/lib/models/customDataset.js +++ b/lib/services/datafactoryManagement/lib/models/customDataset.js @@ -38,6 +38,11 @@ class CustomDataset extends models['Dataset'] { serializedName: 'CustomDataset', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'CustomDataset', modelProperties: { description: { @@ -78,9 +83,24 @@ class CustomDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/dataLakeAnalyticsUSQLActivity.js b/lib/services/datafactoryManagement/lib/models/dataLakeAnalyticsUSQLActivity.js index 3f28584841..573649df4c 100644 --- a/lib/services/datafactoryManagement/lib/models/dataLakeAnalyticsUSQLActivity.js +++ b/lib/services/datafactoryManagement/lib/models/dataLakeAnalyticsUSQLActivity.js @@ -25,6 +25,8 @@ class DataLakeAnalyticsUSQLActivity extends models['ExecutionActivity'] { * @member {object} scriptLinkedService Script linked service reference. * @member {string} [scriptLinkedService.referenceName] Reference * LinkedService name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [degreeOfParallelism] The maximum number of nodes * simultaneously used to run the job. Default value is 1. Type: integer (or * Expression with resultType integer), minimum: 1. @@ -55,6 +57,11 @@ class DataLakeAnalyticsUSQLActivity extends models['ExecutionActivity'] { serializedName: 'DataLakeAnalyticsU-SQL', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'DataLakeAnalyticsUSQLActivity', modelProperties: { name: { @@ -81,6 +88,18 @@ class DataLakeAnalyticsUSQLActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -89,6 +108,7 @@ class DataLakeAnalyticsUSQLActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -106,6 +126,18 @@ class DataLakeAnalyticsUSQLActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/databricksNotebookActivity.js b/lib/services/datafactoryManagement/lib/models/databricksNotebookActivity.js new file mode 100644 index 0000000000..25fa83b5d4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/databricksNotebookActivity.js @@ -0,0 +1,157 @@ +/* + * 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'); + +/** + * DatabricksNotebook activity. + * + * @extends models['ExecutionActivity'] + */ +class DatabricksNotebookActivity extends models['ExecutionActivity'] { + /** + * Create a DatabricksNotebookActivity. + * @member {object} notebookPath The absolute path of the notebook to be run + * in the Databricks Workspace. This path must begin with a slash. Type: + * string (or Expression with resultType string). + * @member {object} [baseParameters] Base parameters to be used for each run + * of this job.If the notebook takes a parameter that is not specified, the + * default value from the notebook will be used. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatabricksNotebookActivity + * + * @returns {object} metadata of DatabricksNotebookActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'DatabricksNotebook', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'DatabricksNotebookActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + notebookPath: { + required: true, + serializedName: 'typeProperties.notebookPath', + type: { + name: 'Object' + } + }, + baseParameters: { + required: false, + serializedName: 'typeProperties.baseParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = DatabricksNotebookActivity; diff --git a/lib/services/datafactoryManagement/lib/models/dataset.js b/lib/services/datafactoryManagement/lib/models/dataset.js index 36c7b8a7be..32e93147b4 100644 --- a/lib/services/datafactoryManagement/lib/models/dataset.js +++ b/lib/services/datafactoryManagement/lib/models/dataset.js @@ -27,7 +27,11 @@ class Dataset { * @member {object} linkedServiceName Linked service reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [parameters] Parameters for dataset. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. * @member {string} type Polymorphic Discriminator */ constructor() { @@ -45,6 +49,18 @@ class Dataset { serializedName: 'Dataset', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -90,9 +106,24 @@ class 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' } diff --git a/lib/services/datafactoryManagement/lib/models/datasetBZip2Compression.js b/lib/services/datafactoryManagement/lib/models/datasetBZip2Compression.js index 5fba1c9396..fdd154bfe0 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetBZip2Compression.js +++ b/lib/services/datafactoryManagement/lib/models/datasetBZip2Compression.js @@ -37,11 +37,17 @@ class DatasetBZip2Compression extends models['DatasetCompression'] { serializedName: 'BZip2', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', className: 'DatasetBZip2Compression', modelProperties: { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/datasetCompression.js b/lib/services/datafactoryManagement/lib/models/datasetCompression.js index 33d2ce47a8..bfa7abdd35 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetCompression.js +++ b/lib/services/datafactoryManagement/lib/models/datasetCompression.js @@ -34,6 +34,18 @@ class DatasetCompression { serializedName: 'DatasetCompression', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -44,6 +56,7 @@ class DatasetCompression { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/datasetDeflateCompression.js b/lib/services/datafactoryManagement/lib/models/datasetDeflateCompression.js index 38218d1f2d..2bd76c154b 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetDeflateCompression.js +++ b/lib/services/datafactoryManagement/lib/models/datasetDeflateCompression.js @@ -39,11 +39,17 @@ class DatasetDeflateCompression extends models['DatasetCompression'] { serializedName: 'Deflate', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', className: 'DatasetDeflateCompression', modelProperties: { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/datasetGZipCompression.js b/lib/services/datafactoryManagement/lib/models/datasetGZipCompression.js index a4162a62df..84eeeccef5 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetGZipCompression.js +++ b/lib/services/datafactoryManagement/lib/models/datasetGZipCompression.js @@ -39,11 +39,17 @@ class DatasetGZipCompression extends models['DatasetCompression'] { serializedName: 'GZip', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', className: 'DatasetGZipCompression', modelProperties: { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/datasetResource.js b/lib/services/datafactoryManagement/lib/models/datasetResource.js index 2a82bdd2c3..a93d23572d 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetResource.js +++ b/lib/services/datafactoryManagement/lib/models/datasetResource.js @@ -28,7 +28,11 @@ class DatasetResource extends models['SubResource'] { * @member {object} [properties.linkedServiceName] Linked service reference. * @member {string} [properties.linkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [properties.linkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [properties.parameters] Parameters for dataset. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. * @member {string} [properties.type] Polymorphic Discriminator */ constructor() { @@ -87,6 +91,18 @@ class DatasetResource extends models['SubResource'] { defaultValue: {}, type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/datasetStorageFormat.js b/lib/services/datafactoryManagement/lib/models/datasetStorageFormat.js index dee099ec2f..8f784c5bf7 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetStorageFormat.js +++ b/lib/services/datafactoryManagement/lib/models/datasetStorageFormat.js @@ -38,6 +38,18 @@ class DatasetStorageFormat { serializedName: 'DatasetStorageFormat', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -62,6 +74,7 @@ class DatasetStorageFormat { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/datasetZipDeflateCompression.js b/lib/services/datafactoryManagement/lib/models/datasetZipDeflateCompression.js index 698b49471c..e2a4353c55 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetZipDeflateCompression.js +++ b/lib/services/datafactoryManagement/lib/models/datasetZipDeflateCompression.js @@ -39,11 +39,17 @@ class DatasetZipDeflateCompression extends models['DatasetCompression'] { serializedName: 'ZipDeflate', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', className: 'DatasetZipDeflateCompression', modelProperties: { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/db2LinkedService.js b/lib/services/datafactoryManagement/lib/models/db2LinkedService.js index 68f799d64d..49f54f616b 100644 --- a/lib/services/datafactoryManagement/lib/models/db2LinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/db2LinkedService.js @@ -24,14 +24,12 @@ class Db2LinkedService extends models['LinkedService'] { * Expression with resultType string). * @member {object} database Database name for connection. Type: string (or * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). * @member {string} [authenticationType] AuthenticationType to be used for * connection. Possible values include: 'Basic' * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -52,6 +50,11 @@ class Db2LinkedService extends models['LinkedService'] { serializedName: 'Db2', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'Db2LinkedService', modelProperties: { connectVia: { @@ -69,9 +72,39 @@ class Db2LinkedService 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' } @@ -90,13 +123,6 @@ class Db2LinkedService extends models['LinkedService'] { name: 'Object' } }, - schema: { - required: false, - serializedName: 'typeProperties.schema', - type: { - name: 'Object' - } - }, authenticationType: { required: false, serializedName: 'typeProperties.authenticationType', @@ -116,7 +142,12 @@ class Db2LinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js b/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js index f75e530c79..4c4c43b9d8 100644 --- a/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js +++ b/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js @@ -39,6 +39,11 @@ class DocumentDbCollectionDataset extends models['Dataset'] { serializedName: 'DocumentDbCollection', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'DocumentDbCollectionDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class DocumentDbCollectionDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/documentDbCollectionSink.js b/lib/services/datafactoryManagement/lib/models/documentDbCollectionSink.js index 175780c52b..8c899dd241 100644 --- a/lib/services/datafactoryManagement/lib/models/documentDbCollectionSink.js +++ b/lib/services/datafactoryManagement/lib/models/documentDbCollectionSink.js @@ -39,6 +39,11 @@ class DocumentDbCollectionSink extends models['CopySink'] { serializedName: 'DocumentDbCollectionSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'DocumentDbCollectionSink', modelProperties: { writeBatchSize: { @@ -72,6 +77,7 @@ class DocumentDbCollectionSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/documentDbCollectionSource.js b/lib/services/datafactoryManagement/lib/models/documentDbCollectionSource.js index fb99bec567..bfbd58bdce 100644 --- a/lib/services/datafactoryManagement/lib/models/documentDbCollectionSource.js +++ b/lib/services/datafactoryManagement/lib/models/documentDbCollectionSource.js @@ -41,6 +41,11 @@ class DocumentDbCollectionSource extends models['CopySource'] { serializedName: 'DocumentDbCollectionSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'DocumentDbCollectionSource', modelProperties: { sourceRetryCount: { @@ -60,6 +65,7 @@ class DocumentDbCollectionSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/drillLinkedService.js b/lib/services/datafactoryManagement/lib/models/drillLinkedService.js index 8874119b4b..e9e025e2b4 100644 --- a/lib/services/datafactoryManagement/lib/models/drillLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/drillLinkedService.js @@ -42,6 +42,11 @@ class DrillLinkedService extends models['LinkedService'] { serializedName: 'Drill', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'DrillLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class DrillLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/drillSource.js b/lib/services/datafactoryManagement/lib/models/drillSource.js index 00d8165b48..3728a93bd4 100644 --- a/lib/services/datafactoryManagement/lib/models/drillSource.js +++ b/lib/services/datafactoryManagement/lib/models/drillSource.js @@ -39,6 +39,11 @@ class DrillSource extends models['CopySource'] { serializedName: 'DrillSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'DrillSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class DrillSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/drillTableDataset.js b/lib/services/datafactoryManagement/lib/models/drillTableDataset.js index 6777d6253c..2ca9004d95 100644 --- a/lib/services/datafactoryManagement/lib/models/drillTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/drillTableDataset.js @@ -37,6 +37,11 @@ class DrillTableDataset extends models['Dataset'] { serializedName: 'DrillTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'DrillTableDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class DrillTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js b/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js index 5467fea68f..bb0cc876b5 100644 --- a/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js +++ b/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js @@ -39,6 +39,11 @@ class DynamicsEntityDataset extends models['Dataset'] { serializedName: 'DynamicsEntity', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'DynamicsEntityDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class DynamicsEntityDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/dynamicsLinkedService.js b/lib/services/datafactoryManagement/lib/models/dynamicsLinkedService.js index 2b33b63343..0b161aea87 100644 --- a/lib/services/datafactoryManagement/lib/models/dynamicsLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/dynamicsLinkedService.js @@ -30,6 +30,9 @@ class DynamicsLinkedService extends models['LinkedService'] { * @member {object} [port] The port of on-premises Dynamics server. The * property is required for on-prem and not allowed for online. Default is * 443. Type: integer (or Expression with resultType integer), minimum: 0. + * @member {object} [serviceUri] The URL to the Microsoft Dynamics server. + * The property is required for on-line and not allowed for on-prem. Type: + * string (or Expression with resultType string). * @member {object} [organizationName] The organization name of the Dynamics * instance. The property is required for on-prem and required for online * when there are more than one Dynamics instances associated with the user. @@ -61,6 +64,11 @@ class DynamicsLinkedService extends models['LinkedService'] { serializedName: 'Dynamics', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'DynamicsLinkedService', modelProperties: { connectVia: { @@ -78,9 +86,39 @@ class DynamicsLinkedService 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' } @@ -106,6 +144,13 @@ class DynamicsLinkedService extends models['LinkedService'] { name: 'Object' } }, + serviceUri: { + required: false, + serializedName: 'typeProperties.serviceUri', + type: { + name: 'Object' + } + }, organizationName: { required: false, serializedName: 'typeProperties.organizationName', diff --git a/lib/services/datafactoryManagement/lib/models/dynamicsSink.js b/lib/services/datafactoryManagement/lib/models/dynamicsSink.js index ac50a8c0d0..53ed02d91d 100644 --- a/lib/services/datafactoryManagement/lib/models/dynamicsSink.js +++ b/lib/services/datafactoryManagement/lib/models/dynamicsSink.js @@ -40,6 +40,11 @@ class DynamicsSink extends models['CopySink'] { serializedName: 'DynamicsSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'DynamicsSink', modelProperties: { writeBatchSize: { @@ -73,6 +78,7 @@ class DynamicsSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/dynamicsSource.js b/lib/services/datafactoryManagement/lib/models/dynamicsSource.js index 060a026f1e..2985aaac82 100644 --- a/lib/services/datafactoryManagement/lib/models/dynamicsSource.js +++ b/lib/services/datafactoryManagement/lib/models/dynamicsSource.js @@ -40,6 +40,11 @@ class DynamicsSource extends models['CopySource'] { serializedName: 'DynamicsSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'DynamicsSource', modelProperties: { sourceRetryCount: { @@ -59,6 +64,7 @@ class DynamicsSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/eloquaLinkedService.js b/lib/services/datafactoryManagement/lib/models/eloquaLinkedService.js index 7941e7fdfb..98f2b55b8d 100644 --- a/lib/services/datafactoryManagement/lib/models/eloquaLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/eloquaLinkedService.js @@ -54,6 +54,11 @@ class EloquaLinkedService extends models['LinkedService'] { serializedName: 'Eloqua', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'EloquaLinkedService', modelProperties: { connectVia: { @@ -71,9 +76,39 @@ class EloquaLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js b/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js index 7ac7e78baa..b6f1b980ac 100644 --- a/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js @@ -37,6 +37,11 @@ class EloquaObjectDataset extends models['Dataset'] { serializedName: 'EloquaObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'EloquaObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class EloquaObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/eloquaSource.js b/lib/services/datafactoryManagement/lib/models/eloquaSource.js index 25b7a5b1e2..ad5ffb10e4 100644 --- a/lib/services/datafactoryManagement/lib/models/eloquaSource.js +++ b/lib/services/datafactoryManagement/lib/models/eloquaSource.js @@ -39,6 +39,11 @@ class EloquaSource extends models['CopySource'] { serializedName: 'EloquaSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'EloquaSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class EloquaSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/executePipelineActivity.js b/lib/services/datafactoryManagement/lib/models/executePipelineActivity.js index c95918a4cf..05cc8f3493 100644 --- a/lib/services/datafactoryManagement/lib/models/executePipelineActivity.js +++ b/lib/services/datafactoryManagement/lib/models/executePipelineActivity.js @@ -44,6 +44,11 @@ class ExecutePipelineActivity extends models['ControlActivity'] { serializedName: 'ExecutePipeline', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'ExecutePipelineActivity', modelProperties: { name: { @@ -70,6 +75,18 @@ class ExecutePipelineActivity extends models['ControlActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -78,6 +95,7 @@ class ExecutePipelineActivity extends models['ControlActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js new file mode 100644 index 0000000000..7ca508a365 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js @@ -0,0 +1,181 @@ +/* + * 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'); + +/** + * Execute SSIS package activity. + * + * @extends models['ExecutionActivity'] + */ +class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { + /** + * Create a ExecuteSSISPackageActivity. + * @member {object} packageLocation SSIS package location. + * @member {string} [packageLocation.packagePath] The SSIS package path. + * @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 {object} connectVia The integration runtime reference. + * @member {string} [connectVia.referenceName] Reference integration runtime + * name. + * @member {object} [connectVia.parameters] Arguments for integration + * runtime. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ExecuteSSISPackageActivity + * + * @returns {object} metadata of ExecuteSSISPackageActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'ExecuteSSISPackage', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'ExecuteSSISPackageActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + packageLocation: { + required: true, + serializedName: 'typeProperties.packageLocation', + type: { + name: 'Composite', + className: 'SSISPackageLocation' + } + }, + runtime: { + required: false, + serializedName: 'typeProperties.runtime', + type: { + name: 'String' + } + }, + loggingLevel: { + required: false, + serializedName: 'typeProperties.loggingLevel', + type: { + name: 'String' + } + }, + environmentPath: { + required: false, + serializedName: 'typeProperties.environmentPath', + type: { + name: 'String' + } + }, + connectVia: { + required: true, + serializedName: 'typeProperties.connectVia', + defaultValue: {}, + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + } + } + } + }; + } +} + +module.exports = ExecuteSSISPackageActivity; diff --git a/lib/services/datafactoryManagement/lib/models/executionActivity.js b/lib/services/datafactoryManagement/lib/models/executionActivity.js index 9a88554a5f..34a22f3d96 100644 --- a/lib/services/datafactoryManagement/lib/models/executionActivity.js +++ b/lib/services/datafactoryManagement/lib/models/executionActivity.js @@ -23,6 +23,8 @@ class ExecutionActivity extends models['Activity'] { * @member {object} [linkedServiceName] Linked service reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [policy] Activity policy. * @member {object} [policy.timeout] Specifies the timeout for the activity * to run. The default timeout is 7 days. Type: string (or Expression with @@ -32,6 +34,8 @@ class ExecutionActivity extends models['Activity'] { * is 0. Type: integer (or Expression with resultType integer), minimum: 0. * @member {number} [policy.retryIntervalInSeconds] Interval between each * retry attempt (in seconds). The default is 30 sec. + * @member {boolean} [policy.secureOutput] When set to true, Output from + * activity is considered as secure and will not be logged to monitoring. */ constructor() { super(); @@ -49,6 +53,11 @@ class ExecutionActivity extends models['Activity'] { serializedName: 'Execution', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'ExecutionActivity', modelProperties: { name: { @@ -75,6 +84,18 @@ class ExecutionActivity extends models['Activity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -83,6 +104,7 @@ class ExecutionActivity extends models['Activity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -100,6 +122,18 @@ class ExecutionActivity extends models['Activity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } } diff --git a/lib/services/datafactoryManagement/lib/models/factory.js b/lib/services/datafactoryManagement/lib/models/factory.js index 2ccd6b2d78..744284edbd 100644 --- a/lib/services/datafactoryManagement/lib/models/factory.js +++ b/lib/services/datafactoryManagement/lib/models/factory.js @@ -45,6 +45,18 @@ class Factory extends models['Resource'] { serializedName: 'Factory', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'Factory', modelProperties: { id: { diff --git a/lib/services/datafactoryManagement/lib/models/factoryListResponse.js b/lib/services/datafactoryManagement/lib/models/factoryListResponse.js index f69600efa1..ba340d314f 100644 --- a/lib/services/datafactoryManagement/lib/models/factoryListResponse.js +++ b/lib/services/datafactoryManagement/lib/models/factoryListResponse.js @@ -47,6 +47,18 @@ class FactoryListResponse extends Array { serializedName: 'FactoryElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'Factory' } } diff --git a/lib/services/datafactoryManagement/lib/models/fileServerLinkedService.js b/lib/services/datafactoryManagement/lib/models/fileServerLinkedService.js index 7432af0bac..611b0f08a5 100644 --- a/lib/services/datafactoryManagement/lib/models/fileServerLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/fileServerLinkedService.js @@ -25,7 +25,7 @@ class FileServerLinkedService extends models['LinkedService'] { * @member {object} [userId] User ID to logon the server. Type: string (or * Expression with resultType string). * @member {object} [password] Password to logon the server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -46,6 +46,11 @@ class FileServerLinkedService extends models['LinkedService'] { serializedName: 'FileServer', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'FileServerLinkedService', modelProperties: { connectVia: { @@ -63,9 +68,39 @@ class FileServerLinkedService 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' } @@ -89,7 +124,12 @@ class FileServerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/fileShareDataset.js b/lib/services/datafactoryManagement/lib/models/fileShareDataset.js index 0c6ee3cf3a..d923419f1a 100644 --- a/lib/services/datafactoryManagement/lib/models/fileShareDataset.js +++ b/lib/services/datafactoryManagement/lib/models/fileShareDataset.js @@ -53,6 +53,11 @@ class FileShareDataset extends models['Dataset'] { serializedName: 'FileShare', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'FileShareDataset', modelProperties: { description: { @@ -93,9 +98,24 @@ class FileShareDataset 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' } @@ -119,6 +139,18 @@ class FileShareDataset extends models['Dataset'] { serializedName: 'typeProperties.format', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -139,6 +171,18 @@ class FileShareDataset extends models['Dataset'] { serializedName: 'typeProperties.compression', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/fileSystemSink.js b/lib/services/datafactoryManagement/lib/models/fileSystemSink.js index fd12bccd59..cc5f6e5d72 100644 --- a/lib/services/datafactoryManagement/lib/models/fileSystemSink.js +++ b/lib/services/datafactoryManagement/lib/models/fileSystemSink.js @@ -40,6 +40,11 @@ class FileSystemSink extends models['CopySink'] { serializedName: 'FileSystemSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'FileSystemSink', modelProperties: { writeBatchSize: { @@ -73,6 +78,7 @@ class FileSystemSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/fileSystemSource.js b/lib/services/datafactoryManagement/lib/models/fileSystemSource.js index bd86ab04a1..aa7f667c83 100644 --- a/lib/services/datafactoryManagement/lib/models/fileSystemSource.js +++ b/lib/services/datafactoryManagement/lib/models/fileSystemSource.js @@ -40,6 +40,11 @@ class FileSystemSource extends models['CopySource'] { serializedName: 'FileSystemSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'FileSystemSource', modelProperties: { sourceRetryCount: { @@ -59,6 +64,7 @@ class FileSystemSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/filterActivity.js b/lib/services/datafactoryManagement/lib/models/filterActivity.js new file mode 100644 index 0000000000..fffe385ff0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/filterActivity.js @@ -0,0 +1,124 @@ +/* + * 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'); + +/** + * Filter and return results from input array based on the conditions. + * + * @extends models['ControlActivity'] + */ +class FilterActivity extends models['ControlActivity'] { + /** + * Create a FilterActivity. + * @member {object} items Input array on which filter should be applied. + * @member {string} [items.value] Expression value. + * @member {object} condition Condition to be used for filtering the input. + * @member {string} [condition.value] Expression value. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FilterActivity + * + * @returns {object} metadata of FilterActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Filter', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'FilterActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + items: { + required: true, + serializedName: 'typeProperties.items', + defaultValue: {}, + type: { + name: 'Composite', + className: 'Expression' + } + }, + condition: { + required: true, + serializedName: 'typeProperties.condition', + defaultValue: {}, + type: { + name: 'Composite', + className: 'Expression' + } + } + } + } + }; + } +} + +module.exports = FilterActivity; diff --git a/lib/services/datafactoryManagement/lib/models/forEachActivity.js b/lib/services/datafactoryManagement/lib/models/forEachActivity.js index 0a81f9c85c..c874a5d612 100644 --- a/lib/services/datafactoryManagement/lib/models/forEachActivity.js +++ b/lib/services/datafactoryManagement/lib/models/forEachActivity.js @@ -22,7 +22,9 @@ class ForEachActivity extends models['ControlActivity'] { /** * Create a ForEachActivity. * @member {boolean} [isSequential] Should the loop be executed in sequence - * or in parallel (max 20) + * or in parallel (max 50) + * @member {number} [batchCount] Batch count to be used for controlling the + * number of parallel execution (when isSequential is set to false). * @member {object} items Collection to iterate. * @member {string} [items.value] Expression value. * @member {array} activities List of activities to execute . @@ -43,6 +45,11 @@ class ForEachActivity extends models['ControlActivity'] { serializedName: 'ForEach', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'ForEachActivity', modelProperties: { name: { @@ -69,6 +76,18 @@ class ForEachActivity extends models['ControlActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -77,6 +96,7 @@ class ForEachActivity extends models['ControlActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -88,6 +108,16 @@ class ForEachActivity extends models['ControlActivity'] { name: 'Boolean' } }, + batchCount: { + required: false, + serializedName: 'typeProperties.batchCount', + constraints: { + InclusiveMaximum: 50 + }, + type: { + name: 'Number' + } + }, items: { required: true, serializedName: 'typeProperties.items', @@ -107,6 +137,18 @@ class ForEachActivity extends models['ControlActivity'] { serializedName: 'ActivityElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/ftpServerLinkedService.js b/lib/services/datafactoryManagement/lib/models/ftpServerLinkedService.js index f2c71dbe4f..32cebadc3a 100644 --- a/lib/services/datafactoryManagement/lib/models/ftpServerLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/ftpServerLinkedService.js @@ -31,7 +31,7 @@ class FtpServerLinkedService extends models['LinkedService'] { * @member {object} [userName] Username to logon the FTP server. Type: string * (or Expression with resultType string). * @member {object} [password] Password to logon the FTP server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -58,6 +58,11 @@ class FtpServerLinkedService extends models['LinkedService'] { serializedName: 'FtpServer', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'FtpServerLinkedService', modelProperties: { connectVia: { @@ -75,9 +80,39 @@ class FtpServerLinkedService 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' } @@ -115,7 +150,12 @@ class FtpServerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/getMetadataActivity.js b/lib/services/datafactoryManagement/lib/models/getMetadataActivity.js index 271355079c..26a3a025b0 100644 --- a/lib/services/datafactoryManagement/lib/models/getMetadataActivity.js +++ b/lib/services/datafactoryManagement/lib/models/getMetadataActivity.js @@ -41,6 +41,11 @@ class GetMetadataActivity extends models['ExecutionActivity'] { serializedName: 'GetMetadata', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'GetMetadataActivity', modelProperties: { name: { @@ -67,6 +72,18 @@ class GetMetadataActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -75,6 +92,7 @@ class GetMetadataActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -92,6 +110,18 @@ class GetMetadataActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/googleBigQueryLinkedService.js b/lib/services/datafactoryManagement/lib/models/googleBigQueryLinkedService.js index 970bac0693..82c6ef9884 100644 --- a/lib/services/datafactoryManagement/lib/models/googleBigQueryLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/googleBigQueryLinkedService.js @@ -34,6 +34,12 @@ class GoogleBigQueryLinkedService extends models['LinkedService'] { * @member {object} [refreshToken] The refresh token obtained from Google for * authorizing access to BigQuery for UserAuthentication. * @member {string} [refreshToken.type] Polymorphic Discriminator + * @member {object} [clientId] The client id of the google application used + * to acquire the refresh token. + * @member {string} [clientId.type] Polymorphic Discriminator + * @member {object} [clientSecret] The client secret of the google + * application used to acquire the refresh token. + * @member {string} [clientSecret.type] Polymorphic Discriminator * @member {object} [email] The service account email ID that is used for * ServiceAuthentication and can only be used on self-hosted IR. * @member {object} [keyFilePath] The full path to the .p12 key file that is @@ -67,6 +73,11 @@ class GoogleBigQueryLinkedService extends models['LinkedService'] { serializedName: 'GoogleBigQuery', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'GoogleBigQueryLinkedService', modelProperties: { connectVia: { @@ -84,9 +95,39 @@ class GoogleBigQueryLinkedService 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' } @@ -132,6 +173,32 @@ class GoogleBigQueryLinkedService extends models['LinkedService'] { className: 'SecretBase' } }, + clientId: { + required: false, + serializedName: 'typeProperties.clientId', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, email: { required: false, serializedName: 'typeProperties.email', diff --git a/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js b/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js index 9341c4218c..7ced9d3224 100644 --- a/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js @@ -37,6 +37,11 @@ class GoogleBigQueryObjectDataset extends models['Dataset'] { serializedName: 'GoogleBigQueryObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'GoogleBigQueryObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class GoogleBigQueryObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/googleBigQuerySource.js b/lib/services/datafactoryManagement/lib/models/googleBigQuerySource.js index d56938db2e..e4015ac8df 100644 --- a/lib/services/datafactoryManagement/lib/models/googleBigQuerySource.js +++ b/lib/services/datafactoryManagement/lib/models/googleBigQuerySource.js @@ -39,6 +39,11 @@ class GoogleBigQuerySource extends models['CopySource'] { serializedName: 'GoogleBigQuerySource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'GoogleBigQuerySource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class GoogleBigQuerySource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/greenplumLinkedService.js b/lib/services/datafactoryManagement/lib/models/greenplumLinkedService.js index b6600fcf80..0823499773 100644 --- a/lib/services/datafactoryManagement/lib/models/greenplumLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/greenplumLinkedService.js @@ -42,6 +42,11 @@ class GreenplumLinkedService extends models['LinkedService'] { serializedName: 'Greenplum', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'GreenplumLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class GreenplumLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/greenplumSource.js b/lib/services/datafactoryManagement/lib/models/greenplumSource.js index 7607aa3c7b..c91f576a42 100644 --- a/lib/services/datafactoryManagement/lib/models/greenplumSource.js +++ b/lib/services/datafactoryManagement/lib/models/greenplumSource.js @@ -39,6 +39,11 @@ class GreenplumSource extends models['CopySource'] { serializedName: 'GreenplumSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'GreenplumSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class GreenplumSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js b/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js index 11398b85fb..2daf59c2bd 100644 --- a/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js @@ -37,6 +37,11 @@ class GreenplumTableDataset extends models['Dataset'] { serializedName: 'GreenplumTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'GreenplumTableDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class GreenplumTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/hBaseLinkedService.js b/lib/services/datafactoryManagement/lib/models/hBaseLinkedService.js index 5b61fc9493..6f4bbab94c 100644 --- a/lib/services/datafactoryManagement/lib/models/hBaseLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/hBaseLinkedService.js @@ -64,6 +64,11 @@ class HBaseLinkedService extends models['LinkedService'] { serializedName: 'HBase', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'HBaseLinkedService', modelProperties: { connectVia: { @@ -81,9 +86,39 @@ class HBaseLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js b/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js index 69eaf0c38b..b92fbf8d68 100644 --- a/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js @@ -37,6 +37,11 @@ class HBaseObjectDataset extends models['Dataset'] { serializedName: 'HBaseObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'HBaseObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class HBaseObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/hBaseSource.js b/lib/services/datafactoryManagement/lib/models/hBaseSource.js index a0c3e47205..96d8333833 100644 --- a/lib/services/datafactoryManagement/lib/models/hBaseSource.js +++ b/lib/services/datafactoryManagement/lib/models/hBaseSource.js @@ -39,6 +39,11 @@ class HBaseSource extends models['CopySource'] { serializedName: 'HBaseSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'HBaseSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class HBaseSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/hDInsightHiveActivity.js b/lib/services/datafactoryManagement/lib/models/hDInsightHiveActivity.js index f055d84d26..ac323c8921 100644 --- a/lib/services/datafactoryManagement/lib/models/hDInsightHiveActivity.js +++ b/lib/services/datafactoryManagement/lib/models/hDInsightHiveActivity.js @@ -29,6 +29,8 @@ class HDInsightHiveActivity extends models['ExecutionActivity'] { * @member {object} [scriptLinkedService] Script linked service reference. * @member {string} [scriptLinkedService.referenceName] Reference * LinkedService name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [defines] Allows user to specify defines for Hive job * request. */ @@ -48,6 +50,11 @@ class HDInsightHiveActivity extends models['ExecutionActivity'] { serializedName: 'HDInsightHive', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'HDInsightHiveActivity', modelProperties: { name: { @@ -74,6 +81,18 @@ class HDInsightHiveActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -82,6 +101,7 @@ class HDInsightHiveActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -99,6 +119,18 @@ class HDInsightHiveActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/hDInsightLinkedService.js b/lib/services/datafactoryManagement/lib/models/hDInsightLinkedService.js index 58ba9957c3..73f24a977b 100644 --- a/lib/services/datafactoryManagement/lib/models/hDInsightLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/hDInsightLinkedService.js @@ -25,15 +25,19 @@ class HDInsightLinkedService extends models['LinkedService'] { * @member {object} [userName] HDInsight cluster user name. Type: string (or * Expression with resultType string). * @member {object} [password] HDInsight cluster password. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [linkedServiceName] The Azure Storage linked service * reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [hcatalogLinkedServiceName] A reference to the Azure SQL * linked service that points to the HCatalog database. * @member {string} [hcatalogLinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. * @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). @@ -54,6 +58,11 @@ class HDInsightLinkedService extends models['LinkedService'] { serializedName: 'HDInsight', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'HDInsightLinkedService', modelProperties: { connectVia: { @@ -71,9 +80,39 @@ class HDInsightLinkedService 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' } @@ -97,7 +136,12 @@ class HDInsightLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, linkedServiceName: { diff --git a/lib/services/datafactoryManagement/lib/models/hDInsightMapReduceActivity.js b/lib/services/datafactoryManagement/lib/models/hDInsightMapReduceActivity.js index 13f1f2f2d7..ecd1fa5598 100644 --- a/lib/services/datafactoryManagement/lib/models/hDInsightMapReduceActivity.js +++ b/lib/services/datafactoryManagement/lib/models/hDInsightMapReduceActivity.js @@ -31,6 +31,8 @@ class HDInsightMapReduceActivity extends models['ExecutionActivity'] { * @member {object} [jarLinkedService] Jar linked service reference. * @member {string} [jarLinkedService.referenceName] Reference LinkedService * name. + * @member {object} [jarLinkedService.parameters] Arguments for + * LinkedService. * @member {array} [jarLibs] Jar libs. * @member {object} [defines] Allows user to specify defines for the * MapReduce job request. @@ -51,6 +53,11 @@ class HDInsightMapReduceActivity extends models['ExecutionActivity'] { serializedName: 'HDInsightMapReduce', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'HDInsightMapReduceActivity', modelProperties: { name: { @@ -77,6 +84,18 @@ class HDInsightMapReduceActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -85,6 +104,7 @@ class HDInsightMapReduceActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -102,6 +122,18 @@ class HDInsightMapReduceActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/hDInsightOnDemandLinkedService.js b/lib/services/datafactoryManagement/lib/models/hDInsightOnDemandLinkedService.js index 9a1b028ca5..851362c4ad 100644 --- a/lib/services/datafactoryManagement/lib/models/hDInsightOnDemandLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/hDInsightOnDemandLinkedService.js @@ -33,13 +33,15 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { * by the on-demand cluster for storing and processing data. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} hostSubscriptionId The customer’s subscription to host * the cluster. Type: string (or Expression with resultType string). * @member {object} [servicePrincipalId] The service principal id for the * hostSubscriptionId. Type: string (or Expression with resultType string). * @member {object} [servicePrincipalKey] The key for the service principal * id. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} tenant The Tenant id/name to which the service principal * belongs. Type: string (or Expression with resultType string). * @member {object} clusterResourceGroup The resource group where the cluster @@ -50,13 +52,13 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { * @member {object} [clusterUserName] The username to access the cluster. * Type: string (or Expression with resultType string). * @member {object} [clusterPassword] The password to access the cluster. - * @member {string} [clusterPassword.value] Value of secure string. + * @member {string} [clusterPassword.type] Polymorphic Discriminator * @member {object} [clusterSshUserName] The username to SSH remotely connect * to cluster’s node (for Linux). Type: string (or Expression with resultType * string). * @member {object} [clusterSshPassword] The password to SSH remotely connect * cluster’s node (for Linux). - * @member {string} [clusterSshPassword.value] Value of secure string. + * @member {string} [clusterSshPassword.type] Polymorphic Discriminator * @member {array} [additionalLinkedServiceNames] Specifies additional * storage accounts for the HDInsight linked service so that the Data Factory * service can register them on your behalf. @@ -65,6 +67,8 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { * cluster is created by using the Azure SQL database as the metastore. * @member {string} [hcatalogLinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [clusterType] The cluster type. Type: string (or * Expression with resultType string). * @member {object} [sparkVersion] The version of spark if the cluster type @@ -88,6 +92,12 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { * @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). + * @member {object} [headNodeSize] Specifies the size of the head node for + * the HDInsight cluster. + * @member {object} [dataNodeSize] Specifies the size of the data node for + * the HDInsight cluster. + * @member {object} [zookeeperNodeSize] Specifies the size of the Zoo Keeper + * node for the HDInsight cluster. */ constructor() { super(); @@ -105,6 +115,11 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { serializedName: 'HDInsightOnDemand', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'HDInsightOnDemandLinkedService', modelProperties: { connectVia: { @@ -122,9 +137,39 @@ class HDInsightOnDemandLinkedService 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' } @@ -178,7 +223,12 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.servicePrincipalKey', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, tenant: { @@ -214,7 +264,12 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.clusterPassword', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, clusterSshUserName: { @@ -229,7 +284,12 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.clusterSshPassword', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, additionalLinkedServiceNames: { @@ -331,6 +391,27 @@ class HDInsightOnDemandLinkedService extends models['LinkedService'] { type: { name: 'Object' } + }, + headNodeSize: { + required: false, + serializedName: 'typeProperties.headNodeSize', + type: { + name: 'Object' + } + }, + dataNodeSize: { + required: false, + serializedName: 'typeProperties.dataNodeSize', + type: { + name: 'Object' + } + }, + zookeeperNodeSize: { + required: false, + serializedName: 'typeProperties.zookeeperNodeSize', + type: { + name: 'Object' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/hDInsightPigActivity.js b/lib/services/datafactoryManagement/lib/models/hDInsightPigActivity.js index b7b4e92477..5d29aaee65 100644 --- a/lib/services/datafactoryManagement/lib/models/hDInsightPigActivity.js +++ b/lib/services/datafactoryManagement/lib/models/hDInsightPigActivity.js @@ -29,6 +29,8 @@ class HDInsightPigActivity extends models['ExecutionActivity'] { * @member {object} [scriptLinkedService] Script linked service reference. * @member {string} [scriptLinkedService.referenceName] Reference * LinkedService name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [defines] Allows user to specify defines for Pig job * request. */ @@ -48,6 +50,11 @@ class HDInsightPigActivity extends models['ExecutionActivity'] { serializedName: 'HDInsightPig', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'HDInsightPigActivity', modelProperties: { name: { @@ -74,6 +81,18 @@ class HDInsightPigActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -82,6 +101,7 @@ class HDInsightPigActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -99,6 +119,18 @@ class HDInsightPigActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/hDInsightSparkActivity.js b/lib/services/datafactoryManagement/lib/models/hDInsightSparkActivity.js index 5e3d7310a6..11db2a1603 100644 --- a/lib/services/datafactoryManagement/lib/models/hDInsightSparkActivity.js +++ b/lib/services/datafactoryManagement/lib/models/hDInsightSparkActivity.js @@ -33,6 +33,8 @@ class HDInsightSparkActivity extends models['ExecutionActivity'] { * uploading the entry file and dependencies, and for receiving logs. * @member {string} [sparkJobLinkedService.referenceName] Reference * LinkedService name. + * @member {object} [sparkJobLinkedService.parameters] Arguments for + * LinkedService. * @member {string} [className] The application's Java/Spark main class. * @member {object} [proxyUser] The user to impersonate that will execute the * job. Type: string (or Expression with resultType string). @@ -54,6 +56,11 @@ class HDInsightSparkActivity extends models['ExecutionActivity'] { serializedName: 'HDInsightSpark', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'HDInsightSparkActivity', modelProperties: { name: { @@ -80,6 +87,18 @@ class HDInsightSparkActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -88,6 +107,7 @@ class HDInsightSparkActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -105,6 +125,18 @@ class HDInsightSparkActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/hDInsightStreamingActivity.js b/lib/services/datafactoryManagement/lib/models/hDInsightStreamingActivity.js index 0a28a846d8..3d5be75012 100644 --- a/lib/services/datafactoryManagement/lib/models/hDInsightStreamingActivity.js +++ b/lib/services/datafactoryManagement/lib/models/hDInsightStreamingActivity.js @@ -38,6 +38,8 @@ class HDInsightStreamingActivity extends models['ExecutionActivity'] { * files are located. * @member {string} [fileLinkedService.referenceName] Reference LinkedService * name. + * @member {object} [fileLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [combiner] Combiner executable name. Type: string (or * Expression with resultType string). * @member {array} [commandEnvironment] Command line environment values. @@ -60,6 +62,11 @@ class HDInsightStreamingActivity extends models['ExecutionActivity'] { serializedName: 'HDInsightStreaming', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'HDInsightStreamingActivity', modelProperties: { name: { @@ -86,6 +93,18 @@ class HDInsightStreamingActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -94,6 +113,7 @@ class HDInsightStreamingActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -111,6 +131,18 @@ class HDInsightStreamingActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/hdfsLinkedService.js b/lib/services/datafactoryManagement/lib/models/hdfsLinkedService.js index 4bda4de605..d2687d48f0 100644 --- a/lib/services/datafactoryManagement/lib/models/hdfsLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/hdfsLinkedService.js @@ -32,7 +32,7 @@ class HdfsLinkedService extends models['LinkedService'] { * @member {object} [userName] User name for Windows authentication. Type: * string (or Expression with resultType string). * @member {object} [password] Password for Windows authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator */ constructor() { super(); @@ -50,6 +50,11 @@ class HdfsLinkedService extends models['LinkedService'] { serializedName: 'Hdfs', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'HdfsLinkedService', modelProperties: { connectVia: { @@ -67,9 +72,39 @@ class HdfsLinkedService 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' } @@ -107,7 +142,12 @@ class HdfsLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } } } diff --git a/lib/services/datafactoryManagement/lib/models/hdfsSource.js b/lib/services/datafactoryManagement/lib/models/hdfsSource.js index 68b341fbcf..1674d24984 100644 --- a/lib/services/datafactoryManagement/lib/models/hdfsSource.js +++ b/lib/services/datafactoryManagement/lib/models/hdfsSource.js @@ -50,6 +50,11 @@ class HdfsSource extends models['CopySource'] { serializedName: 'HdfsSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'HdfsSource', modelProperties: { sourceRetryCount: { @@ -69,6 +74,7 @@ class HdfsSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/hiveLinkedService.js b/lib/services/datafactoryManagement/lib/models/hiveLinkedService.js index fd7df47de0..fb532fb8e7 100644 --- a/lib/services/datafactoryManagement/lib/models/hiveLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/hiveLinkedService.js @@ -80,6 +80,11 @@ class HiveLinkedService extends models['LinkedService'] { serializedName: 'Hive', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'HiveLinkedService', modelProperties: { connectVia: { @@ -97,9 +102,39 @@ class HiveLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js b/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js index ece931209d..b7f700ec20 100644 --- a/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js @@ -37,6 +37,11 @@ class HiveObjectDataset extends models['Dataset'] { serializedName: 'HiveObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'HiveObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class HiveObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/hiveSource.js b/lib/services/datafactoryManagement/lib/models/hiveSource.js index bd640542e8..1230851273 100644 --- a/lib/services/datafactoryManagement/lib/models/hiveSource.js +++ b/lib/services/datafactoryManagement/lib/models/hiveSource.js @@ -39,6 +39,11 @@ class HiveSource extends models['CopySource'] { serializedName: 'HiveSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'HiveSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class HiveSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/httpDataset.js b/lib/services/datafactoryManagement/lib/models/httpDataset.js index cf9149ad9e..fb91b338f6 100644 --- a/lib/services/datafactoryManagement/lib/models/httpDataset.js +++ b/lib/services/datafactoryManagement/lib/models/httpDataset.js @@ -57,6 +57,11 @@ class HttpDataset extends models['Dataset'] { serializedName: 'HttpFile', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'HttpDataset', modelProperties: { description: { @@ -97,9 +102,24 @@ class HttpDataset 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' } @@ -137,6 +157,18 @@ class HttpDataset extends models['Dataset'] { serializedName: 'typeProperties.format', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -150,6 +182,18 @@ class HttpDataset extends models['Dataset'] { serializedName: 'typeProperties.compression', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/httpLinkedService.js b/lib/services/datafactoryManagement/lib/models/httpLinkedService.js index 013cd99f3f..365356d504 100644 --- a/lib/services/datafactoryManagement/lib/models/httpLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/httpLinkedService.js @@ -30,7 +30,7 @@ class HttpLinkedService extends models['LinkedService'] { * authentication. Type: string (or Expression with resultType string). * @member {object} [password] Password for Basic, Digest, Windows, or * ClientCertificate with EmbeddedCertData authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [embeddedCertData] Base64 encoded certificate data for * ClientCertificate authentication. For on-premises copy with * ClientCertificate authentication, either CertThumbprint or @@ -64,6 +64,11 @@ class HttpLinkedService extends models['LinkedService'] { serializedName: 'HttpServer', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'HttpLinkedService', modelProperties: { connectVia: { @@ -81,9 +86,39 @@ class HttpLinkedService 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' } @@ -114,7 +149,12 @@ class HttpLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, embeddedCertData: { diff --git a/lib/services/datafactoryManagement/lib/models/httpSource.js b/lib/services/datafactoryManagement/lib/models/httpSource.js index 7f86787066..f4115a04a0 100644 --- a/lib/services/datafactoryManagement/lib/models/httpSource.js +++ b/lib/services/datafactoryManagement/lib/models/httpSource.js @@ -42,6 +42,11 @@ class HttpSource extends models['CopySource'] { serializedName: 'HttpSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'HttpSource', modelProperties: { sourceRetryCount: { @@ -61,6 +66,7 @@ class HttpSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/hubspotLinkedService.js b/lib/services/datafactoryManagement/lib/models/hubspotLinkedService.js index 841dc15243..6235140c1a 100644 --- a/lib/services/datafactoryManagement/lib/models/hubspotLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/hubspotLinkedService.js @@ -59,6 +59,11 @@ class HubspotLinkedService extends models['LinkedService'] { serializedName: 'Hubspot', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'HubspotLinkedService', modelProperties: { connectVia: { @@ -76,9 +81,39 @@ class HubspotLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js b/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js index e098a68547..d62b858309 100644 --- a/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js @@ -37,6 +37,11 @@ class HubspotObjectDataset extends models['Dataset'] { serializedName: 'HubspotObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'HubspotObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class HubspotObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/hubspotSource.js b/lib/services/datafactoryManagement/lib/models/hubspotSource.js index ce147a7a69..0a407bc7a5 100644 --- a/lib/services/datafactoryManagement/lib/models/hubspotSource.js +++ b/lib/services/datafactoryManagement/lib/models/hubspotSource.js @@ -39,6 +39,11 @@ class HubspotSource extends models['CopySource'] { serializedName: 'HubspotSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'HubspotSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class HubspotSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/ifConditionActivity.js b/lib/services/datafactoryManagement/lib/models/ifConditionActivity.js index 6d3a169d2a..87e1efc469 100644 --- a/lib/services/datafactoryManagement/lib/models/ifConditionActivity.js +++ b/lib/services/datafactoryManagement/lib/models/ifConditionActivity.js @@ -49,6 +49,11 @@ class IfConditionActivity extends models['ControlActivity'] { serializedName: 'IfCondition', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'IfConditionActivity', modelProperties: { name: { @@ -75,6 +80,18 @@ class IfConditionActivity extends models['ControlActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -83,6 +100,7 @@ class IfConditionActivity extends models['ControlActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -106,6 +124,18 @@ class IfConditionActivity extends models['ControlActivity'] { serializedName: 'ActivityElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -126,6 +156,18 @@ class IfConditionActivity extends models['ControlActivity'] { serializedName: 'ActivityElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/impalaLinkedService.js b/lib/services/datafactoryManagement/lib/models/impalaLinkedService.js index 6dd15a5857..19b8518673 100644 --- a/lib/services/datafactoryManagement/lib/models/impalaLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/impalaLinkedService.js @@ -67,6 +67,11 @@ class ImpalaLinkedService extends models['LinkedService'] { serializedName: 'Impala', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'ImpalaLinkedService', modelProperties: { connectVia: { @@ -84,9 +89,39 @@ class ImpalaLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js b/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js index f3bca87fc3..ce3d09b696 100644 --- a/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js @@ -37,6 +37,11 @@ class ImpalaObjectDataset extends models['Dataset'] { serializedName: 'ImpalaObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'ImpalaObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class ImpalaObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/impalaSource.js b/lib/services/datafactoryManagement/lib/models/impalaSource.js index 70c41a795d..727e4f8480 100644 --- a/lib/services/datafactoryManagement/lib/models/impalaSource.js +++ b/lib/services/datafactoryManagement/lib/models/impalaSource.js @@ -39,6 +39,11 @@ class ImpalaSource extends models['CopySource'] { serializedName: 'ImpalaSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'ImpalaSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class ImpalaSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 70b9636fb2..24d97b8691 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -98,9 +98,11 @@ export interface SecureString extends SecretBase { * Linked service reference type. * * @member {string} referenceName Reference LinkedService name. + * @member {object} [parameters] Arguments for LinkedService. */ export interface LinkedServiceReference { referenceName: string; + parameters?: { [propertyName: string]: any }; } /** @@ -111,6 +113,7 @@ export interface LinkedServiceReference { * * @member {object} store The Azure Key Vault linked service reference. * @member {string} [store.referenceName] Reference LinkedService name. + * @member {object} [store.parameters] Arguments for LinkedService. * @member {object} secretName The name of the secret in Azure Key Vault. Type: * string (or Expression with resultType string). * @member {object} [secretVersion] The version of the secret in Azure Key @@ -156,6 +159,11 @@ export interface Factory extends Resource { readonly provisioningState?: string; readonly createTime?: Date; readonly version?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -171,6 +179,11 @@ export interface Factory extends Resource { export interface IntegrationRuntime { description?: string; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -207,14 +220,22 @@ export interface IntegrationRuntimeReference { * @constructor * Integration runtime status. * + * @member {string} [dataFactoryName] The data factory name which the + * integration runtime belong to. * @member {string} [state] The state of integration runtime. Possible values * include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', * 'NeedRegistration', 'Online', 'Limited', 'Offline' * @member {string} type Polymorphic Discriminator */ export interface IntegrationRuntimeStatus { + readonly dataFactoryName?: string; readonly state?: string; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -225,6 +246,8 @@ export interface IntegrationRuntimeStatus { * * @member {string} [name] The integration runtime name. * @member {object} properties Integration runtime properties. + * @member {string} [properties.dataFactoryName] The data factory name which + * the integration runtime belong to. * @member {string} [properties.state] The state of integration runtime. * Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', * 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' @@ -250,6 +273,54 @@ export interface IntegrationRuntimeStatusListResponse { nextLink?: string; } +/** + * @class + * Initializes a new instance of the UpdateIntegrationRuntimeRequest class. + * @constructor + * Update integration runtime request. + * + * @member {string} [autoUpdate] Enables or disables the auto-update feature of + * the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * @member {string} [updateDelayOffset] The time offset (in hours) in the day, + * e.g., PT03H is 3 hours. The integration runtime auto update will happen on + * that time. + */ +export interface UpdateIntegrationRuntimeRequest { + autoUpdate?: string; + updateDelayOffset?: string; +} + +/** + * @class + * Initializes a new instance of the UpdateIntegrationRuntimeNodeRequest class. + * @constructor + * Update integration runtime node request. + * + * @member {number} [concurrentJobsLimit] The number of concurrent jobs + * permitted to run on the integration runtime node. Values between 1 and + * maxConcurrentJobs(inclusive) are allowed. + */ +export interface UpdateIntegrationRuntimeNodeRequest { + concurrentJobsLimit?: number; +} + +/** + * @class + * Initializes a new instance of the ParameterSpecification class. + * @constructor + * Definition of a single parameter for an entity. + * + * @member {string} type Parameter type. Possible values include: 'Object', + * 'String', 'Int', 'Float', 'Bool', 'Array', 'SecureString' + * @member {object} [defaultValue] Default value of parameter. + */ +export interface ParameterSpecification { + type: string; + defaultValue?: any; +} + /** * @class * Initializes a new instance of the LinkedService class. @@ -263,12 +334,22 @@ export interface IntegrationRuntimeStatusListResponse { * name. * @member {object} [connectVia.parameters] Arguments for integration runtime. * @member {string} [description] Linked service description. + * @member {object} [parameters] Parameters for linked service. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. * @member {string} type Polymorphic Discriminator */ export interface LinkedService { connectVia?: IntegrationRuntimeReference; description?: string; + parameters?: { [propertyName: string]: ParameterSpecification }; + annotations?: any[]; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -284,27 +365,15 @@ export interface LinkedService { * @member {object} [properties.connectVia.parameters] Arguments for * integration runtime. * @member {string} [properties.description] Linked service description. + * @member {object} [properties.parameters] Parameters for linked service. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. * @member {string} [properties.type] Polymorphic Discriminator */ export interface LinkedServiceResource extends SubResource { properties: LinkedService; } -/** - * @class - * Initializes a new instance of the ParameterSpecification class. - * @constructor - * Definition of a single parameter for an entity. - * - * @member {string} type Parameter type. Possible values include: 'Object', - * 'String', 'Int', 'Float', 'Bool', 'Array' - * @member {object} [defaultValue] Default value of parameter. - */ -export interface ParameterSpecification { - type: string; - defaultValue?: any; -} - /** * @class * Initializes a new instance of the Dataset class. @@ -319,7 +388,10 @@ export interface ParameterSpecification { * @member {object} linkedServiceName Linked service reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. * @member {object} [parameters] Parameters for dataset. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. * @member {string} type Polymorphic Discriminator */ export interface Dataset { @@ -327,7 +399,13 @@ export interface Dataset { structure?: any; linkedServiceName: LinkedServiceReference; parameters?: { [propertyName: string]: ParameterSpecification }; + annotations?: any[]; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -344,7 +422,11 @@ export interface Dataset { * @member {object} [properties.linkedServiceName] Linked service reference. * @member {string} [properties.linkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [properties.linkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [properties.parameters] Parameters for dataset. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. * @member {string} [properties.type] Polymorphic Discriminator */ export interface DatasetResource extends SubResource { @@ -363,6 +445,11 @@ export interface DatasetResource extends SubResource { export interface ActivityDependency { activity: string; dependencyConditions: string[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -381,6 +468,11 @@ export interface Activity { description?: string; dependsOn?: ActivityDependency[]; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -394,12 +486,20 @@ export interface Activity { * @member {object} [parameters] List of parameters for pipeline. * @member {number} [concurrency] The max number of concurrent runs for the * pipeline. + * @member {array} [annotations] List of tags that can be used for describing + * the Pipeline. */ export interface PipelineResource extends SubResource { description?: string; activities?: Activity[]; parameters?: { [propertyName: string]: ParameterSpecification }; concurrency?: number; + annotations?: any[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -419,6 +519,11 @@ export interface Trigger { description?: string; readonly runtimeState?: string; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -634,6 +739,11 @@ export interface PipelineRun { readonly durationInMs?: number; readonly status?: string; readonly message?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -687,6 +797,11 @@ export interface ActivityRun { readonly input?: any; readonly output?: any; readonly error?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -716,6 +831,11 @@ export interface TriggerRun { readonly message?: string; readonly properties?: { [propertyName: string]: string }; readonly triggeredPipelines?: { [propertyName: string]: string }; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -859,6 +979,46 @@ export interface OperationListResponse { nextLink?: string; } +/** + * @class + * Initializes a new instance of the AzureDatabricksLinkedService class. + * @constructor + * Azure Databricks linked service. + * + * @member {object} domain .azuredatabricks.net, domain name of your + * Databricks deployment. Type: string (or Expression with resultType string). + * @member {object} accessToken Access token for databricks REST API. Refer to + * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: + * string (or Expression with resultType string). + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [existingClusterId] The id of an existing cluster that will + * be used for all runs of this job. Type: string (or Expression with + * resultType string). + * @member {object} [newClusterVersion] The Spark version of new cluster. Type: + * string (or Expression with resultType string). + * @member {object} [newClusterNumOfWorker] Number of worker nodes that new + * cluster should have. A string formatted Int32, like '1' means numOfWorker is + * 1 or '1:10' means auto-scale from 1 as min and 10 as max. Type: string (or + * Expression with resultType string). + * @member {object} [newClusterNodeType] The node types of new cluster. Type: + * string (or Expression with resultType string). + * @member {object} [newClusterSparkConf] a set of optional, user-specified + * Spark configuration key-value pairs. + * @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). + */ +export interface AzureDatabricksLinkedService extends LinkedService { + domain: any; + accessToken: SecretBase; + existingClusterId?: any; + newClusterVersion?: any; + newClusterNumOfWorker?: any; + newClusterNodeType?: any; + newClusterSparkConf?: { [propertyName: string]: any }; + encryptedCredential?: any; +} + /** * @class * Initializes a new instance of the AzureDataLakeAnalyticsLinkedService class. @@ -872,7 +1032,7 @@ export interface OperationListResponse { * Expression with resultType string). * @member {object} [servicePrincipalKey] The Key of the application used to * authenticate against the Azure Data Lake Analytics account. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} tenant The name or ID of the tenant to which the service * principal belongs. Type: string (or Expression with resultType string). * @member {object} [subscriptionId] Data Lake Analytics account subscription @@ -890,7 +1050,7 @@ export interface OperationListResponse { export interface AzureDataLakeAnalyticsLinkedService extends LinkedService { accountName: any; servicePrincipalId?: any; - servicePrincipalKey?: SecureString; + servicePrincipalKey?: SecretBase; tenant: any; subscriptionId?: any; resourceGroupName?: any; @@ -917,12 +1077,13 @@ export interface AzureDataLakeAnalyticsLinkedService extends LinkedService { * by the on-demand cluster for storing and processing data. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. * @member {object} hostSubscriptionId The customer’s subscription to host the * cluster. Type: string (or Expression with resultType string). * @member {object} [servicePrincipalId] The service principal id for the * hostSubscriptionId. Type: string (or Expression with resultType string). * @member {object} [servicePrincipalKey] The key for the service principal id. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} tenant The Tenant id/name to which the service principal * belongs. Type: string (or Expression with resultType string). * @member {object} clusterResourceGroup The resource group where the cluster @@ -933,13 +1094,13 @@ export interface AzureDataLakeAnalyticsLinkedService extends LinkedService { * @member {object} [clusterUserName] The username to access the cluster. Type: * string (or Expression with resultType string). * @member {object} [clusterPassword] The password to access the cluster. - * @member {string} [clusterPassword.value] Value of secure string. + * @member {string} [clusterPassword.type] Polymorphic Discriminator * @member {object} [clusterSshUserName] The username to SSH remotely connect * to cluster’s node (for Linux). Type: string (or Expression with resultType * string). * @member {object} [clusterSshPassword] The password to SSH remotely connect * cluster’s node (for Linux). - * @member {string} [clusterSshPassword.value] Value of secure string. + * @member {string} [clusterSshPassword.type] Polymorphic Discriminator * @member {array} [additionalLinkedServiceNames] Specifies additional storage * accounts for the HDInsight linked service so that the Data Factory service * can register them on your behalf. @@ -948,6 +1109,8 @@ export interface AzureDataLakeAnalyticsLinkedService extends LinkedService { * is created by using the Azure SQL database as the metastore. * @member {string} [hcatalogLinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [clusterType] The cluster type. Type: string (or Expression * with resultType string). * @member {object} [sparkVersion] The version of spark if the cluster type is @@ -971,6 +1134,12 @@ export interface AzureDataLakeAnalyticsLinkedService extends LinkedService { * @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). + * @member {object} [headNodeSize] Specifies the size of the head node for the + * HDInsight cluster. + * @member {object} [dataNodeSize] Specifies the size of the data node for the + * HDInsight cluster. + * @member {object} [zookeeperNodeSize] Specifies the size of the Zoo Keeper + * node for the HDInsight cluster. */ export interface HDInsightOnDemandLinkedService extends LinkedService { clusterSize: any; @@ -979,14 +1148,14 @@ export interface HDInsightOnDemandLinkedService extends LinkedService { linkedServiceName: LinkedServiceReference; hostSubscriptionId: any; servicePrincipalId?: any; - servicePrincipalKey?: SecureString; + servicePrincipalKey?: SecretBase; tenant: any; clusterResourceGroup: any; clusterNamePrefix?: any; clusterUserName?: any; - clusterPassword?: SecureString; + clusterPassword?: SecretBase; clusterSshUserName?: any; - clusterSshPassword?: SecureString; + clusterSshPassword?: SecretBase; additionalLinkedServiceNames?: LinkedServiceReference[]; hcatalogLinkedServiceName?: LinkedServiceReference; clusterType?: any; @@ -1000,6 +1169,79 @@ export interface HDInsightOnDemandLinkedService extends LinkedService { stormConfiguration?: any; yarnConfiguration?: any; encryptedCredential?: any; + headNodeSize?: any; + dataNodeSize?: any; + zookeeperNodeSize?: any; +} + +/** + * @class + * Initializes a new instance of the SalesforceMarketingCloudLinkedService class. + * @constructor + * Salesforce Marketing Cloud linked service. + * + * @member {object} clientId The client ID associated with the Salesforce + * Marketing Cloud application. Type: string (or Expression with resultType + * string). + * @member {object} [clientSecret] The client secret associated with the + * Salesforce Marketing Cloud application. Type: string (or Expression with + * resultType string). + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. Type: + * boolean (or Expression with resultType boolean). + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. Type: boolean (or Expression + * with resultType boolean). + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * Type: boolean (or Expression with resultType boolean). + * @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). + */ +export interface SalesforceMarketingCloudLinkedService extends LinkedService { + clientId: any; + clientSecret?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the NetezzaLinkedService class. + * @constructor + * Netezza linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface NetezzaLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the VerticaLinkedService class. + * @constructor + * Vertica linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface VerticaLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; } /** @@ -1768,6 +2010,12 @@ export interface GreenplumLinkedService extends LinkedService { * @member {object} [refreshToken] The refresh token obtained from Google for * authorizing access to BigQuery for UserAuthentication. * @member {string} [refreshToken.type] Polymorphic Discriminator + * @member {object} [clientId] The client id of the google application used to + * acquire the refresh token. + * @member {string} [clientId.type] Polymorphic Discriminator + * @member {object} [clientSecret] The client secret of the google application + * used to acquire the refresh token. + * @member {string} [clientSecret.type] Polymorphic Discriminator * @member {object} [email] The service account email ID that is used for * ServiceAuthentication and can only be used on self-hosted IR. * @member {object} [keyFilePath] The full path to the .p12 key file that is @@ -1790,6 +2038,8 @@ export interface GoogleBigQueryLinkedService extends LinkedService { requestGoogleDriveScope?: any; authenticationType: string; refreshToken?: SecretBase; + clientId?: SecretBase; + clientSecret?: SecretBase; email?: any; keyFilePath?: any; trustedCertPath?: any; @@ -1969,7 +2219,7 @@ export interface AmazonMWSLinkedService extends LinkedService { * @member {object} [userName] Username to access the SAP HANA server. Type: * string (or Expression with resultType string). * @member {object} [password] Password to access the SAP HANA server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -1978,7 +2228,7 @@ export interface SapHanaLinkedService extends LinkedService { server: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -1999,7 +2249,7 @@ export interface SapHanaLinkedService extends LinkedService { * @member {object} [userName] Username to access the SAP BW server. Type: * string (or Expression with resultType string). * @member {object} [password] Password to access the SAP BW server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2009,7 +2259,7 @@ export interface SapBWLinkedService extends LinkedService { systemNumber: any; clientId: any; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2030,7 +2280,7 @@ export interface SapBWLinkedService extends LinkedService { * Type: string (or Expression with resultType string). * @member {object} [password] Password to logon the SFTP server for Basic * authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2043,10 +2293,10 @@ export interface SapBWLinkedService extends LinkedService { * for SshPublicKey authentication. For on-premises copy with SshPublicKey * authentication, either PrivateKeyPath or PrivateKeyContent should be * specified. SSH private key should be OpenSSH format. - * @member {string} [privateKeyContent.value] Value of secure string. + * @member {string} [privateKeyContent.type] Polymorphic Discriminator * @member {object} [passPhrase] The password to decrypt the SSH private key if * the SSH private key is encrypted. - * @member {string} [passPhrase.value] Value of secure string. + * @member {string} [passPhrase.type] Polymorphic Discriminator * @member {object} [skipHostKeyValidation] If true, skip the SSH host key * validation. Default value is false. Type: boolean (or Expression with * resultType boolean). @@ -2059,11 +2309,11 @@ export interface SftpServerLinkedService extends LinkedService { port?: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; privateKeyPath?: any; - privateKeyContent?: SecureString; - passPhrase?: SecureString; + privateKeyContent?: SecretBase; + passPhrase?: SecretBase; skipHostKeyValidation?: any; hostKeyFingerprint?: any; } @@ -2084,7 +2334,7 @@ export interface SftpServerLinkedService extends LinkedService { * @member {object} [userName] Username to logon the FTP server. Type: string * (or Expression with resultType string). * @member {object} [password] Password to logon the FTP server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2100,7 +2350,7 @@ export interface FtpServerLinkedService extends LinkedService { port?: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; enableSsl?: any; enableServerCertificateValidation?: any; @@ -2122,7 +2372,7 @@ export interface FtpServerLinkedService extends LinkedService { * authentication. Type: string (or Expression with resultType string). * @member {object} [password] Password for Basic, Digest, Windows, or * ClientCertificate with EmbeddedCertData authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [embeddedCertData] Base64 encoded certificate data for * ClientCertificate authentication. For on-premises copy with * ClientCertificate authentication, either CertThumbprint or @@ -2144,7 +2394,7 @@ export interface HttpLinkedService extends LinkedService { url: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; embeddedCertData?: any; certThumbprint?: any; encryptedCredential?: any; @@ -2160,14 +2410,14 @@ export interface HttpLinkedService extends LinkedService { * @member {object} url URL for Azure Search service. Type: string (or * Expression with resultType string). * @member {object} [key] Admin Key for Azure Search service - * @member {string} [key.value] Value of secure string. + * @member {string} [key.type] Polymorphic Discriminator * @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). */ export interface AzureSearchLinkedService extends LinkedService { url: any; - key?: SecureString; + key?: SecretBase; encryptedCredential?: any; } @@ -2194,7 +2444,7 @@ export interface CustomDataSourceLinkedService extends LinkedService { * @member {object} [username] The username of the Amazon Redshift source. * Type: string (or Expression with resultType string). * @member {object} [password] The password of the Amazon Redshift source. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} database The database name of the Amazon Redshift source. * Type: string (or Expression with resultType string). * @member {object} [port] The TCP port number that the Amazon Redshift server @@ -2207,7 +2457,7 @@ export interface CustomDataSourceLinkedService extends LinkedService { export interface AmazonRedshiftLinkedService extends LinkedService { server: any; username?: any; - password?: SecureString; + password?: SecretBase; database: any; port?: any; encryptedCredential?: any; @@ -2224,17 +2474,42 @@ export interface AmazonRedshiftLinkedService extends LinkedService { * resultType string). * @member {object} [secretAccessKey] The secret access key of the Amazon S3 * Identity and Access Management (IAM) user. - * @member {string} [secretAccessKey.value] Value of secure string. + * @member {string} [secretAccessKey.type] Polymorphic Discriminator * @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). */ export interface AmazonS3LinkedService extends LinkedService { accessKeyId?: any; - secretAccessKey?: SecureString; + secretAccessKey?: SecretBase; encryptedCredential?: any; } +/** + * @class + * Initializes a new instance of the SapEccLinkedService class. + * @constructor + * Linked service for SAP ERP Central Component(SAP ECC). + * + * @member {string} url The URL of SAP ECC OData API. For example, + * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or + * Expression with resultType string). + * @member {string} [username] The username for Basic authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {string} [encryptedCredential] The encrypted credential used for + * authentication. Credentials are encrypted using the integration runtime + * credential manager. Either encryptedCredential or username/password must be + * provided. Type: string (or Expression with resultType string). + */ +export interface SapEccLinkedService extends LinkedService { + url: string; + username?: string; + password?: SecretBase; + encryptedCredential?: string; +} + /** * @class * Initializes a new instance of the SapCloudForCustomerLinkedService class. @@ -2247,7 +2522,7 @@ export interface AmazonS3LinkedService extends LinkedService { * @member {object} [username] The username for Basic authentication. Type: * string (or Expression with resultType string). * @member {object} [password] The password for Basic authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [encryptedCredential] The encrypted credential used for * authentication. Credentials are encrypted using the integration runtime * credential manager. Either encryptedCredential or username/password must be @@ -2256,7 +2531,7 @@ export interface AmazonS3LinkedService extends LinkedService { export interface SapCloudForCustomerLinkedService extends LinkedService { url: any; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2304,7 +2579,7 @@ export interface SalesforceLinkedService extends LinkedService { * Expression with resultType string). * @member {object} [servicePrincipalKey] The Key of the application used to * authenticate against the Azure Data Lake Store account. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} [tenant] The name or ID of the tenant to which the service * principal belongs. Type: string (or Expression with resultType string). * @member {object} [accountName] Data Lake Store account name. Type: string @@ -2322,7 +2597,7 @@ export interface SalesforceLinkedService extends LinkedService { export interface AzureDataLakeStoreLinkedService extends LinkedService { dataLakeStoreUri: any; servicePrincipalId?: any; - servicePrincipalKey?: SecureString; + servicePrincipalKey?: SecretBase; tenant?: any; accountName?: any; subscriptionId?: any; @@ -2346,12 +2621,18 @@ export interface AzureDataLakeStoreLinkedService extends LinkedService { * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [authSource] Database to verify the username and password. * Type: string (or Expression with resultType string). * @member {object} [port] The TCP port number that the MongoDB server uses to * listen for client connections. The default value is 27017. Type: integer (or * Expression with resultType integer), minimum: 0. + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. Type: boolean (or + * Expression with resultType boolean). + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. Type: + * boolean (or Expression with resultType boolean). * @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). @@ -2361,9 +2642,11 @@ export interface MongoDbLinkedService extends LinkedService { authenticationType?: string; databaseName: any; username?: any; - password?: SecureString; + password?: SecretBase; authSource?: any; port?: any; + enableSsl?: any; + allowSelfSignedServerCert?: any; encryptedCredential?: any; } @@ -2382,7 +2665,7 @@ export interface MongoDbLinkedService extends LinkedService { * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2392,7 +2675,7 @@ export interface CassandraLinkedService extends LinkedService { authenticationType?: any; port?: any; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2423,13 +2706,13 @@ export interface WebLinkedServiceTypeProperties { * client. * * @member {object} pfx Base64-encoded contents of a PFX file. - * @member {string} [pfx.value] Value of secure string. + * @member {string} [pfx.type] Polymorphic Discriminator * @member {object} password Password for the PFX file. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator */ export interface WebClientCertificateAuthentication extends WebLinkedServiceTypeProperties { - pfx: SecureString; - password: SecureString; + pfx: SecretBase; + password: SecretBase; } /** @@ -2442,11 +2725,11 @@ export interface WebClientCertificateAuthentication extends WebLinkedServiceType * @member {object} username User name for Basic authentication. Type: string * (or Expression with resultType string). * @member {object} password The password for Basic authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator */ export interface WebBasicAuthentication extends WebLinkedServiceTypeProperties { username: any; - password: SecureString; + password: SecretBase; } /** @@ -2490,7 +2773,7 @@ export interface WebLinkedService extends LinkedService { * @member {object} [userName] User name of the OData service. Type: string (or * Expression with resultType string). * @member {object} [password] Password of the OData service. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2499,7 +2782,7 @@ export interface ODataLinkedService extends LinkedService { url: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2521,14 +2804,14 @@ export interface ODataLinkedService extends LinkedService { * @member {object} [userName] User name for Windows authentication. Type: * string (or Expression with resultType string). * @member {object} [password] Password for Windows authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator */ export interface HdfsLinkedService extends LinkedService { url: any; authenticationType?: any; encryptedCredential?: any; userName?: any; - password?: SecureString; + password?: SecretBase; } /** @@ -2539,27 +2822,27 @@ export interface HdfsLinkedService extends LinkedService { * * @member {object} connectionString The non-access credential portion of the * connection string as well as an optional encrypted credential. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @member {object} [authenticationType] Type of authentication used to connect * to the ODBC data store. Possible values are: Anonymous and Basic. Type: * string (or Expression with resultType string). * @member {object} [credential] The access credential portion of the * connection string specified in driver-specific property-value format. - * @member {string} [credential.value] Value of secure string. + * @member {string} [credential.type] Polymorphic Discriminator * @member {object} [userName] User name for Basic authentication. Type: string * (or Expression with resultType string). * @member {object} [password] Password for Basic authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). */ export interface OdbcLinkedService extends LinkedService { - connectionString: SecureString; + connectionString: SecretBase; authenticationType?: any; - credential?: SecureString; + credential?: SecretBase; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2573,7 +2856,7 @@ export interface OdbcLinkedService extends LinkedService { * Service endpoint. Type: string (or Expression with resultType string). * @member {object} apiKey The API key for accessing the Azure ML model * endpoint. - * @member {string} [apiKey.value] Value of secure string. + * @member {string} [apiKey.type] Polymorphic Discriminator * @member {object} [updateResourceEndpoint] The Update Resource REST URL for * an Azure ML Web Service endpoint. Type: string (or Expression with * resultType string). @@ -2583,7 +2866,7 @@ export interface OdbcLinkedService extends LinkedService { * @member {object} [servicePrincipalKey] The key of the service principal used * to authenticate against the ARM-based updateResourceEndpoint of an Azure ML * web service. - * @member {string} [servicePrincipalKey.value] Value of secure string. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator * @member {object} [tenant] The name or ID of the tenant to which the service * principal belongs. Type: string (or Expression with resultType string). * @member {object} [encryptedCredential] The encrypted credential used for @@ -2592,10 +2875,10 @@ export interface OdbcLinkedService extends LinkedService { */ export interface AzureMLLinkedService extends LinkedService { mlEndpoint: any; - apiKey: SecureString; + apiKey: SecretBase; updateResourceEndpoint?: any; servicePrincipalId?: any; - servicePrincipalKey?: SecureString; + servicePrincipalKey?: SecretBase; tenant?: any; encryptedCredential?: any; } @@ -2608,24 +2891,21 @@ export interface AzureMLLinkedService extends LinkedService { * * @member {object} server Server name for connection. Type: string (or * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). * @member {string} [authenticationType] AuthenticationType to be used for * connection. Possible values include: 'Basic', 'Windows' * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). */ export interface TeradataLinkedService extends LinkedService { server: any; - schema?: any; authenticationType?: string; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2639,14 +2919,12 @@ export interface TeradataLinkedService extends LinkedService { * Expression with resultType string). * @member {object} database Database name for connection. Type: string (or * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). * @member {string} [authenticationType] AuthenticationType to be used for * connection. Possible values include: 'Basic' * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2654,10 +2932,9 @@ export interface TeradataLinkedService extends LinkedService { export interface Db2LinkedService extends LinkedService { server: any; database: any; - schema?: any; authenticationType?: string; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2678,7 +2955,7 @@ export interface Db2LinkedService extends LinkedService { * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2689,7 +2966,7 @@ export interface SybaseLinkedService extends LinkedService { schema?: any; authenticationType?: string; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2699,26 +2976,14 @@ export interface SybaseLinkedService extends LinkedService { * @constructor * Linked service for PostgreSQL data source. * - * @member {object} server Server name for connection. Type: string (or - * Expression with resultType string). - * @member {object} database Database name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [username] Username for authentication. Type: string (or - * Expression with resultType string). - * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). */ export interface PostgreSqlLinkedService extends LinkedService { - server: any; - database: any; - schema?: any; - username?: any; - password?: SecureString; + connectionString: SecretBase; encryptedCredential?: any; } @@ -2728,26 +2993,14 @@ export interface PostgreSqlLinkedService extends LinkedService { * @constructor * Linked service for MySQL data source. * - * @member {object} server Server name for connection. Type: string (or - * Expression with resultType string). - * @member {object} database Database name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [username] Username for authentication. Type: string (or - * Expression with resultType string). - * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). */ export interface MySqlLinkedService extends LinkedService { - server: any; - database: any; - schema?: any; - username?: any; - password?: SecureString; + connectionString: SecretBase; encryptedCredential?: any; } @@ -2758,13 +3011,13 @@ export interface MySqlLinkedService extends LinkedService { * Azure MySQL database linked service. * * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). */ export interface AzureMySqlLinkedService extends LinkedService { - connectionString: SecureString; + connectionString: SecretBase; encryptedCredential?: any; } @@ -2775,13 +3028,13 @@ export interface AzureMySqlLinkedService extends LinkedService { * Oracle database. * * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). */ export interface OracleLinkedService extends LinkedService { - connectionString: SecureString; + connectionString: SecretBase; encryptedCredential?: any; } @@ -2796,7 +3049,7 @@ export interface OracleLinkedService extends LinkedService { * @member {object} [userId] User ID to logon the server. Type: string (or * Expression with resultType string). * @member {object} [password] Password to logon the server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -2804,7 +3057,7 @@ export interface OracleLinkedService extends LinkedService { export interface FileServerLinkedService extends LinkedService { host: any; userId?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2819,15 +3072,18 @@ export interface FileServerLinkedService extends LinkedService { * @member {object} [userName] HDInsight cluster user name. Type: string (or * Expression with resultType string). * @member {object} [password] HDInsight cluster password. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [linkedServiceName] The Azure Storage linked service * reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. * @member {object} [hcatalogLinkedServiceName] A reference to the Azure SQL * linked service that points to the HCatalog database. * @member {string} [hcatalogLinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. * @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). @@ -2835,7 +3091,7 @@ export interface FileServerLinkedService extends LinkedService { export interface HDInsightLinkedService extends LinkedService { clusterUri: any; userName?: any; - password?: SecureString; + password?: SecretBase; linkedServiceName?: LinkedServiceReference; hcatalogLinkedServiceName?: LinkedServiceReference; encryptedCredential?: any; @@ -2856,6 +3112,9 @@ export interface HDInsightLinkedService extends LinkedService { * @member {object} [port] The port of on-premises Dynamics server. The * property is required for on-prem and not allowed for online. Default is 443. * Type: integer (or Expression with resultType integer), minimum: 0. + * @member {object} [serviceUri] The URL to the Microsoft Dynamics server. The + * property is required for on-line and not allowed for on-prem. Type: string + * (or Expression with resultType string). * @member {object} [organizationName] The organization name of the Dynamics * instance. The property is required for on-prem and required for online when * there are more than one Dynamics instances associated with the user. Type: @@ -2875,6 +3134,7 @@ export interface DynamicsLinkedService extends LinkedService { deploymentType: any; hostName?: any; port?: any; + serviceUri?: any; organizationName?: any; authenticationType: any; username: any; @@ -2889,13 +3149,13 @@ export interface DynamicsLinkedService extends LinkedService { * Microsoft Azure Cosmos Database (CosmosDB) linked service. * * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). */ export interface CosmosDbLinkedService extends LinkedService { - connectionString: SecureString; + connectionString: SecretBase; encryptedCredential?: any; } @@ -2922,7 +3182,7 @@ export interface AzureKeyVaultLinkedService extends LinkedService { * @member {object} accountName The Azure Batch account name. Type: string (or * Expression with resultType string). * @member {object} [accessKey] The Azure Batch account access key. - * @member {string} [accessKey.value] Value of secure string. + * @member {string} [accessKey.type] Polymorphic Discriminator * @member {object} batchUri The Azure Batch URI. Type: string (or Expression * with resultType string). * @member {object} poolName The Azure Batch pool name. Type: string (or @@ -2931,13 +3191,14 @@ export interface AzureKeyVaultLinkedService extends LinkedService { * reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. * @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). */ export interface AzureBatchLinkedService extends LinkedService { accountName: any; - accessKey?: SecureString; + accessKey?: SecretBase; batchUri: any; poolName: any; linkedServiceName: LinkedServiceReference; @@ -2951,13 +3212,24 @@ export interface AzureBatchLinkedService extends LinkedService { * Microsoft Azure SQL Database linked service. * * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Database. Type: string (or Expression with + * resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal used + * to authenticate against Azure SQL Database. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). * @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). */ export interface AzureSqlDatabaseLinkedService extends LinkedService { - connectionString: SecureString; + connectionString: SecretBase; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant?: any; encryptedCredential?: any; } @@ -2968,19 +3240,19 @@ export interface AzureSqlDatabaseLinkedService extends LinkedService { * SQL Server linked service. * * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @member {object} [userName] The on-premises Windows authentication user * name. Type: string (or Expression with resultType string). * @member {object} [password] The on-premises Windows authentication password. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). */ export interface SqlServerLinkedService extends LinkedService { - connectionString: SecureString; + connectionString: SecretBase; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2991,13 +3263,24 @@ export interface SqlServerLinkedService extends LinkedService { * Azure SQL Data Warehouse linked service. * * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal used + * to authenticate against Azure SQL Data Warehouse. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). * @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). */ export interface AzureSqlDWLinkedService extends LinkedService { - connectionString: SecureString; + connectionString: SecretBase; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant?: any; encryptedCredential?: any; } @@ -3009,20 +3292,50 @@ export interface AzureSqlDWLinkedService extends LinkedService { * * @member {object} [connectionString] The connection string. It is mutually * exclusive with sasUri property. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @member {object} [sasUri] SAS URI of the Azure Storage resource. It is * mutually exclusive with connectionString property. - * @member {string} [sasUri.value] Value of secure string. + * @member {string} [sasUri.type] Polymorphic Discriminator * @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). */ export interface AzureStorageLinkedService extends LinkedService { - connectionString?: SecureString; - sasUri?: SecureString; + connectionString?: SecretBase; + sasUri?: SecretBase; encryptedCredential?: any; } +/** + * @class + * Initializes a new instance of the SalesforceMarketingCloudObjectDataset class. + * @constructor + * Salesforce Marketing Cloud dataset. + * + */ +export interface SalesforceMarketingCloudObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the VerticaTableDataset class. + * @constructor + * Vertica dataset. + * + */ +export interface VerticaTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the NetezzaTableDataset class. + * @constructor + * Netezza dataset. + * + */ +export interface NetezzaTableDataset extends Dataset { +} + /** * @class * Initializes a new instance of the ZohoObjectDataset class. @@ -3293,6 +3606,11 @@ export interface AmazonMWSObjectDataset extends Dataset { */ export interface DatasetCompression { type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -3360,6 +3678,11 @@ export interface DatasetStorageFormat { serializer?: any; deserializer?: any; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -3552,6 +3875,19 @@ export interface SqlServerTableDataset extends Dataset { tableName: any; } +/** + * @class + * Initializes a new instance of the SapEccResourceDataset class. + * @constructor + * The path of the SAP ECC OData entity. + * + * @member {string} path The path of the SAP ECC OData entity. Type: string (or + * Expression with resultType string). + */ +export interface SapEccResourceDataset extends Dataset { + path: string; +} + /** * @class * Initializes a new instance of the SapCloudForCustomerResourceDataset class. @@ -3888,13 +4224,13 @@ export interface RetryPolicy { * Reference pipeline name. * @member {string} [pipelineProperty.pipelineReference.name] Reference name. * @member {object} [pipelineProperty.parameters] Pipeline parameters. - * @member {string} [frequency] The frequency of the time windows. Possible + * @member {string} frequency The frequency of the time windows. Possible * values include: 'Minute', 'Hour' - * @member {number} [interval] The interval of the time windows. The minimum + * @member {number} interval The interval of the time windows. The minimum * interval allowed is 15 Minutes. - * @member {date} [startTime] The start time for the time period for the - * trigger during which events are fired for windows that are ready. Only UTC - * time is currently supported. + * @member {date} startTime The start time for the time period for the trigger + * during which events are fired for windows that are ready. Only UTC time is + * currently supported. * @member {date} [endTime] The end time for the time period for the trigger * during which events are fired for windows that are ready. Only UTC time is * currently supported. @@ -3902,7 +4238,7 @@ export interface RetryPolicy { * before triggering new run. It doesn't alter window start and end time. The * default is 0. Type: string (or Expression with resultType string), pattern: * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * @member {number} [maxConcurrency] The max number of parallel time windows + * @member {number} maxConcurrency The max number of parallel time windows * (ready for execution) for which a new run is triggered. * @member {object} [retryPolicy] Retry policy that will be applied for failed * pipeline runs. @@ -3914,12 +4250,12 @@ export interface RetryPolicy { */ export interface TumblingWindowTrigger extends Trigger { pipelineProperty: TriggerPipelineReference; - frequency?: string; - interval?: number; - startTime?: Date; + frequency: string; + interval: number; + startTime: Date; endTime?: Date; delay?: any; - maxConcurrency?: number; + maxConcurrency: number; retryPolicy?: RetryPolicy; } @@ -3942,17 +4278,18 @@ export interface MultiplePipelineTrigger extends Trigger { * @constructor * Trigger that runs everytime the selected Blob container changes. * - * @member {string} [folderPath] The path of the container/folder that will + * @member {string} folderPath The path of the container/folder that will * trigger the pipeline. - * @member {number} [maxConcurrency] The max number of parallel files to handle + * @member {number} maxConcurrency The max number of parallel files to handle * when it is triggered. - * @member {object} [linkedService] The Azure Storage linked service reference. + * @member {object} linkedService The Azure Storage linked service reference. * @member {string} [linkedService.referenceName] Reference LinkedService name. + * @member {object} [linkedService.parameters] Arguments for LinkedService. */ export interface BlobTrigger extends MultiplePipelineTrigger { - folderPath?: string; - maxConcurrency?: number; - linkedService?: LinkedServiceReference; + folderPath: string; + maxConcurrency: number; + linkedService: LinkedServiceReference; } /** @@ -3968,6 +4305,11 @@ export interface BlobTrigger extends MultiplePipelineTrigger { export interface RecurrenceScheduleOccurrence { day?: string; occurrence?: number; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -3988,6 +4330,11 @@ export interface RecurrenceSchedule { weekDays?: string[]; monthDays?: number[]; monthlyOccurrences?: RecurrenceScheduleOccurrence[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -4016,6 +4363,11 @@ export interface ScheduleTriggerRecurrence { endTime?: Date; timeZone?: string; schedule?: RecurrenceSchedule; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -4024,7 +4376,7 @@ export interface ScheduleTriggerRecurrence { * @constructor * Trigger that creates pipeline runs periodically, on schedule. * - * @member {object} [recurrence] Recurrence schedule configuration. + * @member {object} recurrence Recurrence schedule configuration. * @member {string} [recurrence.frequency] The frequency. Possible values * include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' * @member {number} [recurrence.interval] The interval. @@ -4040,7 +4392,7 @@ export interface ScheduleTriggerRecurrence { * occurrences. */ export interface ScheduleTrigger extends MultiplePipelineTrigger { - recurrence?: ScheduleTriggerRecurrence; + recurrence: ScheduleTriggerRecurrence; } /** @@ -4056,11 +4408,19 @@ export interface ScheduleTrigger extends MultiplePipelineTrigger { * 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. */ export interface ActivityPolicy { timeout?: any; retry?: any; retryIntervalInSeconds?: number; + secureOutput?: boolean; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -4072,6 +4432,7 @@ export interface ActivityPolicy { * @member {object} [linkedServiceName] Linked service reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. * @member {object} [policy] Activity policy. * @member {object} [policy.timeout] Specifies the timeout for the activity to * run. The default timeout is 7 days. Type: string (or Expression with @@ -4081,12 +4442,32 @@ export interface ActivityPolicy { * 0. Type: integer (or Expression with resultType integer), minimum: 0. * @member {number} [policy.retryIntervalInSeconds] Interval between each retry * attempt (in seconds). The default is 30 sec. + * @member {boolean} [policy.secureOutput] When set to true, Output from + * activity is considered as secure and will not be logged to monitoring. */ export interface ExecutionActivity extends Activity { linkedServiceName?: LinkedServiceReference; policy?: ActivityPolicy; } +/** + * @class + * Initializes a new instance of the DatabricksNotebookActivity class. + * @constructor + * DatabricksNotebook activity. + * + * @member {object} notebookPath The absolute path of the notebook to be run in + * the Databricks Workspace. This path must begin with a slash. Type: string + * (or Expression with resultType string). + * @member {object} [baseParameters] Base parameters to be used for each run of + * this job.If the notebook takes a parameter that is not specified, the + * default value from the notebook will be used. + */ +export interface DatabricksNotebookActivity extends ExecutionActivity { + notebookPath: any; + baseParameters?: { [propertyName: string]: any }; +} + /** * @class * Initializes a new instance of the DataLakeAnalyticsUSQLActivity class. @@ -4098,6 +4479,8 @@ export interface ExecutionActivity extends Activity { * @member {object} scriptLinkedService Script linked service reference. * @member {string} [scriptLinkedService.referenceName] Reference LinkedService * name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [degreeOfParallelism] The maximum number of nodes * simultaneously used to run the job. Default value is 1. Type: integer (or * Expression with resultType integer), minimum: 1. @@ -4136,6 +4519,8 @@ export interface DataLakeAnalyticsUSQLActivity extends ExecutionActivity { * operation. * @member {string} [trainedModelLinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [trainedModelLinkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} trainedModelFilePath The relative file path in * trainedModelLinkedService to represent the .ilearner file that will be * uploaded by the update operation. Type: string (or Expression with @@ -4160,6 +4545,7 @@ export interface AzureMLUpdateResourceActivity extends ExecutionActivity { * LinkedService, where Azure ML WebService Input/Output file located. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. */ export interface AzureMLWebServiceFile { filePath: any; @@ -4214,7 +4600,8 @@ export interface GetMetadataActivity extends ExecutionActivity { * @constructor * Web activity authentication properties. * - * @member {string} type Web activity authentication (Basic/ClientCertificate) + * @member {string} type Web activity authentication + * (Basic/ClientCertificate/MSI) * @member {object} [pfx] Base64-encoded contents of a PFX file. * @member {string} [pfx.value] Value of secure string. * @member {string} [username] Web activity authentication user name for basic @@ -4222,12 +4609,15 @@ export interface GetMetadataActivity extends ExecutionActivity { * @member {object} [password] Password for the PFX file or basic * authentication. * @member {string} [password.value] Value of secure string. + * @member {string} [resource] Resource for which Azure Auth token will be + * requested when using MSI Authentication. */ export interface WebActivityAuthentication { type: string; pfx?: SecureString; username?: string; password?: SecureString; + resource?: string; } /** @@ -4237,7 +4627,7 @@ export interface WebActivityAuthentication { * Web activity. * * @member {string} method Rest API method for target endpoint. Possible values - * include: 'GET', 'POST', 'PUT' + * include: 'GET', 'POST', 'PUT', 'DELETE' * @member {object} url Web activity target endpoint and path. Type: string (or * Expression with resultType string). * @member {object} [headers] Represents the headers that will be sent to the @@ -4250,7 +4640,7 @@ export interface WebActivityAuthentication { * @member {object} [authentication] Authentication method used for calling the * endpoint. * @member {string} [authentication.type] Web activity authentication - * (Basic/ClientCertificate) + * (Basic/ClientCertificate/MSI) * @member {object} [authentication.pfx] Base64-encoded contents of a PFX file. * @member {string} [authentication.pfx.value] Value of secure string. * @member {string} [authentication.username] Web activity authentication user @@ -4258,6 +4648,8 @@ export interface WebActivityAuthentication { * @member {object} [authentication.password] Password for the PFX file or * basic authentication. * @member {string} [authentication.password.value] Value of secure string. + * @member {string} [authentication.resource] Resource for which Azure Auth + * token will be requested when using MSI Authentication. * @member {array} [datasets] List of datasets passed to web endpoint. * @member {array} [linkedServices] List of linked services passed to web * endpoint. @@ -4286,6 +4678,8 @@ export interface WebActivity extends ExecutionActivity { * Amazon Redshift source. * @member {string} [s3LinkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [s3LinkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} bucketName The bucket of the interim Amazon S3 which will * be used to store the unloaded data from Amazon Redshift source. The bucket * must be in the same region as the Amazon Redshift source. Type: string (or @@ -4313,6 +4707,11 @@ export interface CopySource { sourceRetryCount?: any; sourceRetryWait?: any; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -4332,6 +4731,8 @@ export interface CopySource { * when copying from the Amazon Redshift source. * @member {string} [redshiftUnloadSettings.s3LinkedServiceName.referenceName] * Reference LinkedService name. + * @member {object} [redshiftUnloadSettings.s3LinkedServiceName.parameters] + * Arguments for LinkedService. * @member {object} [redshiftUnloadSettings.bucketName] The bucket of the * interim Amazon S3 which will be used to store the unloaded data from Amazon * Redshift source. The bucket must be in the same region as the Amazon @@ -4342,6 +4743,45 @@ export interface AmazonRedshiftSource extends CopySource { redshiftUnloadSettings?: RedshiftUnloadSettings; } +/** + * @class + * Initializes a new instance of the SalesforceMarketingCloudSource class. + * @constructor + * A copy activity Salesforce Marketing Cloud source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface SalesforceMarketingCloudSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the VerticaSource class. + * @constructor + * A copy activity Vertica source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface VerticaSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the NetezzaSource class. + * @constructor + * A copy activity Netezza source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface NetezzaSource extends CopySource { + query?: any; +} + /** * @class * Initializes a new instance of the ZohoSource class. @@ -4904,6 +5344,19 @@ export interface SqlSource extends CopySource { storedProcedureParameters?: { [propertyName: string]: StoredProcedureParameter }; } +/** + * @class + * Initializes a new instance of the SapEccSource class. + * @constructor + * A copy activity source for SAP ECC source. + * + * @member {string} [query] SAP ECC OData query. For example, "$top=1". Type: + * string (or Expression with resultType string). + */ +export interface SapEccSource extends CopySource { + query?: string; +} + /** * @class * Initializes a new instance of the SapCloudForCustomerSource class. @@ -4925,9 +5378,12 @@ export interface SapCloudForCustomerSource extends CopySource { * * @member {object} [query] Database query. Type: string (or Expression with * resultType string). + * @member {string} [readBehavior] The read behavior for the operation. Default + * is Query. Possible values include: 'Query', 'QueryAll' */ export interface SalesforceSource extends CopySource { query?: any; + readBehavior?: string; } /** @@ -5079,6 +5535,8 @@ export interface CustomActivityReferenceObject { * @member {object} [resourceLinkedService] Resource linked service reference. * @member {string} [resourceLinkedService.referenceName] Reference * LinkedService name. + * @member {object} [resourceLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [folderPath] Folder path for resource files Type: string * (or Expression with resultType string). * @member {object} [referenceObjects] Reference objects @@ -5097,6 +5555,44 @@ export interface CustomActivity extends ExecutionActivity { extendedProperties?: { [propertyName: string]: any }; } +/** + * @class + * Initializes a new instance of the SSISPackageLocation class. + * @constructor + * SSIS package location. + * + * @member {string} packagePath The SSIS package path. + */ +export interface SSISPackageLocation { + packagePath: string; +} + +/** + * @class + * Initializes a new instance of the ExecuteSSISPackageActivity class. + * @constructor + * Execute SSIS package activity. + * + * @member {object} packageLocation SSIS package location. + * @member {string} [packageLocation.packagePath] The SSIS package path. + * @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 {object} connectVia The integration runtime reference. + * @member {string} [connectVia.referenceName] Reference integration runtime + * name. + * @member {object} [connectVia.parameters] Arguments for integration runtime. + */ +export interface ExecuteSSISPackageActivity extends ExecutionActivity { + packageLocation: SSISPackageLocation; + runtime?: string; + loggingLevel?: string; + environmentPath?: string; + connectVia: IntegrationRuntimeReference; +} + /** * @class * Initializes a new instance of the HDInsightSparkActivity class. @@ -5116,6 +5612,8 @@ export interface CustomActivity extends ExecutionActivity { * uploading the entry file and dependencies, and for receiving logs. * @member {string} [sparkJobLinkedService.referenceName] Reference * LinkedService name. + * @member {object} [sparkJobLinkedService.parameters] Arguments for + * LinkedService. * @member {string} [className] The application's Java/Spark main class. * @member {object} [proxyUser] The user to impersonate that will execute the * job. Type: string (or Expression with resultType string). @@ -5155,6 +5653,7 @@ export interface HDInsightSparkActivity extends ExecutionActivity { * files are located. * @member {string} [fileLinkedService.referenceName] Reference LinkedService * name. + * @member {object} [fileLinkedService.parameters] Arguments for LinkedService. * @member {object} [combiner] Combiner executable name. Type: string (or * Expression with resultType string). * @member {array} [commandEnvironment] Command line environment values. @@ -5193,6 +5692,7 @@ export interface HDInsightStreamingActivity extends ExecutionActivity { * @member {object} [jarLinkedService] Jar linked service reference. * @member {string} [jarLinkedService.referenceName] Reference LinkedService * name. + * @member {object} [jarLinkedService.parameters] Arguments for LinkedService. * @member {array} [jarLibs] Jar libs. * @member {object} [defines] Allows user to specify defines for the MapReduce * job request. @@ -5223,6 +5723,8 @@ export interface HDInsightMapReduceActivity extends ExecutionActivity { * @member {object} [scriptLinkedService] Script linked service reference. * @member {string} [scriptLinkedService.referenceName] Reference LinkedService * name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [defines] Allows user to specify defines for Pig job * request. */ @@ -5250,6 +5752,8 @@ export interface HDInsightPigActivity extends ExecutionActivity { * @member {object} [scriptLinkedService] Script linked service reference. * @member {string} [scriptLinkedService.referenceName] Reference LinkedService * name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. * @member {object} [defines] Allows user to specify defines for Hive job * request. */ @@ -5278,6 +5782,11 @@ export interface HDInsightHiveActivity extends ExecutionActivity { export interface RedirectIncompatibleRowSettings { linkedServiceName: any; path?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5289,6 +5798,7 @@ export interface RedirectIncompatibleRowSettings { * @member {object} linkedServiceName Staging linked service reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. * @member {object} [path] The path to storage for storing the interim data. * Type: string (or Expression with resultType string). * @member {object} [enableCompression] Specifies whether to use compression @@ -5299,6 +5809,11 @@ export interface StagingSettings { linkedServiceName: LinkedServiceReference; path?: any; enableCompression?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5311,6 +5826,11 @@ export interface StagingSettings { */ export interface CopyTranslator { type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5350,6 +5870,11 @@ export interface CopySink { sinkRetryCount?: any; sinkRetryWait?: any; type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5470,6 +5995,11 @@ export interface PolybaseSettings { rejectValue?: any; rejectSampleValue?: any; useTypeDefault?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5658,6 +6188,8 @@ export interface SapCloudForCustomerSink extends CopySink { * reference. * @member {string} [stagingSettings.linkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [stagingSettings.linkedServiceName.parameters] Arguments + * for LinkedService. * @member {object} [stagingSettings.path] The path to storage for storing the * interim data. Type: string (or Expression with resultType string). * @member {object} [stagingSettings.enableCompression] Specifies whether to @@ -5709,6 +6241,22 @@ export interface CopyActivity extends ExecutionActivity { export interface ControlActivity extends Activity { } +/** + * @class + * Initializes a new instance of the FilterActivity class. + * @constructor + * Filter and return results from input array based on the conditions. + * + * @member {object} items Input array on which filter should be applied. + * @member {string} [items.value] Expression value. + * @member {object} condition Condition to be used for filtering the input. + * @member {string} [condition.value] Expression value. + */ +export interface FilterActivity extends ControlActivity { + items: Expression; + condition: Expression; +} + /** * @class * Initializes a new instance of the UntilActivity class. @@ -5753,13 +6301,16 @@ export interface WaitActivity extends ControlActivity { * activities. * * @member {boolean} [isSequential] Should the loop be executed in sequence or - * in parallel (max 20) + * in parallel (max 50) + * @member {number} [batchCount] Batch count to be used for controlling the + * number of parallel execution (when isSequential is set to false). * @member {object} items Collection to iterate. * @member {string} [items.value] Expression value. * @member {array} activities List of activities to execute . */ export interface ForEachActivity extends ControlActivity { isSequential?: boolean; + batchCount?: number; items: Expression; activities: Activity[]; } @@ -5808,6 +6359,30 @@ export interface ExecutePipelineActivity extends ControlActivity { waitOnCompletion?: boolean; } +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntime class. + * @constructor + * The linked integration runtime information. + * + * @member {string} [name] The name of the linked integration runtime. + * @member {string} [subscriptionId] The subscription ID for which the linked + * integration runtime belong to. + * @member {string} [dataFactoryName] The name of the data factory for which + * the linked integration runtime belong to. + * @member {string} [dataFactoryLocation] The location of the data factory for + * which the linked integration runtime belong to. + * @member {date} [createTime] The creating time of the linked integration + * runtime. + */ +export interface LinkedIntegrationRuntime { + readonly name?: string; + readonly subscriptionId?: string; + readonly dataFactoryName?: string; + readonly dataFactoryLocation?: string; + readonly createTime?: Date; +} + /** * @class * Initializes a new instance of the SelfHostedIntegrationRuntimeNode class. @@ -5866,6 +6441,11 @@ export interface SelfHostedIntegrationRuntimeNode { readonly isActiveDispatcher?: boolean; readonly concurrentJobsLimit?: number; readonly maxConcurrentJobs?: number; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5894,6 +6474,9 @@ export interface SelfHostedIntegrationRuntimeNode { * runtime backend service. * @member {string} [autoUpdate] Whether Self-hosted integration runtime auto * update has been turned on. Possible values include: 'On', 'Off' + * @member {string} [versionStatus] Status of the integration runtime version. + * @member {array} [links] The list of linked integration runtimes that are + * created to share with this integration runtime. */ export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { readonly createTime?: Date; @@ -5907,6 +6490,8 @@ export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeSt readonly capabilities?: { [propertyName: string]: string }; readonly serviceUrls?: string[]; readonly autoUpdate?: string; + readonly versionStatus?: string; + links?: LinkedIntegrationRuntime[]; } /** @@ -5920,6 +6505,7 @@ export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeSt * @member {string} [result] The operation result. * @member {string} [errorCode] The error code. * @member {array} [parameters] Managed integration runtime error parameters. + * @member {string} [activityId] The activity id for the operation request. */ export interface ManagedIntegrationRuntimeOperationResult { readonly type?: string; @@ -5927,6 +6513,12 @@ export interface ManagedIntegrationRuntimeOperationResult { readonly result?: string; readonly errorCode?: string; readonly parameters?: string[]; + readonly activityId?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5945,6 +6537,11 @@ export interface ManagedIntegrationRuntimeError { readonly code?: string; readonly parameters?: string[]; readonly message?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5963,6 +6560,11 @@ export interface ManagedIntegrationRuntimeNode { readonly nodeId?: string; readonly status?: string; errors?: ManagedIntegrationRuntimeError[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -5985,6 +6587,8 @@ export interface ManagedIntegrationRuntimeNode { * @member {string} [lastOperation.errorCode] The error code. * @member {array} [lastOperation.parameters] Managed integration runtime error * parameters. + * @member {string} [lastOperation.activityId] The activity id for the + * operation request. */ export interface ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { readonly createTime?: Date; @@ -5993,14 +6597,71 @@ export interface ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatu readonly lastOperation?: ManagedIntegrationRuntimeOperationResult; } +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntimeProperties class. + * @constructor + * The base definition of a secret type. + * + * @member {string} authorizationType Polymorphic Discriminator + */ +export interface LinkedIntegrationRuntimeProperties { + authorizationType: string; +} + +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntimeRbac class. + * @constructor + * The base definition of a secret type. + * + * @member {string} resourceId The resource ID of the integration runtime to be + * shared. + */ +export interface LinkedIntegrationRuntimeRbac extends LinkedIntegrationRuntimeProperties { + resourceId: string; +} + +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntimeKey class. + * @constructor + * The base definition of a secret type. + * + * @member {object} key Type of the secret. + * @member {string} [key.value] Value of secure string. + */ +export interface LinkedIntegrationRuntimeKey extends LinkedIntegrationRuntimeProperties { + key: SecureString; +} + /** * @class * Initializes a new instance of the SelfHostedIntegrationRuntime class. * @constructor * Self-hosted integration runtime. * + * @member {object} [linkedInfo] + * @member {string} [linkedInfo.authorizationType] Polymorphic Discriminator */ export interface SelfHostedIntegrationRuntime extends IntegrationRuntime { + linkedInfo?: LinkedIntegrationRuntimeProperties; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeCustomSetupScriptProperties class. + * @constructor + * Custom setup script properties for a managed dedicated integration runtime. + * + * @member {string} [blobContainerUri] The URI of the Azure blob container that + * contains the custom setup script. + * @member {object} [sasToken] The SAS token of the Azure blob container. + * @member {string} [sasToken.value] Value of secure string. + */ +export interface IntegrationRuntimeCustomSetupScriptProperties { + blobContainerUri?: string; + sasToken?: SecureString; } /** @@ -6025,6 +6686,11 @@ export interface IntegrationRuntimeSsisCatalogInfo { catalogAdminUserName?: string; catalogAdminPassword?: SecureString; catalogPricingTier?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -6047,9 +6713,29 @@ export interface IntegrationRuntimeSsisCatalogInfo { * catalog database. The valid values could be found in * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [licenseType] License type for bringing your own license + * scenario. Possible values include: 'BasePrice', 'LicenseIncluded' + * @member {object} [customSetupScriptProperties] Custom setup script + * properties for a managed dedicated integration runtime. + * @member {string} [customSetupScriptProperties.blobContainerUri] The URI of + * the Azure blob container that contains the custom setup script. + * @member {object} [customSetupScriptProperties.sasToken] The SAS token of the + * Azure blob container. + * @member {string} [customSetupScriptProperties.sasToken.value] Value of + * secure string. + * @member {string} [edition] The edition for the SSIS Integration Runtime. + * Possible values include: 'Standard', 'Enterprise' */ export interface IntegrationRuntimeSsisProperties { catalogInfo?: IntegrationRuntimeSsisCatalogInfo; + licenseType?: string; + customSetupScriptProperties?: IntegrationRuntimeCustomSetupScriptProperties; + edition?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -6066,6 +6752,11 @@ export interface IntegrationRuntimeSsisProperties { export interface IntegrationRuntimeVNetProperties { vNetId?: string; subnet?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -6096,6 +6787,11 @@ export interface IntegrationRuntimeComputeProperties { numberOfNodes?: number; maxParallelExecutionsPerNode?: number; vNetProperties?: IntegrationRuntimeVNetProperties; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -6142,6 +6838,20 @@ export interface IntegrationRuntimeComputeProperties { * tier for the catalog database. The valid values could be found in * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [ssisProperties.licenseType] License type for bringing your + * own license scenario. Possible values include: 'BasePrice', + * 'LicenseIncluded' + * @member {object} [ssisProperties.customSetupScriptProperties] Custom setup + * script properties for a managed dedicated integration runtime. + * @member {string} + * [ssisProperties.customSetupScriptProperties.blobContainerUri] The URI of the + * Azure blob container that contains the custom setup script. + * @member {object} [ssisProperties.customSetupScriptProperties.sasToken] The + * SAS token of the Azure blob container. + * @member {string} [ssisProperties.customSetupScriptProperties.sasToken.value] + * Value of secure string. + * @member {string} [ssisProperties.edition] The edition for the SSIS + * Integration Runtime. Possible values include: 'Standard', 'Enterprise' */ export interface ManagedIntegrationRuntime extends IntegrationRuntime { readonly state?: string; @@ -6149,6 +6859,19 @@ export interface ManagedIntegrationRuntime extends IntegrationRuntime { ssisProperties?: IntegrationRuntimeSsisProperties; } +/** + * @class + * Initializes a new instance of the IntegrationRuntimeNodeIpAddress class. + * @constructor + * The IP address of self-hosted integration runtime node. + * + * @member {string} [ipAddress] The IP address of self-hosted integration + * runtime node. + */ +export interface IntegrationRuntimeNodeIpAddress { + readonly ipAddress?: string; +} + /** * @class * Initializes a new instance of the IntegrationRuntimeNodeMonitoringData class. @@ -6179,6 +6902,11 @@ export interface IntegrationRuntimeNodeMonitoringData { readonly maxConcurrentJobs?: number; readonly sentBytes?: number; readonly receivedBytes?: number; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -6205,6 +6933,11 @@ export interface IntegrationRuntimeMonitoringData { */ export interface IntegrationRuntimeRemoveNodeRequest { nodeName?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } /** @@ -6263,6 +6996,11 @@ export interface IntegrationRuntimeConnectionInfo { readonly version?: string; readonly publicKey?: string; readonly isIdentityCertExprired?: boolean; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; } diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index f67acddfaf..6165944e3c 100644 --- a/lib/services/datafactoryManagement/lib/models/index.js +++ b/lib/services/datafactoryManagement/lib/models/index.js @@ -33,9 +33,11 @@ exports.IntegrationRuntimeReference = require('./integrationRuntimeReference'); exports.IntegrationRuntimeStatus = require('./integrationRuntimeStatus'); exports.IntegrationRuntimeStatusResponse = require('./integrationRuntimeStatusResponse'); exports.IntegrationRuntimeStatusListResponse = require('./integrationRuntimeStatusListResponse'); +exports.UpdateIntegrationRuntimeRequest = require('./updateIntegrationRuntimeRequest'); +exports.UpdateIntegrationRuntimeNodeRequest = require('./updateIntegrationRuntimeNodeRequest'); +exports.ParameterSpecification = require('./parameterSpecification'); exports.LinkedService = require('./linkedService'); exports.LinkedServiceResource = require('./linkedServiceResource'); -exports.ParameterSpecification = require('./parameterSpecification'); exports.Dataset = require('./dataset'); exports.DatasetResource = require('./datasetResource'); exports.ActivityDependency = require('./activityDependency'); @@ -64,8 +66,12 @@ exports.OperationMetricSpecification = require('./operationMetricSpecification') exports.OperationServiceSpecification = require('./operationServiceSpecification'); exports.Operation = require('./operation'); exports.OperationListResponse = require('./operationListResponse'); +exports.AzureDatabricksLinkedService = require('./azureDatabricksLinkedService'); exports.AzureDataLakeAnalyticsLinkedService = require('./azureDataLakeAnalyticsLinkedService'); exports.HDInsightOnDemandLinkedService = require('./hDInsightOnDemandLinkedService'); +exports.SalesforceMarketingCloudLinkedService = require('./salesforceMarketingCloudLinkedService'); +exports.NetezzaLinkedService = require('./netezzaLinkedService'); +exports.VerticaLinkedService = require('./verticaLinkedService'); exports.ZohoLinkedService = require('./zohoLinkedService'); exports.XeroLinkedService = require('./xeroLinkedService'); exports.SquareLinkedService = require('./squareLinkedService'); @@ -101,6 +107,7 @@ exports.AzureSearchLinkedService = require('./azureSearchLinkedService'); exports.CustomDataSourceLinkedService = require('./customDataSourceLinkedService'); exports.AmazonRedshiftLinkedService = require('./amazonRedshiftLinkedService'); exports.AmazonS3LinkedService = require('./amazonS3LinkedService'); +exports.SapEccLinkedService = require('./sapEccLinkedService'); exports.SapCloudForCustomerLinkedService = require('./sapCloudForCustomerLinkedService'); exports.SalesforceLinkedService = require('./salesforceLinkedService'); exports.AzureDataLakeStoreLinkedService = require('./azureDataLakeStoreLinkedService'); @@ -132,6 +139,9 @@ exports.AzureSqlDatabaseLinkedService = require('./azureSqlDatabaseLinkedService exports.SqlServerLinkedService = require('./sqlServerLinkedService'); exports.AzureSqlDWLinkedService = require('./azureSqlDWLinkedService'); exports.AzureStorageLinkedService = require('./azureStorageLinkedService'); +exports.SalesforceMarketingCloudObjectDataset = require('./salesforceMarketingCloudObjectDataset'); +exports.VerticaTableDataset = require('./verticaTableDataset'); +exports.NetezzaTableDataset = require('./netezzaTableDataset'); exports.ZohoObjectDataset = require('./zohoObjectDataset'); exports.XeroObjectDataset = require('./xeroObjectDataset'); exports.SquareObjectDataset = require('./squareObjectDataset'); @@ -173,6 +183,7 @@ exports.HttpDataset = require('./httpDataset'); exports.AzureSearchIndexDataset = require('./azureSearchIndexDataset'); exports.WebTableDataset = require('./webTableDataset'); exports.SqlServerTableDataset = require('./sqlServerTableDataset'); +exports.SapEccResourceDataset = require('./sapEccResourceDataset'); exports.SapCloudForCustomerResourceDataset = require('./sapCloudForCustomerResourceDataset'); exports.SalesforceObjectDataset = require('./salesforceObjectDataset'); exports.RelationalTableDataset = require('./relationalTableDataset'); @@ -201,6 +212,7 @@ exports.ScheduleTriggerRecurrence = require('./scheduleTriggerRecurrence'); exports.ScheduleTrigger = require('./scheduleTrigger'); exports.ActivityPolicy = require('./activityPolicy'); exports.ExecutionActivity = require('./executionActivity'); +exports.DatabricksNotebookActivity = require('./databricksNotebookActivity'); exports.DataLakeAnalyticsUSQLActivity = require('./dataLakeAnalyticsUSQLActivity'); exports.AzureMLUpdateResourceActivity = require('./azureMLUpdateResourceActivity'); exports.AzureMLWebServiceFile = require('./azureMLWebServiceFile'); @@ -211,6 +223,9 @@ exports.WebActivity = require('./webActivity'); exports.RedshiftUnloadSettings = require('./redshiftUnloadSettings'); exports.CopySource = require('./copySource'); exports.AmazonRedshiftSource = require('./amazonRedshiftSource'); +exports.SalesforceMarketingCloudSource = require('./salesforceMarketingCloudSource'); +exports.VerticaSource = require('./verticaSource'); +exports.NetezzaSource = require('./netezzaSource'); exports.ZohoSource = require('./zohoSource'); exports.XeroSource = require('./xeroSource'); exports.SquareSource = require('./squareSource'); @@ -250,6 +265,7 @@ exports.FileSystemSource = require('./fileSystemSource'); exports.SqlDWSource = require('./sqlDWSource'); exports.StoredProcedureParameter = require('./storedProcedureParameter'); exports.SqlSource = require('./sqlSource'); +exports.SapEccSource = require('./sapEccSource'); exports.SapCloudForCustomerSource = require('./sapCloudForCustomerSource'); exports.SalesforceSource = require('./salesforceSource'); exports.RelationalSource = require('./relationalSource'); @@ -261,6 +277,8 @@ exports.LookupActivity = require('./lookupActivity'); exports.SqlServerStoredProcedureActivity = require('./sqlServerStoredProcedureActivity'); exports.CustomActivityReferenceObject = require('./customActivityReferenceObject'); exports.CustomActivity = require('./customActivity'); +exports.SSISPackageLocation = require('./sSISPackageLocation'); +exports.ExecuteSSISPackageActivity = require('./executeSSISPackageActivity'); exports.HDInsightSparkActivity = require('./hDInsightSparkActivity'); exports.HDInsightStreamingActivity = require('./hDInsightStreamingActivity'); exports.HDInsightMapReduceActivity = require('./hDInsightMapReduceActivity'); @@ -288,23 +306,30 @@ exports.AzureQueueSink = require('./azureQueueSink'); exports.SapCloudForCustomerSink = require('./sapCloudForCustomerSink'); exports.CopyActivity = require('./copyActivity'); exports.ControlActivity = require('./controlActivity'); +exports.FilterActivity = require('./filterActivity'); exports.UntilActivity = require('./untilActivity'); exports.WaitActivity = require('./waitActivity'); exports.ForEachActivity = require('./forEachActivity'); exports.IfConditionActivity = require('./ifConditionActivity'); exports.ExecutePipelineActivity = require('./executePipelineActivity'); +exports.LinkedIntegrationRuntime = require('./linkedIntegrationRuntime'); exports.SelfHostedIntegrationRuntimeNode = require('./selfHostedIntegrationRuntimeNode'); exports.SelfHostedIntegrationRuntimeStatus = require('./selfHostedIntegrationRuntimeStatus'); exports.ManagedIntegrationRuntimeOperationResult = require('./managedIntegrationRuntimeOperationResult'); exports.ManagedIntegrationRuntimeError = require('./managedIntegrationRuntimeError'); exports.ManagedIntegrationRuntimeNode = require('./managedIntegrationRuntimeNode'); exports.ManagedIntegrationRuntimeStatus = require('./managedIntegrationRuntimeStatus'); +exports.LinkedIntegrationRuntimeProperties = require('./linkedIntegrationRuntimeProperties'); +exports.LinkedIntegrationRuntimeRbac = require('./linkedIntegrationRuntimeRbac'); +exports.LinkedIntegrationRuntimeKey = require('./linkedIntegrationRuntimeKey'); exports.SelfHostedIntegrationRuntime = require('./selfHostedIntegrationRuntime'); +exports.IntegrationRuntimeCustomSetupScriptProperties = require('./integrationRuntimeCustomSetupScriptProperties'); exports.IntegrationRuntimeSsisCatalogInfo = require('./integrationRuntimeSsisCatalogInfo'); exports.IntegrationRuntimeSsisProperties = require('./integrationRuntimeSsisProperties'); exports.IntegrationRuntimeVNetProperties = require('./integrationRuntimeVNetProperties'); exports.IntegrationRuntimeComputeProperties = require('./integrationRuntimeComputeProperties'); exports.ManagedIntegrationRuntime = require('./managedIntegrationRuntime'); +exports.IntegrationRuntimeNodeIpAddress = require('./integrationRuntimeNodeIpAddress'); exports.IntegrationRuntimeNodeMonitoringData = require('./integrationRuntimeNodeMonitoringData'); exports.IntegrationRuntimeMonitoringData = require('./integrationRuntimeMonitoringData'); exports.IntegrationRuntimeRemoveNodeRequest = require('./integrationRuntimeRemoveNodeRequest'); @@ -329,8 +354,12 @@ exports.discriminators = { 'Dataset' : exports.Dataset, 'Activity' : exports.Activity, 'Trigger' : exports.Trigger, + 'LinkedService.AzureDatabricks' : exports.AzureDatabricksLinkedService, 'LinkedService.AzureDataLakeAnalytics' : exports.AzureDataLakeAnalyticsLinkedService, 'LinkedService.HDInsightOnDemand' : exports.HDInsightOnDemandLinkedService, + 'LinkedService.SalesforceMarketingCloud' : exports.SalesforceMarketingCloudLinkedService, + 'LinkedService.Netezza' : exports.NetezzaLinkedService, + 'LinkedService.Vertica' : exports.VerticaLinkedService, 'LinkedService.Zoho' : exports.ZohoLinkedService, 'LinkedService.Xero' : exports.XeroLinkedService, 'LinkedService.Square' : exports.SquareLinkedService, @@ -366,6 +395,7 @@ exports.discriminators = { 'LinkedService.CustomDataSource' : exports.CustomDataSourceLinkedService, 'LinkedService.AmazonRedshift' : exports.AmazonRedshiftLinkedService, 'LinkedService.AmazonS3' : exports.AmazonS3LinkedService, + 'LinkedService.SapEcc' : exports.SapEccLinkedService, 'LinkedService.SapCloudForCustomer' : exports.SapCloudForCustomerLinkedService, 'LinkedService.Salesforce' : exports.SalesforceLinkedService, 'LinkedService.AzureDataLakeStore' : exports.AzureDataLakeStoreLinkedService, @@ -397,6 +427,9 @@ exports.discriminators = { 'LinkedService.SqlServer' : exports.SqlServerLinkedService, 'LinkedService.AzureSqlDW' : exports.AzureSqlDWLinkedService, 'LinkedService.AzureStorage' : exports.AzureStorageLinkedService, + 'Dataset.SalesforceMarketingCloudObject' : exports.SalesforceMarketingCloudObjectDataset, + 'Dataset.VerticaTable' : exports.VerticaTableDataset, + 'Dataset.NetezzaTable' : exports.NetezzaTableDataset, 'Dataset.ZohoObject' : exports.ZohoObjectDataset, 'Dataset.XeroObject' : exports.XeroObjectDataset, 'Dataset.SquareObject' : exports.SquareObjectDataset, @@ -438,6 +471,7 @@ exports.discriminators = { 'Dataset.AzureSearchIndex' : exports.AzureSearchIndexDataset, 'Dataset.WebTable' : exports.WebTableDataset, 'Dataset.SqlServerTable' : exports.SqlServerTableDataset, + 'Dataset.SapEccResource' : exports.SapEccResourceDataset, 'Dataset.SapCloudForCustomerResource' : exports.SapCloudForCustomerResourceDataset, 'Dataset.SalesforceObject' : exports.SalesforceObjectDataset, 'Dataset.RelationalTable' : exports.RelationalTableDataset, @@ -460,12 +494,16 @@ exports.discriminators = { 'Trigger.BlobTrigger' : exports.BlobTrigger, 'Trigger.ScheduleTrigger' : exports.ScheduleTrigger, 'Trigger.MultiplePipelineTrigger' : exports.MultiplePipelineTrigger, + 'Activity.DatabricksNotebook' : exports.DatabricksNotebookActivity, 'Activity.DataLakeAnalyticsU-SQL' : exports.DataLakeAnalyticsUSQLActivity, 'Activity.AzureMLUpdateResource' : exports.AzureMLUpdateResourceActivity, 'Activity.AzureMLBatchExecution' : exports.AzureMLBatchExecutionActivity, 'Activity.GetMetadata' : exports.GetMetadataActivity, 'Activity.WebActivity' : exports.WebActivity, 'CopySource.AmazonRedshiftSource' : exports.AmazonRedshiftSource, + 'CopySource.SalesforceMarketingCloudSource' : exports.SalesforceMarketingCloudSource, + 'CopySource.VerticaSource' : exports.VerticaSource, + 'CopySource.NetezzaSource' : exports.NetezzaSource, 'CopySource.ZohoSource' : exports.ZohoSource, 'CopySource.XeroSource' : exports.XeroSource, 'CopySource.SquareSource' : exports.SquareSource, @@ -503,6 +541,7 @@ exports.discriminators = { 'CopySource.FileSystemSource' : exports.FileSystemSource, 'CopySource.SqlDWSource' : exports.SqlDWSource, 'CopySource.SqlSource' : exports.SqlSource, + 'CopySource.SapEccSource' : exports.SapEccSource, 'CopySource.SapCloudForCustomerSource' : exports.SapCloudForCustomerSource, 'CopySource.SalesforceSource' : exports.SalesforceSource, 'CopySource.RelationalSource' : exports.RelationalSource, @@ -514,6 +553,7 @@ exports.discriminators = { 'Activity.Lookup' : exports.LookupActivity, 'Activity.SqlServerStoredProcedure' : exports.SqlServerStoredProcedureActivity, 'Activity.Custom' : exports.CustomActivity, + 'Activity.ExecuteSSISPackage' : exports.ExecuteSSISPackageActivity, 'Activity.HDInsightSpark' : exports.HDInsightSparkActivity, 'Activity.HDInsightStreaming' : exports.HDInsightStreamingActivity, 'Activity.HDInsightMapReduce' : exports.HDInsightMapReduceActivity, @@ -538,6 +578,7 @@ exports.discriminators = { 'CopySink' : exports.CopySink, 'Activity.Copy' : exports.CopyActivity, 'Activity.Execution' : exports.ExecutionActivity, + 'Activity.Filter' : exports.FilterActivity, 'Activity.Until' : exports.UntilActivity, 'Activity.Wait' : exports.WaitActivity, 'Activity.ForEach' : exports.ForEachActivity, @@ -546,6 +587,9 @@ exports.discriminators = { 'Activity.Container' : exports.ControlActivity, 'IntegrationRuntimeStatus.SelfHosted' : exports.SelfHostedIntegrationRuntimeStatus, 'IntegrationRuntimeStatus.Managed' : exports.ManagedIntegrationRuntimeStatus, + 'LinkedIntegrationRuntimeProperties.RBAC' : exports.LinkedIntegrationRuntimeRbac, + 'LinkedIntegrationRuntimeProperties.Key' : exports.LinkedIntegrationRuntimeKey, + 'LinkedIntegrationRuntimeProperties' : exports.LinkedIntegrationRuntimeProperties, 'IntegrationRuntime.SelfHosted' : exports.SelfHostedIntegrationRuntime, 'IntegrationRuntime.Managed' : exports.ManagedIntegrationRuntime }; diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntime.js b/lib/services/datafactoryManagement/lib/models/integrationRuntime.js index 1c1c2634a6..e4db5cc0f4 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntime.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntime.js @@ -36,6 +36,18 @@ class IntegrationRuntime { serializedName: 'IntegrationRuntime', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -53,6 +65,7 @@ class IntegrationRuntime { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeComputeProperties.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeComputeProperties.js index edca790a0c..cc5d6142e1 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeComputeProperties.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeComputeProperties.js @@ -50,6 +50,18 @@ class IntegrationRuntimeComputeProperties { serializedName: 'IntegrationRuntimeComputeProperties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeComputeProperties', modelProperties: { location: { @@ -92,6 +104,18 @@ class IntegrationRuntimeComputeProperties { serializedName: 'vNetProperties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeVNetProperties' } } diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeConnectionInfo.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeConnectionInfo.js index 8107005eeb..881aafa9f5 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeConnectionInfo.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeConnectionInfo.js @@ -46,6 +46,18 @@ class IntegrationRuntimeConnectionInfo { serializedName: 'IntegrationRuntimeConnectionInfo', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeConnectionInfo', modelProperties: { serviceToken: { diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeCustomSetupScriptProperties.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeCustomSetupScriptProperties.js new file mode 100644 index 0000000000..bede46378a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeCustomSetupScriptProperties.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * Custom setup script properties for a managed dedicated integration runtime. + * + */ +class IntegrationRuntimeCustomSetupScriptProperties { + /** + * Create a IntegrationRuntimeCustomSetupScriptProperties. + * @member {string} [blobContainerUri] The URI of the Azure blob container + * that contains the custom setup script. + * @member {object} [sasToken] The SAS token of the Azure blob container. + * @member {string} [sasToken.value] Value of secure string. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeCustomSetupScriptProperties + * + * @returns {object} metadata of IntegrationRuntimeCustomSetupScriptProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeCustomSetupScriptProperties', + type: { + name: 'Composite', + className: 'IntegrationRuntimeCustomSetupScriptProperties', + modelProperties: { + blobContainerUri: { + required: false, + serializedName: 'blobContainerUri', + type: { + name: 'String' + } + }, + sasToken: { + required: false, + serializedName: 'sasToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeCustomSetupScriptProperties; diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeMonitoringData.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeMonitoringData.js index a041e00fed..7211d4e39c 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeMonitoringData.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeMonitoringData.js @@ -56,6 +56,18 @@ class IntegrationRuntimeMonitoringData { serializedName: 'IntegrationRuntimeNodeMonitoringDataElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeNodeMonitoringData' } } diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeIpAddress.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeIpAddress.js new file mode 100644 index 0000000000..7e8c6be426 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeIpAddress.js @@ -0,0 +1,54 @@ +/* + * 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'; + +/** + * The IP address of self-hosted integration runtime node. + * + */ +class IntegrationRuntimeNodeIpAddress { + /** + * Create a IntegrationRuntimeNodeIpAddress. + * @member {string} [ipAddress] The IP address of self-hosted integration + * runtime node. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeNodeIpAddress + * + * @returns {object} metadata of IntegrationRuntimeNodeIpAddress + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeNodeIpAddress', + type: { + name: 'Composite', + className: 'IntegrationRuntimeNodeIpAddress', + modelProperties: { + ipAddress: { + required: false, + readOnly: true, + serializedName: 'ipAddress', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeNodeIpAddress; diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeMonitoringData.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeMonitoringData.js index 113ba1193c..8d355cb972 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeMonitoringData.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeNodeMonitoringData.js @@ -47,6 +47,18 @@ class IntegrationRuntimeNodeMonitoringData { serializedName: 'IntegrationRuntimeNodeMonitoringData', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeNodeMonitoringData', modelProperties: { nodeName: { diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeRemoveNodeRequest.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeRemoveNodeRequest.js index 43b96d95bc..409605477f 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeRemoveNodeRequest.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeRemoveNodeRequest.js @@ -34,6 +34,18 @@ class IntegrationRuntimeRemoveNodeRequest { serializedName: 'IntegrationRuntimeRemoveNodeRequest', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeRemoveNodeRequest', modelProperties: { nodeName: { diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeResource.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeResource.js index 5269d55c58..e059e8b254 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeResource.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeResource.js @@ -79,6 +79,18 @@ class IntegrationRuntimeResource extends models['SubResource'] { serializedName: 'properties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisCatalogInfo.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisCatalogInfo.js index b666c96b87..8d9c23c8fe 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisCatalogInfo.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisCatalogInfo.js @@ -45,6 +45,18 @@ class IntegrationRuntimeSsisCatalogInfo { serializedName: 'IntegrationRuntimeSsisCatalogInfo', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeSsisCatalogInfo', modelProperties: { catalogServerEndpoint: { @@ -57,6 +69,10 @@ class IntegrationRuntimeSsisCatalogInfo { catalogAdminUserName: { required: false, serializedName: 'catalogAdminUserName', + constraints: { + MaxLength: 128, + MinLength: 1 + }, type: { name: 'String' } @@ -66,6 +82,11 @@ class IntegrationRuntimeSsisCatalogInfo { serializedName: 'catalogAdminPassword', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', className: 'SecureString' } }, diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisProperties.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisProperties.js index 0d7b53846a..f161a3e77a 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisProperties.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeSsisProperties.js @@ -33,6 +33,18 @@ class IntegrationRuntimeSsisProperties { * catalog database. The valid values could be found in * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [licenseType] License type for bringing your own license + * scenario. Possible values include: 'BasePrice', 'LicenseIncluded' + * @member {object} [customSetupScriptProperties] Custom setup script + * properties for a managed dedicated integration runtime. + * @member {string} [customSetupScriptProperties.blobContainerUri] The URI of + * the Azure blob container that contains the custom setup script. + * @member {object} [customSetupScriptProperties.sasToken] The SAS token of + * the Azure blob container. + * @member {string} [customSetupScriptProperties.sasToken.value] Value of + * secure string. + * @member {string} [edition] The edition for the SSIS Integration Runtime. + * Possible values include: 'Standard', 'Enterprise' */ constructor() { } @@ -49,6 +61,18 @@ class IntegrationRuntimeSsisProperties { serializedName: 'IntegrationRuntimeSsisProperties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeSsisProperties', modelProperties: { catalogInfo: { @@ -56,8 +80,42 @@ class IntegrationRuntimeSsisProperties { serializedName: 'catalogInfo', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeSsisCatalogInfo' } + }, + licenseType: { + required: false, + serializedName: 'licenseType', + type: { + name: 'String' + } + }, + customSetupScriptProperties: { + required: false, + serializedName: 'customSetupScriptProperties', + type: { + name: 'Composite', + className: 'IntegrationRuntimeCustomSetupScriptProperties' + } + }, + edition: { + required: false, + serializedName: 'edition', + type: { + name: 'String' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatus.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatus.js index 4fe042752c..d6fa960a23 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatus.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatus.js @@ -17,6 +17,8 @@ class IntegrationRuntimeStatus { /** * Create a IntegrationRuntimeStatus. + * @member {string} [dataFactoryName] The data factory name which the + * integration runtime belong to. * @member {string} [state] The state of integration runtime. Possible values * include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', * 'NeedRegistration', 'Online', 'Limited', 'Offline' @@ -37,6 +39,18 @@ class IntegrationRuntimeStatus { serializedName: 'IntegrationRuntimeStatus', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -44,6 +58,14 @@ class IntegrationRuntimeStatus { uberParent: 'IntegrationRuntimeStatus', className: 'IntegrationRuntimeStatus', modelProperties: { + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, state: { required: false, readOnly: true, @@ -55,6 +77,7 @@ class IntegrationRuntimeStatus { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatusResponse.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatusResponse.js index 4ddcf4d837..f52765aefa 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatusResponse.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeStatusResponse.js @@ -21,6 +21,8 @@ class IntegrationRuntimeStatusResponse { * Create a IntegrationRuntimeStatusResponse. * @member {string} [name] The integration runtime name. * @member {object} properties Integration runtime properties. + * @member {string} [properties.dataFactoryName] The data factory name which + * the integration runtime belong to. * @member {string} [properties.state] The state of integration runtime. * Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', * 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' @@ -56,6 +58,18 @@ class IntegrationRuntimeStatusResponse { serializedName: 'properties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/integrationRuntimeVNetProperties.js b/lib/services/datafactoryManagement/lib/models/integrationRuntimeVNetProperties.js index 3803b8a48f..9993d07e9b 100644 --- a/lib/services/datafactoryManagement/lib/models/integrationRuntimeVNetProperties.js +++ b/lib/services/datafactoryManagement/lib/models/integrationRuntimeVNetProperties.js @@ -37,6 +37,18 @@ class IntegrationRuntimeVNetProperties { serializedName: 'IntegrationRuntimeVNetProperties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeVNetProperties', modelProperties: { vNetId: { diff --git a/lib/services/datafactoryManagement/lib/models/jiraLinkedService.js b/lib/services/datafactoryManagement/lib/models/jiraLinkedService.js index 64cf948b83..ca7e177f8a 100644 --- a/lib/services/datafactoryManagement/lib/models/jiraLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/jiraLinkedService.js @@ -58,6 +58,11 @@ class JiraLinkedService extends models['LinkedService'] { serializedName: 'Jira', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'JiraLinkedService', modelProperties: { connectVia: { @@ -75,9 +80,39 @@ class JiraLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js b/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js index 4a6cac0e57..3da5b0002b 100644 --- a/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js @@ -37,6 +37,11 @@ class JiraObjectDataset extends models['Dataset'] { serializedName: 'JiraObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'JiraObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class JiraObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/jiraSource.js b/lib/services/datafactoryManagement/lib/models/jiraSource.js index aeb0abc1d5..6d1c0b79bc 100644 --- a/lib/services/datafactoryManagement/lib/models/jiraSource.js +++ b/lib/services/datafactoryManagement/lib/models/jiraSource.js @@ -39,6 +39,11 @@ class JiraSource extends models['CopySource'] { serializedName: 'JiraSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'JiraSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class JiraSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/jsonFormat.js b/lib/services/datafactoryManagement/lib/models/jsonFormat.js index 7715f7a247..2ddc8f8bc9 100644 --- a/lib/services/datafactoryManagement/lib/models/jsonFormat.js +++ b/lib/services/datafactoryManagement/lib/models/jsonFormat.js @@ -60,6 +60,11 @@ class JsonFormat extends models['DatasetStorageFormat'] { serializedName: 'JsonFormat', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', className: 'JsonFormat', modelProperties: { serializer: { @@ -79,6 +84,7 @@ class JsonFormat extends models['DatasetStorageFormat'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntime.js b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntime.js new file mode 100644 index 0000000000..dd674fb676 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntime.js @@ -0,0 +1,93 @@ +/* + * 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'; + +/** + * The linked integration runtime information. + * + */ +class LinkedIntegrationRuntime { + /** + * Create a LinkedIntegrationRuntime. + * @member {string} [name] The name of the linked integration runtime. + * @member {string} [subscriptionId] The subscription ID for which the linked + * integration runtime belong to. + * @member {string} [dataFactoryName] The name of the data factory for which + * the linked integration runtime belong to. + * @member {string} [dataFactoryLocation] The location of the data factory + * for which the linked integration runtime belong to. + * @member {date} [createTime] The creating time of the linked integration + * runtime. + */ + constructor() { + } + + /** + * Defines the metadata of LinkedIntegrationRuntime + * + * @returns {object} metadata of LinkedIntegrationRuntime + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedIntegrationRuntime', + type: { + name: 'Composite', + className: 'LinkedIntegrationRuntime', + modelProperties: { + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + subscriptionId: { + required: false, + readOnly: true, + serializedName: 'subscriptionId', + type: { + name: 'String' + } + }, + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, + dataFactoryLocation: { + required: false, + readOnly: true, + serializedName: 'dataFactoryLocation', + type: { + name: 'String' + } + }, + createTime: { + required: false, + readOnly: true, + serializedName: 'createTime', + type: { + name: 'DateTime' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntime; diff --git a/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeKey.js b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeKey.js new file mode 100644 index 0000000000..5d4e0ccce8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeKey.js @@ -0,0 +1,76 @@ +/* + * 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'); + +/** + * The base definition of a secret type. + * + * @extends models['LinkedIntegrationRuntimeProperties'] + */ +class LinkedIntegrationRuntimeKey extends models['LinkedIntegrationRuntimeProperties'] { + /** + * Create a LinkedIntegrationRuntimeKey. + * @member {object} key Type of the secret. + * @member {string} [key.value] Value of secure string. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LinkedIntegrationRuntimeKey + * + * @returns {object} metadata of LinkedIntegrationRuntimeKey + * + */ + mapper() { + return { + required: false, + serializedName: 'Key', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeKey', + modelProperties: { + authorizationType: { + required: true, + serializedName: 'authorizationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + key: { + required: true, + serializedName: 'key', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntimeKey; diff --git a/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeProperties.js b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeProperties.js new file mode 100644 index 0000000000..5e9d9d3444 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeProperties.js @@ -0,0 +1,58 @@ +/* + * 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'; + +/** + * The base definition of a secret type. + * + */ +class LinkedIntegrationRuntimeProperties { + /** + * Create a LinkedIntegrationRuntimeProperties. + * @member {string} authorizationType Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of LinkedIntegrationRuntimeProperties + * + * @returns {object} metadata of LinkedIntegrationRuntimeProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedIntegrationRuntimeProperties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeProperties', + modelProperties: { + authorizationType: { + required: true, + serializedName: 'authorizationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntimeProperties; diff --git a/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeRbac.js b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeRbac.js new file mode 100644 index 0000000000..2393b48d1d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/linkedIntegrationRuntimeRbac.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * The base definition of a secret type. + * + * @extends models['LinkedIntegrationRuntimeProperties'] + */ +class LinkedIntegrationRuntimeRbac extends models['LinkedIntegrationRuntimeProperties'] { + /** + * Create a LinkedIntegrationRuntimeRbac. + * @member {string} resourceId The resource ID of the integration runtime to + * be shared. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LinkedIntegrationRuntimeRbac + * + * @returns {object} metadata of LinkedIntegrationRuntimeRbac + * + */ + mapper() { + return { + required: false, + serializedName: 'RBAC', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeRbac', + modelProperties: { + authorizationType: { + required: true, + serializedName: 'authorizationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + resourceId: { + required: true, + serializedName: 'resourceId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntimeRbac; diff --git a/lib/services/datafactoryManagement/lib/models/linkedService.js b/lib/services/datafactoryManagement/lib/models/linkedService.js index 7779f65039..09c619c7c3 100644 --- a/lib/services/datafactoryManagement/lib/models/linkedService.js +++ b/lib/services/datafactoryManagement/lib/models/linkedService.js @@ -27,6 +27,9 @@ class LinkedService { * @member {object} [connectVia.parameters] Arguments for integration * runtime. * @member {string} [description] Linked service description. + * @member {object} [parameters] Parameters for linked service. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. * @member {string} type Polymorphic Discriminator */ constructor() { @@ -44,6 +47,18 @@ class LinkedService { serializedName: 'LinkedService', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -66,9 +81,39 @@ class 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' } diff --git a/lib/services/datafactoryManagement/lib/models/linkedServiceReference.js b/lib/services/datafactoryManagement/lib/models/linkedServiceReference.js index 7b8311a868..3bd3baacb6 100644 --- a/lib/services/datafactoryManagement/lib/models/linkedServiceReference.js +++ b/lib/services/datafactoryManagement/lib/models/linkedServiceReference.js @@ -18,6 +18,7 @@ class LinkedServiceReference { /** * Create a LinkedServiceReference. * @member {string} referenceName Reference LinkedService name. + * @member {object} [parameters] Arguments for LinkedService. */ constructor() { } @@ -51,6 +52,20 @@ class LinkedServiceReference { type: { name: 'String' } + }, + parameters: { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/linkedServiceResource.js b/lib/services/datafactoryManagement/lib/models/linkedServiceResource.js index 586af34f8b..0d767d32f3 100644 --- a/lib/services/datafactoryManagement/lib/models/linkedServiceResource.js +++ b/lib/services/datafactoryManagement/lib/models/linkedServiceResource.js @@ -28,6 +28,9 @@ class LinkedServiceResource extends models['SubResource'] { * @member {object} [properties.connectVia.parameters] Arguments for * integration runtime. * @member {string} [properties.description] Linked service description. + * @member {object} [properties.parameters] Parameters for linked service. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. * @member {string} [properties.type] Polymorphic Discriminator */ constructor() { @@ -86,6 +89,18 @@ class LinkedServiceResource extends models['SubResource'] { defaultValue: {}, type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/lookupActivity.js b/lib/services/datafactoryManagement/lib/models/lookupActivity.js index 608bdd4e7c..6120d6f5aa 100644 --- a/lib/services/datafactoryManagement/lib/models/lookupActivity.js +++ b/lib/services/datafactoryManagement/lib/models/lookupActivity.js @@ -51,6 +51,11 @@ class LookupActivity extends models['ExecutionActivity'] { serializedName: 'Lookup', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'LookupActivity', modelProperties: { name: { @@ -77,6 +82,18 @@ class LookupActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -85,6 +102,7 @@ class LookupActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -102,6 +120,18 @@ class LookupActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, @@ -110,6 +140,18 @@ class LookupActivity extends models['ExecutionActivity'] { serializedName: 'typeProperties.source', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/magentoLinkedService.js b/lib/services/datafactoryManagement/lib/models/magentoLinkedService.js index 2b0a85ae86..f3f1f45037 100644 --- a/lib/services/datafactoryManagement/lib/models/magentoLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/magentoLinkedService.js @@ -52,6 +52,11 @@ class MagentoLinkedService extends models['LinkedService'] { serializedName: 'Magento', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'MagentoLinkedService', modelProperties: { connectVia: { @@ -69,9 +74,39 @@ class MagentoLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js index 5a63d62c2b..5a0637de05 100644 --- a/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js @@ -37,6 +37,11 @@ class MagentoObjectDataset extends models['Dataset'] { serializedName: 'MagentoObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'MagentoObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class MagentoObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/magentoSource.js b/lib/services/datafactoryManagement/lib/models/magentoSource.js index 79a266947b..9a68a18f02 100644 --- a/lib/services/datafactoryManagement/lib/models/magentoSource.js +++ b/lib/services/datafactoryManagement/lib/models/magentoSource.js @@ -39,6 +39,11 @@ class MagentoSource extends models['CopySource'] { serializedName: 'MagentoSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'MagentoSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class MagentoSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntime.js b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntime.js index d9e133ebf3..6ebe822d53 100644 --- a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntime.js +++ b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntime.js @@ -58,6 +58,21 @@ class ManagedIntegrationRuntime extends models['IntegrationRuntime'] { * pricing tier for the catalog database. The valid values could be found in * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [ssisProperties.licenseType] License type for bringing + * your own license scenario. Possible values include: 'BasePrice', + * 'LicenseIncluded' + * @member {object} [ssisProperties.customSetupScriptProperties] Custom setup + * script properties for a managed dedicated integration runtime. + * @member {string} + * [ssisProperties.customSetupScriptProperties.blobContainerUri] The URI of + * the Azure blob container that contains the custom setup script. + * @member {object} [ssisProperties.customSetupScriptProperties.sasToken] The + * SAS token of the Azure blob container. + * @member {string} + * [ssisProperties.customSetupScriptProperties.sasToken.value] Value of + * secure string. + * @member {string} [ssisProperties.edition] The edition for the SSIS + * Integration Runtime. Possible values include: 'Standard', 'Enterprise' */ constructor() { super(); @@ -75,6 +90,11 @@ class ManagedIntegrationRuntime extends models['IntegrationRuntime'] { serializedName: 'Managed', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntime', className: 'ManagedIntegrationRuntime', modelProperties: { description: { @@ -87,6 +107,7 @@ class ManagedIntegrationRuntime extends models['IntegrationRuntime'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -104,6 +125,18 @@ class ManagedIntegrationRuntime extends models['IntegrationRuntime'] { serializedName: 'typeProperties.computeProperties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeComputeProperties' } }, @@ -112,6 +145,18 @@ class ManagedIntegrationRuntime extends models['IntegrationRuntime'] { serializedName: 'typeProperties.ssisProperties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'IntegrationRuntimeSsisProperties' } } diff --git a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeError.js b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeError.js index eea2fcc0e4..a3e54fc310 100644 --- a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeError.js +++ b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeError.js @@ -37,6 +37,18 @@ class ManagedIntegrationRuntimeError { serializedName: 'ManagedIntegrationRuntimeError', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ManagedIntegrationRuntimeError', modelProperties: { time: { diff --git a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeNode.js b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeNode.js index 2f0fb8367a..6a2e7482d0 100644 --- a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeNode.js +++ b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeNode.js @@ -41,6 +41,18 @@ class ManagedIntegrationRuntimeNode { serializedName: 'ManagedIntegrationRuntimeNode', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ManagedIntegrationRuntimeNode', modelProperties: { nodeId: { @@ -69,6 +81,18 @@ class ManagedIntegrationRuntimeNode { serializedName: 'ManagedIntegrationRuntimeErrorElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ManagedIntegrationRuntimeError' } } diff --git a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeOperationResult.js b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeOperationResult.js index 1bfa31c85c..f970d1a9db 100644 --- a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeOperationResult.js +++ b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeOperationResult.js @@ -22,6 +22,7 @@ class ManagedIntegrationRuntimeOperationResult { * @member {string} [result] The operation result. * @member {string} [errorCode] The error code. * @member {array} [parameters] Managed integration runtime error parameters. + * @member {string} [activityId] The activity id for the operation request. */ constructor() { } @@ -38,6 +39,18 @@ class ManagedIntegrationRuntimeOperationResult { serializedName: 'ManagedIntegrationRuntimeOperationResult', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ManagedIntegrationRuntimeOperationResult', modelProperties: { type: { @@ -86,6 +99,14 @@ class ManagedIntegrationRuntimeOperationResult { } } } + }, + activityId: { + required: false, + readOnly: true, + serializedName: 'activityId', + type: { + name: 'String' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeStatus.js b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeStatus.js index 803b00d3e2..19f3aa9717 100644 --- a/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeStatus.js +++ b/lib/services/datafactoryManagement/lib/models/managedIntegrationRuntimeStatus.js @@ -34,6 +34,8 @@ class ManagedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] * @member {string} [lastOperation.errorCode] The error code. * @member {array} [lastOperation.parameters] Managed integration runtime * error parameters. + * @member {string} [lastOperation.activityId] The activity id for the + * operation request. */ constructor() { super(); @@ -51,8 +53,21 @@ class ManagedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] serializedName: 'Managed', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntimeStatus', className: 'ManagedIntegrationRuntimeStatus', modelProperties: { + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, state: { required: false, readOnly: true, @@ -64,6 +79,7 @@ class ManagedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -87,6 +103,18 @@ class ManagedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] serializedName: 'ManagedIntegrationRuntimeNodeElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ManagedIntegrationRuntimeNode' } } @@ -103,6 +131,18 @@ class ManagedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] serializedName: 'ManagedIntegrationRuntimeErrorElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ManagedIntegrationRuntimeError' } } @@ -114,6 +154,18 @@ class ManagedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] serializedName: 'typeProperties.lastOperation', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ManagedIntegrationRuntimeOperationResult' } } diff --git a/lib/services/datafactoryManagement/lib/models/mariaDBLinkedService.js b/lib/services/datafactoryManagement/lib/models/mariaDBLinkedService.js index 987d27b013..6c3a719f53 100644 --- a/lib/services/datafactoryManagement/lib/models/mariaDBLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/mariaDBLinkedService.js @@ -42,6 +42,11 @@ class MariaDBLinkedService extends models['LinkedService'] { serializedName: 'MariaDB', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'MariaDBLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class MariaDBLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/mariaDBSource.js b/lib/services/datafactoryManagement/lib/models/mariaDBSource.js index c4ed06f317..4b330ab8fe 100644 --- a/lib/services/datafactoryManagement/lib/models/mariaDBSource.js +++ b/lib/services/datafactoryManagement/lib/models/mariaDBSource.js @@ -39,6 +39,11 @@ class MariaDBSource extends models['CopySource'] { serializedName: 'MariaDBSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'MariaDBSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class MariaDBSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js b/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js index ef97d19058..b75df28689 100644 --- a/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js @@ -37,6 +37,11 @@ class MariaDBTableDataset extends models['Dataset'] { serializedName: 'MariaDBTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'MariaDBTableDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class MariaDBTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/marketoLinkedService.js b/lib/services/datafactoryManagement/lib/models/marketoLinkedService.js index 66c18d13e3..ed39818371 100644 --- a/lib/services/datafactoryManagement/lib/models/marketoLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/marketoLinkedService.js @@ -53,6 +53,11 @@ class MarketoLinkedService extends models['LinkedService'] { serializedName: 'Marketo', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'MarketoLinkedService', modelProperties: { connectVia: { @@ -70,9 +75,39 @@ class MarketoLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js index 09fe293be1..3e4ff2624a 100644 --- a/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js @@ -37,6 +37,11 @@ class MarketoObjectDataset extends models['Dataset'] { serializedName: 'MarketoObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'MarketoObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class MarketoObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/marketoSource.js b/lib/services/datafactoryManagement/lib/models/marketoSource.js index 916c751464..d0b0a0648c 100644 --- a/lib/services/datafactoryManagement/lib/models/marketoSource.js +++ b/lib/services/datafactoryManagement/lib/models/marketoSource.js @@ -39,6 +39,11 @@ class MarketoSource extends models['CopySource'] { serializedName: 'MarketoSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'MarketoSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class MarketoSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js b/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js index 43df812158..6ead59510d 100644 --- a/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js +++ b/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js @@ -39,6 +39,11 @@ class MongoDbCollectionDataset extends models['Dataset'] { serializedName: 'MongoDbCollection', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'MongoDbCollectionDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class MongoDbCollectionDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/mongoDbLinkedService.js b/lib/services/datafactoryManagement/lib/models/mongoDbLinkedService.js index 94e4202a1d..5da4ea0198 100644 --- a/lib/services/datafactoryManagement/lib/models/mongoDbLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/mongoDbLinkedService.js @@ -30,12 +30,18 @@ class MongoDbLinkedService extends models['LinkedService'] { * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [authSource] Database to verify the username and * password. Type: string (or Expression with resultType string). * @member {object} [port] The TCP port number that the MongoDB server uses * to listen for client connections. The default value is 27017. Type: * integer (or Expression with resultType integer), minimum: 0. + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. Type: boolean + * (or Expression with resultType boolean). + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * Type: boolean (or Expression with resultType boolean). * @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). @@ -56,6 +62,11 @@ class MongoDbLinkedService extends models['LinkedService'] { serializedName: 'MongoDb', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'MongoDbLinkedService', modelProperties: { connectVia: { @@ -73,9 +84,39 @@ class MongoDbLinkedService 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' } @@ -113,7 +154,12 @@ class MongoDbLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, authSource: { @@ -130,6 +176,20 @@ class MongoDbLinkedService extends models['LinkedService'] { name: 'Object' } }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, encryptedCredential: { required: false, serializedName: 'typeProperties.encryptedCredential', diff --git a/lib/services/datafactoryManagement/lib/models/mongoDbSource.js b/lib/services/datafactoryManagement/lib/models/mongoDbSource.js index 14e0b7b1eb..0dd1c81ac4 100644 --- a/lib/services/datafactoryManagement/lib/models/mongoDbSource.js +++ b/lib/services/datafactoryManagement/lib/models/mongoDbSource.js @@ -39,6 +39,11 @@ class MongoDbSource extends models['CopySource'] { serializedName: 'MongoDbSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'MongoDbSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class MongoDbSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/multiplePipelineTrigger.js b/lib/services/datafactoryManagement/lib/models/multiplePipelineTrigger.js index 607ab711d3..46ea6ac034 100644 --- a/lib/services/datafactoryManagement/lib/models/multiplePipelineTrigger.js +++ b/lib/services/datafactoryManagement/lib/models/multiplePipelineTrigger.js @@ -39,6 +39,11 @@ class MultiplePipelineTrigger extends models['Trigger'] { serializedName: 'MultiplePipelineTrigger', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', className: 'MultiplePipelineTrigger', modelProperties: { description: { @@ -59,6 +64,7 @@ class MultiplePipelineTrigger extends models['Trigger'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/mySqlLinkedService.js b/lib/services/datafactoryManagement/lib/models/mySqlLinkedService.js index dceba4658b..ce64b3ca47 100644 --- a/lib/services/datafactoryManagement/lib/models/mySqlLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/mySqlLinkedService.js @@ -20,16 +20,8 @@ const models = require('./index'); class MySqlLinkedService extends models['LinkedService'] { /** * Create a MySqlLinkedService. - * @member {object} server Server name for connection. Type: string (or - * Expression with resultType string). - * @member {object} database Database name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [username] Username for authentication. Type: string (or - * Expression with resultType string). - * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). @@ -50,6 +42,11 @@ class MySqlLinkedService extends models['LinkedService'] { serializedName: 'MySql', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'MySqlLinkedService', modelProperties: { connectVia: { @@ -67,47 +64,54 @@ class MySqlLinkedService extends models['LinkedService'] { name: 'String' } }, - type: { - required: true, - serializedName: 'type', - type: { - name: 'String' - } - }, - server: { - required: true, - serializedName: 'typeProperties.server', - type: { - name: 'Object' - } - }, - database: { - required: true, - serializedName: 'typeProperties.database', + parameters: { + required: false, + serializedName: 'parameters', type: { - name: 'Object' + name: 'Dictionary', + value: { + required: false, + serializedName: 'ParameterSpecificationElementType', + type: { + name: 'Composite', + className: 'ParameterSpecification' + } + } } }, - schema: { + annotations: { required: false, - serializedName: 'typeProperties.schema', + serializedName: 'annotations', type: { - name: 'Object' + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } } }, - username: { - required: false, - serializedName: 'typeProperties.username', + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, type: { - name: 'Object' + name: 'String' } }, - password: { - required: false, - serializedName: 'typeProperties.password', + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/netezzaLinkedService.js b/lib/services/datafactoryManagement/lib/models/netezzaLinkedService.js new file mode 100644 index 0000000000..eae486da8b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/netezzaLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Netezza linked service. + * + * @extends models['LinkedService'] + */ +class NetezzaLinkedService extends models['LinkedService'] { + /** + * Create a NetezzaLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetezzaLinkedService + * + * @returns {object} metadata of NetezzaLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Netezza', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'NetezzaLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = NetezzaLinkedService; diff --git a/lib/services/datafactoryManagement/lib/models/netezzaSource.js b/lib/services/datafactoryManagement/lib/models/netezzaSource.js new file mode 100644 index 0000000000..c18fc59d4b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/netezzaSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Netezza source. + * + * @extends models['CopySource'] + */ +class NetezzaSource extends models['CopySource'] { + /** + * Create a NetezzaSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetezzaSource + * + * @returns {object} metadata of NetezzaSource + * + */ + mapper() { + return { + required: false, + serializedName: 'NetezzaSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'NetezzaSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = NetezzaSource; diff --git a/lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js b/lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js new file mode 100644 index 0000000000..c8444b0fb6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Netezza dataset. + * + * @extends models['Dataset'] + */ +class NetezzaTableDataset extends models['Dataset'] { + /** + * Create a NetezzaTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetezzaTableDataset + * + * @returns {object} metadata of NetezzaTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'NetezzaTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'NetezzaTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = NetezzaTableDataset; diff --git a/lib/services/datafactoryManagement/lib/models/oDataLinkedService.js b/lib/services/datafactoryManagement/lib/models/oDataLinkedService.js index 280daaafb7..325ad7a867 100644 --- a/lib/services/datafactoryManagement/lib/models/oDataLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/oDataLinkedService.js @@ -28,7 +28,7 @@ class ODataLinkedService extends models['LinkedService'] { * @member {object} [userName] User name of the OData service. Type: string * (or Expression with resultType string). * @member {object} [password] Password of the OData service. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -49,6 +49,11 @@ class ODataLinkedService extends models['LinkedService'] { serializedName: 'OData', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'ODataLinkedService', modelProperties: { connectVia: { @@ -66,9 +71,39 @@ class ODataLinkedService 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' } @@ -99,7 +134,12 @@ class ODataLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js b/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js index f0a9269044..ae3fcebfee 100644 --- a/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js +++ b/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js @@ -39,6 +39,11 @@ class ODataResourceDataset extends models['Dataset'] { serializedName: 'ODataResource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'ODataResourceDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class ODataResourceDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/odbcLinkedService.js b/lib/services/datafactoryManagement/lib/models/odbcLinkedService.js index 381e25e137..3d63073bfa 100644 --- a/lib/services/datafactoryManagement/lib/models/odbcLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/odbcLinkedService.js @@ -22,17 +22,17 @@ class OdbcLinkedService extends models['LinkedService'] { * Create a OdbcLinkedService. * @member {object} connectionString The non-access credential portion of the * connection string as well as an optional encrypted credential. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @member {object} [authenticationType] Type of authentication used to * connect to the ODBC data store. Possible values are: Anonymous and Basic. * Type: string (or Expression with resultType string). * @member {object} [credential] The access credential portion of the * connection string specified in driver-specific property-value format. - * @member {string} [credential.value] Value of secure string. + * @member {string} [credential.type] Polymorphic Discriminator * @member {object} [userName] User name for Basic authentication. Type: * string (or Expression with resultType string). * @member {object} [password] Password for Basic authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -53,6 +53,11 @@ class OdbcLinkedService extends models['LinkedService'] { serializedName: 'Odbc', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'OdbcLinkedService', modelProperties: { connectVia: { @@ -70,9 +75,39 @@ class OdbcLinkedService 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' } @@ -82,7 +117,12 @@ class OdbcLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, authenticationType: { @@ -97,7 +137,12 @@ class OdbcLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.credential', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, userName: { @@ -112,7 +157,12 @@ class OdbcLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/odbcSink.js b/lib/services/datafactoryManagement/lib/models/odbcSink.js index eae3c2d8d4..eeeefe27c5 100644 --- a/lib/services/datafactoryManagement/lib/models/odbcSink.js +++ b/lib/services/datafactoryManagement/lib/models/odbcSink.js @@ -39,6 +39,11 @@ class OdbcSink extends models['CopySink'] { serializedName: 'OdbcSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'OdbcSink', modelProperties: { writeBatchSize: { @@ -72,6 +77,7 @@ class OdbcSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/oracleLinkedService.js b/lib/services/datafactoryManagement/lib/models/oracleLinkedService.js index 10d367cf50..eebb868729 100644 --- a/lib/services/datafactoryManagement/lib/models/oracleLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/oracleLinkedService.js @@ -21,7 +21,7 @@ class OracleLinkedService extends models['LinkedService'] { /** * Create a OracleLinkedService. * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). @@ -42,6 +42,11 @@ class OracleLinkedService extends models['LinkedService'] { serializedName: 'Oracle', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'OracleLinkedService', modelProperties: { connectVia: { @@ -59,9 +64,39 @@ class OracleLinkedService 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' } @@ -71,7 +106,12 @@ class OracleLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/oracleSink.js b/lib/services/datafactoryManagement/lib/models/oracleSink.js index 6149000b57..6d8a1c70e6 100644 --- a/lib/services/datafactoryManagement/lib/models/oracleSink.js +++ b/lib/services/datafactoryManagement/lib/models/oracleSink.js @@ -39,6 +39,11 @@ class OracleSink extends models['CopySink'] { serializedName: 'OracleSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'OracleSink', modelProperties: { writeBatchSize: { @@ -72,6 +77,7 @@ class OracleSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/oracleSource.js b/lib/services/datafactoryManagement/lib/models/oracleSource.js index 56780feb7e..64a27bb682 100644 --- a/lib/services/datafactoryManagement/lib/models/oracleSource.js +++ b/lib/services/datafactoryManagement/lib/models/oracleSource.js @@ -42,6 +42,11 @@ class OracleSource extends models['CopySource'] { serializedName: 'OracleSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'OracleSource', modelProperties: { sourceRetryCount: { @@ -61,6 +66,7 @@ class OracleSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js b/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js index 68435f53ca..9b6659ae95 100644 --- a/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js @@ -39,6 +39,11 @@ class OracleTableDataset extends models['Dataset'] { serializedName: 'OracleTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'OracleTableDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class OracleTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/orcFormat.js b/lib/services/datafactoryManagement/lib/models/orcFormat.js index 83caa4842a..c544390c06 100644 --- a/lib/services/datafactoryManagement/lib/models/orcFormat.js +++ b/lib/services/datafactoryManagement/lib/models/orcFormat.js @@ -37,6 +37,11 @@ class OrcFormat extends models['DatasetStorageFormat'] { serializedName: 'OrcFormat', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', className: 'OrcFormat', modelProperties: { serializer: { @@ -56,6 +61,7 @@ class OrcFormat extends models['DatasetStorageFormat'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/parameterSpecification.js b/lib/services/datafactoryManagement/lib/models/parameterSpecification.js index 007c4566e5..8df992264a 100644 --- a/lib/services/datafactoryManagement/lib/models/parameterSpecification.js +++ b/lib/services/datafactoryManagement/lib/models/parameterSpecification.js @@ -18,7 +18,7 @@ class ParameterSpecification { /** * Create a ParameterSpecification. * @member {string} type Parameter type. Possible values include: 'Object', - * 'String', 'Int', 'Float', 'Bool', 'Array' + * 'String', 'Int', 'Float', 'Bool', 'Array', 'SecureString' * @member {object} [defaultValue] Default value of parameter. */ constructor() { diff --git a/lib/services/datafactoryManagement/lib/models/parquetFormat.js b/lib/services/datafactoryManagement/lib/models/parquetFormat.js index deb3b431af..ebdc64f61b 100644 --- a/lib/services/datafactoryManagement/lib/models/parquetFormat.js +++ b/lib/services/datafactoryManagement/lib/models/parquetFormat.js @@ -37,6 +37,11 @@ class ParquetFormat extends models['DatasetStorageFormat'] { serializedName: 'ParquetFormat', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', className: 'ParquetFormat', modelProperties: { serializer: { @@ -56,6 +61,7 @@ class ParquetFormat extends models['DatasetStorageFormat'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/paypalLinkedService.js b/lib/services/datafactoryManagement/lib/models/paypalLinkedService.js index ea6b2fe07c..0944d97a12 100644 --- a/lib/services/datafactoryManagement/lib/models/paypalLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/paypalLinkedService.js @@ -55,6 +55,11 @@ class PaypalLinkedService extends models['LinkedService'] { serializedName: 'Paypal', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'PaypalLinkedService', modelProperties: { connectVia: { @@ -72,9 +77,39 @@ class PaypalLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js b/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js index 9c3f25accd..237fd0c6c0 100644 --- a/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js @@ -37,6 +37,11 @@ class PaypalObjectDataset extends models['Dataset'] { serializedName: 'PaypalObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'PaypalObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class PaypalObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/paypalSource.js b/lib/services/datafactoryManagement/lib/models/paypalSource.js index 175e54348a..69d3e2ce30 100644 --- a/lib/services/datafactoryManagement/lib/models/paypalSource.js +++ b/lib/services/datafactoryManagement/lib/models/paypalSource.js @@ -39,6 +39,11 @@ class PaypalSource extends models['CopySource'] { serializedName: 'PaypalSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'PaypalSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class PaypalSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/phoenixLinkedService.js b/lib/services/datafactoryManagement/lib/models/phoenixLinkedService.js index 2607e0795b..1bdf8ec74a 100644 --- a/lib/services/datafactoryManagement/lib/models/phoenixLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/phoenixLinkedService.js @@ -69,6 +69,11 @@ class PhoenixLinkedService extends models['LinkedService'] { serializedName: 'Phoenix', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'PhoenixLinkedService', modelProperties: { connectVia: { @@ -86,9 +91,39 @@ class PhoenixLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js b/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js index 99f68acef4..598d3d6cb4 100644 --- a/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js @@ -37,6 +37,11 @@ class PhoenixObjectDataset extends models['Dataset'] { serializedName: 'PhoenixObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'PhoenixObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class PhoenixObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/phoenixSource.js b/lib/services/datafactoryManagement/lib/models/phoenixSource.js index 384ba6a5cd..103665b661 100644 --- a/lib/services/datafactoryManagement/lib/models/phoenixSource.js +++ b/lib/services/datafactoryManagement/lib/models/phoenixSource.js @@ -39,6 +39,11 @@ class PhoenixSource extends models['CopySource'] { serializedName: 'PhoenixSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'PhoenixSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class PhoenixSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/pipelineListResponse.js b/lib/services/datafactoryManagement/lib/models/pipelineListResponse.js index e81954cde9..5f69ce4505 100644 --- a/lib/services/datafactoryManagement/lib/models/pipelineListResponse.js +++ b/lib/services/datafactoryManagement/lib/models/pipelineListResponse.js @@ -47,6 +47,18 @@ class PipelineListResponse extends Array { serializedName: 'PipelineResourceElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'PipelineResource' } } diff --git a/lib/services/datafactoryManagement/lib/models/pipelineResource.js b/lib/services/datafactoryManagement/lib/models/pipelineResource.js index 6682da6159..a2ac113838 100644 --- a/lib/services/datafactoryManagement/lib/models/pipelineResource.js +++ b/lib/services/datafactoryManagement/lib/models/pipelineResource.js @@ -25,6 +25,8 @@ class PipelineResource extends models['SubResource'] { * @member {object} [parameters] List of parameters for pipeline. * @member {number} [concurrency] The max number of concurrent runs for the * pipeline. + * @member {array} [annotations] List of tags that can be used for describing + * the Pipeline. */ constructor() { super(); @@ -42,6 +44,18 @@ class PipelineResource extends models['SubResource'] { serializedName: 'PipelineResource', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'PipelineResource', modelProperties: { id: { @@ -93,6 +107,18 @@ class PipelineResource extends models['SubResource'] { serializedName: 'ActivityElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -127,6 +153,20 @@ class PipelineResource extends models['SubResource'] { type: { name: 'Number' } + }, + annotations: { + required: false, + serializedName: 'properties.annotations', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/pipelineRun.js b/lib/services/datafactoryManagement/lib/models/pipelineRun.js index 5b196be038..58bac721f6 100644 --- a/lib/services/datafactoryManagement/lib/models/pipelineRun.js +++ b/lib/services/datafactoryManagement/lib/models/pipelineRun.js @@ -51,6 +51,18 @@ class PipelineRun { serializedName: 'PipelineRun', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'PipelineRun', modelProperties: { runId: { diff --git a/lib/services/datafactoryManagement/lib/models/pipelineRunQueryResponse.js b/lib/services/datafactoryManagement/lib/models/pipelineRunQueryResponse.js index 443bbb3ef4..beb7f60bb4 100644 --- a/lib/services/datafactoryManagement/lib/models/pipelineRunQueryResponse.js +++ b/lib/services/datafactoryManagement/lib/models/pipelineRunQueryResponse.js @@ -50,6 +50,18 @@ class PipelineRunQueryResponse { serializedName: 'PipelineRunElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'PipelineRun' } } diff --git a/lib/services/datafactoryManagement/lib/models/polybaseSettings.js b/lib/services/datafactoryManagement/lib/models/polybaseSettings.js index de0a0e338f..0546c26e30 100644 --- a/lib/services/datafactoryManagement/lib/models/polybaseSettings.js +++ b/lib/services/datafactoryManagement/lib/models/polybaseSettings.js @@ -45,6 +45,18 @@ class PolybaseSettings { serializedName: 'PolybaseSettings', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'PolybaseSettings', modelProperties: { rejectType: { diff --git a/lib/services/datafactoryManagement/lib/models/postgreSqlLinkedService.js b/lib/services/datafactoryManagement/lib/models/postgreSqlLinkedService.js index d14737f0d2..0f62b51576 100644 --- a/lib/services/datafactoryManagement/lib/models/postgreSqlLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/postgreSqlLinkedService.js @@ -20,16 +20,8 @@ const models = require('./index'); class PostgreSqlLinkedService extends models['LinkedService'] { /** * Create a PostgreSqlLinkedService. - * @member {object} server Server name for connection. Type: string (or - * Expression with resultType string). - * @member {object} database Database name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). - * @member {object} [username] Username for authentication. Type: string (or - * Expression with resultType string). - * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @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). @@ -50,6 +42,11 @@ class PostgreSqlLinkedService extends models['LinkedService'] { serializedName: 'PostgreSql', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'PostgreSqlLinkedService', modelProperties: { connectVia: { @@ -67,47 +64,54 @@ class PostgreSqlLinkedService extends models['LinkedService'] { name: 'String' } }, - type: { - required: true, - serializedName: 'type', - type: { - name: 'String' - } - }, - server: { - required: true, - serializedName: 'typeProperties.server', - type: { - name: 'Object' - } - }, - database: { - required: true, - serializedName: 'typeProperties.database', + parameters: { + required: false, + serializedName: 'parameters', type: { - name: 'Object' + name: 'Dictionary', + value: { + required: false, + serializedName: 'ParameterSpecificationElementType', + type: { + name: 'Composite', + className: 'ParameterSpecification' + } + } } }, - schema: { + annotations: { required: false, - serializedName: 'typeProperties.schema', + serializedName: 'annotations', type: { - name: 'Object' + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } } }, - username: { - required: false, - serializedName: 'typeProperties.username', + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, type: { - name: 'Object' + name: 'String' } }, - password: { - required: false, - serializedName: 'typeProperties.password', + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/prestoLinkedService.js b/lib/services/datafactoryManagement/lib/models/prestoLinkedService.js index 9624170213..83b87cc817 100644 --- a/lib/services/datafactoryManagement/lib/models/prestoLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/prestoLinkedService.js @@ -72,6 +72,11 @@ class PrestoLinkedService extends models['LinkedService'] { serializedName: 'Presto', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'PrestoLinkedService', modelProperties: { connectVia: { @@ -89,9 +94,39 @@ class PrestoLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js index 04e1a0cf55..13fbeedffe 100644 --- a/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js @@ -37,6 +37,11 @@ class PrestoObjectDataset extends models['Dataset'] { serializedName: 'PrestoObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'PrestoObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class PrestoObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/prestoSource.js b/lib/services/datafactoryManagement/lib/models/prestoSource.js index d129ed1be6..d0c0f706e6 100644 --- a/lib/services/datafactoryManagement/lib/models/prestoSource.js +++ b/lib/services/datafactoryManagement/lib/models/prestoSource.js @@ -39,6 +39,11 @@ class PrestoSource extends models['CopySource'] { serializedName: 'PrestoSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'PrestoSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class PrestoSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/quickBooksLinkedService.js b/lib/services/datafactoryManagement/lib/models/quickBooksLinkedService.js index 3bb6d3b708..9d5703d391 100644 --- a/lib/services/datafactoryManagement/lib/models/quickBooksLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/quickBooksLinkedService.js @@ -52,6 +52,11 @@ class QuickBooksLinkedService extends models['LinkedService'] { serializedName: 'QuickBooks', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'QuickBooksLinkedService', modelProperties: { connectVia: { @@ -69,9 +74,39 @@ class QuickBooksLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js b/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js index 74e9d5f24e..aaa529aab4 100644 --- a/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js @@ -37,6 +37,11 @@ class QuickBooksObjectDataset extends models['Dataset'] { serializedName: 'QuickBooksObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'QuickBooksObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class QuickBooksObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/quickBooksSource.js b/lib/services/datafactoryManagement/lib/models/quickBooksSource.js index b97503b997..28c6f40def 100644 --- a/lib/services/datafactoryManagement/lib/models/quickBooksSource.js +++ b/lib/services/datafactoryManagement/lib/models/quickBooksSource.js @@ -39,6 +39,11 @@ class QuickBooksSource extends models['CopySource'] { serializedName: 'QuickBooksSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'QuickBooksSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class QuickBooksSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/recurrenceSchedule.js b/lib/services/datafactoryManagement/lib/models/recurrenceSchedule.js index 2348d2e38f..ecafc6daf6 100644 --- a/lib/services/datafactoryManagement/lib/models/recurrenceSchedule.js +++ b/lib/services/datafactoryManagement/lib/models/recurrenceSchedule.js @@ -40,6 +40,18 @@ class RecurrenceSchedule { serializedName: 'RecurrenceSchedule', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'RecurrenceSchedule', modelProperties: { minutes: { @@ -109,6 +121,18 @@ class RecurrenceSchedule { serializedName: 'RecurrenceScheduleOccurrenceElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'RecurrenceScheduleOccurrence' } } diff --git a/lib/services/datafactoryManagement/lib/models/recurrenceScheduleOccurrence.js b/lib/services/datafactoryManagement/lib/models/recurrenceScheduleOccurrence.js index f1d15b7d08..ae8c948ff3 100644 --- a/lib/services/datafactoryManagement/lib/models/recurrenceScheduleOccurrence.js +++ b/lib/services/datafactoryManagement/lib/models/recurrenceScheduleOccurrence.js @@ -37,6 +37,18 @@ class RecurrenceScheduleOccurrence { serializedName: 'RecurrenceScheduleOccurrence', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'RecurrenceScheduleOccurrence', modelProperties: { day: { diff --git a/lib/services/datafactoryManagement/lib/models/redirectIncompatibleRowSettings.js b/lib/services/datafactoryManagement/lib/models/redirectIncompatibleRowSettings.js index 8e27489a60..ef85230631 100644 --- a/lib/services/datafactoryManagement/lib/models/redirectIncompatibleRowSettings.js +++ b/lib/services/datafactoryManagement/lib/models/redirectIncompatibleRowSettings.js @@ -39,6 +39,18 @@ class RedirectIncompatibleRowSettings { serializedName: 'RedirectIncompatibleRowSettings', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'RedirectIncompatibleRowSettings', modelProperties: { linkedServiceName: { diff --git a/lib/services/datafactoryManagement/lib/models/redshiftUnloadSettings.js b/lib/services/datafactoryManagement/lib/models/redshiftUnloadSettings.js index 8838ec05d2..d21c28bc7a 100644 --- a/lib/services/datafactoryManagement/lib/models/redshiftUnloadSettings.js +++ b/lib/services/datafactoryManagement/lib/models/redshiftUnloadSettings.js @@ -27,6 +27,8 @@ class RedshiftUnloadSettings { * Amazon Redshift source. * @member {string} [s3LinkedServiceName.referenceName] Reference * LinkedService name. + * @member {object} [s3LinkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} bucketName The bucket of the interim Amazon S3 which will * be used to store the unloaded data from Amazon Redshift source. The bucket * must be in the same region as the Amazon Redshift source. Type: string (or diff --git a/lib/services/datafactoryManagement/lib/models/relationalSource.js b/lib/services/datafactoryManagement/lib/models/relationalSource.js index 44e5eadaf7..05de4df076 100644 --- a/lib/services/datafactoryManagement/lib/models/relationalSource.js +++ b/lib/services/datafactoryManagement/lib/models/relationalSource.js @@ -39,6 +39,11 @@ class RelationalSource extends models['CopySource'] { serializedName: 'RelationalSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'RelationalSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class RelationalSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js b/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js index 5d5db6ebf9..8066e1c13b 100644 --- a/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js @@ -39,6 +39,11 @@ class RelationalTableDataset extends models['Dataset'] { serializedName: 'RelationalTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'RelationalTableDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class RelationalTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js b/lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js new file mode 100644 index 0000000000..55392c698b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js @@ -0,0 +1,52 @@ +/* + * 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 package location. + * + */ +class SSISPackageLocation { + /** + * Create a SSISPackageLocation. + * @member {string} packagePath The SSIS package path. + */ + constructor() { + } + + /** + * Defines the metadata of SSISPackageLocation + * + * @returns {object} metadata of SSISPackageLocation + * + */ + mapper() { + return { + required: false, + serializedName: 'SSISPackageLocation', + type: { + name: 'Composite', + className: 'SSISPackageLocation', + modelProperties: { + packagePath: { + required: true, + serializedName: 'packagePath', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SSISPackageLocation; diff --git a/lib/services/datafactoryManagement/lib/models/salesforceLinkedService.js b/lib/services/datafactoryManagement/lib/models/salesforceLinkedService.js index 3723352276..4ac04f20ac 100644 --- a/lib/services/datafactoryManagement/lib/models/salesforceLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/salesforceLinkedService.js @@ -53,6 +53,11 @@ class SalesforceLinkedService extends models['LinkedService'] { serializedName: 'Salesforce', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SalesforceLinkedService', modelProperties: { connectVia: { @@ -70,9 +75,39 @@ class SalesforceLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudLinkedService.js b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudLinkedService.js new file mode 100644 index 0000000000..fec1c08d77 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudLinkedService.js @@ -0,0 +1,173 @@ +/* + * 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'); + +/** + * Salesforce Marketing Cloud linked service. + * + * @extends models['LinkedService'] + */ +class SalesforceMarketingCloudLinkedService extends models['LinkedService'] { + /** + * Create a SalesforceMarketingCloudLinkedService. + * @member {object} clientId The client ID associated with the Salesforce + * Marketing Cloud application. Type: string (or Expression with resultType + * string). + * @member {object} [clientSecret] The client secret associated with the + * Salesforce Marketing Cloud application. Type: string (or Expression with + * resultType string). + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. Type: + * boolean (or Expression with resultType boolean). + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. Type: boolean (or + * Expression with resultType boolean). + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. Type: boolean (or Expression with resultType boolean). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceMarketingCloudLinkedService + * + * @returns {object} metadata of SalesforceMarketingCloudLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceMarketingCloud', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SalesforceMarketingCloudLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SalesforceMarketingCloudLinkedService; diff --git a/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js new file mode 100644 index 0000000000..10d315fa5b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Salesforce Marketing Cloud dataset. + * + * @extends models['Dataset'] + */ +class SalesforceMarketingCloudObjectDataset extends models['Dataset'] { + /** + * Create a SalesforceMarketingCloudObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceMarketingCloudObjectDataset + * + * @returns {object} metadata of SalesforceMarketingCloudObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceMarketingCloudObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SalesforceMarketingCloudObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = SalesforceMarketingCloudObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudSource.js b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudSource.js new file mode 100644 index 0000000000..91b7b84bb9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Salesforce Marketing Cloud source. + * + * @extends models['CopySource'] + */ +class SalesforceMarketingCloudSource extends models['CopySource'] { + /** + * Create a SalesforceMarketingCloudSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceMarketingCloudSource + * + * @returns {object} metadata of SalesforceMarketingCloudSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceMarketingCloudSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SalesforceMarketingCloudSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SalesforceMarketingCloudSource; diff --git a/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js b/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js index fd4fcf82e6..24403a0ef0 100644 --- a/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js @@ -39,6 +39,11 @@ class SalesforceObjectDataset extends models['Dataset'] { serializedName: 'SalesforceObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'SalesforceObjectDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class SalesforceObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/salesforceSink.js b/lib/services/datafactoryManagement/lib/models/salesforceSink.js index 7b57057005..c790becb2a 100644 --- a/lib/services/datafactoryManagement/lib/models/salesforceSink.js +++ b/lib/services/datafactoryManagement/lib/models/salesforceSink.js @@ -50,6 +50,11 @@ class SalesforceSink extends models['CopySink'] { serializedName: 'SalesforceSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'SalesforceSink', modelProperties: { writeBatchSize: { @@ -83,6 +88,7 @@ class SalesforceSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/salesforceSource.js b/lib/services/datafactoryManagement/lib/models/salesforceSource.js index a25d100871..579ca4467e 100644 --- a/lib/services/datafactoryManagement/lib/models/salesforceSource.js +++ b/lib/services/datafactoryManagement/lib/models/salesforceSource.js @@ -22,6 +22,8 @@ class SalesforceSource extends models['CopySource'] { * Create a SalesforceSource. * @member {object} [query] Database query. Type: string (or Expression with * resultType string). + * @member {string} [readBehavior] The read behavior for the operation. + * Default is Query. Possible values include: 'Query', 'QueryAll' */ constructor() { super(); @@ -39,6 +41,11 @@ class SalesforceSource extends models['CopySource'] { serializedName: 'SalesforceSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'SalesforceSource', modelProperties: { sourceRetryCount: { @@ -58,6 +65,7 @@ class SalesforceSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -68,6 +76,13 @@ class SalesforceSource extends models['CopySource'] { type: { name: 'Object' } + }, + readBehavior: { + required: false, + serializedName: 'readBehavior', + type: { + name: 'String' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/sapBWLinkedService.js b/lib/services/datafactoryManagement/lib/models/sapBWLinkedService.js index 0eb1d51ea7..a4574122b2 100644 --- a/lib/services/datafactoryManagement/lib/models/sapBWLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/sapBWLinkedService.js @@ -31,7 +31,7 @@ class SapBWLinkedService extends models['LinkedService'] { * @member {object} [userName] Username to access the SAP BW server. Type: * string (or Expression with resultType string). * @member {object} [password] Password to access the SAP BW server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -52,6 +52,11 @@ class SapBWLinkedService extends models['LinkedService'] { serializedName: 'SapBW', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SapBWLinkedService', modelProperties: { connectVia: { @@ -69,9 +74,39 @@ class SapBWLinkedService 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' } @@ -109,7 +144,12 @@ class SapBWLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerLinkedService.js b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerLinkedService.js index 161b198207..909a12d1f1 100644 --- a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerLinkedService.js @@ -26,7 +26,7 @@ class SapCloudForCustomerLinkedService extends models['LinkedService'] { * @member {object} [username] The username for Basic authentication. Type: * string (or Expression with resultType string). * @member {object} [password] The password for Basic authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @member {object} [encryptedCredential] The encrypted credential used for * authentication. Credentials are encrypted using the integration runtime * credential manager. Either encryptedCredential or username/password must @@ -48,6 +48,11 @@ class SapCloudForCustomerLinkedService extends models['LinkedService'] { serializedName: 'SapCloudForCustomer', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SapCloudForCustomerLinkedService', modelProperties: { connectVia: { @@ -65,9 +70,39 @@ class SapCloudForCustomerLinkedService 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' } @@ -91,7 +126,12 @@ class SapCloudForCustomerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js index 272f40139a..9470a76351 100644 --- a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js +++ b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js @@ -39,6 +39,11 @@ class SapCloudForCustomerResourceDataset extends models['Dataset'] { serializedName: 'SapCloudForCustomerResource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'SapCloudForCustomerResourceDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class SapCloudForCustomerResourceDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSink.js b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSink.js index c8d7aea533..354c0552ac 100644 --- a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSink.js +++ b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSink.js @@ -39,6 +39,11 @@ class SapCloudForCustomerSink extends models['CopySink'] { serializedName: 'SapCloudForCustomerSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'SapCloudForCustomerSink', modelProperties: { writeBatchSize: { @@ -72,6 +77,7 @@ class SapCloudForCustomerSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSource.js b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSource.js index 648d9c3972..84c60656b8 100644 --- a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSource.js +++ b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerSource.js @@ -39,6 +39,11 @@ class SapCloudForCustomerSource extends models['CopySource'] { serializedName: 'SapCloudForCustomerSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'SapCloudForCustomerSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class SapCloudForCustomerSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/sapEccLinkedService.js b/lib/services/datafactoryManagement/lib/models/sapEccLinkedService.js new file mode 100644 index 0000000000..4bd036ec0a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sapEccLinkedService.js @@ -0,0 +1,150 @@ +/* + * 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'); + +/** + * Linked service for SAP ERP Central Component(SAP ECC). + * + * @extends models['LinkedService'] + */ +class SapEccLinkedService extends models['LinkedService'] { + /** + * Create a SapEccLinkedService. + * @member {string} url The URL of SAP ECC OData API. For example, + * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or + * Expression with resultType string). + * @member {string} [username] The username for Basic authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {string} [encryptedCredential] The encrypted credential used for + * authentication. Credentials are encrypted using the integration runtime + * credential manager. Either encryptedCredential or username/password must + * be provided. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapEccLinkedService + * + * @returns {object} metadata of SapEccLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SapEcc', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SapEccLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'String' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapEccLinkedService; diff --git a/lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js b/lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js new file mode 100644 index 0000000000..6854b02883 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The path of the SAP ECC OData entity. + * + * @extends models['Dataset'] + */ +class SapEccResourceDataset extends models['Dataset'] { + /** + * Create a SapEccResourceDataset. + * @member {string} path The path of the SAP ECC OData entity. Type: string + * (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapEccResourceDataset + * + * @returns {object} metadata of SapEccResourceDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SapEccResource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SapEccResourceDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + path: { + required: true, + serializedName: 'typeProperties.path', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapEccResourceDataset; diff --git a/lib/services/datafactoryManagement/lib/models/sapEccSource.js b/lib/services/datafactoryManagement/lib/models/sapEccSource.js new file mode 100644 index 0000000000..0c03f52ef3 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sapEccSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity source for SAP ECC source. + * + * @extends models['CopySource'] + */ +class SapEccSource extends models['CopySource'] { + /** + * Create a SapEccSource. + * @member {string} [query] SAP ECC OData query. For example, "$top=1". Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapEccSource + * + * @returns {object} metadata of SapEccSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SapEccSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SapEccSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapEccSource; diff --git a/lib/services/datafactoryManagement/lib/models/sapHanaLinkedService.js b/lib/services/datafactoryManagement/lib/models/sapHanaLinkedService.js index 182df253d0..32236e2d52 100644 --- a/lib/services/datafactoryManagement/lib/models/sapHanaLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/sapHanaLinkedService.js @@ -28,7 +28,7 @@ class SapHanaLinkedService extends models['LinkedService'] { * @member {object} [userName] Username to access the SAP HANA server. Type: * string (or Expression with resultType string). * @member {object} [password] Password to access the SAP HANA server. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -49,6 +49,11 @@ class SapHanaLinkedService extends models['LinkedService'] { serializedName: 'SapHana', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SapHanaLinkedService', modelProperties: { connectVia: { @@ -66,9 +71,39 @@ class SapHanaLinkedService 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' } @@ -99,7 +134,12 @@ class SapHanaLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/scheduleTrigger.js b/lib/services/datafactoryManagement/lib/models/scheduleTrigger.js index ea8ea2e8ac..185df95067 100644 --- a/lib/services/datafactoryManagement/lib/models/scheduleTrigger.js +++ b/lib/services/datafactoryManagement/lib/models/scheduleTrigger.js @@ -20,7 +20,7 @@ const models = require('./index'); class ScheduleTrigger extends models['MultiplePipelineTrigger'] { /** * Create a ScheduleTrigger. - * @member {object} [recurrence] Recurrence schedule configuration. + * @member {object} recurrence Recurrence schedule configuration. * @member {string} [recurrence.frequency] The frequency. Possible values * include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' * @member {number} [recurrence.interval] The interval. @@ -51,6 +51,11 @@ class ScheduleTrigger extends models['MultiplePipelineTrigger'] { serializedName: 'ScheduleTrigger', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', className: 'ScheduleTrigger', modelProperties: { description: { @@ -71,6 +76,7 @@ class ScheduleTrigger extends models['MultiplePipelineTrigger'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -91,10 +97,22 @@ class ScheduleTrigger extends models['MultiplePipelineTrigger'] { } }, recurrence: { - required: false, + required: true, serializedName: 'typeProperties.recurrence', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ScheduleTriggerRecurrence' } } diff --git a/lib/services/datafactoryManagement/lib/models/scheduleTriggerRecurrence.js b/lib/services/datafactoryManagement/lib/models/scheduleTriggerRecurrence.js index 9ada30042a..1150426250 100644 --- a/lib/services/datafactoryManagement/lib/models/scheduleTriggerRecurrence.js +++ b/lib/services/datafactoryManagement/lib/models/scheduleTriggerRecurrence.js @@ -47,6 +47,18 @@ class ScheduleTriggerRecurrence { serializedName: 'ScheduleTriggerRecurrence', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ScheduleTriggerRecurrence', modelProperties: { frequency: { @@ -89,6 +101,18 @@ class ScheduleTriggerRecurrence { serializedName: 'schedule', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'RecurrenceSchedule' } } diff --git a/lib/services/datafactoryManagement/lib/models/secretBase.js b/lib/services/datafactoryManagement/lib/models/secretBase.js index 8d64c06675..58ab3a67a2 100644 --- a/lib/services/datafactoryManagement/lib/models/secretBase.js +++ b/lib/services/datafactoryManagement/lib/models/secretBase.js @@ -44,6 +44,7 @@ class SecretBase { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/secureString.js b/lib/services/datafactoryManagement/lib/models/secureString.js index 5018bedcf8..1df97aaa80 100644 --- a/lib/services/datafactoryManagement/lib/models/secureString.js +++ b/lib/services/datafactoryManagement/lib/models/secureString.js @@ -39,11 +39,17 @@ class SecureString extends models['SecretBase'] { serializedName: 'SecureString', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', className: 'SecureString', modelProperties: { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntime.js b/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntime.js index 57a50ad5b2..eda9dc4d39 100644 --- a/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntime.js +++ b/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntime.js @@ -20,6 +20,8 @@ const models = require('./index'); class SelfHostedIntegrationRuntime extends models['IntegrationRuntime'] { /** * Create a SelfHostedIntegrationRuntime. + * @member {object} [linkedInfo] + * @member {string} [linkedInfo.authorizationType] Polymorphic Discriminator */ constructor() { super(); @@ -37,6 +39,11 @@ class SelfHostedIntegrationRuntime extends models['IntegrationRuntime'] { serializedName: 'SelfHosted', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntime', className: 'SelfHostedIntegrationRuntime', modelProperties: { description: { @@ -49,9 +56,23 @@ class SelfHostedIntegrationRuntime extends models['IntegrationRuntime'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } + }, + linkedInfo: { + required: false, + serializedName: 'typeProperties.linkedInfo', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeProperties' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeNode.js b/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeNode.js index e86bca9fd5..37fdfd315a 100644 --- a/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeNode.js +++ b/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeNode.js @@ -66,6 +66,18 @@ class SelfHostedIntegrationRuntimeNode { serializedName: 'SelfHostedIntegrationRuntimeNode', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'SelfHostedIntegrationRuntimeNode', modelProperties: { nodeName: { diff --git a/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeStatus.js b/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeStatus.js index 55f93f1b7c..558acd3d64 100644 --- a/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeStatus.js +++ b/lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeStatus.js @@ -42,6 +42,10 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu * integration runtime backend service. * @member {string} [autoUpdate] Whether Self-hosted integration runtime auto * update has been turned on. Possible values include: 'On', 'Off' + * @member {string} [versionStatus] Status of the integration runtime + * version. + * @member {array} [links] The list of linked integration runtimes that are + * created to share with this integration runtime. */ constructor() { super(); @@ -59,8 +63,21 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu serializedName: 'SelfHosted', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntimeStatus', className: 'SelfHostedIntegrationRuntimeStatus', modelProperties: { + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, state: { required: false, readOnly: true, @@ -72,6 +89,7 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -118,6 +136,18 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu serializedName: 'SelfHostedIntegrationRuntimeNodeElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'SelfHostedIntegrationRuntimeNode' } } @@ -184,6 +214,29 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu type: { name: 'String' } + }, + versionStatus: { + required: false, + readOnly: true, + serializedName: 'typeProperties.versionStatus', + type: { + name: 'String' + } + }, + links: { + required: false, + serializedName: 'typeProperties.links', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedIntegrationRuntimeElementType', + type: { + name: 'Composite', + className: 'LinkedIntegrationRuntime' + } + } + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/serviceNowLinkedService.js b/lib/services/datafactoryManagement/lib/models/serviceNowLinkedService.js index 27caf94daa..8dea5adcfb 100644 --- a/lib/services/datafactoryManagement/lib/models/serviceNowLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/serviceNowLinkedService.js @@ -61,6 +61,11 @@ class ServiceNowLinkedService extends models['LinkedService'] { serializedName: 'ServiceNow', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'ServiceNowLinkedService', modelProperties: { connectVia: { @@ -78,9 +83,39 @@ class ServiceNowLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js b/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js index 6b6e3c359f..500f47fd33 100644 --- a/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js @@ -37,6 +37,11 @@ class ServiceNowObjectDataset extends models['Dataset'] { serializedName: 'ServiceNowObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'ServiceNowObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class ServiceNowObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/serviceNowSource.js b/lib/services/datafactoryManagement/lib/models/serviceNowSource.js index d64038cb9f..1c57739010 100644 --- a/lib/services/datafactoryManagement/lib/models/serviceNowSource.js +++ b/lib/services/datafactoryManagement/lib/models/serviceNowSource.js @@ -39,6 +39,11 @@ class ServiceNowSource extends models['CopySource'] { serializedName: 'ServiceNowSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'ServiceNowSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class ServiceNowSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/sftpServerLinkedService.js b/lib/services/datafactoryManagement/lib/models/sftpServerLinkedService.js index 7198fd82dd..3c705ccf50 100644 --- a/lib/services/datafactoryManagement/lib/models/sftpServerLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/sftpServerLinkedService.js @@ -32,7 +32,7 @@ class SftpServerLinkedService extends models['LinkedService'] { * server. Type: string (or Expression with resultType string). * @member {object} [password] Password to logon the SFTP server for Basic * authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -45,10 +45,10 @@ class SftpServerLinkedService extends models['LinkedService'] { * content for SshPublicKey authentication. For on-premises copy with * SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent * should be specified. SSH private key should be OpenSSH format. - * @member {string} [privateKeyContent.value] Value of secure string. + * @member {string} [privateKeyContent.type] Polymorphic Discriminator * @member {object} [passPhrase] The password to decrypt the SSH private key * if the SSH private key is encrypted. - * @member {string} [passPhrase.value] Value of secure string. + * @member {string} [passPhrase.type] Polymorphic Discriminator * @member {object} [skipHostKeyValidation] If true, skip the SSH host key * validation. Default value is false. Type: boolean (or Expression with * resultType boolean). @@ -72,6 +72,11 @@ class SftpServerLinkedService extends models['LinkedService'] { serializedName: 'Sftp', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SftpServerLinkedService', modelProperties: { connectVia: { @@ -89,9 +94,39 @@ class SftpServerLinkedService 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' } @@ -129,7 +164,12 @@ class SftpServerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { @@ -151,7 +191,12 @@ class SftpServerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.privateKeyContent', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, passPhrase: { @@ -159,7 +204,12 @@ class SftpServerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.passPhrase', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, skipHostKeyValidation: { diff --git a/lib/services/datafactoryManagement/lib/models/shopifyLinkedService.js b/lib/services/datafactoryManagement/lib/models/shopifyLinkedService.js index a70e6ebe89..f8156cac8c 100644 --- a/lib/services/datafactoryManagement/lib/models/shopifyLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/shopifyLinkedService.js @@ -53,6 +53,11 @@ class ShopifyLinkedService extends models['LinkedService'] { serializedName: 'Shopify', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'ShopifyLinkedService', modelProperties: { connectVia: { @@ -70,9 +75,39 @@ class ShopifyLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js b/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js index daa6a28d5c..3a37565016 100644 --- a/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js @@ -37,6 +37,11 @@ class ShopifyObjectDataset extends models['Dataset'] { serializedName: 'ShopifyObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'ShopifyObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class ShopifyObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/shopifySource.js b/lib/services/datafactoryManagement/lib/models/shopifySource.js index 294e17ad87..f44e8bc57d 100644 --- a/lib/services/datafactoryManagement/lib/models/shopifySource.js +++ b/lib/services/datafactoryManagement/lib/models/shopifySource.js @@ -39,6 +39,11 @@ class ShopifySource extends models['CopySource'] { serializedName: 'ShopifySource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'ShopifySource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class ShopifySource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/sparkLinkedService.js b/lib/services/datafactoryManagement/lib/models/sparkLinkedService.js index 48bb3d3b67..e5c4fc6e03 100644 --- a/lib/services/datafactoryManagement/lib/models/sparkLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/sparkLinkedService.js @@ -72,6 +72,11 @@ class SparkLinkedService extends models['LinkedService'] { serializedName: 'Spark', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SparkLinkedService', modelProperties: { connectVia: { @@ -89,9 +94,39 @@ class SparkLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js b/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js index a9d3ac082b..d003139a20 100644 --- a/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js @@ -37,6 +37,11 @@ class SparkObjectDataset extends models['Dataset'] { serializedName: 'SparkObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'SparkObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class SparkObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/sparkSource.js b/lib/services/datafactoryManagement/lib/models/sparkSource.js index aef04e65e5..13b2ab636a 100644 --- a/lib/services/datafactoryManagement/lib/models/sparkSource.js +++ b/lib/services/datafactoryManagement/lib/models/sparkSource.js @@ -39,6 +39,11 @@ class SparkSource extends models['CopySource'] { serializedName: 'SparkSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'SparkSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class SparkSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/sqlDWSink.js b/lib/services/datafactoryManagement/lib/models/sqlDWSink.js index ade52fffde..de761daab0 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlDWSink.js +++ b/lib/services/datafactoryManagement/lib/models/sqlDWSink.js @@ -56,6 +56,11 @@ class SqlDWSink extends models['CopySink'] { serializedName: 'SqlDWSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'SqlDWSink', modelProperties: { writeBatchSize: { @@ -89,6 +94,7 @@ class SqlDWSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -112,6 +118,18 @@ class SqlDWSink extends models['CopySink'] { serializedName: 'polyBaseSettings', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'PolybaseSettings' } } diff --git a/lib/services/datafactoryManagement/lib/models/sqlDWSource.js b/lib/services/datafactoryManagement/lib/models/sqlDWSource.js index c09b1f01bb..97aef33b9a 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlDWSource.js +++ b/lib/services/datafactoryManagement/lib/models/sqlDWSource.js @@ -47,6 +47,11 @@ class SqlDWSource extends models['CopySource'] { serializedName: 'SqlDWSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'SqlDWSource', modelProperties: { sourceRetryCount: { @@ -66,6 +71,7 @@ class SqlDWSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/sqlServerLinkedService.js b/lib/services/datafactoryManagement/lib/models/sqlServerLinkedService.js index d1c0d7fc6c..04c09187e8 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlServerLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/sqlServerLinkedService.js @@ -21,12 +21,12 @@ class SqlServerLinkedService extends models['LinkedService'] { /** * Create a SqlServerLinkedService. * @member {object} connectionString The connection string. - * @member {string} [connectionString.value] Value of secure string. + * @member {string} [connectionString.type] Polymorphic Discriminator * @member {object} [userName] The on-premises Windows authentication user * name. Type: string (or Expression with resultType string). * @member {object} [password] The on-premises Windows authentication * password. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -47,6 +47,11 @@ class SqlServerLinkedService extends models['LinkedService'] { serializedName: 'SqlServer', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SqlServerLinkedService', modelProperties: { connectVia: { @@ -64,9 +69,39 @@ class SqlServerLinkedService 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' } @@ -76,7 +111,12 @@ class SqlServerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.connectionString', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, userName: { @@ -91,7 +131,12 @@ class SqlServerLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/sqlServerStoredProcedureActivity.js b/lib/services/datafactoryManagement/lib/models/sqlServerStoredProcedureActivity.js index 303ffc71ed..fb1026ca4c 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlServerStoredProcedureActivity.js +++ b/lib/services/datafactoryManagement/lib/models/sqlServerStoredProcedureActivity.js @@ -42,6 +42,11 @@ class SqlServerStoredProcedureActivity extends models['ExecutionActivity'] { serializedName: 'SqlServerStoredProcedure', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'SqlServerStoredProcedureActivity', modelProperties: { name: { @@ -68,6 +73,18 @@ class SqlServerStoredProcedureActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -76,6 +93,7 @@ class SqlServerStoredProcedureActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -93,6 +111,18 @@ class SqlServerStoredProcedureActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js b/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js index 277cb42b70..1da4f37442 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js @@ -39,6 +39,11 @@ class SqlServerTableDataset extends models['Dataset'] { serializedName: 'SqlServerTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'SqlServerTableDataset', modelProperties: { description: { @@ -79,9 +84,24 @@ class SqlServerTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/sqlSink.js b/lib/services/datafactoryManagement/lib/models/sqlSink.js index d7036fbc3c..c4b1e68e30 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlSink.js +++ b/lib/services/datafactoryManagement/lib/models/sqlSink.js @@ -45,6 +45,11 @@ class SqlSink extends models['CopySink'] { serializedName: 'SqlSink', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', className: 'SqlSink', modelProperties: { writeBatchSize: { @@ -78,6 +83,7 @@ class SqlSink extends models['CopySink'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/sqlSource.js b/lib/services/datafactoryManagement/lib/models/sqlSource.js index f46789b5b3..6ce8bb1f6e 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlSource.js +++ b/lib/services/datafactoryManagement/lib/models/sqlSource.js @@ -45,6 +45,11 @@ class SqlSource extends models['CopySource'] { serializedName: 'SqlSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'SqlSource', modelProperties: { sourceRetryCount: { @@ -64,6 +69,7 @@ class SqlSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/squareLinkedService.js b/lib/services/datafactoryManagement/lib/models/squareLinkedService.js index 212c539a30..35c9de330d 100644 --- a/lib/services/datafactoryManagement/lib/models/squareLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/squareLinkedService.js @@ -57,6 +57,11 @@ class SquareLinkedService extends models['LinkedService'] { serializedName: 'Square', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SquareLinkedService', modelProperties: { connectVia: { @@ -74,9 +79,39 @@ class SquareLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js b/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js index d9e0aff92a..ded0362a73 100644 --- a/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js @@ -37,6 +37,11 @@ class SquareObjectDataset extends models['Dataset'] { serializedName: 'SquareObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'SquareObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class SquareObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/squareSource.js b/lib/services/datafactoryManagement/lib/models/squareSource.js index ace1bbdb21..b5286b6d34 100644 --- a/lib/services/datafactoryManagement/lib/models/squareSource.js +++ b/lib/services/datafactoryManagement/lib/models/squareSource.js @@ -39,6 +39,11 @@ class SquareSource extends models['CopySource'] { serializedName: 'SquareSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'SquareSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class SquareSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/stagingSettings.js b/lib/services/datafactoryManagement/lib/models/stagingSettings.js index 3c2a6909f9..ea31675ede 100644 --- a/lib/services/datafactoryManagement/lib/models/stagingSettings.js +++ b/lib/services/datafactoryManagement/lib/models/stagingSettings.js @@ -22,6 +22,8 @@ class StagingSettings { * @member {object} linkedServiceName Staging linked service reference. * @member {string} [linkedServiceName.referenceName] Reference LinkedService * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. * @member {object} [path] The path to storage for storing the interim data. * Type: string (or Expression with resultType string). * @member {object} [enableCompression] Specifies whether to use compression @@ -43,6 +45,18 @@ class StagingSettings { serializedName: 'StagingSettings', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'StagingSettings', modelProperties: { linkedServiceName: { diff --git a/lib/services/datafactoryManagement/lib/models/sybaseLinkedService.js b/lib/services/datafactoryManagement/lib/models/sybaseLinkedService.js index 177b299745..2328f3c040 100644 --- a/lib/services/datafactoryManagement/lib/models/sybaseLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/sybaseLinkedService.js @@ -31,7 +31,7 @@ class SybaseLinkedService extends models['LinkedService'] { * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -52,6 +52,11 @@ class SybaseLinkedService extends models['LinkedService'] { serializedName: 'Sybase', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'SybaseLinkedService', modelProperties: { connectVia: { @@ -69,9 +74,39 @@ class SybaseLinkedService 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' } @@ -116,7 +151,12 @@ class SybaseLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/tabularTranslator.js b/lib/services/datafactoryManagement/lib/models/tabularTranslator.js index dfdbf5479c..f04240d241 100644 --- a/lib/services/datafactoryManagement/lib/models/tabularTranslator.js +++ b/lib/services/datafactoryManagement/lib/models/tabularTranslator.js @@ -39,11 +39,17 @@ class TabularTranslator extends models['CopyTranslator'] { serializedName: 'TabularTranslator', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopyTranslator', className: 'TabularTranslator', modelProperties: { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/teradataLinkedService.js b/lib/services/datafactoryManagement/lib/models/teradataLinkedService.js index 6cf4c8ed28..cbf57161a4 100644 --- a/lib/services/datafactoryManagement/lib/models/teradataLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/teradataLinkedService.js @@ -22,14 +22,12 @@ class TeradataLinkedService extends models['LinkedService'] { * Create a TeradataLinkedService. * @member {object} server Server name for connection. Type: string (or * Expression with resultType string). - * @member {object} [schema] Schema name for connection. Type: string (or - * Expression with resultType string). * @member {string} [authenticationType] AuthenticationType to be used for * connection. Possible values include: 'Basic', 'Windows' * @member {object} [username] Username for authentication. Type: string (or * Expression with resultType string). * @member {object} [password] Password for authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator * @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). @@ -50,6 +48,11 @@ class TeradataLinkedService extends models['LinkedService'] { serializedName: 'Teradata', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'TeradataLinkedService', modelProperties: { connectVia: { @@ -67,9 +70,39 @@ class TeradataLinkedService 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' } @@ -81,13 +114,6 @@ class TeradataLinkedService extends models['LinkedService'] { name: 'Object' } }, - schema: { - required: false, - serializedName: 'typeProperties.schema', - type: { - name: 'Object' - } - }, authenticationType: { required: false, serializedName: 'typeProperties.authenticationType', @@ -107,7 +133,12 @@ class TeradataLinkedService extends models['LinkedService'] { serializedName: 'typeProperties.password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, encryptedCredential: { diff --git a/lib/services/datafactoryManagement/lib/models/textFormat.js b/lib/services/datafactoryManagement/lib/models/textFormat.js index 84f2af4ec5..4d04418829 100644 --- a/lib/services/datafactoryManagement/lib/models/textFormat.js +++ b/lib/services/datafactoryManagement/lib/models/textFormat.js @@ -63,6 +63,11 @@ class TextFormat extends models['DatasetStorageFormat'] { serializedName: 'TextFormat', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', className: 'TextFormat', modelProperties: { serializer: { @@ -82,6 +87,7 @@ class TextFormat extends models['DatasetStorageFormat'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/trigger.js b/lib/services/datafactoryManagement/lib/models/trigger.js index 12f7b0153b..2e67b58d0d 100644 --- a/lib/services/datafactoryManagement/lib/models/trigger.js +++ b/lib/services/datafactoryManagement/lib/models/trigger.js @@ -39,6 +39,18 @@ class Trigger { serializedName: 'Trigger', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' @@ -64,6 +76,7 @@ class Trigger { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/triggerResource.js b/lib/services/datafactoryManagement/lib/models/triggerResource.js index c77da9e17d..3bc301bee9 100644 --- a/lib/services/datafactoryManagement/lib/models/triggerResource.js +++ b/lib/services/datafactoryManagement/lib/models/triggerResource.js @@ -82,6 +82,18 @@ class TriggerResource extends models['SubResource'] { serializedName: 'properties', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/triggerRun.js b/lib/services/datafactoryManagement/lib/models/triggerRun.js index 9b9469c508..6bd623442b 100644 --- a/lib/services/datafactoryManagement/lib/models/triggerRun.js +++ b/lib/services/datafactoryManagement/lib/models/triggerRun.js @@ -44,6 +44,18 @@ class TriggerRun { serializedName: 'TriggerRun', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'TriggerRun', modelProperties: { triggerRunId: { diff --git a/lib/services/datafactoryManagement/lib/models/triggerRunListResponse.js b/lib/services/datafactoryManagement/lib/models/triggerRunListResponse.js index 0bb456419b..2958d06148 100644 --- a/lib/services/datafactoryManagement/lib/models/triggerRunListResponse.js +++ b/lib/services/datafactoryManagement/lib/models/triggerRunListResponse.js @@ -47,6 +47,18 @@ class TriggerRunListResponse extends Array { serializedName: 'TriggerRunElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'TriggerRun' } } diff --git a/lib/services/datafactoryManagement/lib/models/tumblingWindowTrigger.js b/lib/services/datafactoryManagement/lib/models/tumblingWindowTrigger.js index 575febb9f6..306cbcf77e 100644 --- a/lib/services/datafactoryManagement/lib/models/tumblingWindowTrigger.js +++ b/lib/services/datafactoryManagement/lib/models/tumblingWindowTrigger.js @@ -29,11 +29,11 @@ class TumblingWindowTrigger extends models['Trigger'] { * Reference pipeline name. * @member {string} [pipelineProperty.pipelineReference.name] Reference name. * @member {object} [pipelineProperty.parameters] Pipeline parameters. - * @member {string} [frequency] The frequency of the time windows. Possible + * @member {string} frequency The frequency of the time windows. Possible * values include: 'Minute', 'Hour' - * @member {number} [interval] The interval of the time windows. The minimum + * @member {number} interval The interval of the time windows. The minimum * interval allowed is 15 Minutes. - * @member {date} [startTime] The start time for the time period for the + * @member {date} startTime The start time for the time period for the * trigger during which events are fired for windows that are ready. Only UTC * time is currently supported. * @member {date} [endTime] The end time for the time period for the trigger @@ -43,7 +43,7 @@ class TumblingWindowTrigger extends models['Trigger'] { * time before triggering new run. It doesn't alter window start and end * time. The default is 0. Type: string (or Expression with resultType * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * @member {number} [maxConcurrency] The max number of parallel time windows + * @member {number} maxConcurrency The max number of parallel time windows * (ready for execution) for which a new run is triggered. * @member {object} [retryPolicy] Retry policy that will be applied for * failed pipeline runs. @@ -69,6 +69,11 @@ class TumblingWindowTrigger extends models['Trigger'] { serializedName: 'TumblingWindowTrigger', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', className: 'TumblingWindowTrigger', modelProperties: { description: { @@ -89,6 +94,7 @@ class TumblingWindowTrigger extends models['Trigger'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -103,21 +109,21 @@ class TumblingWindowTrigger extends models['Trigger'] { } }, frequency: { - required: false, + required: true, serializedName: 'typeProperties.frequency', type: { name: 'String' } }, interval: { - required: false, + required: true, serializedName: 'typeProperties.interval', type: { name: 'Number' } }, startTime: { - required: false, + required: true, serializedName: 'typeProperties.startTime', type: { name: 'DateTime' @@ -138,7 +144,7 @@ class TumblingWindowTrigger extends models['Trigger'] { } }, maxConcurrency: { - required: false, + required: true, serializedName: 'typeProperties.maxConcurrency', constraints: { InclusiveMaximum: 50, diff --git a/lib/services/datafactoryManagement/lib/models/untilActivity.js b/lib/services/datafactoryManagement/lib/models/untilActivity.js index 9130586a1c..a67e99583c 100644 --- a/lib/services/datafactoryManagement/lib/models/untilActivity.js +++ b/lib/services/datafactoryManagement/lib/models/untilActivity.js @@ -48,6 +48,11 @@ class UntilActivity extends models['ControlActivity'] { serializedName: 'Until', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'UntilActivity', modelProperties: { name: { @@ -74,6 +79,18 @@ class UntilActivity extends models['ControlActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -82,6 +99,7 @@ class UntilActivity extends models['ControlActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -112,6 +130,18 @@ class UntilActivity extends models['ControlActivity'] { serializedName: 'ActivityElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' diff --git a/lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeNodeRequest.js b/lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeNodeRequest.js new file mode 100644 index 0000000000..93fc260ce9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeNodeRequest.js @@ -0,0 +1,57 @@ +/* + * 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'; + +/** + * Update integration runtime node request. + * + */ +class UpdateIntegrationRuntimeNodeRequest { + /** + * Create a UpdateIntegrationRuntimeNodeRequest. + * @member {number} [concurrentJobsLimit] The number of concurrent jobs + * permitted to run on the integration runtime node. Values between 1 and + * maxConcurrentJobs(inclusive) are allowed. + */ + constructor() { + } + + /** + * Defines the metadata of UpdateIntegrationRuntimeNodeRequest + * + * @returns {object} metadata of UpdateIntegrationRuntimeNodeRequest + * + */ + mapper() { + return { + required: false, + serializedName: 'UpdateIntegrationRuntimeNodeRequest', + type: { + name: 'Composite', + className: 'UpdateIntegrationRuntimeNodeRequest', + modelProperties: { + concurrentJobsLimit: { + required: false, + serializedName: 'concurrentJobsLimit', + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = UpdateIntegrationRuntimeNodeRequest; diff --git a/lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeRequest.js b/lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeRequest.js new file mode 100644 index 0000000000..79e67a30a8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/updateIntegrationRuntimeRequest.js @@ -0,0 +1,65 @@ +/* + * 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'; + +/** + * Update integration runtime request. + * + */ +class UpdateIntegrationRuntimeRequest { + /** + * Create a UpdateIntegrationRuntimeRequest. + * @member {string} [autoUpdate] Enables or disables the auto-update feature + * of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * @member {string} [updateDelayOffset] The time offset (in hours) in the + * day, e.g., PT03H is 3 hours. The integration runtime auto update will + * happen on that time. + */ + constructor() { + } + + /** + * Defines the metadata of UpdateIntegrationRuntimeRequest + * + * @returns {object} metadata of UpdateIntegrationRuntimeRequest + * + */ + mapper() { + return { + required: false, + serializedName: 'UpdateIntegrationRuntimeRequest', + type: { + name: 'Composite', + className: 'UpdateIntegrationRuntimeRequest', + modelProperties: { + autoUpdate: { + required: false, + serializedName: 'autoUpdate', + type: { + name: 'String' + } + }, + updateDelayOffset: { + required: false, + serializedName: 'updateDelayOffset', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = UpdateIntegrationRuntimeRequest; diff --git a/lib/services/datafactoryManagement/lib/models/verticaLinkedService.js b/lib/services/datafactoryManagement/lib/models/verticaLinkedService.js new file mode 100644 index 0000000000..e806eb9f98 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/verticaLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Vertica linked service. + * + * @extends models['LinkedService'] + */ +class VerticaLinkedService extends models['LinkedService'] { + /** + * Create a VerticaLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VerticaLinkedService + * + * @returns {object} metadata of VerticaLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Vertica', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'VerticaLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = VerticaLinkedService; diff --git a/lib/services/datafactoryManagement/lib/models/verticaSource.js b/lib/services/datafactoryManagement/lib/models/verticaSource.js new file mode 100644 index 0000000000..919aa3a877 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/verticaSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Vertica source. + * + * @extends models['CopySource'] + */ +class VerticaSource extends models['CopySource'] { + /** + * Create a VerticaSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VerticaSource + * + * @returns {object} metadata of VerticaSource + * + */ + mapper() { + return { + required: false, + serializedName: 'VerticaSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'VerticaSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = VerticaSource; diff --git a/lib/services/datafactoryManagement/lib/models/verticaTableDataset.js b/lib/services/datafactoryManagement/lib/models/verticaTableDataset.js new file mode 100644 index 0000000000..3b7bfeec60 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/verticaTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Vertica dataset. + * + * @extends models['Dataset'] + */ +class VerticaTableDataset extends models['Dataset'] { + /** + * Create a VerticaTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VerticaTableDataset + * + * @returns {object} metadata of VerticaTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'VerticaTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'VerticaTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = VerticaTableDataset; diff --git a/lib/services/datafactoryManagement/lib/models/waitActivity.js b/lib/services/datafactoryManagement/lib/models/waitActivity.js index 704cd12d7e..264f89cc3e 100644 --- a/lib/services/datafactoryManagement/lib/models/waitActivity.js +++ b/lib/services/datafactoryManagement/lib/models/waitActivity.js @@ -38,6 +38,11 @@ class WaitActivity extends models['ControlActivity'] { serializedName: 'Wait', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'WaitActivity', modelProperties: { name: { @@ -64,6 +69,18 @@ class WaitActivity extends models['ControlActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -72,6 +89,7 @@ class WaitActivity extends models['ControlActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/webActivity.js b/lib/services/datafactoryManagement/lib/models/webActivity.js index 3cc30bc33d..7c1728673c 100644 --- a/lib/services/datafactoryManagement/lib/models/webActivity.js +++ b/lib/services/datafactoryManagement/lib/models/webActivity.js @@ -21,7 +21,7 @@ class WebActivity extends models['ExecutionActivity'] { /** * Create a WebActivity. * @member {string} method Rest API method for target endpoint. Possible - * values include: 'GET', 'POST', 'PUT' + * values include: 'GET', 'POST', 'PUT', 'DELETE' * @member {object} url Web activity target endpoint and path. Type: string * (or Expression with resultType string). * @member {object} [headers] Represents the headers that will be sent to the @@ -34,7 +34,7 @@ class WebActivity extends models['ExecutionActivity'] { * @member {object} [authentication] Authentication method used for calling * the endpoint. * @member {string} [authentication.type] Web activity authentication - * (Basic/ClientCertificate) + * (Basic/ClientCertificate/MSI) * @member {object} [authentication.pfx] Base64-encoded contents of a PFX * file. * @member {string} [authentication.pfx.value] Value of secure string. @@ -43,6 +43,8 @@ class WebActivity extends models['ExecutionActivity'] { * @member {object} [authentication.password] Password for the PFX file or * basic authentication. * @member {string} [authentication.password.value] Value of secure string. + * @member {string} [authentication.resource] Resource for which Azure Auth + * token will be requested when using MSI Authentication. * @member {array} [datasets] List of datasets passed to web endpoint. * @member {array} [linkedServices] List of linked services passed to web * endpoint. @@ -63,6 +65,11 @@ class WebActivity extends models['ExecutionActivity'] { serializedName: 'WebActivity', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', className: 'WebActivity', modelProperties: { name: { @@ -89,6 +96,18 @@ class WebActivity extends models['ExecutionActivity'] { serializedName: 'ActivityDependencyElementType', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityDependency' } } @@ -97,6 +116,7 @@ class WebActivity extends models['ExecutionActivity'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -114,6 +134,18 @@ class WebActivity extends models['ExecutionActivity'] { serializedName: 'policy', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'ActivityPolicy' } }, diff --git a/lib/services/datafactoryManagement/lib/models/webActivityAuthentication.js b/lib/services/datafactoryManagement/lib/models/webActivityAuthentication.js index 70ec9586b8..58b641b21e 100644 --- a/lib/services/datafactoryManagement/lib/models/webActivityAuthentication.js +++ b/lib/services/datafactoryManagement/lib/models/webActivityAuthentication.js @@ -20,7 +20,7 @@ class WebActivityAuthentication { /** * Create a WebActivityAuthentication. * @member {string} type Web activity authentication - * (Basic/ClientCertificate) + * (Basic/ClientCertificate/MSI) * @member {object} [pfx] Base64-encoded contents of a PFX file. * @member {string} [pfx.value] Value of secure string. * @member {string} [username] Web activity authentication user name for @@ -28,6 +28,8 @@ class WebActivityAuthentication { * @member {object} [password] Password for the PFX file or basic * authentication. * @member {string} [password.value] Value of secure string. + * @member {string} [resource] Resource for which Azure Auth token will be + * requested when using MSI Authentication. */ constructor() { } @@ -58,6 +60,11 @@ class WebActivityAuthentication { serializedName: 'pfx', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', className: 'SecureString' } }, @@ -73,8 +80,20 @@ class WebActivityAuthentication { serializedName: 'password', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', className: 'SecureString' } + }, + resource: { + required: false, + serializedName: 'resource', + type: { + name: 'String' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/webAnonymousAuthentication.js b/lib/services/datafactoryManagement/lib/models/webAnonymousAuthentication.js index f644429f95..1844680bfa 100644 --- a/lib/services/datafactoryManagement/lib/models/webAnonymousAuthentication.js +++ b/lib/services/datafactoryManagement/lib/models/webAnonymousAuthentication.js @@ -38,6 +38,11 @@ class WebAnonymousAuthentication extends models['WebLinkedServiceTypeProperties' serializedName: 'Anonymous', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', className: 'WebAnonymousAuthentication', modelProperties: { url: { @@ -50,6 +55,7 @@ class WebAnonymousAuthentication extends models['WebLinkedServiceTypeProperties' authenticationType: { required: true, serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/webBasicAuthentication.js b/lib/services/datafactoryManagement/lib/models/webBasicAuthentication.js index 4d4915ad09..cf7cee3e0d 100644 --- a/lib/services/datafactoryManagement/lib/models/webBasicAuthentication.js +++ b/lib/services/datafactoryManagement/lib/models/webBasicAuthentication.js @@ -24,7 +24,7 @@ class WebBasicAuthentication extends models['WebLinkedServiceTypeProperties'] { * @member {object} username User name for Basic authentication. Type: string * (or Expression with resultType string). * @member {object} password The password for Basic authentication. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator */ constructor() { super(); @@ -42,6 +42,11 @@ class WebBasicAuthentication extends models['WebLinkedServiceTypeProperties'] { serializedName: 'Basic', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', className: 'WebBasicAuthentication', modelProperties: { url: { @@ -54,6 +59,7 @@ class WebBasicAuthentication extends models['WebLinkedServiceTypeProperties'] { authenticationType: { required: true, serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -70,7 +76,12 @@ class WebBasicAuthentication extends models['WebLinkedServiceTypeProperties'] { serializedName: 'password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } } } diff --git a/lib/services/datafactoryManagement/lib/models/webClientCertificateAuthentication.js b/lib/services/datafactoryManagement/lib/models/webClientCertificateAuthentication.js index 6ac8986d6d..ec0223fd03 100644 --- a/lib/services/datafactoryManagement/lib/models/webClientCertificateAuthentication.js +++ b/lib/services/datafactoryManagement/lib/models/webClientCertificateAuthentication.js @@ -24,9 +24,9 @@ class WebClientCertificateAuthentication extends models['WebLinkedServiceTypePro /** * Create a WebClientCertificateAuthentication. * @member {object} pfx Base64-encoded contents of a PFX file. - * @member {string} [pfx.value] Value of secure string. + * @member {string} [pfx.type] Polymorphic Discriminator * @member {object} password Password for the PFX file. - * @member {string} [password.value] Value of secure string. + * @member {string} [password.type] Polymorphic Discriminator */ constructor() { super(); @@ -44,6 +44,11 @@ class WebClientCertificateAuthentication extends models['WebLinkedServiceTypePro serializedName: 'ClientCertificate', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', className: 'WebClientCertificateAuthentication', modelProperties: { url: { @@ -56,6 +61,7 @@ class WebClientCertificateAuthentication extends models['WebLinkedServiceTypePro authenticationType: { required: true, serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, type: { name: 'String' } @@ -65,7 +71,12 @@ class WebClientCertificateAuthentication extends models['WebLinkedServiceTypePro serializedName: 'pfx', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } }, password: { @@ -73,7 +84,12 @@ class WebClientCertificateAuthentication extends models['WebLinkedServiceTypePro serializedName: 'password', type: { name: 'Composite', - className: 'SecureString' + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' } } } diff --git a/lib/services/datafactoryManagement/lib/models/webLinkedService.js b/lib/services/datafactoryManagement/lib/models/webLinkedService.js index 26034b25a5..d98aa7028e 100644 --- a/lib/services/datafactoryManagement/lib/models/webLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/webLinkedService.js @@ -43,6 +43,11 @@ class WebLinkedService extends models['LinkedService'] { serializedName: 'Web', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'WebLinkedService', modelProperties: { connectVia: { @@ -60,9 +65,39 @@ class WebLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/webLinkedServiceTypeProperties.js b/lib/services/datafactoryManagement/lib/models/webLinkedServiceTypeProperties.js index 5b7f4b3073..47b3e5580f 100644 --- a/lib/services/datafactoryManagement/lib/models/webLinkedServiceTypeProperties.js +++ b/lib/services/datafactoryManagement/lib/models/webLinkedServiceTypeProperties.js @@ -55,6 +55,7 @@ class WebLinkedServiceTypeProperties { authenticationType: { required: true, serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/webSource.js b/lib/services/datafactoryManagement/lib/models/webSource.js index 9e99b2709d..b2e34c1b4a 100644 --- a/lib/services/datafactoryManagement/lib/models/webSource.js +++ b/lib/services/datafactoryManagement/lib/models/webSource.js @@ -37,6 +37,11 @@ class WebSource extends models['CopySource'] { serializedName: 'WebSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'WebSource', modelProperties: { sourceRetryCount: { @@ -56,6 +61,7 @@ class WebSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/webTableDataset.js b/lib/services/datafactoryManagement/lib/models/webTableDataset.js index 6424f5f51d..765ebdb777 100644 --- a/lib/services/datafactoryManagement/lib/models/webTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/webTableDataset.js @@ -41,6 +41,11 @@ class WebTableDataset extends models['Dataset'] { serializedName: 'WebTable', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'WebTableDataset', modelProperties: { description: { @@ -81,9 +86,24 @@ class WebTableDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/xeroLinkedService.js b/lib/services/datafactoryManagement/lib/models/xeroLinkedService.js index f2bfcb00c1..0a14519d85 100644 --- a/lib/services/datafactoryManagement/lib/models/xeroLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/xeroLinkedService.js @@ -57,6 +57,11 @@ class XeroLinkedService extends models['LinkedService'] { serializedName: 'Xero', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'XeroLinkedService', modelProperties: { connectVia: { @@ -74,9 +79,39 @@ class XeroLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js b/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js index 0b81b52549..8fb0f05467 100644 --- a/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js @@ -37,6 +37,11 @@ class XeroObjectDataset extends models['Dataset'] { serializedName: 'XeroObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'XeroObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class XeroObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/xeroSource.js b/lib/services/datafactoryManagement/lib/models/xeroSource.js index 949255b206..7967e58eaa 100644 --- a/lib/services/datafactoryManagement/lib/models/xeroSource.js +++ b/lib/services/datafactoryManagement/lib/models/xeroSource.js @@ -39,6 +39,11 @@ class XeroSource extends models['CopySource'] { serializedName: 'XeroSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'XeroSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class XeroSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/models/zohoLinkedService.js b/lib/services/datafactoryManagement/lib/models/zohoLinkedService.js index 8adc7b2c05..c41cbb75d1 100644 --- a/lib/services/datafactoryManagement/lib/models/zohoLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/zohoLinkedService.js @@ -52,6 +52,11 @@ class ZohoLinkedService extends models['LinkedService'] { serializedName: 'Zoho', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'ZohoLinkedService', modelProperties: { connectVia: { @@ -69,9 +74,39 @@ class ZohoLinkedService 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' } diff --git a/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js index d884433b23..7103c85ee6 100644 --- a/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js @@ -37,6 +37,11 @@ class ZohoObjectDataset extends models['Dataset'] { serializedName: 'ZohoObject', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', className: 'ZohoObjectDataset', modelProperties: { description: { @@ -77,9 +82,24 @@ class ZohoObjectDataset 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' } diff --git a/lib/services/datafactoryManagement/lib/models/zohoSource.js b/lib/services/datafactoryManagement/lib/models/zohoSource.js index 87cc2347f7..b38d724450 100644 --- a/lib/services/datafactoryManagement/lib/models/zohoSource.js +++ b/lib/services/datafactoryManagement/lib/models/zohoSource.js @@ -39,6 +39,11 @@ class ZohoSource extends models['CopySource'] { serializedName: 'ZohoSource', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', className: 'ZohoSource', modelProperties: { sourceRetryCount: { @@ -58,6 +63,7 @@ class ZohoSource extends models['CopySource'] { type: { required: true, serializedName: 'type', + isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/datafactoryManagement/lib/operations/datasets.js b/lib/services/datafactoryManagement/lib/operations/datasets.js index 3cd410e7d7..73631c23a9 100644 --- a/lib/services/datafactoryManagement/lib/operations/datasets.js +++ b/lib/services/datafactoryManagement/lib/operations/datasets.js @@ -213,8 +213,14 @@ function _listByFactory(resourceGroupName, factoryName, options, callback) { * @param {string} dataset.properties.linkedServiceName.referenceName Reference * LinkedService name. * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * * @param {object} [dataset.properties.parameters] Parameters for dataset. * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * * @param {string} dataset.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -1058,8 +1064,14 @@ class Datasets { * @param {string} dataset.properties.linkedServiceName.referenceName Reference * LinkedService name. * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * * @param {object} [dataset.properties.parameters] Parameters for dataset. * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * * @param {string} dataset.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -1116,8 +1128,14 @@ class Datasets { * @param {string} dataset.properties.linkedServiceName.referenceName Reference * LinkedService name. * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * * @param {object} [dataset.properties.parameters] Parameters for dataset. * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * * @param {string} dataset.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. diff --git a/lib/services/datafactoryManagement/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/operations/index.d.ts index f285e7b971..3a65b8a064 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -855,6 +855,94 @@ export interface IntegrationRuntimes { get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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. + */ + updateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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 {IntegrationRuntimeStatusResponse} - 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. + * + * {IntegrationRuntimeStatusResponse} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeStatusResponse} 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. + */ + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, callback: ServiceCallback): void; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Deletes an integration runtime. * @@ -1390,8 +1478,11 @@ export interface IntegrationRuntimes { /** - * Force the integration runtime to synchronize credentials among integration - * runtime nodes. + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. * * @param {string} resourceGroupName The resource group name. * @@ -1413,8 +1504,11 @@ export interface IntegrationRuntimes { syncCredentialsWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Force the integration runtime to synchronize credentials among integration - * runtime nodes. + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. * * @param {string} resourceGroupName The resource group name. * @@ -1519,6 +1613,68 @@ export interface IntegrationRuntimes { getMonitoringData(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + upgradeWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + upgrade(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + upgrade(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + upgrade(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Starts a ManagedReserved type integration runtime. * @@ -1703,6 +1859,231 @@ export interface IntegrationRuntimes { listByFactoryNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } +/** + * @class + * IntegrationRuntimeNodes + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface IntegrationRuntimeNodes { + + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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. + */ + updateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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 {SelfHostedIntegrationRuntimeNode} - 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. + * + * {SelfHostedIntegrationRuntimeNode} [result] - The deserialized result object if an error did not occur. + * See {@link SelfHostedIntegrationRuntimeNode} 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. + */ + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, callback: ServiceCallback): void; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + getIpAddressWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {IntegrationRuntimeNodeIpAddress} - 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. + * + * {IntegrationRuntimeNodeIpAddress} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeNodeIpAddress} 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. + */ + getIpAddress(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getIpAddress(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, callback: ServiceCallback): void; + getIpAddress(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + /** * @class * LinkedServices @@ -1797,6 +2178,12 @@ export interface LinkedServices { * @param {string} [linkedService.properties.description] Linked service * description. * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * * @param {string} linkedService.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -1841,6 +2228,12 @@ export interface LinkedServices { * @param {string} [linkedService.properties.description] Linked service * description. * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * * @param {string} linkedService.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -2155,8 +2548,14 @@ export interface Datasets { * @param {string} dataset.properties.linkedServiceName.referenceName Reference * LinkedService name. * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * * @param {object} [dataset.properties.parameters] Parameters for dataset. * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * * @param {string} dataset.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -2201,8 +2600,14 @@ export interface Datasets { * @param {string} dataset.properties.linkedServiceName.referenceName Reference * LinkedService name. * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * * @param {object} [dataset.properties.parameters] Parameters for dataset. * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * * @param {string} dataset.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -2514,6 +2919,9 @@ export interface Pipelines { * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only @@ -2554,6 +2962,9 @@ export interface Pipelines { * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only diff --git a/lib/services/datafactoryManagement/lib/operations/index.js b/lib/services/datafactoryManagement/lib/operations/index.js index 7ac68f6d77..5bcd72b28f 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.js +++ b/lib/services/datafactoryManagement/lib/operations/index.js @@ -17,6 +17,7 @@ exports.Operations = require('./operations'); exports.Factories = require('./factories'); exports.IntegrationRuntimes = require('./integrationRuntimes'); +exports.IntegrationRuntimeNodes = require('./integrationRuntimeNodes'); exports.LinkedServices = require('./linkedServices'); exports.Datasets = require('./datasets'); exports.Pipelines = require('./pipelines'); diff --git a/lib/services/datafactoryManagement/lib/operations/integrationRuntimeNodes.js b/lib/services/datafactoryManagement/lib/operations/integrationRuntimeNodes.js new file mode 100644 index 0000000000..eac59d3ca7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/operations/integrationRuntimeNodes.js @@ -0,0 +1,979 @@ +/* + * 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; + +/** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (nodeName === null || nodeName === undefined || typeof nodeName.valueOf() !== 'string') { + throw new Error('nodeName cannot be null or undefined and it must be of type string.'); + } + if (nodeName !== null && nodeName !== undefined) { + if (nodeName.length > 150) + { + throw new Error('"nodeName" should satisfy the constraint - "MaxLength": 150'); + } + if (nodeName.length < 1) + { + throw new Error('"nodeName" should satisfy the constraint - "MinLength": 1'); + } + if (nodeName.match(/^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/) === null) + { + throw new Error('"nodeName" should satisfy the constraint - "Pattern": /^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/'); + } + } + 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 (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}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + requestUrl = requestUrl.replace('{nodeName}', encodeURIComponent(nodeName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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 SelfHostedIntegrationRuntimeNode} 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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (nodeName === null || nodeName === undefined || typeof nodeName.valueOf() !== 'string') { + throw new Error('nodeName cannot be null or undefined and it must be of type string.'); + } + if (nodeName !== null && nodeName !== undefined) { + if (nodeName.length > 150) + { + throw new Error('"nodeName" should satisfy the constraint - "MaxLength": 150'); + } + if (nodeName.length < 1) + { + throw new Error('"nodeName" should satisfy the constraint - "MinLength": 1'); + } + if (nodeName.match(/^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/) === null) + { + throw new Error('"nodeName" should satisfy the constraint - "Pattern": /^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/'); + } + } + 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 (updateIntegrationRuntimeNodeRequest === null || updateIntegrationRuntimeNodeRequest === undefined) { + throw new Error('updateIntegrationRuntimeNodeRequest 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}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + requestUrl = requestUrl.replace('{nodeName}', encodeURIComponent(nodeName)); + 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 = 'PATCH'; + 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 (updateIntegrationRuntimeNodeRequest !== null && updateIntegrationRuntimeNodeRequest !== undefined) { + let requestModelMapper = new client.models['UpdateIntegrationRuntimeNodeRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, updateIntegrationRuntimeNodeRequest, 'updateIntegrationRuntimeNodeRequest'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(updateIntegrationRuntimeNodeRequest, 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['SelfHostedIntegrationRuntimeNode']().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); + }); +} + +/** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 IntegrationRuntimeNodeIpAddress} 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 _getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (nodeName === null || nodeName === undefined || typeof nodeName.valueOf() !== 'string') { + throw new Error('nodeName cannot be null or undefined and it must be of type string.'); + } + if (nodeName !== null && nodeName !== undefined) { + if (nodeName.length > 150) + { + throw new Error('"nodeName" should satisfy the constraint - "MaxLength": 150'); + } + if (nodeName.length < 1) + { + throw new Error('"nodeName" should satisfy the constraint - "MinLength": 1'); + } + if (nodeName.match(/^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/) === null) + { + throw new Error('"nodeName" should satisfy the constraint - "Pattern": /^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/'); + } + } + 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 (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}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + requestUrl = requestUrl.replace('{nodeName}', encodeURIComponent(nodeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeNodeIpAddress']().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 IntegrationRuntimeNodes. */ +class IntegrationRuntimeNodes { + /** + * Create a IntegrationRuntimeNodes. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._deleteMethod = _deleteMethod; + this._update = _update; + this._getIpAddress = _getIpAddress; + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, optionalCallback); + } + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, 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 self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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 {SelfHostedIntegrationRuntimeNode} - 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 SelfHostedIntegrationRuntimeNode} 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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, 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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options, optionalCallback); + } + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + getIpAddressWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {IntegrationRuntimeNodeIpAddress} - 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 IntegrationRuntimeNodeIpAddress} 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. + */ + getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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._getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, optionalCallback); + } + } + +} + +module.exports = IntegrationRuntimeNodes; diff --git a/lib/services/datafactoryManagement/lib/operations/integrationRuntimes.js b/lib/services/datafactoryManagement/lib/operations/integrationRuntimes.js index ef4f55bf00..fa6dc63e2f 100644 --- a/lib/services/datafactoryManagement/lib/operations/integrationRuntimes.js +++ b/lib/services/datafactoryManagement/lib/operations/integrationRuntimes.js @@ -284,6 +284,20 @@ function _createOrUpdate(resourceGroupName, factoryName, integrationRuntimeName, if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -488,6 +502,20 @@ function _get(resourceGroupName, factoryName, integrationRuntimeName, options, c if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -589,6 +617,230 @@ function _get(resourceGroupName, factoryName, integrationRuntimeName, options, c }); } +/** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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 IntegrationRuntimeStatusResponse} 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, integrationRuntimeName, updateIntegrationRuntimeRequest, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (updateIntegrationRuntimeRequest === null || updateIntegrationRuntimeRequest === undefined) { + throw new Error('updateIntegrationRuntimeRequest 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}/integrationRuntimes/{integrationRuntimeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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 = 'PATCH'; + 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 (updateIntegrationRuntimeRequest !== null && updateIntegrationRuntimeRequest !== undefined) { + let requestModelMapper = new client.models['UpdateIntegrationRuntimeRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, updateIntegrationRuntimeRequest, 'updateIntegrationRuntimeRequest'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(updateIntegrationRuntimeRequest, 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['IntegrationRuntimeStatusResponse']().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); + }); +} + /** * Deletes an integration runtime. * @@ -667,6 +919,20 @@ function _deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, o if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -831,6 +1097,20 @@ function _getStatus(resourceGroupName, factoryName, integrationRuntimeName, opti if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -1013,6 +1293,20 @@ function _getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeNa if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -1201,6 +1495,20 @@ function _regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeNa if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -1399,6 +1707,20 @@ function _listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName, o if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -1730,6 +2052,20 @@ function _removeNode(resourceGroupName, factoryName, integrationRuntimeName, rem if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -1797,7 +2133,187 @@ function _removeNode(resourceGroupName, factoryName, integrationRuntimeName, rem return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 204) { + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _syncCredentials(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/syncCredentials'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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); @@ -1832,8 +2348,8 @@ function _removeNode(resourceGroupName, factoryName, integrationRuntimeName, rem } /** - * Force the integration runtime to synchronize credentials among integration - * runtime nodes. + * Get the integration runtime monitoring data, which includes the monitor data + * for all the nodes under this integration runtime. * * @param {string} resourceGroupName The resource group name. * @@ -1852,13 +2368,15 @@ function _removeNode(resourceGroupName, factoryName, integrationRuntimeName, rem * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeMonitoringData} 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 _syncCredentials(resourceGroupName, factoryName, integrationRuntimeName, options, callback) { +function _getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1910,6 +2428,20 @@ function _syncCredentials(resourceGroupName, factoryName, integrationRuntimeName if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -1922,7 +2454,7 @@ function _syncCredentials(resourceGroupName, factoryName, integrationRuntimeName // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); @@ -1989,14 +2521,30 @@ function _syncCredentials(resourceGroupName, factoryName, integrationRuntimeName // 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['IntegrationRuntimeMonitoringData']().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); }); } /** - * Get the integration runtime monitoring data, which includes the monitor data - * for all the nodes under this integration runtime. + * Upgrade self-hosted integration runtime to latest version if availably. * * @param {string} resourceGroupName The resource group name. * @@ -2015,15 +2563,13 @@ function _syncCredentials(resourceGroupName, factoryName, integrationRuntimeName * * {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 IntegrationRuntimeMonitoringData} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {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 _getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName, options, callback) { +function _upgrade(resourceGroupName, factoryName, integrationRuntimeName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2075,6 +2621,20 @@ function _getMonitoringData(resourceGroupName, factoryName, integrationRuntimeNa if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -2087,7 +2647,7 @@ function _getMonitoringData(resourceGroupName, factoryName, integrationRuntimeNa // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); @@ -2154,23 +2714,6 @@ function _getMonitoringData(resourceGroupName, factoryName, integrationRuntimeNa // 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['IntegrationRuntimeMonitoringData']().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); }); @@ -2256,6 +2799,20 @@ function _beginStart(resourceGroupName, factoryName, integrationRuntimeName, opt if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -2435,6 +2992,20 @@ function _beginStop(resourceGroupName, factoryName, integrationRuntimeName, opti if (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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.'); } @@ -2659,6 +3230,7 @@ class IntegrationRuntimes { this._listByFactory = _listByFactory; this._createOrUpdate = _createOrUpdate; this._get = _get; + this._update = _update; this._deleteMethod = _deleteMethod; this._getStatus = _getStatus; this._getConnectionInfo = _getConnectionInfo; @@ -2669,6 +3241,7 @@ class IntegrationRuntimes { this._removeNode = _removeNode; this._syncCredentials = _syncCredentials; this._getMonitoringData = _getMonitoringData; + this._upgrade = _upgrade; this._beginStart = _beginStart; this._beginStop = _beginStop; this._listByFactoryNext = _listByFactoryNext; @@ -2971,6 +3544,121 @@ class IntegrationRuntimes { } } + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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, integrationRuntimeName, updateIntegrationRuntimeRequest, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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 {IntegrationRuntimeStatusResponse} - 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 IntegrationRuntimeStatusResponse} 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, integrationRuntimeName, updateIntegrationRuntimeRequest, 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, integrationRuntimeName, updateIntegrationRuntimeRequest, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest, options, optionalCallback); + } + } + /** * Deletes an integration runtime. * @@ -3722,8 +4410,11 @@ class IntegrationRuntimes { } /** - * Force the integration runtime to synchronize credentials among integration - * runtime nodes. + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. * * @param {string} resourceGroupName The resource group name. * @@ -3757,8 +4448,11 @@ class IntegrationRuntimes { } /** - * Force the integration runtime to synchronize credentials among integration - * runtime nodes. + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. * * @param {string} resourceGroupName The resource group name. * @@ -3905,6 +4599,95 @@ class IntegrationRuntimes { } } + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + upgradeWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._upgrade(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + upgrade(resourceGroupName, factoryName, integrationRuntimeName, 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._upgrade(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._upgrade(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + /** * Starts a ManagedReserved type integration runtime. * diff --git a/lib/services/datafactoryManagement/lib/operations/linkedServices.js b/lib/services/datafactoryManagement/lib/operations/linkedServices.js index 83a06fc553..1b8352ebc0 100644 --- a/lib/services/datafactoryManagement/lib/operations/linkedServices.js +++ b/lib/services/datafactoryManagement/lib/operations/linkedServices.js @@ -214,6 +214,12 @@ function _listByFactory(resourceGroupName, factoryName, options, callback) { * @param {string} [linkedService.properties.description] Linked service * description. * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * * @param {string} linkedService.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -1059,6 +1065,12 @@ class LinkedServices { * @param {string} [linkedService.properties.description] Linked service * description. * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * * @param {string} linkedService.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. @@ -1115,6 +1127,12 @@ class LinkedServices { * @param {string} [linkedService.properties.description] Linked service * description. * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * * @param {string} linkedService.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. diff --git a/lib/services/datafactoryManagement/lib/operations/pipelines.js b/lib/services/datafactoryManagement/lib/operations/pipelines.js index 1cfc357297..8d0f77e7ed 100644 --- a/lib/services/datafactoryManagement/lib/operations/pipelines.js +++ b/lib/services/datafactoryManagement/lib/operations/pipelines.js @@ -211,6 +211,9 @@ function _listByFactory(resourceGroupName, factoryName, options, callback) { * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only @@ -1278,6 +1281,9 @@ class Pipelines { * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only @@ -1330,6 +1336,9 @@ class Pipelines { * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only From 2f81cb1973acaf7f9f736578e1f62d99ad9aa32f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 18 Apr 2018 17:21:02 +0000 Subject: [PATCH 2/2] Generated from 195d61581efdedcda2602bc8b4733b19f3217e11 Merge remote-tracking branch 'upstream/master' into MySqlPostgreSqlConStr --- .../datafactoryManagement/lib/LICENSE.txt | 21 + .../lib/lib/dataFactoryManagementClient.d.ts | 71 + .../lib/lib/dataFactoryManagementClient.js | 94 + .../lib/lib/models/activity.js | 116 + .../lib/lib/models/activityDependency.js | 79 + .../lib/lib/models/activityPolicy.js | 97 + .../lib/lib/models/activityRun.js | 176 + .../lib/models/activityRunsListResponse.js | 80 + .../lib/lib/models/amazonMWSLinkedService.js | 209 + .../lib/lib/models/amazonMWSObjectDataset.js | 113 + .../lib/lib/models/amazonMWSSource.js | 84 + .../lib/models/amazonRedshiftLinkedService.js | 167 + .../lib/lib/models/amazonRedshiftSource.js | 109 + .../lib/lib/models/amazonS3Dataset.js | 208 + .../lib/lib/models/amazonS3LinkedService.js | 141 + .../lib/lib/models/avroFormat.js | 75 + .../lib/lib/models/azureBatchLinkedService.js | 172 + .../lib/lib/models/azureBlobDataset.js | 199 + .../azureDataLakeAnalyticsLinkedService.js | 188 + .../lib/models/azureDataLakeStoreDataset.js | 190 + .../models/azureDataLakeStoreLinkedService.js | 189 + .../lib/lib/models/azureDataLakeStoreSink.js | 99 + .../lib/models/azureDataLakeStoreSource.js | 85 + .../models/azureDatabricksLinkedService.js | 197 + .../lib/models/azureKeyVaultLinkedService.js | 115 + .../models/azureKeyVaultSecretReference.js | 92 + .../models/azureMLBatchExecutionActivity.js | 187 + .../lib/lib/models/azureMLLinkedService.js | 187 + .../models/azureMLUpdateResourceActivity.js | 167 + .../lib/lib/models/azureMLWebServiceFile.js | 71 + .../lib/lib/models/azureMySqlLinkedService.js | 130 + .../lib/lib/models/azureMySqlSource.js | 84 + .../lib/lib/models/azureMySqlTableDataset.js | 122 + .../models/azurePostgreSqlLinkedService.js | 130 + .../lib/lib/models/azurePostgreSqlSource.js | 84 + .../lib/models/azurePostgreSqlTableDataset.js | 113 + .../lib/lib/models/azureQueueSink.js | 89 + .../lib/lib/models/azureSearchIndexDataset.js | 122 + .../lib/lib/models/azureSearchIndexSink.js | 99 + .../lib/models/azureSearchLinkedService.js | 139 + .../lib/lib/models/azureSqlDWLinkedService.js | 166 + .../lib/lib/models/azureSqlDWTableDataset.js | 122 + .../models/azureSqlDatabaseLinkedService.js | 166 + .../lib/lib/models/azureSqlTableDataset.js | 122 + .../lib/models/azureStorageLinkedService.js | 147 + .../lib/lib/models/azureTableDataset.js | 122 + .../lib/lib/models/azureTableSink.js | 125 + .../lib/lib/models/azureTableSource.js | 94 + .../lib/lib/models/blobSink.js | 126 + .../lib/lib/models/blobSource.js | 103 + .../lib/lib/models/blobTrigger.js | 122 + .../lib/lib/models/cassandraLinkedService.js | 166 + .../lib/lib/models/cassandraSource.js | 100 + .../lib/lib/models/cassandraTableDataset.js | 131 + .../lib/lib/models/concurLinkedService.js | 178 + .../lib/lib/models/concurObjectDataset.js | 113 + .../lib/lib/models/concurSource.js | 84 + .../lib/lib/models/controlActivity.js | 102 + .../lib/lib/models/copyActivity.js | 362 + .../lib/lib/models/copySink.js | 108 + .../lib/lib/models/copySource.js | 89 + .../lib/lib/models/copyTranslator.js | 70 + .../lib/lib/models/cosmosDbLinkedService.js | 130 + .../lib/lib/models/couchbaseLinkedService.js | 130 + .../lib/lib/models/couchbaseSource.js | 84 + .../lib/lib/models/couchbaseTableDataset.js | 113 + .../lib/lib/models/createRunResponse.js | 52 + .../lib/lib/models/customActivity.js | 192 + .../models/customActivityReferenceObject.js | 78 + .../models/customDataSourceLinkedService.js | 113 + .../lib/lib/models/customDataset.js | 121 + .../models/dataLakeAnalyticsUSQLActivity.js | 208 + .../lib/models/databricksNotebookActivity.js | 157 + .../lib/lib/models/dataset.js | 137 + .../lib/lib/models/datasetBZip2Compression.js | 61 + .../lib/lib/models/datasetCompression.js | 70 + .../lib/models/datasetDeflateCompression.js | 70 + .../lib/lib/models/datasetGZipCompression.js | 70 + .../lib/lib/models/datasetListResponse.js | 68 + .../lib/lib/models/datasetReference.js | 76 + .../lib/lib/models/datasetResource.js | 120 + .../lib/lib/models/datasetStorageFormat.js | 88 + .../models/datasetZipDeflateCompression.js | 70 + .../lib/lib/models/db2LinkedService.js | 166 + .../lib/lib/models/distcpSettings.js | 74 + .../lib/models/documentDbCollectionDataset.js | 122 + .../lib/models/documentDbCollectionSink.js | 98 + .../lib/models/documentDbCollectionSource.js | 93 + .../lib/lib/models/drillLinkedService.js | 130 + .../lib/lib/models/drillSource.js | 84 + .../lib/lib/models/drillTableDataset.js | 113 + .../lib/lib/models/dynamicsEntityDataset.js | 122 + .../lib/lib/models/dynamicsLinkedService.js | 201 + .../lib/lib/models/dynamicsSink.js | 108 + .../lib/lib/models/dynamicsSource.js | 85 + .../lib/lib/models/eloquaLinkedService.js | 177 + .../lib/lib/models/eloquaObjectDataset.js | 113 + .../lib/lib/models/eloquaSource.js | 84 + .../lib/lib/models/errorResponse.js | 87 + .../lib/lib/models/executePipelineActivity.js | 139 + .../lib/models/executeSSISPackageActivity.js | 181 + .../lib/lib/models/executionActivity.js | 146 + .../lib/lib/models/expression.js | 61 + .../lib/lib/models/factory.js | 145 + .../lib/lib/models/factoryIdentity.js | 71 + .../lib/lib/models/factoryListResponse.js | 80 + .../lib/lib/models/factoryUpdateParameters.js | 72 + .../lib/lib/models/fileServerLinkedService.js | 148 + .../lib/lib/models/fileShareDataset.js | 200 + .../lib/lib/models/fileSystemSink.js | 99 + .../lib/lib/models/fileSystemSource.js | 85 + .../lib/lib/models/filterActivity.js | 124 + .../lib/lib/models/forEachActivity.js | 168 + .../lib/lib/models/ftpServerLinkedService.js | 188 + .../lib/lib/models/getMetadataActivity.js | 157 + .../lib/models/googleBigQueryLinkedService.js | 243 + .../lib/models/googleBigQueryObjectDataset.js | 113 + .../lib/lib/models/googleBigQuerySource.js | 84 + .../lib/lib/models/greenplumLinkedService.js | 130 + .../lib/lib/models/greenplumSource.js | 84 + .../lib/lib/models/greenplumTableDataset.js | 113 + .../lib/lib/models/hBaseLinkedService.js | 215 + .../lib/lib/models/hBaseObjectDataset.js | 113 + .../lib/lib/models/hBaseSource.js | 84 + .../lib/lib/models/hDInsightHiveActivity.js | 209 + .../lib/lib/models/hDInsightLinkedService.js | 176 + .../lib/models/hDInsightMapReduceActivity.js | 233 + .../models/hDInsightOnDemandLinkedService.js | 422 + .../lib/lib/models/hDInsightPigActivity.js | 209 + .../lib/lib/models/hDInsightSparkActivity.js | 220 + .../lib/models/hDInsightStreamingActivity.js | 277 + .../lib/lib/models/hdfsLinkedService.js | 159 + .../lib/lib/models/hdfsSource.js | 103 + .../lib/lib/models/hiveLinkedService.js | 273 + .../lib/lib/models/hiveObjectDataset.js | 113 + .../lib/lib/models/hiveSource.js | 84 + .../lib/lib/models/httpDataset.js | 211 + .../lib/lib/models/httpLinkedService.js | 194 + .../lib/lib/models/httpSource.js | 87 + .../lib/lib/models/hubspotLinkedService.js | 201 + .../lib/lib/models/hubspotObjectDataset.js | 113 + .../lib/lib/models/hubspotSource.js | 84 + .../lib/lib/models/ifConditionActivity.js | 187 + .../lib/lib/models/impalaLinkedService.js | 218 + .../lib/lib/models/impalaObjectDataset.js | 113 + .../lib/lib/models/impalaSource.js | 84 + .../lib/lib/models/index.d.ts | 7113 +++++++++++++++++ .../lib/lib/models/index.js | 595 ++ .../lib/lib/models/integrationRuntime.js | 79 + .../lib/models/integrationRuntimeAuthKeys.js | 62 + .../integrationRuntimeComputeProperties.js | 128 + .../integrationRuntimeConnectionInfo.js | 117 + ...ationRuntimeCustomSetupScriptProperties.js | 70 + .../models/integrationRuntimeListResponse.js | 68 + .../integrationRuntimeMonitoringData.js | 82 + .../models/integrationRuntimeNodeIpAddress.js | 54 + .../integrationRuntimeNodeMonitoringData.js | 134 + .../lib/models/integrationRuntimeReference.js | 76 + ...tegrationRuntimeRegenerateKeyParameters.js | 53 + .../integrationRuntimeRemoveNodeRequest.js | 64 + .../lib/models/integrationRuntimeResource.js | 108 + .../integrationRuntimeSsisCatalogInfo.js | 106 + .../integrationRuntimeSsisProperties.js | 126 + .../lib/models/integrationRuntimeStatus.js | 91 + .../integrationRuntimeStatusListResponse.js | 71 + .../integrationRuntimeStatusResponse.js | 87 + .../integrationRuntimeVNetProperties.js | 74 + .../lib/lib/models/jiraLinkedService.js | 188 + .../lib/lib/models/jiraObjectDataset.js | 113 + .../lib/lib/models/jiraSource.js | 84 + .../lib/lib/models/jsonFormat.js | 133 + .../lib/models/linkedIntegrationRuntime.js | 93 + .../lib/models/linkedIntegrationRuntimeKey.js | 76 + .../linkedIntegrationRuntimeProperties.js | 58 + .../models/linkedIntegrationRuntimeRbac.js | 70 + .../lib/lib/models/linkedService.js | 127 + .../lib/models/linkedServiceListResponse.js | 68 + .../lib/lib/models/linkedServiceReference.js | 76 + .../lib/lib/models/linkedServiceResource.js | 118 + .../lib/lib/models/lookupActivity.js | 185 + .../lib/lib/models/magentoLinkedService.js | 168 + .../lib/lib/models/magentoObjectDataset.js | 113 + .../lib/lib/models/magentoSource.js | 84 + .../lib/models/managedIntegrationRuntime.js | 169 + .../models/managedIntegrationRuntimeError.js | 99 + .../models/managedIntegrationRuntimeNode.js | 107 + ...anagedIntegrationRuntimeOperationResult.js | 117 + .../models/managedIntegrationRuntimeStatus.js | 178 + .../lib/lib/models/mariaDBLinkedService.js | 130 + .../lib/lib/models/mariaDBSource.js | 84 + .../lib/lib/models/mariaDBTableDataset.js | 113 + .../lib/lib/models/marketoLinkedService.js | 176 + .../lib/lib/models/marketoObjectDataset.js | 113 + .../lib/lib/models/marketoSource.js | 84 + .../lib/models/mongoDbCollectionDataset.js | 122 + .../lib/lib/models/mongoDbLinkedService.js | 206 + .../lib/lib/models/mongoDbSource.js | 84 + .../lib/lib/models/multiplePipelineTrigger.js | 93 + .../lib/lib/models/mySqlLinkedService.js | 130 + .../lib/lib/models/netezzaLinkedService.js | 130 + .../lib/lib/models/netezzaSource.js | 84 + .../lib/lib/models/netezzaTableDataset.js | 113 + .../lib/lib/models/oDataLinkedService.js | 158 + .../lib/lib/models/oDataResourceDataset.js | 122 + .../lib/lib/models/odbcLinkedService.js | 181 + .../lib/lib/models/odbcSink.js | 98 + .../lib/lib/models/operation.js | 90 + .../lib/lib/models/operationDisplay.js | 78 + .../lib/lib/models/operationListResponse.js | 72 + .../lib/models/operationLogSpecification.js | 69 + .../lib/models/operationMetricAvailability.js | 61 + .../models/operationMetricSpecification.js | 128 + .../models/operationServiceSpecification.js | 80 + .../lib/lib/models/oracleLinkedService.js | 130 + .../lib/lib/models/oracleSink.js | 98 + .../lib/lib/models/oracleSource.js | 94 + .../lib/lib/models/oracleTableDataset.js | 122 + .../lib/lib/models/orcFormat.js | 75 + .../lib/lib/models/parameterSpecification.js | 61 + .../lib/lib/models/parquetFormat.js | 75 + .../lib/lib/models/paypalLinkedService.js | 178 + .../lib/lib/models/paypalObjectDataset.js | 113 + .../lib/lib/models/paypalSource.js | 84 + .../lib/lib/models/phoenixLinkedService.js | 227 + .../lib/lib/models/phoenixObjectDataset.js | 113 + .../lib/lib/models/phoenixSource.js | 84 + .../lib/lib/models/pipelineListResponse.js | 80 + .../lib/lib/models/pipelineReference.js | 69 + .../lib/lib/models/pipelineResource.js | 177 + .../lib/lib/models/pipelineRun.js | 162 + .../lib/models/pipelineRunFilterParameters.js | 105 + .../lib/lib/models/pipelineRunInvokedBy.js | 62 + .../lib/lib/models/pipelineRunQueryFilter.js | 77 + .../lib/lib/models/pipelineRunQueryOrderBy.js | 62 + .../lib/models/pipelineRunQueryResponse.js | 83 + .../lib/lib/models/polybaseSettings.js | 96 + .../lib/lib/models/postgreSqlLinkedService.js | 130 + .../lib/lib/models/prestoLinkedService.js | 244 + .../lib/lib/models/prestoObjectDataset.js | 113 + .../lib/lib/models/prestoSource.js | 84 + .../lib/lib/models/quickBooksLinkedService.js | 174 + .../lib/lib/models/quickBooksObjectDataset.js | 113 + .../lib/lib/models/quickBooksSource.js | 84 + .../lib/lib/models/recurrenceSchedule.js | 147 + .../models/recurrenceScheduleOccurrence.js | 75 + .../models/redirectIncompatibleRowSettings.js | 76 + .../lib/lib/models/redshiftUnloadSettings.js | 76 + .../lib/lib/models/relationalSource.js | 84 + .../lib/lib/models/relationalTableDataset.js | 122 + .../lib/lib/models/resource.js | 98 + .../lib/lib/models/retryPolicy.js | 66 + .../lib/lib/models/sSISPackageLocation.js | 52 + .../lib/lib/models/salesforceLinkedService.js | 168 + .../salesforceMarketingCloudLinkedService.js | 173 + .../salesforceMarketingCloudObjectDataset.js | 113 + .../models/salesforceMarketingCloudSource.js | 84 + .../lib/lib/models/salesforceObjectDataset.js | 122 + .../lib/lib/models/salesforceSink.js | 123 + .../lib/lib/models/salesforceSource.js | 93 + .../lib/lib/models/sapBWLinkedService.js | 168 + .../sapCloudForCustomerLinkedService.js | 150 + .../sapCloudForCustomerResourceDataset.js | 122 + .../lib/lib/models/sapCloudForCustomerSink.js | 98 + .../lib/models/sapCloudForCustomerSource.js | 84 + .../lib/lib/models/sapEccLinkedService.js | 150 + .../lib/lib/models/sapEccResourceDataset.js | 122 + .../lib/lib/models/sapEccSource.js | 84 + .../lib/lib/models/sapHanaLinkedService.js | 158 + .../lib/lib/models/scheduleTrigger.js | 125 + .../lib/models/scheduleTriggerRecurrence.js | 125 + .../lib/lib/models/secretBase.js | 58 + .../lib/lib/models/secureString.js | 70 + .../models/selfHostedIntegrationRuntime.js | 83 + .../selfHostedIntegrationRuntimeNode.js | 240 + .../selfHostedIntegrationRuntimeStatus.js | 247 + .../lib/lib/models/serviceNowLinkedService.js | 211 + .../lib/lib/models/serviceNowObjectDataset.js | 113 + .../lib/lib/models/serviceNowSource.js | 84 + .../lib/lib/models/sftpServerLinkedService.js | 235 + .../lib/lib/models/shopifyLinkedService.js | 169 + .../lib/lib/models/shopifyObjectDataset.js | 113 + .../lib/lib/models/shopifySource.js | 84 + .../lib/lib/models/sparkLinkedService.js | 244 + .../lib/lib/models/sparkObjectDataset.js | 113 + .../lib/lib/models/sparkSource.js | 84 + .../lib/lib/models/sqlDWSink.js | 142 + .../lib/lib/models/sqlDWSource.js | 106 + .../lib/lib/models/sqlServerLinkedService.js | 155 + .../sqlServerStoredProcedureActivity.js | 157 + .../lib/lib/models/sqlServerTableDataset.js | 122 + .../lib/lib/models/sqlSink.js | 133 + .../lib/lib/models/sqlSource.js | 112 + .../lib/lib/models/squareLinkedService.js | 187 + .../lib/lib/models/squareObjectDataset.js | 113 + .../lib/lib/models/squareSource.js | 84 + .../lib/lib/models/stagingSettings.js | 91 + .../lib/models/storedProcedureParameter.js | 62 + .../lib/lib/models/subResource.js | 84 + .../lib/lib/models/sybaseLinkedService.js | 175 + .../lib/lib/models/tabularTranslator.js | 70 + .../lib/lib/models/teradataLinkedService.js | 157 + .../lib/lib/models/textFormat.js | 164 + .../lib/lib/models/trigger.js | 90 + .../lib/lib/models/triggerListResponse.js | 68 + .../lib/models/triggerPipelineReference.js | 73 + .../lib/lib/models/triggerResource.js | 111 + .../lib/lib/models/triggerRun.js | 145 + .../lib/lib/models/triggerRunListResponse.js | 80 + .../lib/lib/models/tumblingWindowTrigger.js | 171 + .../lib/lib/models/untilActivity.js | 161 + .../updateIntegrationRuntimeNodeRequest.js | 57 + .../models/updateIntegrationRuntimeRequest.js | 65 + .../lib/lib/models/verticaLinkedService.js | 130 + .../lib/lib/models/verticaSource.js | 84 + .../lib/lib/models/verticaTableDataset.js | 113 + .../lib/lib/models/waitActivity.js | 110 + .../lib/lib/models/webActivity.js | 224 + .../lib/models/webActivityAuthentication.js | 104 + .../lib/models/webAnonymousAuthentication.js | 69 + .../lib/lib/models/webBasicAuthentication.js | 93 + .../webClientCertificateAuthentication.js | 101 + .../lib/lib/models/webLinkedService.js | 124 + .../models/webLinkedServiceTypeProperties.js | 69 + .../lib/lib/models/webSource.js | 75 + .../lib/lib/models/webTableDataset.js | 131 + .../lib/lib/models/xeroLinkedService.js | 186 + .../lib/lib/models/xeroObjectDataset.js | 113 + .../lib/lib/models/xeroSource.js | 84 + .../lib/lib/models/zohoLinkedService.js | 168 + .../lib/lib/models/zohoObjectDataset.js | 113 + .../lib/lib/models/zohoSource.js | 84 + .../lib/lib/operations/activityRuns.js | 592 ++ .../lib/lib/operations/datasets.js | 1457 ++++ .../lib/lib/operations/factories.js | 2272 ++++++ .../lib/lib/operations/index.d.ts | 4279 ++++++++++ .../lib/lib/operations/index.js | 26 + .../lib/operations/integrationRuntimeNodes.js | 979 +++ .../lib/lib/operations/integrationRuntimes.js | 4958 ++++++++++++ .../lib/lib/operations/linkedServices.js | 1455 ++++ .../lib/lib/operations/operations.js | 238 + .../lib/lib/operations/pipelineRuns.js | 625 ++ .../lib/lib/operations/pipelines.js | 1752 ++++ .../lib/lib/operations/triggers.js | 2765 +++++++ .../datafactoryManagement/lib/package.json | 22 + 344 files changed, 69172 insertions(+) create mode 100644 lib/services/datafactoryManagement/lib/LICENSE.txt create mode 100644 lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.d.ts create mode 100644 lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/activity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/activityDependency.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/activityPolicy.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/activityRun.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/activityRunsListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/amazonMWSLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/amazonMWSObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/amazonMWSSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/amazonS3Dataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/amazonS3LinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/avroFormat.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureBatchLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureBlobDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureDataLakeAnalyticsLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureDatabricksLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultSecretReference.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureMLBatchExecutionActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureMLLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureMLUpdateResourceActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureMLWebServiceFile.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureMySqlLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureMySqlSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureMySqlTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureQueueSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureSearchLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureSqlDWLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureSqlDWTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureSqlDatabaseLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureSqlTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureStorageLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureTableSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/azureTableSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/blobSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/blobSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/blobTrigger.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/cassandraLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/cassandraSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/cassandraTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/concurLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/concurObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/concurSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/controlActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/copyActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/copySink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/copySource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/copyTranslator.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/cosmosDbLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/couchbaseLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/couchbaseSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/couchbaseTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/createRunResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/customActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/customActivityReferenceObject.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/customDataSourceLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/customDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/dataLakeAnalyticsUSQLActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/databricksNotebookActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/dataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetBZip2Compression.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetCompression.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetDeflateCompression.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetGZipCompression.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetReference.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetResource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetStorageFormat.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/datasetZipDeflateCompression.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/db2LinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/distcpSettings.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/drillLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/drillSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/drillTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/dynamicsEntityDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/dynamicsLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/dynamicsSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/dynamicsSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/eloquaLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/eloquaObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/eloquaSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/errorResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/executePipelineActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/executeSSISPackageActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/executionActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/expression.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/factory.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/factoryIdentity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/factoryListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/factoryUpdateParameters.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/fileServerLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/fileShareDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/fileSystemSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/fileSystemSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/filterActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/forEachActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/ftpServerLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/getMetadataActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/googleBigQueryLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/googleBigQueryObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/googleBigQuerySource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/greenplumLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/greenplumSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/greenplumTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hBaseLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hBaseObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hBaseSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hDInsightHiveActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hDInsightLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hDInsightMapReduceActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hDInsightOnDemandLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hDInsightPigActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hDInsightSparkActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hDInsightStreamingActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hdfsLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hdfsSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hiveLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hiveObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hiveSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/httpDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/httpLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/httpSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hubspotLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hubspotObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/hubspotSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/ifConditionActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/impalaLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/impalaObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/impalaSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/index.d.ts create mode 100644 lib/services/datafactoryManagement/lib/lib/models/index.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntime.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeAuthKeys.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeComputeProperties.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeConnectionInfo.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeCustomSetupScriptProperties.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeMonitoringData.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeIpAddress.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeMonitoringData.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeReference.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRegenerateKeyParameters.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRemoveNodeRequest.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeResource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisCatalogInfo.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisProperties.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatus.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeVNetProperties.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/jiraLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/jiraObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/jiraSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/jsonFormat.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntime.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeKey.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeProperties.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeRbac.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedServiceListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedServiceReference.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/linkedServiceResource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/lookupActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/magentoLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/magentoObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/magentoSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntime.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeError.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeNode.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeOperationResult.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeStatus.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/mariaDBLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/mariaDBSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/mariaDBTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/marketoLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/marketoObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/marketoSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/mongoDbCollectionDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/mongoDbLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/mongoDbSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/multiplePipelineTrigger.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/mySqlLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/netezzaLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/netezzaSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/netezzaTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/oDataLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/oDataResourceDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/odbcLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/odbcSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/operation.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/operationDisplay.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/operationListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/operationLogSpecification.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/operationMetricAvailability.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/operationMetricSpecification.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/operationServiceSpecification.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/oracleLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/oracleSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/oracleSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/oracleTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/orcFormat.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/parameterSpecification.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/parquetFormat.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/paypalLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/paypalObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/paypalSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/phoenixLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/phoenixObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/phoenixSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineReference.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineResource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineRun.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineRunFilterParameters.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineRunInvokedBy.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryFilter.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryOrderBy.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/polybaseSettings.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/postgreSqlLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/prestoLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/prestoObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/prestoSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/quickBooksLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/quickBooksObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/quickBooksSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/recurrenceSchedule.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/recurrenceScheduleOccurrence.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/redirectIncompatibleRowSettings.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/redshiftUnloadSettings.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/relationalSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/relationalTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/resource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/retryPolicy.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sSISPackageLocation.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/salesforceLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/salesforceObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/salesforceSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/salesforceSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapBWLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerResourceDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapEccLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapEccResourceDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapEccSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sapHanaLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/scheduleTrigger.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/scheduleTriggerRecurrence.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/secretBase.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/secureString.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntime.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeNode.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeStatus.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/serviceNowLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/serviceNowObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/serviceNowSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sftpServerLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/shopifyLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/shopifyObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/shopifySource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sparkLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sparkObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sparkSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sqlDWSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sqlDWSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sqlServerLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sqlServerStoredProcedureActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sqlServerTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sqlSink.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sqlSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/squareLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/squareObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/squareSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/stagingSettings.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/storedProcedureParameter.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/subResource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/sybaseLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/tabularTranslator.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/teradataLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/textFormat.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/trigger.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/triggerListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/triggerPipelineReference.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/triggerResource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/triggerRun.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/triggerRunListResponse.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/tumblingWindowTrigger.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/untilActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeNodeRequest.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeRequest.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/verticaLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/verticaSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/verticaTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/waitActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webActivity.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webActivityAuthentication.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webAnonymousAuthentication.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webBasicAuthentication.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webClientCertificateAuthentication.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webLinkedServiceTypeProperties.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/webTableDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/xeroLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/xeroObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/xeroSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/zohoLinkedService.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/zohoObjectDataset.js create mode 100644 lib/services/datafactoryManagement/lib/lib/models/zohoSource.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/activityRuns.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/datasets.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/factories.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/index.d.ts create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/index.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimeNodes.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimes.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/linkedServices.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/operations.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/pipelineRuns.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/pipelines.js create mode 100644 lib/services/datafactoryManagement/lib/lib/operations/triggers.js create mode 100644 lib/services/datafactoryManagement/lib/package.json diff --git a/lib/services/datafactoryManagement/lib/LICENSE.txt b/lib/services/datafactoryManagement/lib/LICENSE.txt new file mode 100644 index 0000000000..5431ba98b9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/LICENSE.txt @@ -0,0 +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. diff --git a/lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.d.ts b/lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.d.ts new file mode 100644 index 0000000000..ad4a3fd100 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.d.ts @@ -0,0 +1,71 @@ +/* + * 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. + */ + +import { ServiceClientCredentials } from 'ms-rest'; +import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; +import * as models from "./models"; +import * as operations from "./operations"; + +export default class DataFactoryManagementClient extends AzureServiceClient { + /** + * Initializes a new instance of the DataFactoryManagementClient class. + * @constructor + * + * @class + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * + * @param {string} subscriptionId - The subscription identifier. + * + * @param {string} [baseUri] - The base URI of the service. + * + * @param {object} [options] - The parameter options + * + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + */ + constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); + + credentials: ServiceClientCredentials; + + subscriptionId: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + + generateClientRequestId: boolean; + + // Operation groups + operations: operations.Operations; + factories: operations.Factories; + integrationRuntimes: operations.IntegrationRuntimes; + integrationRuntimeNodes: operations.IntegrationRuntimeNodes; + linkedServices: operations.LinkedServices; + datasets: operations.Datasets; + pipelines: operations.Pipelines; + pipelineRuns: operations.PipelineRuns; + activityRuns: operations.ActivityRuns; + triggers: operations.Triggers; +} + +export { DataFactoryManagementClient, models as DataFactoryManagementModels }; diff --git a/lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.js b/lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.js new file mode 100644 index 0000000000..f72faa7c08 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/dataFactoryManagementClient.js @@ -0,0 +1,94 @@ +/* + * 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. + */ + +/* jshint latedef:false */ +/* jshint forin:false */ +/* jshint noempty:false */ + +'use strict'; + +const msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const ServiceClient = msRestAzure.AzureServiceClient; + +const models = require('./models'); +const operations = require('./operations'); + + +/** Class representing a DataFactoryManagementClient. */ +class DataFactoryManagementClient extends ServiceClient { + /** + * Create a DataFactoryManagementClient. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * @param {string} subscriptionId - The subscription identifier. + * @param {string} [baseUri] - The base URI of the service. + * @param {object} [options] - The parameter options + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ + constructor(credentials, subscriptionId, baseUri, options) { + if (credentials === null || credentials === undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId === null || subscriptionId === undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) options = {}; + + super(credentials, options); + + this.apiVersion = '2017-09-01-preview'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.baseUri = baseUri; + if (!this.baseUri) { + this.baseUri = 'https://management.azure.com'; + } + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + let packageInfo = this.getPackageJsonInfo(__dirname); + this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + this.generateClientRequestId = options.generateClientRequestId; + } + 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); + this.pipelineRuns = new operations.PipelineRuns(this); + this.activityRuns = new operations.ActivityRuns(this); + this.triggers = new operations.Triggers(this); + this.models = models; + msRest.addSerializationMixin(this); + } + +} + +module.exports = DataFactoryManagementClient; +module.exports['default'] = DataFactoryManagementClient; +module.exports.DataFactoryManagementClient = DataFactoryManagementClient; +module.exports.DataFactoryManagementModels = models; diff --git a/lib/services/datafactoryManagement/lib/lib/models/activity.js b/lib/services/datafactoryManagement/lib/lib/models/activity.js new file mode 100644 index 0000000000..d7b43be811 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/activity.js @@ -0,0 +1,116 @@ +/* + * 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'); + +/** + * A pipeline activity. + * + */ +class Activity { + /** + * Create a Activity. + * @member {string} name Activity name. + * @member {string} [description] Activity description. + * @member {array} [dependsOn] Activity depends on condition. + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of Activity + * + * @returns {object} metadata of Activity + * + */ + mapper() { + return { + required: false, + serializedName: 'Activity', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'Activity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = Activity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/activityDependency.js b/lib/services/datafactoryManagement/lib/lib/models/activityDependency.js new file mode 100644 index 0000000000..8058e27194 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/activityDependency.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'; + +/** + * Activity dependency information. + * + */ +class ActivityDependency { + /** + * Create a ActivityDependency. + * @member {string} activity Activity name. + * @member {array} dependencyConditions Match-Condition for the dependency. + */ + constructor() { + } + + /** + * Defines the metadata of ActivityDependency + * + * @returns {object} metadata of ActivityDependency + * + */ + mapper() { + return { + required: false, + serializedName: 'ActivityDependency', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency', + modelProperties: { + activity: { + required: true, + serializedName: 'activity', + type: { + name: 'String' + } + }, + dependencyConditions: { + required: true, + serializedName: 'dependencyConditions', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = ActivityDependency; diff --git a/lib/services/datafactoryManagement/lib/lib/models/activityPolicy.js b/lib/services/datafactoryManagement/lib/lib/models/activityPolicy.js new file mode 100644 index 0000000000..b3b092348a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/activityPolicy.js @@ -0,0 +1,97 @@ +/* + * 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'; + +/** + * Execution policy for an activity. + * + */ +class ActivityPolicy { + /** + * Create a ActivityPolicy. + * @member {object} [timeout] Specifies the timeout for the activity to run. + * The default timeout is 7 days. Type: string (or Expression with resultType + * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [retry] Maximum ordinary retry attempts. Default is 0. + * 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() { + } + + /** + * Defines the metadata of ActivityPolicy + * + * @returns {object} metadata of ActivityPolicy + * + */ + mapper() { + return { + required: false, + serializedName: 'ActivityPolicy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy', + modelProperties: { + timeout: { + required: false, + serializedName: 'timeout', + type: { + name: 'Object' + } + }, + retry: { + required: false, + serializedName: 'retry', + type: { + name: 'Object' + } + }, + retryIntervalInSeconds: { + required: false, + serializedName: 'retryIntervalInSeconds', + constraints: { + InclusiveMaximum: 86400, + InclusiveMinimum: 30 + }, + type: { + name: 'Number' + } + }, + secureOutput: { + required: false, + serializedName: 'secureOutput', + type: { + name: 'Boolean' + } + } + } + } + }; + } +} + +module.exports = ActivityPolicy; diff --git a/lib/services/datafactoryManagement/lib/lib/models/activityRun.js b/lib/services/datafactoryManagement/lib/lib/models/activityRun.js new file mode 100644 index 0000000000..eec19281b9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/activityRun.js @@ -0,0 +1,176 @@ +/* + * 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'; + +/** + * Information about an activity run in a pipeline. + * + */ +class ActivityRun { + /** + * Create a ActivityRun. + * @member {string} [pipelineName] The name of the pipeline. + * @member {string} [pipelineRunId] The id of the pipeline run. + * @member {string} [activityName] The name of the activity. + * @member {string} [activityType] The type of the activity. + * @member {string} [activityRunId] The id of the activity run. + * @member {string} [linkedServiceName] The name of the compute linked + * service. + * @member {string} [status] The status of the activity run. + * @member {date} [activityRunStart] The start time of the activity run in + * 'ISO 8601' format. + * @member {date} [activityRunEnd] The end time of the activity run in 'ISO + * 8601' format. + * @member {number} [durationInMs] The duration of the activity run. + * @member {object} [input] The input for the activity. + * @member {object} [output] The output for the activity. + * @member {object} [error] The error if any from the activity run. + */ + constructor() { + } + + /** + * Defines the metadata of ActivityRun + * + * @returns {object} metadata of ActivityRun + * + */ + mapper() { + return { + required: false, + serializedName: 'ActivityRun', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityRun', + modelProperties: { + pipelineName: { + required: false, + readOnly: true, + serializedName: 'pipelineName', + type: { + name: 'String' + } + }, + pipelineRunId: { + required: false, + readOnly: true, + serializedName: 'pipelineRunId', + type: { + name: 'String' + } + }, + activityName: { + required: false, + readOnly: true, + serializedName: 'activityName', + type: { + name: 'String' + } + }, + activityType: { + required: false, + readOnly: true, + serializedName: 'activityType', + type: { + name: 'String' + } + }, + activityRunId: { + required: false, + readOnly: true, + serializedName: 'activityRunId', + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + readOnly: true, + serializedName: 'linkedServiceName', + type: { + name: 'String' + } + }, + status: { + required: false, + readOnly: true, + serializedName: 'status', + type: { + name: 'String' + } + }, + activityRunStart: { + required: false, + readOnly: true, + serializedName: 'activityRunStart', + type: { + name: 'DateTime' + } + }, + activityRunEnd: { + required: false, + readOnly: true, + serializedName: 'activityRunEnd', + type: { + name: 'DateTime' + } + }, + durationInMs: { + required: false, + readOnly: true, + serializedName: 'durationInMs', + type: { + name: 'Number' + } + }, + input: { + required: false, + readOnly: true, + serializedName: 'input', + type: { + name: 'Object' + } + }, + output: { + required: false, + readOnly: true, + serializedName: 'output', + type: { + name: 'Object' + } + }, + error: { + required: false, + readOnly: true, + serializedName: 'error', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ActivityRun; diff --git a/lib/services/datafactoryManagement/lib/lib/models/activityRunsListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/activityRunsListResponse.js new file mode 100644 index 0000000000..6735e59b9e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/activityRunsListResponse.js @@ -0,0 +1,80 @@ +/* + * 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'; + +/** + * A list activity runs. + */ +class ActivityRunsListResponse extends Array { + /** + * Create a ActivityRunsListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ActivityRunsListResponse + * + * @returns {object} metadata of ActivityRunsListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'ActivityRunsListResponse', + type: { + name: 'Composite', + className: 'ActivityRunsListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityRunElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityRun' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ActivityRunsListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/amazonMWSLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/amazonMWSLinkedService.js new file mode 100644 index 0000000000..be565f69eb --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/amazonMWSLinkedService.js @@ -0,0 +1,209 @@ +/* + * 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'); + +/** + * Amazon Marketplace Web Service linked service. + * + * @extends models['LinkedService'] + */ +class AmazonMWSLinkedService extends models['LinkedService'] { + /** + * Create a AmazonMWSLinkedService. + * @member {object} endpoint The endpoint of the Amazon MWS server, (i.e. + * mws.amazonservices.com) + * @member {object} marketplaceID The Amazon Marketplace ID you want to + * retrieve data from. To retrive data from multiple Marketplace IDs, + * seperate them with a comma (,). (i.e. A2EUQ1WTGCTBG2) + * @member {object} sellerID The Amazon seller ID. + * @member {object} [mwsAuthToken] The Amazon MWS authentication token. + * @member {string} [mwsAuthToken.type] Polymorphic Discriminator + * @member {object} accessKeyId The access key id used to access data. + * @member {object} [secretKey] The secret key used to access data. + * @member {string} [secretKey.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AmazonMWSLinkedService + * + * @returns {object} metadata of AmazonMWSLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AmazonMWS', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AmazonMWSLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + endpoint: { + required: true, + serializedName: 'typeProperties.endpoint', + type: { + name: 'Object' + } + }, + marketplaceID: { + required: true, + serializedName: 'typeProperties.marketplaceID', + type: { + name: 'Object' + } + }, + sellerID: { + required: true, + serializedName: 'typeProperties.sellerID', + type: { + name: 'Object' + } + }, + mwsAuthToken: { + required: false, + serializedName: 'typeProperties.mwsAuthToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + accessKeyId: { + required: true, + serializedName: 'typeProperties.accessKeyId', + type: { + name: 'Object' + } + }, + secretKey: { + required: false, + serializedName: 'typeProperties.secretKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AmazonMWSLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/amazonMWSObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/amazonMWSObjectDataset.js new file mode 100644 index 0000000000..e4346d72ac --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/amazonMWSObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Amazon Marketplace Web Service dataset. + * + * @extends models['Dataset'] + */ +class AmazonMWSObjectDataset extends models['Dataset'] { + /** + * Create a AmazonMWSObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AmazonMWSObjectDataset + * + * @returns {object} metadata of AmazonMWSObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AmazonMWSObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AmazonMWSObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = AmazonMWSObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/amazonMWSSource.js b/lib/services/datafactoryManagement/lib/lib/models/amazonMWSSource.js new file mode 100644 index 0000000000..2a13e3b767 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/amazonMWSSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Amazon Marketplace Web Service source. + * + * @extends models['CopySource'] + */ +class AmazonMWSSource extends models['CopySource'] { + /** + * Create a AmazonMWSSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AmazonMWSSource + * + * @returns {object} metadata of AmazonMWSSource + * + */ + mapper() { + return { + required: false, + serializedName: 'AmazonMWSSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'AmazonMWSSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AmazonMWSSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftLinkedService.js new file mode 100644 index 0000000000..e571510985 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftLinkedService.js @@ -0,0 +1,167 @@ +/* + * 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'); + +/** + * Linked service for Amazon Redshift. + * + * @extends models['LinkedService'] + */ +class AmazonRedshiftLinkedService extends models['LinkedService'] { + /** + * Create a AmazonRedshiftLinkedService. + * @member {object} server The name of the Amazon Redshift server. Type: + * string (or Expression with resultType string). + * @member {object} [username] The username of the Amazon Redshift source. + * Type: string (or Expression with resultType string). + * @member {object} [password] The password of the Amazon Redshift source. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} database The database name of the Amazon Redshift source. + * Type: string (or Expression with resultType string). + * @member {object} [port] The TCP port number that the Amazon Redshift + * server uses to listen for client connections. The default value is 5439. + * Type: integer (or Expression with resultType integer). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AmazonRedshiftLinkedService + * + * @returns {object} metadata of AmazonRedshiftLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AmazonRedshift', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AmazonRedshiftLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + database: { + required: true, + serializedName: 'typeProperties.database', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AmazonRedshiftLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftSource.js b/lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftSource.js new file mode 100644 index 0000000000..4c20bdbf13 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/amazonRedshiftSource.js @@ -0,0 +1,109 @@ +/* + * 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'); + +/** + * A copy activity source for Amazon Redshift Source. + * + * @extends models['CopySource'] + */ +class AmazonRedshiftSource extends models['CopySource'] { + /** + * Create a AmazonRedshiftSource. + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + * @member {object} [redshiftUnloadSettings] The Amazon S3 settings needed + * for the interim Amazon S3 when copying from Amazon Redshift with unload. + * With this, data from Amazon Redshift source will be unloaded into S3 first + * and then copied into the targeted sink from the interim S3. + * @member {object} [redshiftUnloadSettings.s3LinkedServiceName] The name of + * the Amazon S3 linked service which will be used for the unload operation + * when copying from the Amazon Redshift source. + * @member {string} + * [redshiftUnloadSettings.s3LinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [redshiftUnloadSettings.s3LinkedServiceName.parameters] + * Arguments for LinkedService. + * @member {object} [redshiftUnloadSettings.bucketName] The bucket of the + * interim Amazon S3 which will be used to store the unloaded data from + * Amazon Redshift source. The bucket must be in the same region as the + * Amazon Redshift source. Type: string (or Expression with resultType + * string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AmazonRedshiftSource + * + * @returns {object} metadata of AmazonRedshiftSource + * + */ + mapper() { + return { + required: false, + serializedName: 'AmazonRedshiftSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'AmazonRedshiftSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + }, + redshiftUnloadSettings: { + required: false, + serializedName: 'redshiftUnloadSettings', + type: { + name: 'Composite', + className: 'RedshiftUnloadSettings' + } + } + } + } + }; + } +} + +module.exports = AmazonRedshiftSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/amazonS3Dataset.js b/lib/services/datafactoryManagement/lib/lib/models/amazonS3Dataset.js new file mode 100644 index 0000000000..a33be82fd7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/amazonS3Dataset.js @@ -0,0 +1,208 @@ +/* + * 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'); + +/** + * A single Amazon Simple Storage Service (S3) object or a set of S3 objects. + * + * @extends models['Dataset'] + */ +class AmazonS3Dataset extends models['Dataset'] { + /** + * Create a AmazonS3Dataset. + * @member {object} bucketName The name of the Amazon S3 bucket. Type: string + * (or Expression with resultType string). + * @member {object} [key] The key of the Amazon S3 object. Type: string (or + * Expression with resultType string). + * @member {object} [prefix] The prefix filter for the S3 object name. Type: + * string (or Expression with resultType string). + * @member {object} [version] The version for the S3 object. Type: string (or + * Expression with resultType string). + * @member {object} [format] The format of files. + * @member {object} [format.serializer] Serializer. Type: string (or + * Expression with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used for the + * Amazon S3 object. + * @member {string} [compression.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AmazonS3Dataset + * + * @returns {object} metadata of AmazonS3Dataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AmazonS3Object', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AmazonS3Dataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + bucketName: { + required: true, + serializedName: 'typeProperties.bucketName', + type: { + name: 'Object' + } + }, + key: { + required: false, + serializedName: 'typeProperties.key', + type: { + name: 'Object' + } + }, + prefix: { + required: false, + serializedName: 'typeProperties.prefix', + type: { + name: 'Object' + } + }, + version: { + required: false, + serializedName: 'typeProperties.version', + type: { + name: 'Object' + } + }, + format: { + required: false, + serializedName: 'typeProperties.format', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'DatasetStorageFormat' + } + }, + compression: { + required: false, + serializedName: 'typeProperties.compression', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetCompression' + } + } + } + } + }; + } +} + +module.exports = AmazonS3Dataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/amazonS3LinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/amazonS3LinkedService.js new file mode 100644 index 0000000000..0c2304b112 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/amazonS3LinkedService.js @@ -0,0 +1,141 @@ +/* + * 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'); + +/** + * Linked service for Amazon S3. + * + * @extends models['LinkedService'] + */ +class AmazonS3LinkedService extends models['LinkedService'] { + /** + * Create a AmazonS3LinkedService. + * @member {object} [accessKeyId] The access key identifier of the Amazon S3 + * Identity and Access Management (IAM) user. Type: string (or Expression + * with resultType string). + * @member {object} [secretAccessKey] The secret access key of the Amazon S3 + * Identity and Access Management (IAM) user. + * @member {string} [secretAccessKey.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AmazonS3LinkedService + * + * @returns {object} metadata of AmazonS3LinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AmazonS3', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AmazonS3LinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + accessKeyId: { + required: false, + serializedName: 'typeProperties.accessKeyId', + type: { + name: 'Object' + } + }, + secretAccessKey: { + required: false, + serializedName: 'typeProperties.secretAccessKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AmazonS3LinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/avroFormat.js b/lib/services/datafactoryManagement/lib/lib/models/avroFormat.js new file mode 100644 index 0000000000..ea8eebba35 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/avroFormat.js @@ -0,0 +1,75 @@ +/* + * 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'); + +/** + * The data stored in Avro format. + * + * @extends models['DatasetStorageFormat'] + */ +class AvroFormat extends models['DatasetStorageFormat'] { + /** + * Create a AvroFormat. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AvroFormat + * + * @returns {object} metadata of AvroFormat + * + */ + mapper() { + return { + required: false, + serializedName: 'AvroFormat', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'AvroFormat', + modelProperties: { + serializer: { + required: false, + serializedName: 'serializer', + type: { + name: 'Object' + } + }, + deserializer: { + required: false, + serializedName: 'deserializer', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = AvroFormat; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureBatchLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureBatchLinkedService.js new file mode 100644 index 0000000000..3c4f00cfd8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureBatchLinkedService.js @@ -0,0 +1,172 @@ +/* + * 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'); + +/** + * Azure Batch linked service. + * + * @extends models['LinkedService'] + */ +class AzureBatchLinkedService extends models['LinkedService'] { + /** + * Create a AzureBatchLinkedService. + * @member {object} accountName The Azure Batch account name. Type: string + * (or Expression with resultType string). + * @member {object} [accessKey] The Azure Batch account access key. + * @member {string} [accessKey.type] Polymorphic Discriminator + * @member {object} batchUri The Azure Batch URI. Type: string (or Expression + * with resultType string). + * @member {object} poolName The Azure Batch pool name. Type: string (or + * Expression with resultType string). + * @member {object} linkedServiceName The Azure Storage linked service + * reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureBatchLinkedService + * + * @returns {object} metadata of AzureBatchLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureBatch', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureBatchLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + accountName: { + required: true, + serializedName: 'typeProperties.accountName', + type: { + name: 'Object' + } + }, + accessKey: { + required: false, + serializedName: 'typeProperties.accessKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + batchUri: { + required: true, + serializedName: 'typeProperties.batchUri', + type: { + name: 'Object' + } + }, + poolName: { + required: true, + serializedName: 'typeProperties.poolName', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'typeProperties.linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureBatchLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureBlobDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azureBlobDataset.js new file mode 100644 index 0000000000..2c1b818229 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureBlobDataset.js @@ -0,0 +1,199 @@ +/* + * 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'); + +/** + * The Azure Blob storage. + * + * @extends models['Dataset'] + */ +class AzureBlobDataset extends models['Dataset'] { + /** + * Create a AzureBlobDataset. + * @member {object} [folderPath] The path of the Azure Blob storage. Type: + * string (or Expression with resultType string). + * @member {object} [tableRootLocation] The root of blob path. Type: string + * (or Expression with resultType string). + * @member {object} [fileName] The name of the Azure Blob. Type: string (or + * Expression with resultType string). + * @member {object} [format] The format of the Azure Blob storage. + * @member {object} [format.serializer] Serializer. Type: string (or + * Expression with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used for the + * blob storage. + * @member {string} [compression.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureBlobDataset + * + * @returns {object} metadata of AzureBlobDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureBlob', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzureBlobDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + folderPath: { + required: false, + serializedName: 'typeProperties.folderPath', + type: { + name: 'Object' + } + }, + tableRootLocation: { + required: false, + serializedName: 'typeProperties.tableRootLocation', + type: { + name: 'Object' + } + }, + fileName: { + required: false, + serializedName: 'typeProperties.fileName', + type: { + name: 'Object' + } + }, + format: { + required: false, + serializedName: 'typeProperties.format', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'DatasetStorageFormat' + } + }, + compression: { + required: false, + serializedName: 'typeProperties.compression', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetCompression' + } + } + } + } + }; + } +} + +module.exports = AzureBlobDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeAnalyticsLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeAnalyticsLinkedService.js new file mode 100644 index 0000000000..4475d5a9fc --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeAnalyticsLinkedService.js @@ -0,0 +1,188 @@ +/* + * 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'); + +/** + * Azure Data Lake Analytics linked service. + * + * @extends models['LinkedService'] + */ +class AzureDataLakeAnalyticsLinkedService extends models['LinkedService'] { + /** + * Create a AzureDataLakeAnalyticsLinkedService. + * @member {object} accountName The Azure Data Lake Analytics account name. + * Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalId] The ID of the application used to + * authenticate against the Azure Data Lake Analytics account. Type: string + * (or Expression with resultType string). + * @member {object} [servicePrincipalKey] The Key of the application used to + * authenticate against the Azure Data Lake Analytics account. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} tenant The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). + * @member {object} [subscriptionId] Data Lake Analytics account subscription + * ID (if different from Data Factory account). Type: string (or Expression + * with resultType string). + * @member {object} [resourceGroupName] Data Lake Analytics account resource + * group name (if different from Data Factory account). Type: string (or + * Expression with resultType string). + * @member {object} [dataLakeAnalyticsUri] Azure Data Lake Analytics URI + * Type: string (or Expression with resultType string). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureDataLakeAnalyticsLinkedService + * + * @returns {object} metadata of AzureDataLakeAnalyticsLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureDataLakeAnalytics', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureDataLakeAnalyticsLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + accountName: { + required: true, + serializedName: 'typeProperties.accountName', + type: { + name: 'Object' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: true, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' + } + }, + subscriptionId: { + required: false, + serializedName: 'typeProperties.subscriptionId', + type: { + name: 'Object' + } + }, + resourceGroupName: { + required: false, + serializedName: 'typeProperties.resourceGroupName', + type: { + name: 'Object' + } + }, + dataLakeAnalyticsUri: { + required: false, + serializedName: 'typeProperties.dataLakeAnalyticsUri', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureDataLakeAnalyticsLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreDataset.js new file mode 100644 index 0000000000..acb1d905e0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreDataset.js @@ -0,0 +1,190 @@ +/* + * 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'); + +/** + * Azure Data Lake Store dataset. + * + * @extends models['Dataset'] + */ +class AzureDataLakeStoreDataset extends models['Dataset'] { + /** + * Create a AzureDataLakeStoreDataset. + * @member {object} folderPath Path to the folder in the Azure Data Lake + * Store. Type: string (or Expression with resultType string). + * @member {object} [fileName] The name of the file in the Azure Data Lake + * Store. Type: string (or Expression with resultType string). + * @member {object} [format] The format of the Data Lake Store. + * @member {object} [format.serializer] Serializer. Type: string (or + * Expression with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used for the + * item(s) in the Azure Data Lake Store. + * @member {string} [compression.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureDataLakeStoreDataset + * + * @returns {object} metadata of AzureDataLakeStoreDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureDataLakeStoreFile', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzureDataLakeStoreDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + folderPath: { + required: true, + serializedName: 'typeProperties.folderPath', + type: { + name: 'Object' + } + }, + fileName: { + required: false, + serializedName: 'typeProperties.fileName', + type: { + name: 'Object' + } + }, + format: { + required: false, + serializedName: 'typeProperties.format', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'DatasetStorageFormat' + } + }, + compression: { + required: false, + serializedName: 'typeProperties.compression', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetCompression' + } + } + } + } + }; + } +} + +module.exports = AzureDataLakeStoreDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreLinkedService.js new file mode 100644 index 0000000000..e5129d8c8f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreLinkedService.js @@ -0,0 +1,189 @@ +/* + * 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'); + +/** + * Azure Data Lake Store linked service. + * + * @extends models['LinkedService'] + */ +class AzureDataLakeStoreLinkedService extends models['LinkedService'] { + /** + * Create a AzureDataLakeStoreLinkedService. + * @member {object} dataLakeStoreUri Data Lake Store service URI. Type: + * string (or Expression with resultType string). + * @member {object} [servicePrincipalId] The ID of the application used to + * authenticate against the Azure Data Lake Store account. Type: string (or + * Expression with resultType string). + * @member {object} [servicePrincipalKey] The Key of the application used to + * authenticate against the Azure Data Lake Store account. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the + * service principal belongs. Type: string (or Expression with resultType + * string). + * @member {object} [accountName] Data Lake Store account name. Type: string + * (or Expression with resultType string). + * @member {object} [subscriptionId] Data Lake Store account subscription ID + * (if different from Data Factory account). Type: string (or Expression with + * resultType string). + * @member {object} [resourceGroupName] Data Lake Store account resource + * group name (if different from Data Factory account). Type: string (or + * Expression with resultType string). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureDataLakeStoreLinkedService + * + * @returns {object} metadata of AzureDataLakeStoreLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureDataLakeStore', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureDataLakeStoreLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + dataLakeStoreUri: { + required: true, + serializedName: 'typeProperties.dataLakeStoreUri', + type: { + name: 'Object' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: false, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' + } + }, + accountName: { + required: false, + serializedName: 'typeProperties.accountName', + type: { + name: 'Object' + } + }, + subscriptionId: { + required: false, + serializedName: 'typeProperties.subscriptionId', + type: { + name: 'Object' + } + }, + resourceGroupName: { + required: false, + serializedName: 'typeProperties.resourceGroupName', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureDataLakeStoreLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSink.js b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSink.js new file mode 100644 index 0000000000..8579b2c97b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSink.js @@ -0,0 +1,99 @@ +/* + * 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'); + +/** + * A copy activity Azure Data Lake Store sink. + * + * @extends models['CopySink'] + */ +class AzureDataLakeStoreSink extends models['CopySink'] { + /** + * Create a AzureDataLakeStoreSink. + * @member {string} [copyBehavior] The type of copy behavior for copy sink. + * Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', + * 'MergeFiles' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureDataLakeStoreSink + * + * @returns {object} metadata of AzureDataLakeStoreSink + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureDataLakeStoreSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'AzureDataLakeStoreSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + copyBehavior: { + required: false, + serializedName: 'copyBehavior', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = AzureDataLakeStoreSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSource.js b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSource.js new file mode 100644 index 0000000000..d1bd29f33a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureDataLakeStoreSource.js @@ -0,0 +1,85 @@ +/* + * 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'); + +/** + * A copy activity Azure Data Lake source. + * + * @extends models['CopySource'] + */ +class AzureDataLakeStoreSource extends models['CopySource'] { + /** + * Create a AzureDataLakeStoreSource. + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureDataLakeStoreSource + * + * @returns {object} metadata of AzureDataLakeStoreSource + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureDataLakeStoreSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'AzureDataLakeStoreSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + recursive: { + required: false, + serializedName: 'recursive', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureDataLakeStoreSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureDatabricksLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureDatabricksLinkedService.js new file mode 100644 index 0000000000..8f6d5a7670 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureDatabricksLinkedService.js @@ -0,0 +1,197 @@ +/* + * 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'); + +/** + * Azure Databricks linked service. + * + * @extends models['LinkedService'] + */ +class AzureDatabricksLinkedService extends models['LinkedService'] { + /** + * Create a AzureDatabricksLinkedService. + * @member {object} domain .azuredatabricks.net, domain name of your + * Databricks deployment. Type: string (or Expression with resultType + * string). + * @member {object} accessToken Access token for databricks REST API. Refer + * to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: + * string (or Expression with resultType string). + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [existingClusterId] The id of an existing cluster that + * will be used for all runs of this job. Type: string (or Expression with + * resultType string). + * @member {object} [newClusterVersion] The Spark version of new cluster. + * Type: string (or Expression with resultType string). + * @member {object} [newClusterNumOfWorker] Number of worker nodes that new + * cluster should have. A string formatted Int32, like '1' means numOfWorker + * is 1 or '1:10' means auto-scale from 1 as min and 10 as max. Type: string + * (or Expression with resultType string). + * @member {object} [newClusterNodeType] The node types of new cluster. Type: + * string (or Expression with resultType string). + * @member {object} [newClusterSparkConf] a set of optional, user-specified + * Spark configuration key-value pairs. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureDatabricksLinkedService + * + * @returns {object} metadata of AzureDatabricksLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureDatabricks', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureDatabricksLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + domain: { + required: true, + serializedName: 'typeProperties.domain', + type: { + name: 'Object' + } + }, + accessToken: { + required: true, + serializedName: 'typeProperties.accessToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + existingClusterId: { + required: false, + serializedName: 'typeProperties.existingClusterId', + type: { + name: 'Object' + } + }, + newClusterVersion: { + required: false, + serializedName: 'typeProperties.newClusterVersion', + type: { + name: 'Object' + } + }, + newClusterNumOfWorker: { + required: false, + serializedName: 'typeProperties.newClusterNumOfWorker', + type: { + name: 'Object' + } + }, + newClusterNodeType: { + required: false, + serializedName: 'typeProperties.newClusterNodeType', + type: { + name: 'Object' + } + }, + newClusterSparkConf: { + required: false, + serializedName: 'typeProperties.newClusterSparkConf', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureDatabricksLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultLinkedService.js new file mode 100644 index 0000000000..6cfb00ca9d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultLinkedService.js @@ -0,0 +1,115 @@ +/* + * 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'); + +/** + * Azure Key Vault linked service. + * + * @extends models['LinkedService'] + */ +class AzureKeyVaultLinkedService extends models['LinkedService'] { + /** + * Create a AzureKeyVaultLinkedService. + * @member {object} baseUrl The base URL of the Azure Key Vault. e.g. + * https://myakv.vault.azure.net Type: string (or Expression with resultType + * string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureKeyVaultLinkedService + * + * @returns {object} metadata of AzureKeyVaultLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureKeyVault', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureKeyVaultLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + baseUrl: { + required: true, + serializedName: 'typeProperties.baseUrl', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureKeyVaultLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultSecretReference.js b/lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultSecretReference.js new file mode 100644 index 0000000000..6493a950cf --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureKeyVaultSecretReference.js @@ -0,0 +1,92 @@ +/* + * 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'); + +/** + * Azure Key Vault secret reference. + * + * @extends models['SecretBase'] + */ +class AzureKeyVaultSecretReference extends models['SecretBase'] { + /** + * Create a AzureKeyVaultSecretReference. + * @member {object} store The Azure Key Vault linked service reference. + * @member {string} [store.referenceName] Reference LinkedService name. + * @member {object} [store.parameters] Arguments for LinkedService. + * @member {object} secretName The name of the secret in Azure Key Vault. + * Type: string (or Expression with resultType string). + * @member {object} [secretVersion] The version of the secret in Azure Key + * Vault. The default value is the latest version of the secret. Type: string + * (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureKeyVaultSecretReference + * + * @returns {object} metadata of AzureKeyVaultSecretReference + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureKeyVaultSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'AzureKeyVaultSecretReference', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + store: { + required: true, + serializedName: 'store', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + secretName: { + required: true, + serializedName: 'secretName', + type: { + name: 'Object' + } + }, + secretVersion: { + required: false, + serializedName: 'secretVersion', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureKeyVaultSecretReference; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureMLBatchExecutionActivity.js b/lib/services/datafactoryManagement/lib/lib/models/azureMLBatchExecutionActivity.js new file mode 100644 index 0000000000..b8bed79284 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureMLBatchExecutionActivity.js @@ -0,0 +1,187 @@ +/* + * 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'); + +/** + * Azure ML Batch Execution activity. + * + * @extends models['ExecutionActivity'] + */ +class AzureMLBatchExecutionActivity extends models['ExecutionActivity'] { + /** + * Create a AzureMLBatchExecutionActivity. + * @member {object} [globalParameters] Key,Value pairs to be passed to the + * Azure ML Batch Execution Service endpoint. Keys must match the names of + * web service parameters defined in the published Azure ML web service. + * Values will be passed in the GlobalParameters property of the Azure ML + * batch execution request. + * @member {object} [webServiceOutputs] Key,Value pairs, mapping the names of + * Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects + * specifying the output Blob locations. This information will be passed in + * the WebServiceOutputs property of the Azure ML batch execution request. + * @member {object} [webServiceInputs] Key,Value pairs, mapping the names of + * Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects + * specifying the input Blob locations.. This information will be passed in + * the WebServiceInputs property of the Azure ML batch execution request. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureMLBatchExecutionActivity + * + * @returns {object} metadata of AzureMLBatchExecutionActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureMLBatchExecution', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'AzureMLBatchExecutionActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + globalParameters: { + required: false, + serializedName: 'typeProperties.globalParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + webServiceOutputs: { + required: false, + serializedName: 'typeProperties.webServiceOutputs', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'AzureMLWebServiceFileElementType', + type: { + name: 'Composite', + className: 'AzureMLWebServiceFile' + } + } + } + }, + webServiceInputs: { + required: false, + serializedName: 'typeProperties.webServiceInputs', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'AzureMLWebServiceFileElementType', + type: { + name: 'Composite', + className: 'AzureMLWebServiceFile' + } + } + } + } + } + } + }; + } +} + +module.exports = AzureMLBatchExecutionActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureMLLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureMLLinkedService.js new file mode 100644 index 0000000000..1e33facd4b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureMLLinkedService.js @@ -0,0 +1,187 @@ +/* + * 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'); + +/** + * Azure ML Web Service linked service. + * + * @extends models['LinkedService'] + */ +class AzureMLLinkedService extends models['LinkedService'] { + /** + * Create a AzureMLLinkedService. + * @member {object} mlEndpoint The Batch Execution REST URL for an Azure ML + * Web Service endpoint. Type: string (or Expression with resultType string). + * @member {object} apiKey The API key for accessing the Azure ML model + * endpoint. + * @member {string} [apiKey.type] Polymorphic Discriminator + * @member {object} [updateResourceEndpoint] The Update Resource REST URL for + * an Azure ML Web Service endpoint. Type: string (or Expression with + * resultType string). + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against the ARM-based updateResourceEndpoint of an Azure + * ML web service. Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal + * used to authenticate against the ARM-based updateResourceEndpoint of an + * Azure ML web service. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the + * service principal belongs. Type: string (or Expression with resultType + * string). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureMLLinkedService + * + * @returns {object} metadata of AzureMLLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureML', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureMLLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + mlEndpoint: { + required: true, + serializedName: 'typeProperties.mlEndpoint', + type: { + name: 'Object' + } + }, + apiKey: { + required: true, + serializedName: 'typeProperties.apiKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + updateResourceEndpoint: { + required: false, + serializedName: 'typeProperties.updateResourceEndpoint', + type: { + name: 'Object' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: false, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureMLLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureMLUpdateResourceActivity.js b/lib/services/datafactoryManagement/lib/lib/models/azureMLUpdateResourceActivity.js new file mode 100644 index 0000000000..eef9a9d136 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureMLUpdateResourceActivity.js @@ -0,0 +1,167 @@ +/* + * 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'); + +/** + * Azure ML Update Resource management activity. + * + * @extends models['ExecutionActivity'] + */ +class AzureMLUpdateResourceActivity extends models['ExecutionActivity'] { + /** + * Create a AzureMLUpdateResourceActivity. + * @member {object} trainedModelName Name of the Trained Model module in the + * Web Service experiment to be updated. Type: string (or Expression with + * resultType string). + * @member {object} trainedModelLinkedServiceName Name of Azure Storage + * linked service holding the .ilearner file that will be uploaded by the + * update operation. + * @member {string} [trainedModelLinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [trainedModelLinkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} trainedModelFilePath The relative file path in + * trainedModelLinkedService to represent the .ilearner file that will be + * uploaded by the update operation. Type: string (or Expression with + * resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureMLUpdateResourceActivity + * + * @returns {object} metadata of AzureMLUpdateResourceActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureMLUpdateResource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'AzureMLUpdateResourceActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + trainedModelName: { + required: true, + serializedName: 'typeProperties.trainedModelName', + type: { + name: 'Object' + } + }, + trainedModelLinkedServiceName: { + required: true, + serializedName: 'typeProperties.trainedModelLinkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + trainedModelFilePath: { + required: true, + serializedName: 'typeProperties.trainedModelFilePath', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureMLUpdateResourceActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureMLWebServiceFile.js b/lib/services/datafactoryManagement/lib/lib/models/azureMLWebServiceFile.js new file mode 100644 index 0000000000..0e0fc87c7e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureMLWebServiceFile.js @@ -0,0 +1,71 @@ +/* + * 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'); + +/** + * Azure ML WebService Input/Output file + * + */ +class AzureMLWebServiceFile { + /** + * Create a AzureMLWebServiceFile. + * @member {object} filePath The relative file path, including container + * name, in the Azure Blob Storage specified by the LinkedService. Type: + * string (or Expression with resultType string). + * @member {object} linkedServiceName Reference to an Azure Storage + * LinkedService, where Azure ML WebService Input/Output file located. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. + */ + constructor() { + } + + /** + * Defines the metadata of AzureMLWebServiceFile + * + * @returns {object} metadata of AzureMLWebServiceFile + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureMLWebServiceFile', + type: { + name: 'Composite', + className: 'AzureMLWebServiceFile', + modelProperties: { + filePath: { + required: true, + serializedName: 'filePath', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + } + }; + } +} + +module.exports = AzureMLWebServiceFile; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureMySqlLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureMySqlLinkedService.js new file mode 100644 index 0000000000..cf0826791b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureMySqlLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Azure MySQL database linked service. + * + * @extends models['LinkedService'] + */ +class AzureMySqlLinkedService extends models['LinkedService'] { + /** + * Create a AzureMySqlLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureMySqlLinkedService + * + * @returns {object} metadata of AzureMySqlLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureMySql', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureMySqlLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureMySqlLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureMySqlSource.js b/lib/services/datafactoryManagement/lib/lib/models/azureMySqlSource.js new file mode 100644 index 0000000000..75eae8ab98 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureMySqlSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Azure MySQL source. + * + * @extends models['CopySource'] + */ +class AzureMySqlSource extends models['CopySource'] { + /** + * Create a AzureMySqlSource. + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureMySqlSource + * + * @returns {object} metadata of AzureMySqlSource + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureMySqlSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'AzureMySqlSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureMySqlSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureMySqlTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azureMySqlTableDataset.js new file mode 100644 index 0000000000..6530928127 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureMySqlTableDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Azure MySQL database dataset. + * + * @extends models['Dataset'] + */ +class AzureMySqlTableDataset extends models['Dataset'] { + /** + * Create a AzureMySqlTableDataset. + * @member {object} [tableName] The Azure MySQL database table name. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureMySqlTableDataset + * + * @returns {object} metadata of AzureMySqlTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureMySqlTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzureMySqlTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: false, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureMySqlTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlLinkedService.js new file mode 100644 index 0000000000..8a535d4ded --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Azure PostgreSQL linked service. + * + * @extends models['LinkedService'] + */ +class AzurePostgreSqlLinkedService extends models['LinkedService'] { + /** + * Create a AzurePostgreSqlLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzurePostgreSqlLinkedService + * + * @returns {object} metadata of AzurePostgreSqlLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzurePostgreSql', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzurePostgreSqlLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzurePostgreSqlLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlSource.js b/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlSource.js new file mode 100644 index 0000000000..b1fd487dbc --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Azure PostgreSQL source. + * + * @extends models['CopySource'] + */ +class AzurePostgreSqlSource extends models['CopySource'] { + /** + * Create a AzurePostgreSqlSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzurePostgreSqlSource + * + * @returns {object} metadata of AzurePostgreSqlSource + * + */ + mapper() { + return { + required: false, + serializedName: 'AzurePostgreSqlSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'AzurePostgreSqlSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzurePostgreSqlSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlTableDataset.js new file mode 100644 index 0000000000..1898710ca0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azurePostgreSqlTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Azure PostgreSQL dataset. + * + * @extends models['Dataset'] + */ +class AzurePostgreSqlTableDataset extends models['Dataset'] { + /** + * Create a AzurePostgreSqlTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzurePostgreSqlTableDataset + * + * @returns {object} metadata of AzurePostgreSqlTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzurePostgreSqlTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzurePostgreSqlTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = AzurePostgreSqlTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureQueueSink.js b/lib/services/datafactoryManagement/lib/lib/models/azureQueueSink.js new file mode 100644 index 0000000000..4af0fd638e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureQueueSink.js @@ -0,0 +1,89 @@ +/* + * 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'); + +/** + * A copy activity Azure Queue sink. + * + * @extends models['CopySink'] + */ +class AzureQueueSink extends models['CopySink'] { + /** + * Create a AzureQueueSink. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureQueueSink + * + * @returns {object} metadata of AzureQueueSink + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureQueueSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'AzureQueueSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = AzureQueueSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexDataset.js new file mode 100644 index 0000000000..db5899a383 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Azure Search Index. + * + * @extends models['Dataset'] + */ +class AzureSearchIndexDataset extends models['Dataset'] { + /** + * Create a AzureSearchIndexDataset. + * @member {object} indexName The name of the Azure Search Index. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureSearchIndexDataset + * + * @returns {object} metadata of AzureSearchIndexDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureSearchIndex', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzureSearchIndexDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + indexName: { + required: true, + serializedName: 'typeProperties.indexName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureSearchIndexDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexSink.js b/lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexSink.js new file mode 100644 index 0000000000..7cc5972c20 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureSearchIndexSink.js @@ -0,0 +1,99 @@ +/* + * 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'); + +/** + * A copy activity Azure Search Index sink. + * + * @extends models['CopySink'] + */ +class AzureSearchIndexSink extends models['CopySink'] { + /** + * Create a AzureSearchIndexSink. + * @member {string} [writeBehavior] Specify the write behavior when upserting + * documents into Azure Search Index. Possible values include: 'Merge', + * 'Upload' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureSearchIndexSink + * + * @returns {object} metadata of AzureSearchIndexSink + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureSearchIndexSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'AzureSearchIndexSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + writeBehavior: { + required: false, + serializedName: 'writeBehavior', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = AzureSearchIndexSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureSearchLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureSearchLinkedService.js new file mode 100644 index 0000000000..d59c0671d9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureSearchLinkedService.js @@ -0,0 +1,139 @@ +/* + * 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'); + +/** + * Linked service for Windows Azure Search Service. + * + * @extends models['LinkedService'] + */ +class AzureSearchLinkedService extends models['LinkedService'] { + /** + * Create a AzureSearchLinkedService. + * @member {object} url URL for Azure Search service. Type: string (or + * Expression with resultType string). + * @member {object} [key] Admin Key for Azure Search service + * @member {string} [key.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureSearchLinkedService + * + * @returns {object} metadata of AzureSearchLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureSearch', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureSearchLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'Object' + } + }, + key: { + required: false, + serializedName: 'typeProperties.key', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureSearchLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureSqlDWLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureSqlDWLinkedService.js new file mode 100644 index 0000000000..6264ac19be --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureSqlDWLinkedService.js @@ -0,0 +1,166 @@ +/* + * 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'); + +/** + * Azure SQL Data Warehouse linked service. + * + * @extends models['LinkedService'] + */ +class AzureSqlDWLinkedService extends models['LinkedService'] { + /** + * Create a AzureSqlDWLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal + * used to authenticate against Azure SQL Data Warehouse. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the + * service principal belongs. Type: string (or Expression with resultType + * string). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureSqlDWLinkedService + * + * @returns {object} metadata of AzureSqlDWLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureSqlDW', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureSqlDWLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: false, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureSqlDWLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureSqlDWTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azureSqlDWTableDataset.js new file mode 100644 index 0000000000..46cb2abb95 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureSqlDWTableDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Azure SQL Data Warehouse dataset. + * + * @extends models['Dataset'] + */ +class AzureSqlDWTableDataset extends models['Dataset'] { + /** + * Create a AzureSqlDWTableDataset. + * @member {object} tableName The table name of the Azure SQL Data Warehouse. + * Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureSqlDWTableDataset + * + * @returns {object} metadata of AzureSqlDWTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureSqlDWTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzureSqlDWTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: true, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureSqlDWTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureSqlDatabaseLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureSqlDatabaseLinkedService.js new file mode 100644 index 0000000000..0ca9d4baaf --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureSqlDatabaseLinkedService.js @@ -0,0 +1,166 @@ +/* + * 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'); + +/** + * Microsoft Azure SQL Database linked service. + * + * @extends models['LinkedService'] + */ +class AzureSqlDatabaseLinkedService extends models['LinkedService'] { + /** + * Create a AzureSqlDatabaseLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Database. Type: string (or Expression + * with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal + * used to authenticate against Azure SQL Database. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the + * service principal belongs. Type: string (or Expression with resultType + * string). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureSqlDatabaseLinkedService + * + * @returns {object} metadata of AzureSqlDatabaseLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureSqlDatabase', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureSqlDatabaseLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: false, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureSqlDatabaseLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureSqlTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azureSqlTableDataset.js new file mode 100644 index 0000000000..ed0d558f1e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureSqlTableDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Azure SQL Server database dataset. + * + * @extends models['Dataset'] + */ +class AzureSqlTableDataset extends models['Dataset'] { + /** + * Create a AzureSqlTableDataset. + * @member {object} tableName The table name of the Azure SQL database. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureSqlTableDataset + * + * @returns {object} metadata of AzureSqlTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureSqlTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzureSqlTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: true, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureSqlTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureStorageLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/azureStorageLinkedService.js new file mode 100644 index 0000000000..4fcf76727b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureStorageLinkedService.js @@ -0,0 +1,147 @@ +/* + * 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'); + +/** + * The storage account linked service. + * + * @extends models['LinkedService'] + */ +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 + * @member {object} [sasUri] SAS URI of the Azure Storage resource. It is + * mutually exclusive with connectionString property. + * @member {string} [sasUri.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureStorageLinkedService + * + * @returns {object} metadata of AzureStorageLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureStorage', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'AzureStorageLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + sasUri: { + required: false, + serializedName: 'typeProperties.sasUri', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureStorageLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/azureTableDataset.js new file mode 100644 index 0000000000..d54214ec17 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureTableDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Azure Table storage dataset. + * + * @extends models['Dataset'] + */ +class AzureTableDataset extends models['Dataset'] { + /** + * Create a AzureTableDataset. + * @member {object} tableName The table name of the Azure Table storage. + * Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureTableDataset + * + * @returns {object} metadata of AzureTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'AzureTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: true, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureTableSink.js b/lib/services/datafactoryManagement/lib/lib/models/azureTableSink.js new file mode 100644 index 0000000000..9284deb142 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureTableSink.js @@ -0,0 +1,125 @@ +/* + * 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'); + +/** + * A copy activity Azure Table sink. + * + * @extends models['CopySink'] + */ +class AzureTableSink extends models['CopySink'] { + /** + * Create a AzureTableSink. + * @member {object} [azureTableDefaultPartitionKeyValue] Azure Table default + * partition key value. Type: string (or Expression with resultType string). + * @member {object} [azureTablePartitionKeyName] Azure Table partition key + * name. Type: string (or Expression with resultType string). + * @member {object} [azureTableRowKeyName] Azure Table row key name. Type: + * string (or Expression with resultType string). + * @member {object} [azureTableInsertType] Azure Table insert type. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureTableSink + * + * @returns {object} metadata of AzureTableSink + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureTableSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'AzureTableSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + azureTableDefaultPartitionKeyValue: { + required: false, + serializedName: 'azureTableDefaultPartitionKeyValue', + type: { + name: 'Object' + } + }, + azureTablePartitionKeyName: { + required: false, + serializedName: 'azureTablePartitionKeyName', + type: { + name: 'Object' + } + }, + azureTableRowKeyName: { + required: false, + serializedName: 'azureTableRowKeyName', + type: { + name: 'Object' + } + }, + azureTableInsertType: { + required: false, + serializedName: 'azureTableInsertType', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureTableSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/azureTableSource.js b/lib/services/datafactoryManagement/lib/lib/models/azureTableSource.js new file mode 100644 index 0000000000..8b159f5f59 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/azureTableSource.js @@ -0,0 +1,94 @@ +/* + * 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'); + +/** + * A copy activity Azure Table source. + * + * @extends models['CopySource'] + */ +class AzureTableSource extends models['CopySource'] { + /** + * Create a AzureTableSource. + * @member {object} [azureTableSourceQuery] Azure Table source query. Type: + * string (or Expression with resultType string). + * @member {object} [azureTableSourceIgnoreTableNotFound] Azure Table source + * ignore table not found. Type: boolean (or Expression with resultType + * boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureTableSource + * + * @returns {object} metadata of AzureTableSource + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureTableSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'AzureTableSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + azureTableSourceQuery: { + required: false, + serializedName: 'azureTableSourceQuery', + type: { + name: 'Object' + } + }, + azureTableSourceIgnoreTableNotFound: { + required: false, + serializedName: 'azureTableSourceIgnoreTableNotFound', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AzureTableSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/blobSink.js b/lib/services/datafactoryManagement/lib/lib/models/blobSink.js new file mode 100644 index 0000000000..0c549d1d5f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/blobSink.js @@ -0,0 +1,126 @@ +/* + * 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'); + +/** + * A copy activity Azure Blob sink. + * + * @extends models['CopySink'] + */ +class BlobSink extends models['CopySink'] { + /** + * Create a BlobSink. + * @member {object} [blobWriterOverwriteFiles] Blob writer overwrite files. + * Type: boolean (or Expression with resultType boolean). + * @member {object} [blobWriterDateTimeFormat] Blob writer date time format. + * Type: string (or Expression with resultType string). + * @member {object} [blobWriterAddHeader] Blob writer add header. Type: + * boolean (or Expression with resultType boolean). + * @member {string} [copyBehavior] The type of copy behavior for copy sink. + * Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', + * 'MergeFiles' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of BlobSink + * + * @returns {object} metadata of BlobSink + * + */ + mapper() { + return { + required: false, + serializedName: 'BlobSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'BlobSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + blobWriterOverwriteFiles: { + required: false, + serializedName: 'blobWriterOverwriteFiles', + type: { + name: 'Object' + } + }, + blobWriterDateTimeFormat: { + required: false, + serializedName: 'blobWriterDateTimeFormat', + type: { + name: 'Object' + } + }, + blobWriterAddHeader: { + required: false, + serializedName: 'blobWriterAddHeader', + type: { + name: 'Object' + } + }, + copyBehavior: { + required: false, + serializedName: 'copyBehavior', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = BlobSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/blobSource.js b/lib/services/datafactoryManagement/lib/lib/models/blobSource.js new file mode 100644 index 0000000000..8072f09c5c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/blobSource.js @@ -0,0 +1,103 @@ +/* + * 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'); + +/** + * A copy activity Azure Blob source. + * + * @extends models['CopySource'] + */ +class BlobSource extends models['CopySource'] { + /** + * Create a BlobSource. + * @member {object} [treatEmptyAsNull] Treat empty as null. Type: boolean (or + * Expression with resultType boolean). + * @member {object} [skipHeaderLineCount] Number of header lines to skip from + * each blob. Type: integer (or Expression with resultType integer). + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of BlobSource + * + * @returns {object} metadata of BlobSource + * + */ + mapper() { + return { + required: false, + serializedName: 'BlobSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'BlobSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + treatEmptyAsNull: { + required: false, + serializedName: 'treatEmptyAsNull', + type: { + name: 'Object' + } + }, + skipHeaderLineCount: { + required: false, + serializedName: 'skipHeaderLineCount', + type: { + name: 'Object' + } + }, + recursive: { + required: false, + serializedName: 'recursive', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = BlobSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/blobTrigger.js b/lib/services/datafactoryManagement/lib/lib/models/blobTrigger.js new file mode 100644 index 0000000000..924220a262 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/blobTrigger.js @@ -0,0 +1,122 @@ +/* + * 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 the selected Blob container changes. + * + * @extends models['MultiplePipelineTrigger'] + */ +class BlobTrigger extends models['MultiplePipelineTrigger'] { + /** + * Create a BlobTrigger. + * @member {string} folderPath The path of the container/folder that will + * trigger the pipeline. + * @member {number} maxConcurrency The max number of parallel files to handle + * when it is triggered. + * @member {object} linkedService The Azure Storage linked service reference. + * @member {string} [linkedService.referenceName] Reference LinkedService + * name. + * @member {object} [linkedService.parameters] Arguments for LinkedService. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of BlobTrigger + * + * @returns {object} metadata of BlobTrigger + * + */ + mapper() { + return { + required: false, + serializedName: 'BlobTrigger', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', + className: 'BlobTrigger', + 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' + } + } + } + }, + folderPath: { + required: true, + serializedName: 'typeProperties.folderPath', + type: { + name: 'String' + } + }, + maxConcurrency: { + required: true, + serializedName: 'typeProperties.maxConcurrency', + type: { + name: 'Number' + } + }, + linkedService: { + required: true, + serializedName: 'typeProperties.linkedService', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + } + }; + } +} + +module.exports = BlobTrigger; diff --git a/lib/services/datafactoryManagement/lib/lib/models/cassandraLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/cassandraLinkedService.js new file mode 100644 index 0000000000..50d0e63445 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/cassandraLinkedService.js @@ -0,0 +1,166 @@ +/* + * 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'); + +/** + * Linked service for Cassandra data source. + * + * @extends models['LinkedService'] + */ +class CassandraLinkedService extends models['LinkedService'] { + /** + * Create a CassandraLinkedService. + * @member {object} host Host name for connection. Type: string (or + * Expression with resultType string). + * @member {object} [authenticationType] AuthenticationType to be used for + * connection. Type: string (or Expression with resultType string). + * @member {object} [port] The port for the connection. Type: integer (or + * Expression with resultType integer). + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CassandraLinkedService + * + * @returns {object} metadata of CassandraLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Cassandra', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'CassandraLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = CassandraLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/cassandraSource.js b/lib/services/datafactoryManagement/lib/lib/models/cassandraSource.js new file mode 100644 index 0000000000..5f1b750203 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/cassandraSource.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'; + +const models = require('./index'); + +/** + * A copy activity source for a Cassandra database. + * + * @extends models['CopySource'] + */ +class CassandraSource extends models['CopySource'] { + /** + * Create a CassandraSource. + * @member {object} [query] Database query. Should be a SQL-92 query + * expression or Cassandra Query Language (CQL) command. Type: string (or + * Expression with resultType string). + * @member {string} [consistencyLevel] The consistency level specifies how + * many Cassandra servers must respond to a read request before returning + * data to the client application. Cassandra checks the specified number of + * Cassandra servers for data to satisfy the read request. Must be one of + * cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is + * case-insensitive. Possible values include: 'ALL', 'EACH_QUORUM', 'QUORUM', + * 'LOCAL_QUORUM', 'ONE', 'TWO', 'THREE', 'LOCAL_ONE', 'SERIAL', + * 'LOCAL_SERIAL' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CassandraSource + * + * @returns {object} metadata of CassandraSource + * + */ + mapper() { + return { + required: false, + serializedName: 'CassandraSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'CassandraSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + }, + consistencyLevel: { + required: false, + serializedName: 'consistencyLevel', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CassandraSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/cassandraTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/cassandraTableDataset.js new file mode 100644 index 0000000000..344c041167 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/cassandraTableDataset.js @@ -0,0 +1,131 @@ +/* + * 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'); + +/** + * The Cassandra database dataset. + * + * @extends models['Dataset'] + */ +class CassandraTableDataset extends models['Dataset'] { + /** + * Create a CassandraTableDataset. + * @member {object} [tableName] The table name of the Cassandra database. + * Type: string (or Expression with resultType string). + * @member {object} [keyspace] The keyspace of the Cassandra database. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CassandraTableDataset + * + * @returns {object} metadata of CassandraTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'CassandraTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'CassandraTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: false, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + }, + keyspace: { + required: false, + serializedName: 'typeProperties.keyspace', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = CassandraTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/concurLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/concurLinkedService.js new file mode 100644 index 0000000000..204f58e022 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/concurLinkedService.js @@ -0,0 +1,178 @@ +/* + * 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'); + +/** + * Concur Serivce linked service. + * + * @extends models['LinkedService'] + */ +class ConcurLinkedService extends models['LinkedService'] { + /** + * Create a ConcurLinkedService. + * @member {object} clientId Application client_id supplied by Concur App + * Management. + * @member {object} username The user name that you use to access Concur + * Service. + * @member {object} [password] The password corresponding to the user name + * that you provided in the username field. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ConcurLinkedService + * + * @returns {object} metadata of ConcurLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Concur', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'ConcurLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + username: { + required: true, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ConcurLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/concurObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/concurObjectDataset.js new file mode 100644 index 0000000000..4c56cff600 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/concurObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Concur Serivce dataset. + * + * @extends models['Dataset'] + */ +class ConcurObjectDataset extends models['Dataset'] { + /** + * Create a ConcurObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ConcurObjectDataset + * + * @returns {object} metadata of ConcurObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'ConcurObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'ConcurObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = ConcurObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/concurSource.js b/lib/services/datafactoryManagement/lib/lib/models/concurSource.js new file mode 100644 index 0000000000..d9003bafd8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/concurSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Concur Serivce source. + * + * @extends models['CopySource'] + */ +class ConcurSource extends models['CopySource'] { + /** + * Create a ConcurSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ConcurSource + * + * @returns {object} metadata of ConcurSource + * + */ + mapper() { + return { + required: false, + serializedName: 'ConcurSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'ConcurSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ConcurSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/controlActivity.js b/lib/services/datafactoryManagement/lib/lib/models/controlActivity.js new file mode 100644 index 0000000000..d168d2ca5e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/controlActivity.js @@ -0,0 +1,102 @@ +/* + * 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'); + +/** + * Base class for all control activities like IfCondition, ForEach , Until. + * + * @extends models['Activity'] + */ +class ControlActivity extends models['Activity'] { + /** + * Create a ControlActivity. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ControlActivity + * + * @returns {object} metadata of ControlActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Container', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'ControlActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ControlActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/copyActivity.js b/lib/services/datafactoryManagement/lib/lib/models/copyActivity.js new file mode 100644 index 0000000000..7bf0329a97 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/copyActivity.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 models = require('./index'); + +/** + * Copy activity. + * + * @extends models['ExecutionActivity'] + */ +class CopyActivity extends models['ExecutionActivity'] { + /** + * Create a CopyActivity. + * @member {object} source Copy activity source. + * @member {object} [source.sourceRetryCount] Source retry count. Type: + * integer (or Expression with resultType integer). + * @member {object} [source.sourceRetryWait] Source retry wait. Type: string + * (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} [source.type] Polymorphic Discriminator + * @member {object} sink Copy activity sink. + * @member {object} [sink.writeBatchSize] Write batch size. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {object} [sink.writeBatchTimeout] Write batch timeout. Type: + * string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [sink.sinkRetryCount] Sink retry count. Type: integer (or + * Expression with resultType integer). + * @member {object} [sink.sinkRetryWait] Sink retry wait. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} [sink.type] Polymorphic Discriminator + * @member {object} [translator] Copy activity translator. If not specificed, + * tabular translator is used. + * @member {string} [translator.type] Polymorphic Discriminator + * @member {object} [enableStaging] Specifies whether to copy data via an + * interim staging. Default value is false. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [stagingSettings] Specifies interim staging settings when + * EnableStaging is true. + * @member {object} [stagingSettings.linkedServiceName] Staging linked + * service reference. + * @member {string} [stagingSettings.linkedServiceName.referenceName] + * Reference LinkedService name. + * @member {object} [stagingSettings.linkedServiceName.parameters] Arguments + * for LinkedService. + * @member {object} [stagingSettings.path] The path to storage for storing + * the interim data. Type: string (or Expression with resultType string). + * @member {object} [stagingSettings.enableCompression] Specifies whether to + * use compression when copying data via an interim staging. Default value is + * false. Type: boolean (or Expression with resultType boolean). + * @member {object} [parallelCopies] Maximum number of concurrent sessions + * opened on the source or sink to avoid overloading the data store. Type: + * integer (or Expression with resultType integer), minimum: 0. + * @member {object} [cloudDataMovementUnits] Maximum number of cloud data + * movement units that can be used to perform this data movement. Type: + * integer (or Expression with resultType integer), minimum: 0. + * @member {object} [enableSkipIncompatibleRow] Whether to skip incompatible + * row. Default value is false. Type: boolean (or Expression with resultType + * boolean). + * @member {object} [redirectIncompatibleRowSettings] Redirect incompatible + * row settings when EnableSkipIncompatibleRow is true. + * @member {object} [redirectIncompatibleRowSettings.linkedServiceName] Name + * of the Azure Storage, Storage SAS, or Azure Data Lake Store linked service + * used for redirecting incompatible row. Must be specified if + * redirectIncompatibleRowSettings is specified. Type: string (or Expression + * with resultType string). + * @member {object} [redirectIncompatibleRowSettings.path] The path for + * storing the redirect incompatible row data. Type: string (or Expression + * with resultType string). + * @member {array} [inputs] List of inputs for the activity. + * @member {array} [outputs] List of outputs for the activity. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CopyActivity + * + * @returns {object} metadata of CopyActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Copy', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'CopyActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + source: { + required: true, + serializedName: 'typeProperties.source', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'CopySource' + } + }, + sink: { + required: true, + serializedName: 'typeProperties.sink', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'CopySink' + } + }, + translator: { + required: false, + serializedName: 'typeProperties.translator', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopyTranslator', + className: 'CopyTranslator' + } + }, + enableStaging: { + required: false, + serializedName: 'typeProperties.enableStaging', + type: { + name: 'Object' + } + }, + stagingSettings: { + required: false, + serializedName: 'typeProperties.stagingSettings', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'StagingSettings' + } + }, + parallelCopies: { + required: false, + serializedName: 'typeProperties.parallelCopies', + type: { + name: 'Object' + } + }, + cloudDataMovementUnits: { + required: false, + serializedName: 'typeProperties.cloudDataMovementUnits', + type: { + name: 'Object' + } + }, + enableSkipIncompatibleRow: { + required: false, + serializedName: 'typeProperties.enableSkipIncompatibleRow', + type: { + name: 'Object' + } + }, + redirectIncompatibleRowSettings: { + required: false, + serializedName: 'typeProperties.redirectIncompatibleRowSettings', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'RedirectIncompatibleRowSettings' + } + }, + inputs: { + required: false, + serializedName: 'inputs', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'DatasetReferenceElementType', + type: { + name: 'Composite', + className: 'DatasetReference' + } + } + } + }, + outputs: { + required: false, + serializedName: 'outputs', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'DatasetReferenceElementType', + type: { + name: 'Composite', + className: 'DatasetReference' + } + } + } + } + } + } + }; + } +} + +module.exports = CopyActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/copySink.js b/lib/services/datafactoryManagement/lib/lib/models/copySink.js new file mode 100644 index 0000000000..1e9e0a1aa9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/copySink.js @@ -0,0 +1,108 @@ +/* + * 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'; + +/** + * A copy activity sink. + * + */ +class CopySink { + /** + * Create a CopySink. + * @member {object} [writeBatchSize] Write batch size. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {object} [writeBatchTimeout] Write batch timeout. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [sinkRetryCount] Sink retry count. Type: integer (or + * Expression with resultType integer). + * @member {object} [sinkRetryWait] Sink retry wait. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of CopySink + * + * @returns {object} metadata of CopySink + * + */ + mapper() { + return { + required: false, + serializedName: 'CopySink', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'CopySink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CopySink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/copySource.js b/lib/services/datafactoryManagement/lib/lib/models/copySource.js new file mode 100644 index 0000000000..6b6d4814ea --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/copySource.js @@ -0,0 +1,89 @@ +/* + * 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'; + +/** + * A copy activity source. + * + */ +class CopySource { + /** + * Create a CopySource. + * @member {object} [sourceRetryCount] Source retry count. Type: integer (or + * Expression with resultType integer). + * @member {object} [sourceRetryWait] Source retry wait. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of CopySource + * + * @returns {object} metadata of CopySource + * + */ + mapper() { + return { + required: false, + serializedName: 'CopySource', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'CopySource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CopySource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/copyTranslator.js b/lib/services/datafactoryManagement/lib/lib/models/copyTranslator.js new file mode 100644 index 0000000000..1a354627dc --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/copyTranslator.js @@ -0,0 +1,70 @@ +/* + * 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'; + +/** + * A copy activity translator. + * + */ +class CopyTranslator { + /** + * Create a CopyTranslator. + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of CopyTranslator + * + * @returns {object} metadata of CopyTranslator + * + */ + mapper() { + return { + required: false, + serializedName: 'CopyTranslator', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopyTranslator', + className: 'CopyTranslator', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CopyTranslator; diff --git a/lib/services/datafactoryManagement/lib/lib/models/cosmosDbLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/cosmosDbLinkedService.js new file mode 100644 index 0000000000..8927393b84 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/cosmosDbLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Microsoft Azure Cosmos Database (CosmosDB) linked service. + * + * @extends models['LinkedService'] + */ +class CosmosDbLinkedService extends models['LinkedService'] { + /** + * Create a CosmosDbLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CosmosDbLinkedService + * + * @returns {object} metadata of CosmosDbLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'CosmosDb', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'CosmosDbLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = CosmosDbLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/couchbaseLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/couchbaseLinkedService.js new file mode 100644 index 0000000000..75c18a0ddb --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/couchbaseLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Couchbase server linked service. + * + * @extends models['LinkedService'] + */ +class CouchbaseLinkedService extends models['LinkedService'] { + /** + * Create a CouchbaseLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CouchbaseLinkedService + * + * @returns {object} metadata of CouchbaseLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Couchbase', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'CouchbaseLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = CouchbaseLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/couchbaseSource.js b/lib/services/datafactoryManagement/lib/lib/models/couchbaseSource.js new file mode 100644 index 0000000000..57b814e3bc --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/couchbaseSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Couchbase server source. + * + * @extends models['CopySource'] + */ +class CouchbaseSource extends models['CopySource'] { + /** + * Create a CouchbaseSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CouchbaseSource + * + * @returns {object} metadata of CouchbaseSource + * + */ + mapper() { + return { + required: false, + serializedName: 'CouchbaseSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'CouchbaseSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = CouchbaseSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/couchbaseTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/couchbaseTableDataset.js new file mode 100644 index 0000000000..186ed81054 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/couchbaseTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Couchbase server dataset. + * + * @extends models['Dataset'] + */ +class CouchbaseTableDataset extends models['Dataset'] { + /** + * Create a CouchbaseTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CouchbaseTableDataset + * + * @returns {object} metadata of CouchbaseTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'CouchbaseTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'CouchbaseTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = CouchbaseTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/createRunResponse.js b/lib/services/datafactoryManagement/lib/lib/models/createRunResponse.js new file mode 100644 index 0000000000..998fecdacb --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/createRunResponse.js @@ -0,0 +1,52 @@ +/* + * 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'; + +/** + * Response body with a run identifier. + * + */ +class CreateRunResponse { + /** + * Create a CreateRunResponse. + * @member {string} runId Identifier of a run. + */ + constructor() { + } + + /** + * Defines the metadata of CreateRunResponse + * + * @returns {object} metadata of CreateRunResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'CreateRunResponse', + type: { + name: 'Composite', + className: 'CreateRunResponse', + modelProperties: { + runId: { + required: true, + serializedName: 'runId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CreateRunResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/customActivity.js b/lib/services/datafactoryManagement/lib/lib/models/customActivity.js new file mode 100644 index 0000000000..e499559410 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/customActivity.js @@ -0,0 +1,192 @@ +/* + * 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'); + +/** + * Custom activity type. + * + * @extends models['ExecutionActivity'] + */ +class CustomActivity extends models['ExecutionActivity'] { + /** + * Create a CustomActivity. + * @member {object} command Command for custom activity Type: string (or + * Expression with resultType string). + * @member {object} [resourceLinkedService] Resource linked service + * reference. + * @member {string} [resourceLinkedService.referenceName] Reference + * LinkedService name. + * @member {object} [resourceLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [folderPath] Folder path for resource files Type: string + * (or Expression with resultType string). + * @member {object} [referenceObjects] Reference objects + * @member {array} [referenceObjects.linkedServices] Linked service + * references. + * @member {array} [referenceObjects.datasets] Dataset references. + * @member {object} [extendedProperties] User defined property bag. There is + * no restriction on the keys or values that can be used. The user specified + * custom activity has the full responsibility to consume and interpret the + * content defined. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CustomActivity + * + * @returns {object} metadata of CustomActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Custom', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'CustomActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + command: { + required: true, + serializedName: 'typeProperties.command', + type: { + name: 'Object' + } + }, + resourceLinkedService: { + required: false, + serializedName: 'typeProperties.resourceLinkedService', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + folderPath: { + required: false, + serializedName: 'typeProperties.folderPath', + type: { + name: 'Object' + } + }, + referenceObjects: { + required: false, + serializedName: 'typeProperties.referenceObjects', + type: { + name: 'Composite', + className: 'CustomActivityReferenceObject' + } + }, + extendedProperties: { + required: false, + serializedName: 'typeProperties.extendedProperties', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = CustomActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/customActivityReferenceObject.js b/lib/services/datafactoryManagement/lib/lib/models/customActivityReferenceObject.js new file mode 100644 index 0000000000..70054de792 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/customActivityReferenceObject.js @@ -0,0 +1,78 @@ +/* + * 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'); + +/** + * Reference objects for custom activity + * + */ +class CustomActivityReferenceObject { + /** + * Create a CustomActivityReferenceObject. + * @member {array} [linkedServices] Linked service references. + * @member {array} [datasets] Dataset references. + */ + constructor() { + } + + /** + * Defines the metadata of CustomActivityReferenceObject + * + * @returns {object} metadata of CustomActivityReferenceObject + * + */ + mapper() { + return { + required: false, + serializedName: 'CustomActivityReferenceObject', + type: { + name: 'Composite', + className: 'CustomActivityReferenceObject', + modelProperties: { + linkedServices: { + required: false, + serializedName: 'linkedServices', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceReferenceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + }, + datasets: { + required: false, + serializedName: 'datasets', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'DatasetReferenceElementType', + type: { + name: 'Composite', + className: 'DatasetReference' + } + } + } + } + } + } + }; + } +} + +module.exports = CustomActivityReferenceObject; diff --git a/lib/services/datafactoryManagement/lib/lib/models/customDataSourceLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/customDataSourceLinkedService.js new file mode 100644 index 0000000000..b61e4c7268 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/customDataSourceLinkedService.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Custom linked service. + * + * @extends models['LinkedService'] + */ +class CustomDataSourceLinkedService extends models['LinkedService'] { + /** + * Create a CustomDataSourceLinkedService. + * @member {object} typeProperties Custom linked service properties. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CustomDataSourceLinkedService + * + * @returns {object} metadata of CustomDataSourceLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'CustomDataSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'CustomDataSourceLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + typeProperties: { + required: true, + serializedName: 'typeProperties', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = CustomDataSourceLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/customDataset.js b/lib/services/datafactoryManagement/lib/lib/models/customDataset.js new file mode 100644 index 0000000000..aba8b57202 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/customDataset.js @@ -0,0 +1,121 @@ +/* + * 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'); + +/** + * The custom dataset. + * + * @extends models['Dataset'] + */ +class CustomDataset extends models['Dataset'] { + /** + * Create a CustomDataset. + * @member {object} typeProperties Custom dataset properties. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CustomDataset + * + * @returns {object} metadata of CustomDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'CustomDataset', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'CustomDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + typeProperties: { + required: true, + serializedName: 'typeProperties', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = CustomDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/dataLakeAnalyticsUSQLActivity.js b/lib/services/datafactoryManagement/lib/lib/models/dataLakeAnalyticsUSQLActivity.js new file mode 100644 index 0000000000..573649df4c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/dataLakeAnalyticsUSQLActivity.js @@ -0,0 +1,208 @@ +/* + * 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'); + +/** + * Data Lake Analytics U-SQL activity. + * + * @extends models['ExecutionActivity'] + */ +class DataLakeAnalyticsUSQLActivity extends models['ExecutionActivity'] { + /** + * Create a DataLakeAnalyticsUSQLActivity. + * @member {object} scriptPath Case-sensitive path to folder that contains + * the U-SQL script. Type: string (or Expression with resultType string). + * @member {object} scriptLinkedService Script linked service reference. + * @member {string} [scriptLinkedService.referenceName] Reference + * LinkedService name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [degreeOfParallelism] The maximum number of nodes + * simultaneously used to run the job. Default value is 1. Type: integer (or + * Expression with resultType integer), minimum: 1. + * @member {object} [priority] Determines which jobs out of all that are + * queued should be selected to run first. The lower the number, the higher + * the priority. Default value is 1000. Type: integer (or Expression with + * resultType integer), minimum: 1. + * @member {object} [parameters] Parameters for U-SQL job request. + * @member {object} [runtimeVersion] Runtime version of the U-SQL engine to + * use. Type: string (or Expression with resultType string). + * @member {object} [compilationMode] Compilation mode of U-SQL. Must be one + * of these values : Semantic, Full and SingleBox. Type: string (or + * Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DataLakeAnalyticsUSQLActivity + * + * @returns {object} metadata of DataLakeAnalyticsUSQLActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'DataLakeAnalyticsU-SQL', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'DataLakeAnalyticsUSQLActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + scriptPath: { + required: true, + serializedName: 'typeProperties.scriptPath', + type: { + name: 'Object' + } + }, + scriptLinkedService: { + required: true, + serializedName: 'typeProperties.scriptLinkedService', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + degreeOfParallelism: { + required: false, + serializedName: 'typeProperties.degreeOfParallelism', + type: { + name: 'Object' + } + }, + priority: { + required: false, + serializedName: 'typeProperties.priority', + type: { + name: 'Object' + } + }, + parameters: { + required: false, + serializedName: 'typeProperties.parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + runtimeVersion: { + required: false, + serializedName: 'typeProperties.runtimeVersion', + type: { + name: 'Object' + } + }, + compilationMode: { + required: false, + serializedName: 'typeProperties.compilationMode', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DataLakeAnalyticsUSQLActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/databricksNotebookActivity.js b/lib/services/datafactoryManagement/lib/lib/models/databricksNotebookActivity.js new file mode 100644 index 0000000000..25fa83b5d4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/databricksNotebookActivity.js @@ -0,0 +1,157 @@ +/* + * 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'); + +/** + * DatabricksNotebook activity. + * + * @extends models['ExecutionActivity'] + */ +class DatabricksNotebookActivity extends models['ExecutionActivity'] { + /** + * Create a DatabricksNotebookActivity. + * @member {object} notebookPath The absolute path of the notebook to be run + * in the Databricks Workspace. This path must begin with a slash. Type: + * string (or Expression with resultType string). + * @member {object} [baseParameters] Base parameters to be used for each run + * of this job.If the notebook takes a parameter that is not specified, the + * default value from the notebook will be used. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatabricksNotebookActivity + * + * @returns {object} metadata of DatabricksNotebookActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'DatabricksNotebook', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'DatabricksNotebookActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + notebookPath: { + required: true, + serializedName: 'typeProperties.notebookPath', + type: { + name: 'Object' + } + }, + baseParameters: { + required: false, + serializedName: 'typeProperties.baseParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = DatabricksNotebookActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/dataset.js b/lib/services/datafactoryManagement/lib/lib/models/dataset.js new file mode 100644 index 0000000000..32e93147b4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/dataset.js @@ -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'); + +/** + * The Azure Data Factory nested object which identifies data within different + * data stores, such as tables, files, folders, and documents. + * + */ +class Dataset { + /** + * Create a Dataset. + * @member {string} [description] Dataset description. + * @member {object} [structure] Columns that define the structure of the + * dataset. Type: array (or Expression with resultType array), itemType: + * DatasetDataElement. + * @member {object} linkedServiceName Linked service reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [parameters] Parameters for dataset. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of Dataset + * + * @returns {object} metadata of Dataset + * + */ + mapper() { + return { + required: false, + serializedName: 'Dataset', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'Dataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = Dataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetBZip2Compression.js b/lib/services/datafactoryManagement/lib/lib/models/datasetBZip2Compression.js new file mode 100644 index 0000000000..fdd154bfe0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetBZip2Compression.js @@ -0,0 +1,61 @@ +/* + * 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'); + +/** + * The BZip2 compression method used on a dataset. + * + * @extends models['DatasetCompression'] + */ +class DatasetBZip2Compression extends models['DatasetCompression'] { + /** + * Create a DatasetBZip2Compression. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatasetBZip2Compression + * + * @returns {object} metadata of DatasetBZip2Compression + * + */ + mapper() { + return { + required: false, + serializedName: 'BZip2', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetBZip2Compression', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DatasetBZip2Compression; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetCompression.js b/lib/services/datafactoryManagement/lib/lib/models/datasetCompression.js new file mode 100644 index 0000000000..bfa7abdd35 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetCompression.js @@ -0,0 +1,70 @@ +/* + * 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'; + +/** + * The compression method used on a dataset. + * + */ +class DatasetCompression { + /** + * Create a DatasetCompression. + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of DatasetCompression + * + * @returns {object} metadata of DatasetCompression + * + */ + mapper() { + return { + required: false, + serializedName: 'DatasetCompression', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetCompression', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DatasetCompression; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetDeflateCompression.js b/lib/services/datafactoryManagement/lib/lib/models/datasetDeflateCompression.js new file mode 100644 index 0000000000..2bd76c154b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetDeflateCompression.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * The Deflate compression method used on a dataset. + * + * @extends models['DatasetCompression'] + */ +class DatasetDeflateCompression extends models['DatasetCompression'] { + /** + * Create a DatasetDeflateCompression. + * @member {string} [level] The Deflate compression level. Possible values + * include: 'Optimal', 'Fastest' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatasetDeflateCompression + * + * @returns {object} metadata of DatasetDeflateCompression + * + */ + mapper() { + return { + required: false, + serializedName: 'Deflate', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetDeflateCompression', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + level: { + required: false, + serializedName: 'level', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DatasetDeflateCompression; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetGZipCompression.js b/lib/services/datafactoryManagement/lib/lib/models/datasetGZipCompression.js new file mode 100644 index 0000000000..84eeeccef5 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetGZipCompression.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * The GZip compression method used on a dataset. + * + * @extends models['DatasetCompression'] + */ +class DatasetGZipCompression extends models['DatasetCompression'] { + /** + * Create a DatasetGZipCompression. + * @member {string} [level] The GZip compression level. Possible values + * include: 'Optimal', 'Fastest' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatasetGZipCompression + * + * @returns {object} metadata of DatasetGZipCompression + * + */ + mapper() { + return { + required: false, + serializedName: 'GZip', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetGZipCompression', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + level: { + required: false, + serializedName: 'level', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DatasetGZipCompression; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/datasetListResponse.js new file mode 100644 index 0000000000..4db487404b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetListResponse.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * A list of dataset resources. + */ +class DatasetListResponse extends Array { + /** + * Create a DatasetListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatasetListResponse + * + * @returns {object} metadata of DatasetListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'DatasetListResponse', + type: { + name: 'Composite', + className: 'DatasetListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'DatasetResourceElementType', + type: { + name: 'Composite', + className: 'DatasetResource' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DatasetListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetReference.js b/lib/services/datafactoryManagement/lib/lib/models/datasetReference.js new file mode 100644 index 0000000000..efeb402517 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetReference.js @@ -0,0 +1,76 @@ +/* + * 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'; + +/** + * Dataset reference type. + * + */ +class DatasetReference { + /** + * Create a DatasetReference. + * @member {string} referenceName Reference dataset name. + * @member {object} [parameters] Arguments for dataset. + */ + constructor() { + } + + /** + * Defines the metadata of DatasetReference + * + * @returns {object} metadata of DatasetReference + * + */ + mapper() { + return { + required: false, + serializedName: 'DatasetReference', + type: { + name: 'Composite', + className: 'DatasetReference', + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: 'type', + defaultValue: 'DatasetReference', + type: { + name: 'String' + } + }, + referenceName: { + required: true, + serializedName: 'referenceName', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = DatasetReference; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetResource.js b/lib/services/datafactoryManagement/lib/lib/models/datasetResource.js new file mode 100644 index 0000000000..a93d23572d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetResource.js @@ -0,0 +1,120 @@ +/* + * 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'); + +/** + * Dataset resource type. + * + * @extends models['SubResource'] + */ +class DatasetResource extends models['SubResource'] { + /** + * Create a DatasetResource. + * @member {object} properties Dataset properties. + * @member {string} [properties.description] Dataset description. + * @member {object} [properties.structure] Columns that define the structure + * of the dataset. Type: array (or Expression with resultType array), + * itemType: DatasetDataElement. + * @member {object} [properties.linkedServiceName] Linked service reference. + * @member {string} [properties.linkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [properties.linkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [properties.parameters] Parameters for dataset. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. + * @member {string} [properties.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatasetResource + * + * @returns {object} metadata of DatasetResource + * + */ + mapper() { + return { + required: false, + serializedName: 'DatasetResource', + type: { + name: 'Composite', + className: 'DatasetResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + }, + properties: { + required: true, + serializedName: 'properties', + defaultValue: {}, + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'Dataset' + } + } + } + } + }; + } +} + +module.exports = DatasetResource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetStorageFormat.js b/lib/services/datafactoryManagement/lib/lib/models/datasetStorageFormat.js new file mode 100644 index 0000000000..8f784c5bf7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetStorageFormat.js @@ -0,0 +1,88 @@ +/* + * 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'; + +/** + * The format definition of a storage. + * + */ +class DatasetStorageFormat { + /** + * Create a DatasetStorageFormat. + * @member {object} [serializer] Serializer. Type: string (or Expression with + * resultType string). + * @member {object} [deserializer] Deserializer. Type: string (or Expression + * with resultType string). + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of DatasetStorageFormat + * + * @returns {object} metadata of DatasetStorageFormat + * + */ + mapper() { + return { + required: false, + serializedName: 'DatasetStorageFormat', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'DatasetStorageFormat', + modelProperties: { + serializer: { + required: false, + serializedName: 'serializer', + type: { + name: 'Object' + } + }, + deserializer: { + required: false, + serializedName: 'deserializer', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DatasetStorageFormat; diff --git a/lib/services/datafactoryManagement/lib/lib/models/datasetZipDeflateCompression.js b/lib/services/datafactoryManagement/lib/lib/models/datasetZipDeflateCompression.js new file mode 100644 index 0000000000..e2a4353c55 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/datasetZipDeflateCompression.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * The ZipDeflate compression method used on a dataset. + * + * @extends models['DatasetCompression'] + */ +class DatasetZipDeflateCompression extends models['DatasetCompression'] { + /** + * Create a DatasetZipDeflateCompression. + * @member {string} [level] The ZipDeflate compression level. Possible values + * include: 'Optimal', 'Fastest' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DatasetZipDeflateCompression + * + * @returns {object} metadata of DatasetZipDeflateCompression + * + */ + mapper() { + return { + required: false, + serializedName: 'ZipDeflate', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetZipDeflateCompression', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + level: { + required: false, + serializedName: 'level', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DatasetZipDeflateCompression; diff --git a/lib/services/datafactoryManagement/lib/lib/models/db2LinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/db2LinkedService.js new file mode 100644 index 0000000000..49f54f616b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/db2LinkedService.js @@ -0,0 +1,166 @@ +/* + * 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'); + +/** + * Linked service for DB2 data source. + * + * @extends models['LinkedService'] + */ +class Db2LinkedService extends models['LinkedService'] { + /** + * Create a Db2LinkedService. + * @member {object} server Server name for connection. Type: string (or + * Expression with resultType string). + * @member {object} database Database name for connection. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] AuthenticationType to be used for + * connection. Possible values include: 'Basic' + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of Db2LinkedService + * + * @returns {object} metadata of Db2LinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Db2', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'Db2LinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + database: { + required: true, + serializedName: 'typeProperties.database', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = Db2LinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/distcpSettings.js b/lib/services/datafactoryManagement/lib/lib/models/distcpSettings.js new file mode 100644 index 0000000000..97b2c93fa4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/distcpSettings.js @@ -0,0 +1,74 @@ +/* + * 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'; + +/** + * Distcp settings. + * + */ +class DistcpSettings { + /** + * Create a DistcpSettings. + * @member {object} resourceManagerEndpoint Specifies the Yarn + * ResourceManager endpoint. Type: string (or Expression with resultType + * string). + * @member {object} tempScriptPath Specifies an existing folder path which + * will be used to store temp Distcp command script. The script file is + * generated by ADF and will be removed after Copy job finished. Type: string + * (or Expression with resultType string). + * @member {object} [distcpOptions] Specifies the Distcp options. Type: + * string (or Expression with resultType string). + */ + constructor() { + } + + /** + * Defines the metadata of DistcpSettings + * + * @returns {object} metadata of DistcpSettings + * + */ + mapper() { + return { + required: false, + serializedName: 'DistcpSettings', + type: { + name: 'Composite', + className: 'DistcpSettings', + modelProperties: { + resourceManagerEndpoint: { + required: true, + serializedName: 'resourceManagerEndpoint', + type: { + name: 'Object' + } + }, + tempScriptPath: { + required: true, + serializedName: 'tempScriptPath', + type: { + name: 'Object' + } + }, + distcpOptions: { + required: false, + serializedName: 'distcpOptions', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DistcpSettings; diff --git a/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionDataset.js b/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionDataset.js new file mode 100644 index 0000000000..4c4c43b9d8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * Microsoft Azure Document Database Collection dataset. + * + * @extends models['Dataset'] + */ +class DocumentDbCollectionDataset extends models['Dataset'] { + /** + * Create a DocumentDbCollectionDataset. + * @member {object} collectionName Document Database collection name. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DocumentDbCollectionDataset + * + * @returns {object} metadata of DocumentDbCollectionDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'DocumentDbCollection', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'DocumentDbCollectionDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + collectionName: { + required: true, + serializedName: 'typeProperties.collectionName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DocumentDbCollectionDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSink.js b/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSink.js new file mode 100644 index 0000000000..8c899dd241 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSink.js @@ -0,0 +1,98 @@ +/* + * 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'); + +/** + * A copy activity Document Database Collection sink. + * + * @extends models['CopySink'] + */ +class DocumentDbCollectionSink extends models['CopySink'] { + /** + * Create a DocumentDbCollectionSink. + * @member {object} [nestingSeparator] Nested properties separator. Default + * is . (dot). Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DocumentDbCollectionSink + * + * @returns {object} metadata of DocumentDbCollectionSink + * + */ + mapper() { + return { + required: false, + serializedName: 'DocumentDbCollectionSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'DocumentDbCollectionSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + nestingSeparator: { + required: false, + serializedName: 'nestingSeparator', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DocumentDbCollectionSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSource.js b/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSource.js new file mode 100644 index 0000000000..bfbd58bdce --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/documentDbCollectionSource.js @@ -0,0 +1,93 @@ +/* + * 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'); + +/** + * A copy activity Document Database Collection source. + * + * @extends models['CopySource'] + */ +class DocumentDbCollectionSource extends models['CopySource'] { + /** + * Create a DocumentDbCollectionSource. + * @member {object} [query] Documents query. Type: string (or Expression with + * resultType string). + * @member {object} [nestingSeparator] Nested properties separator. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DocumentDbCollectionSource + * + * @returns {object} metadata of DocumentDbCollectionSource + * + */ + mapper() { + return { + required: false, + serializedName: 'DocumentDbCollectionSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'DocumentDbCollectionSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + }, + nestingSeparator: { + required: false, + serializedName: 'nestingSeparator', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DocumentDbCollectionSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/drillLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/drillLinkedService.js new file mode 100644 index 0000000000..e9e025e2b4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/drillLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Drill server linked service. + * + * @extends models['LinkedService'] + */ +class DrillLinkedService extends models['LinkedService'] { + /** + * Create a DrillLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DrillLinkedService + * + * @returns {object} metadata of DrillLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Drill', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'DrillLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DrillLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/drillSource.js b/lib/services/datafactoryManagement/lib/lib/models/drillSource.js new file mode 100644 index 0000000000..3728a93bd4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/drillSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Drill server source. + * + * @extends models['CopySource'] + */ +class DrillSource extends models['CopySource'] { + /** + * Create a DrillSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DrillSource + * + * @returns {object} metadata of DrillSource + * + */ + mapper() { + return { + required: false, + serializedName: 'DrillSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'DrillSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DrillSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/drillTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/drillTableDataset.js new file mode 100644 index 0000000000..2ca9004d95 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/drillTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Drill server dataset. + * + * @extends models['Dataset'] + */ +class DrillTableDataset extends models['Dataset'] { + /** + * Create a DrillTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DrillTableDataset + * + * @returns {object} metadata of DrillTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'DrillTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'DrillTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = DrillTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/dynamicsEntityDataset.js b/lib/services/datafactoryManagement/lib/lib/models/dynamicsEntityDataset.js new file mode 100644 index 0000000000..bb0cc876b5 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/dynamicsEntityDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Dynamics entity dataset. + * + * @extends models['Dataset'] + */ +class DynamicsEntityDataset extends models['Dataset'] { + /** + * Create a DynamicsEntityDataset. + * @member {object} [entityName] The logical name of the entity. Type: string + * (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DynamicsEntityDataset + * + * @returns {object} metadata of DynamicsEntityDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'DynamicsEntity', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'DynamicsEntityDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + entityName: { + required: false, + serializedName: 'typeProperties.entityName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DynamicsEntityDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/dynamicsLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/dynamicsLinkedService.js new file mode 100644 index 0000000000..0b161aea87 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/dynamicsLinkedService.js @@ -0,0 +1,201 @@ +/* + * 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'); + +/** + * Dynamics linked service. + * + * @extends models['LinkedService'] + */ +class DynamicsLinkedService extends models['LinkedService'] { + /** + * Create a DynamicsLinkedService. + * @member {object} deploymentType The deployment type of the Dynamics + * instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for + * Dynamics on-premises with Ifd. Type: string (or Expression with resultType + * string). + * @member {object} [hostName] The host name of the on-premises Dynamics + * server. The property is required for on-prem and not allowed for online. + * Type: string (or Expression with resultType string). + * @member {object} [port] The port of on-premises Dynamics server. The + * property is required for on-prem and not allowed for online. Default is + * 443. Type: integer (or Expression with resultType integer), minimum: 0. + * @member {object} [serviceUri] The URL to the Microsoft Dynamics server. + * The property is required for on-line and not allowed for on-prem. Type: + * string (or Expression with resultType string). + * @member {object} [organizationName] The organization name of the Dynamics + * instance. The property is required for on-prem and required for online + * when there are more than one Dynamics instances associated with the user. + * Type: string (or Expression with resultType string). + * @member {object} authenticationType The authentication type to connect to + * Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises + * with Ifd scenario. Type: string (or Expression with resultType string). + * @member {object} username User name to access the Dynamics instance. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password to access the Dynamics instance. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DynamicsLinkedService + * + * @returns {object} metadata of DynamicsLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Dynamics', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'DynamicsLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + deploymentType: { + required: true, + serializedName: 'typeProperties.deploymentType', + type: { + name: 'Object' + } + }, + hostName: { + required: false, + serializedName: 'typeProperties.hostName', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + serviceUri: { + required: false, + serializedName: 'typeProperties.serviceUri', + type: { + name: 'Object' + } + }, + organizationName: { + required: false, + serializedName: 'typeProperties.organizationName', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'Object' + } + }, + username: { + required: true, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DynamicsLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/dynamicsSink.js b/lib/services/datafactoryManagement/lib/lib/models/dynamicsSink.js new file mode 100644 index 0000000000..53ed02d91d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/dynamicsSink.js @@ -0,0 +1,108 @@ +/* + * 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'); + +/** + * A copy activity Dynamics sink. + * + * @extends models['CopySink'] + */ +class DynamicsSink extends models['CopySink'] { + /** + * Create a DynamicsSink. + * @member {object} [ignoreNullValues] The flag indicating whether ignore + * null values from input dataset (except key fields) during write operation. + * Default is false. Type: boolean (or Expression with resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DynamicsSink + * + * @returns {object} metadata of DynamicsSink + * + */ + mapper() { + return { + required: false, + serializedName: 'DynamicsSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'DynamicsSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + writeBehavior: { + required: true, + isConstant: true, + serializedName: 'writeBehavior', + defaultValue: 'Upsert', + type: { + name: 'String' + } + }, + ignoreNullValues: { + required: false, + serializedName: 'ignoreNullValues', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DynamicsSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/dynamicsSource.js b/lib/services/datafactoryManagement/lib/lib/models/dynamicsSource.js new file mode 100644 index 0000000000..2985aaac82 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/dynamicsSource.js @@ -0,0 +1,85 @@ +/* + * 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'); + +/** + * A copy activity Dynamics source. + * + * @extends models['CopySource'] + */ +class DynamicsSource extends models['CopySource'] { + /** + * Create a DynamicsSource. + * @member {object} [query] FetchXML is a proprietary query language that is + * used in Microsoft Dynamics (online & on-premises). Type: string (or + * Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DynamicsSource + * + * @returns {object} metadata of DynamicsSource + * + */ + mapper() { + return { + required: false, + serializedName: 'DynamicsSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'DynamicsSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = DynamicsSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/eloquaLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/eloquaLinkedService.js new file mode 100644 index 0000000000..98f2b55b8d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/eloquaLinkedService.js @@ -0,0 +1,177 @@ +/* + * 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'); + +/** + * Eloqua server linked service. + * + * @extends models['LinkedService'] + */ +class EloquaLinkedService extends models['LinkedService'] { + /** + * Create a EloquaLinkedService. + * @member {object} endpoint The endpoint of the Eloqua server. (i.e. + * eloqua.example.com) + * @member {object} username The site name and user name of your Eloqua + * account in the form: sitename/username. (i.e. Eloqua/Alice) + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of EloquaLinkedService + * + * @returns {object} metadata of EloquaLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Eloqua', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'EloquaLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + endpoint: { + required: true, + serializedName: 'typeProperties.endpoint', + type: { + name: 'Object' + } + }, + username: { + required: true, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = EloquaLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/eloquaObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/eloquaObjectDataset.js new file mode 100644 index 0000000000..b6f1b980ac --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/eloquaObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Eloqua server dataset. + * + * @extends models['Dataset'] + */ +class EloquaObjectDataset extends models['Dataset'] { + /** + * Create a EloquaObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of EloquaObjectDataset + * + * @returns {object} metadata of EloquaObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'EloquaObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'EloquaObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = EloquaObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/eloquaSource.js b/lib/services/datafactoryManagement/lib/lib/models/eloquaSource.js new file mode 100644 index 0000000000..ad5ffb10e4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/eloquaSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Eloqua server source. + * + * @extends models['CopySource'] + */ +class EloquaSource extends models['CopySource'] { + /** + * Create a EloquaSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of EloquaSource + * + * @returns {object} metadata of EloquaSource + * + */ + mapper() { + return { + required: false, + serializedName: 'EloquaSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'EloquaSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = EloquaSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/errorResponse.js b/lib/services/datafactoryManagement/lib/lib/models/errorResponse.js new file mode 100644 index 0000000000..4aed7d806c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/errorResponse.js @@ -0,0 +1,87 @@ +/* + * 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'); + +/** + * The object that defines the structure of an Azure Data Factory response. + * + */ +class ErrorResponse { + /** + * Create a ErrorResponse. + * @member {string} code Error code. + * @member {string} message Error message. + * @member {string} [target] Property name/path in request associated with + * error. + * @member {array} [details] Array with additional error details. + */ + constructor() { + } + + /** + * Defines the metadata of ErrorResponse + * + * @returns {object} metadata of ErrorResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'ErrorResponse', + type: { + name: 'Composite', + className: 'ErrorResponse', + modelProperties: { + code: { + required: true, + serializedName: 'code', + type: { + name: 'String' + } + }, + message: { + required: true, + serializedName: 'message', + type: { + name: 'String' + } + }, + target: { + required: false, + serializedName: 'target', + type: { + name: 'String' + } + }, + details: { + required: false, + serializedName: 'details', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ErrorResponseElementType', + type: { + name: 'Composite', + className: 'ErrorResponse' + } + } + } + } + } + } + }; + } +} + +module.exports = ErrorResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/executePipelineActivity.js b/lib/services/datafactoryManagement/lib/lib/models/executePipelineActivity.js new file mode 100644 index 0000000000..05cc8f3493 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/executePipelineActivity.js @@ -0,0 +1,139 @@ +/* + * 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'); + +/** + * Execute pipeline activity. + * + * @extends models['ControlActivity'] + */ +class ExecutePipelineActivity extends models['ControlActivity'] { + /** + * Create a ExecutePipelineActivity. + * @member {object} pipelineProperty Pipeline reference. + * @member {string} [pipelineProperty.referenceName] Reference pipeline name. + * @member {string} [pipelineProperty.name] Reference name. + * @member {object} [parameters] Pipeline parameters. + * @member {boolean} [waitOnCompletion] Defines whether activity execution + * will wait for the dependent pipeline execution to finish. Default is + * false. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ExecutePipelineActivity + * + * @returns {object} metadata of ExecutePipelineActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'ExecutePipeline', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'ExecutePipelineActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + pipelineProperty: { + required: true, + serializedName: 'typeProperties.pipeline', + defaultValue: {}, + type: { + name: 'Composite', + className: 'PipelineReference' + } + }, + parameters: { + required: false, + serializedName: 'typeProperties.parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + waitOnCompletion: { + required: false, + serializedName: 'typeProperties.waitOnCompletion', + type: { + name: 'Boolean' + } + } + } + } + }; + } +} + +module.exports = ExecutePipelineActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/executeSSISPackageActivity.js b/lib/services/datafactoryManagement/lib/lib/models/executeSSISPackageActivity.js new file mode 100644 index 0000000000..7ca508a365 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/executeSSISPackageActivity.js @@ -0,0 +1,181 @@ +/* + * 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'); + +/** + * Execute SSIS package activity. + * + * @extends models['ExecutionActivity'] + */ +class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { + /** + * Create a ExecuteSSISPackageActivity. + * @member {object} packageLocation SSIS package location. + * @member {string} [packageLocation.packagePath] The SSIS package path. + * @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 {object} connectVia The integration runtime reference. + * @member {string} [connectVia.referenceName] Reference integration runtime + * name. + * @member {object} [connectVia.parameters] Arguments for integration + * runtime. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ExecuteSSISPackageActivity + * + * @returns {object} metadata of ExecuteSSISPackageActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'ExecuteSSISPackage', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'ExecuteSSISPackageActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + packageLocation: { + required: true, + serializedName: 'typeProperties.packageLocation', + type: { + name: 'Composite', + className: 'SSISPackageLocation' + } + }, + runtime: { + required: false, + serializedName: 'typeProperties.runtime', + type: { + name: 'String' + } + }, + loggingLevel: { + required: false, + serializedName: 'typeProperties.loggingLevel', + type: { + name: 'String' + } + }, + environmentPath: { + required: false, + serializedName: 'typeProperties.environmentPath', + type: { + name: 'String' + } + }, + connectVia: { + required: true, + serializedName: 'typeProperties.connectVia', + defaultValue: {}, + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + } + } + } + }; + } +} + +module.exports = ExecuteSSISPackageActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/executionActivity.js b/lib/services/datafactoryManagement/lib/lib/models/executionActivity.js new file mode 100644 index 0000000000..34a22f3d96 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/executionActivity.js @@ -0,0 +1,146 @@ +/* + * 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'); + +/** + * Base class for all execution activities. + * + * @extends models['Activity'] + */ +class ExecutionActivity extends models['Activity'] { + /** + * Create a ExecutionActivity. + * @member {object} [linkedServiceName] Linked service reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [policy] Activity policy. + * @member {object} [policy.timeout] Specifies the timeout for the activity + * to run. The default timeout is 7 days. Type: string (or Expression with + * resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [policy.retry] Maximum ordinary retry attempts. Default + * is 0. Type: integer (or Expression with resultType integer), minimum: 0. + * @member {number} [policy.retryIntervalInSeconds] Interval between each + * retry attempt (in seconds). The default is 30 sec. + * @member {boolean} [policy.secureOutput] When set to true, Output from + * activity is considered as secure and will not be logged to monitoring. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ExecutionActivity + * + * @returns {object} metadata of ExecutionActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Execution', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'ExecutionActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + } + } + } + }; + } +} + +module.exports = ExecutionActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/expression.js b/lib/services/datafactoryManagement/lib/lib/models/expression.js new file mode 100644 index 0000000000..5a2347f5c0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/expression.js @@ -0,0 +1,61 @@ +/* + * 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'; + +/** + * Azure Data Factory expression definition. + * + */ +class Expression { + /** + * Create a Expression. + * @member {string} value Expression value. + */ + constructor() { + } + + /** + * Defines the metadata of Expression + * + * @returns {object} metadata of Expression + * + */ + mapper() { + return { + required: false, + serializedName: 'Expression', + type: { + name: 'Composite', + className: 'Expression', + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: 'type', + defaultValue: 'Expression', + type: { + name: 'String' + } + }, + value: { + required: true, + serializedName: 'value', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = Expression; diff --git a/lib/services/datafactoryManagement/lib/lib/models/factory.js b/lib/services/datafactoryManagement/lib/lib/models/factory.js new file mode 100644 index 0000000000..744284edbd --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/factory.js @@ -0,0 +1,145 @@ +/* + * 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 resource type. + * + * @extends models['Resource'] + */ +class Factory extends models['Resource'] { + /** + * Create a Factory. + * @member {object} [identity] Managed service identity of the factory. + * @member {uuid} [identity.principalId] The principal id of the identity. + * @member {uuid} [identity.tenantId] The client tenant id of the identity. + * @member {string} [provisioningState] Factory provisioning state, example + * Succeeded. + * @member {date} [createTime] Time the factory was created in ISO8601 + * format. + * @member {string} [version] Version of the factory. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of Factory + * + * @returns {object} metadata of Factory + * + */ + mapper() { + return { + required: false, + serializedName: 'Factory', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'Factory', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + identity: { + required: false, + serializedName: 'identity', + type: { + name: 'Composite', + className: 'FactoryIdentity' + } + }, + provisioningState: { + required: false, + readOnly: true, + serializedName: 'properties.provisioningState', + type: { + name: 'String' + } + }, + createTime: { + required: false, + readOnly: true, + serializedName: 'properties.createTime', + type: { + name: 'DateTime' + } + }, + version: { + required: false, + readOnly: true, + serializedName: 'properties.version', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = Factory; diff --git a/lib/services/datafactoryManagement/lib/lib/models/factoryIdentity.js b/lib/services/datafactoryManagement/lib/lib/models/factoryIdentity.js new file mode 100644 index 0000000000..bc41f7dfce --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/factoryIdentity.js @@ -0,0 +1,71 @@ +/* + * 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'; + +/** + * Identity properties of the factory resource. + * + */ +class FactoryIdentity { + /** + * Create a FactoryIdentity. + * @member {uuid} [principalId] The principal id of the identity. + * @member {uuid} [tenantId] The client tenant id of the identity. + */ + constructor() { + } + + /** + * Defines the metadata of FactoryIdentity + * + * @returns {object} metadata of FactoryIdentity + * + */ + mapper() { + return { + required: false, + serializedName: 'FactoryIdentity', + type: { + name: 'Composite', + className: 'FactoryIdentity', + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: 'type', + defaultValue: 'SystemAssigned', + type: { + name: 'String' + } + }, + principalId: { + required: false, + readOnly: true, + serializedName: 'principalId', + type: { + name: 'String' + } + }, + tenantId: { + required: false, + readOnly: true, + serializedName: 'tenantId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = FactoryIdentity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/factoryListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/factoryListResponse.js new file mode 100644 index 0000000000..ba340d314f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/factoryListResponse.js @@ -0,0 +1,80 @@ +/* + * 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'; + +/** + * A list of factory resources. + */ +class FactoryListResponse extends Array { + /** + * Create a FactoryListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FactoryListResponse + * + * @returns {object} metadata of FactoryListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'FactoryListResponse', + type: { + name: 'Composite', + className: 'FactoryListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'FactoryElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'Factory' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = FactoryListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/factoryUpdateParameters.js b/lib/services/datafactoryManagement/lib/lib/models/factoryUpdateParameters.js new file mode 100644 index 0000000000..f3075d7c39 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/factoryUpdateParameters.js @@ -0,0 +1,72 @@ +/* + * 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'); + +/** + * Parameters for updating a factory resource. + * + */ +class FactoryUpdateParameters { + /** + * Create a FactoryUpdateParameters. + * @member {object} [tags] The resource tags. + * @member {object} [identity] Managed service identity of the factory. + * @member {uuid} [identity.principalId] The principal id of the identity. + * @member {uuid} [identity.tenantId] The client tenant id of the identity. + */ + constructor() { + } + + /** + * Defines the metadata of FactoryUpdateParameters + * + * @returns {object} metadata of FactoryUpdateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'FactoryUpdateParameters', + type: { + name: 'Composite', + className: 'FactoryUpdateParameters', + modelProperties: { + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + identity: { + required: false, + serializedName: 'identity', + type: { + name: 'Composite', + className: 'FactoryIdentity' + } + } + } + } + }; + } +} + +module.exports = FactoryUpdateParameters; diff --git a/lib/services/datafactoryManagement/lib/lib/models/fileServerLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/fileServerLinkedService.js new file mode 100644 index 0000000000..611b0f08a5 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/fileServerLinkedService.js @@ -0,0 +1,148 @@ +/* + * 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'); + +/** + * File system linked service. + * + * @extends models['LinkedService'] + */ +class FileServerLinkedService extends models['LinkedService'] { + /** + * Create a FileServerLinkedService. + * @member {object} host Host name of the server. Type: string (or Expression + * with resultType string). + * @member {object} [userId] User ID to logon the server. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password to logon the server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FileServerLinkedService + * + * @returns {object} metadata of FileServerLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'FileServer', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'FileServerLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + userId: { + required: false, + serializedName: 'typeProperties.userId', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = FileServerLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/fileShareDataset.js b/lib/services/datafactoryManagement/lib/lib/models/fileShareDataset.js new file mode 100644 index 0000000000..d923419f1a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/fileShareDataset.js @@ -0,0 +1,200 @@ +/* + * 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'); + +/** + * An on-premises file system dataset. + * + * @extends models['Dataset'] + */ +class FileShareDataset extends models['Dataset'] { + /** + * Create a FileShareDataset. + * @member {object} [folderPath] The path of the on-premises file system. + * Type: string (or Expression with resultType string). + * @member {object} [fileName] The name of the on-premises file system. Type: + * string (or Expression with resultType string). + * @member {object} [format] The format of the files. + * @member {object} [format.serializer] Serializer. Type: string (or + * Expression with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [fileFilter] Specify a filter to be used to select a + * subset of files in the folderPath rather than all files. Type: string (or + * Expression with resultType string). + * @member {object} [compression] The data compression method used for the + * file system. + * @member {string} [compression.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FileShareDataset + * + * @returns {object} metadata of FileShareDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'FileShare', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'FileShareDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + folderPath: { + required: false, + serializedName: 'typeProperties.folderPath', + type: { + name: 'Object' + } + }, + fileName: { + required: false, + serializedName: 'typeProperties.fileName', + type: { + name: 'Object' + } + }, + format: { + required: false, + serializedName: 'typeProperties.format', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'DatasetStorageFormat' + } + }, + fileFilter: { + required: false, + serializedName: 'typeProperties.fileFilter', + type: { + name: 'Object' + } + }, + compression: { + required: false, + serializedName: 'typeProperties.compression', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetCompression' + } + } + } + } + }; + } +} + +module.exports = FileShareDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/fileSystemSink.js b/lib/services/datafactoryManagement/lib/lib/models/fileSystemSink.js new file mode 100644 index 0000000000..cc5f6e5d72 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/fileSystemSink.js @@ -0,0 +1,99 @@ +/* + * 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'); + +/** + * A copy activity file system sink. + * + * @extends models['CopySink'] + */ +class FileSystemSink extends models['CopySink'] { + /** + * Create a FileSystemSink. + * @member {string} [copyBehavior] The type of copy behavior for copy sink. + * Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', + * 'MergeFiles' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FileSystemSink + * + * @returns {object} metadata of FileSystemSink + * + */ + mapper() { + return { + required: false, + serializedName: 'FileSystemSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'FileSystemSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + copyBehavior: { + required: false, + serializedName: 'copyBehavior', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = FileSystemSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/fileSystemSource.js b/lib/services/datafactoryManagement/lib/lib/models/fileSystemSource.js new file mode 100644 index 0000000000..aa7f667c83 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/fileSystemSource.js @@ -0,0 +1,85 @@ +/* + * 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'); + +/** + * A copy activity file system source. + * + * @extends models['CopySource'] + */ +class FileSystemSource extends models['CopySource'] { + /** + * Create a FileSystemSource. + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FileSystemSource + * + * @returns {object} metadata of FileSystemSource + * + */ + mapper() { + return { + required: false, + serializedName: 'FileSystemSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'FileSystemSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + recursive: { + required: false, + serializedName: 'recursive', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = FileSystemSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/filterActivity.js b/lib/services/datafactoryManagement/lib/lib/models/filterActivity.js new file mode 100644 index 0000000000..fffe385ff0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/filterActivity.js @@ -0,0 +1,124 @@ +/* + * 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'); + +/** + * Filter and return results from input array based on the conditions. + * + * @extends models['ControlActivity'] + */ +class FilterActivity extends models['ControlActivity'] { + /** + * Create a FilterActivity. + * @member {object} items Input array on which filter should be applied. + * @member {string} [items.value] Expression value. + * @member {object} condition Condition to be used for filtering the input. + * @member {string} [condition.value] Expression value. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FilterActivity + * + * @returns {object} metadata of FilterActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Filter', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'FilterActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + items: { + required: true, + serializedName: 'typeProperties.items', + defaultValue: {}, + type: { + name: 'Composite', + className: 'Expression' + } + }, + condition: { + required: true, + serializedName: 'typeProperties.condition', + defaultValue: {}, + type: { + name: 'Composite', + className: 'Expression' + } + } + } + } + }; + } +} + +module.exports = FilterActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/forEachActivity.js b/lib/services/datafactoryManagement/lib/lib/models/forEachActivity.js new file mode 100644 index 0000000000..c874a5d612 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/forEachActivity.js @@ -0,0 +1,168 @@ +/* + * 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'); + +/** + * This activity is used for iterating over a collection and execute given + * activities. + * + * @extends models['ControlActivity'] + */ +class ForEachActivity extends models['ControlActivity'] { + /** + * Create a ForEachActivity. + * @member {boolean} [isSequential] Should the loop be executed in sequence + * or in parallel (max 50) + * @member {number} [batchCount] Batch count to be used for controlling the + * number of parallel execution (when isSequential is set to false). + * @member {object} items Collection to iterate. + * @member {string} [items.value] Expression value. + * @member {array} activities List of activities to execute . + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ForEachActivity + * + * @returns {object} metadata of ForEachActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'ForEach', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'ForEachActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + isSequential: { + required: false, + serializedName: 'typeProperties.isSequential', + type: { + name: 'Boolean' + } + }, + batchCount: { + required: false, + serializedName: 'typeProperties.batchCount', + constraints: { + InclusiveMaximum: 50 + }, + type: { + name: 'Number' + } + }, + items: { + required: true, + serializedName: 'typeProperties.items', + defaultValue: {}, + type: { + name: 'Composite', + className: 'Expression' + } + }, + activities: { + required: true, + serializedName: 'typeProperties.activities', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'Activity' + } + } + } + } + } + } + }; + } +} + +module.exports = ForEachActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/ftpServerLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/ftpServerLinkedService.js new file mode 100644 index 0000000000..32cebadc3a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/ftpServerLinkedService.js @@ -0,0 +1,188 @@ +/* + * 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'); + +/** + * A FTP server Linked Service. + * + * @extends models['LinkedService'] + */ +class FtpServerLinkedService extends models['LinkedService'] { + /** + * Create a FtpServerLinkedService. + * @member {object} host Host name of the FTP server. Type: string (or + * Expression with resultType string). + * @member {object} [port] The TCP port number that the FTP server uses to + * listen for client connections. Default value is 21. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {string} [authenticationType] The authentication type to be used + * to connect to the FTP server. Possible values include: 'Basic', + * 'Anonymous' + * @member {object} [userName] Username to logon the FTP server. Type: string + * (or Expression with resultType string). + * @member {object} [password] Password to logon the FTP server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + * @member {object} [enableSsl] If true, connect to the FTP server over + * SSL/TLS channel. Default value is true. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [enableServerCertificateValidation] If true, validate the + * FTP server SSL certificate when connect over SSL/TLS channel. Default + * value is true. Type: boolean (or Expression with resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FtpServerLinkedService + * + * @returns {object} metadata of FtpServerLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'FtpServer', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'FtpServerLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + enableServerCertificateValidation: { + required: false, + serializedName: 'typeProperties.enableServerCertificateValidation', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = FtpServerLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/getMetadataActivity.js b/lib/services/datafactoryManagement/lib/lib/models/getMetadataActivity.js new file mode 100644 index 0000000000..26a3a025b0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/getMetadataActivity.js @@ -0,0 +1,157 @@ +/* + * 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'); + +/** + * Activity to get metadata of dataset + * + * @extends models['ExecutionActivity'] + */ +class GetMetadataActivity extends models['ExecutionActivity'] { + /** + * Create a GetMetadataActivity. + * @member {object} dataset GetMetadata activity dataset reference. + * @member {string} [dataset.referenceName] Reference dataset name. + * @member {object} [dataset.parameters] Arguments for dataset. + * @member {array} [fieldList] Fields of metadata to get from dataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of GetMetadataActivity + * + * @returns {object} metadata of GetMetadataActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'GetMetadata', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'GetMetadataActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + dataset: { + required: true, + serializedName: 'typeProperties.dataset', + defaultValue: {}, + type: { + name: 'Composite', + className: 'DatasetReference' + } + }, + fieldList: { + required: false, + serializedName: 'typeProperties.fieldList', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = GetMetadataActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/googleBigQueryLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/googleBigQueryLinkedService.js new file mode 100644 index 0000000000..82c6ef9884 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/googleBigQueryLinkedService.js @@ -0,0 +1,243 @@ +/* + * 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'); + +/** + * Google BigQuery service linked service. + * + * @extends models['LinkedService'] + */ +class GoogleBigQueryLinkedService extends models['LinkedService'] { + /** + * Create a GoogleBigQueryLinkedService. + * @member {object} project The default BigQuery project to query against. + * @member {object} [additionalProjects] A comma-separated list of public + * BigQuery projects to access. + * @member {object} [requestGoogleDriveScope] Whether to request access to + * Google Drive. Allowing Google Drive access enables support for federated + * tables that combine BigQuery data with data from Google Drive. The default + * value is false. + * @member {string} authenticationType The OAuth 2.0 authentication mechanism + * used for authentication. ServiceAuthentication can only be used on + * self-hosted IR. Possible values include: 'ServiceAuthentication', + * 'UserAuthentication' + * @member {object} [refreshToken] The refresh token obtained from Google for + * authorizing access to BigQuery for UserAuthentication. + * @member {string} [refreshToken.type] Polymorphic Discriminator + * @member {object} [clientId] The client id of the google application used + * to acquire the refresh token. + * @member {string} [clientId.type] Polymorphic Discriminator + * @member {object} [clientSecret] The client secret of the google + * application used to acquire the refresh token. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [email] The service account email ID that is used for + * ServiceAuthentication and can only be used on self-hosted IR. + * @member {object} [keyFilePath] The full path to the .p12 key file that is + * used to authenticate the service account email address and can only be + * used on self-hosted IR. + * @member {object} [trustedCertPath] The full path of the .pem file + * containing trusted CA certificates for verifying the server when + * connecting over SSL. This property can only be set when using SSL on + * self-hosted IR. The default value is the cacerts.pem file installed with + * the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of GoogleBigQueryLinkedService + * + * @returns {object} metadata of GoogleBigQueryLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'GoogleBigQuery', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'GoogleBigQueryLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + project: { + required: true, + serializedName: 'typeProperties.project', + type: { + name: 'Object' + } + }, + additionalProjects: { + required: false, + serializedName: 'typeProperties.additionalProjects', + type: { + name: 'Object' + } + }, + requestGoogleDriveScope: { + required: false, + serializedName: 'typeProperties.requestGoogleDriveScope', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + refreshToken: { + required: false, + serializedName: 'typeProperties.refreshToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + clientId: { + required: false, + serializedName: 'typeProperties.clientId', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + email: { + required: false, + serializedName: 'typeProperties.email', + type: { + name: 'Object' + } + }, + keyFilePath: { + required: false, + serializedName: 'typeProperties.keyFilePath', + type: { + name: 'Object' + } + }, + trustedCertPath: { + required: false, + serializedName: 'typeProperties.trustedCertPath', + type: { + name: 'Object' + } + }, + useSystemTrustStore: { + required: false, + serializedName: 'typeProperties.useSystemTrustStore', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = GoogleBigQueryLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/googleBigQueryObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/googleBigQueryObjectDataset.js new file mode 100644 index 0000000000..7ced9d3224 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/googleBigQueryObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Google BigQuery service dataset. + * + * @extends models['Dataset'] + */ +class GoogleBigQueryObjectDataset extends models['Dataset'] { + /** + * Create a GoogleBigQueryObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of GoogleBigQueryObjectDataset + * + * @returns {object} metadata of GoogleBigQueryObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'GoogleBigQueryObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'GoogleBigQueryObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = GoogleBigQueryObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/googleBigQuerySource.js b/lib/services/datafactoryManagement/lib/lib/models/googleBigQuerySource.js new file mode 100644 index 0000000000..e4015ac8df --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/googleBigQuerySource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Google BigQuery service source. + * + * @extends models['CopySource'] + */ +class GoogleBigQuerySource extends models['CopySource'] { + /** + * Create a GoogleBigQuerySource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of GoogleBigQuerySource + * + * @returns {object} metadata of GoogleBigQuerySource + * + */ + mapper() { + return { + required: false, + serializedName: 'GoogleBigQuerySource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'GoogleBigQuerySource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = GoogleBigQuerySource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/greenplumLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/greenplumLinkedService.js new file mode 100644 index 0000000000..0823499773 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/greenplumLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Greenplum Database linked service. + * + * @extends models['LinkedService'] + */ +class GreenplumLinkedService extends models['LinkedService'] { + /** + * Create a GreenplumLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of GreenplumLinkedService + * + * @returns {object} metadata of GreenplumLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Greenplum', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'GreenplumLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = GreenplumLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/greenplumSource.js b/lib/services/datafactoryManagement/lib/lib/models/greenplumSource.js new file mode 100644 index 0000000000..c91f576a42 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/greenplumSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Greenplum Database source. + * + * @extends models['CopySource'] + */ +class GreenplumSource extends models['CopySource'] { + /** + * Create a GreenplumSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of GreenplumSource + * + * @returns {object} metadata of GreenplumSource + * + */ + mapper() { + return { + required: false, + serializedName: 'GreenplumSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'GreenplumSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = GreenplumSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/greenplumTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/greenplumTableDataset.js new file mode 100644 index 0000000000..2daf59c2bd --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/greenplumTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Greenplum Database dataset. + * + * @extends models['Dataset'] + */ +class GreenplumTableDataset extends models['Dataset'] { + /** + * Create a GreenplumTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of GreenplumTableDataset + * + * @returns {object} metadata of GreenplumTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'GreenplumTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'GreenplumTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = GreenplumTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hBaseLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/hBaseLinkedService.js new file mode 100644 index 0000000000..6f4bbab94c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hBaseLinkedService.js @@ -0,0 +1,215 @@ +/* + * 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'); + +/** + * HBase server linked service. + * + * @extends models['LinkedService'] + */ +class HBaseLinkedService extends models['LinkedService'] { + /** + * Create a HBaseLinkedService. + * @member {object} host The IP address or host name of the HBase server. + * (i.e. 192.168.222.160) + * @member {object} [port] The TCP port that the HBase instance uses to + * listen for client connections. The default value is 9090. + * @member {object} [httpPath] The partial URL corresponding to the HBase + * server. (i.e. /gateway/sandbox/hbase/version) + * @member {string} authenticationType The authentication mechanism to use to + * connect to the HBase server. Possible values include: 'Anonymous', 'Basic' + * @member {object} [username] The user name used to connect to the HBase + * instance. + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file + * containing trusted CA certificates for verifying the server when + * connecting over SSL. This property can only be set when using SSL on + * self-hosted IR. The default value is the cacerts.pem file installed with + * the IR. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HBaseLinkedService + * + * @returns {object} metadata of HBaseLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'HBase', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'HBaseLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + httpPath: { + required: false, + serializedName: 'typeProperties.httpPath', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + trustedCertPath: { + required: false, + serializedName: 'typeProperties.trustedCertPath', + type: { + name: 'Object' + } + }, + allowHostNameCNMismatch: { + required: false, + serializedName: 'typeProperties.allowHostNameCNMismatch', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HBaseLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hBaseObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/hBaseObjectDataset.js new file mode 100644 index 0000000000..b92fbf8d68 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hBaseObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * HBase server dataset. + * + * @extends models['Dataset'] + */ +class HBaseObjectDataset extends models['Dataset'] { + /** + * Create a HBaseObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HBaseObjectDataset + * + * @returns {object} metadata of HBaseObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'HBaseObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'HBaseObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = HBaseObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hBaseSource.js b/lib/services/datafactoryManagement/lib/lib/models/hBaseSource.js new file mode 100644 index 0000000000..96d8333833 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hBaseSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity HBase server source. + * + * @extends models['CopySource'] + */ +class HBaseSource extends models['CopySource'] { + /** + * Create a HBaseSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HBaseSource + * + * @returns {object} metadata of HBaseSource + * + */ + mapper() { + return { + required: false, + serializedName: 'HBaseSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'HBaseSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HBaseSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hDInsightHiveActivity.js b/lib/services/datafactoryManagement/lib/lib/models/hDInsightHiveActivity.js new file mode 100644 index 0000000000..dc2d5e59f3 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hDInsightHiveActivity.js @@ -0,0 +1,209 @@ +/* + * 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'); + +/** + * HDInsight Hive activity type. + * + * @extends models['ExecutionActivity'] + */ +class HDInsightHiveActivity extends models['ExecutionActivity'] { + /** + * Create a HDInsightHiveActivity. + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values + * include: 'None', 'Always', 'Failure' + * @member {object} [scriptPath] Script path. Type: string (or Expression + * with resultType string). + * @member {object} [scriptLinkedService] Script linked service reference. + * @member {string} [scriptLinkedService.referenceName] Reference + * LinkedService name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [defines] Allows user to specify defines for Hive job + * request. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HDInsightHiveActivity + * + * @returns {object} metadata of HDInsightHiveActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'HDInsightHive', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'HDInsightHiveActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + storageLinkedServices: { + required: false, + serializedName: 'typeProperties.storageLinkedServices', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceReferenceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + }, + argumentsProperty: { + required: false, + serializedName: 'typeProperties.arguments', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + getDebugInfo: { + required: false, + serializedName: 'typeProperties.getDebugInfo', + type: { + name: 'String' + } + }, + scriptPath: { + required: false, + serializedName: 'typeProperties.scriptPath', + type: { + name: 'Object' + } + }, + scriptLinkedService: { + required: false, + serializedName: 'typeProperties.scriptLinkedService', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + defines: { + required: false, + serializedName: 'typeProperties.defines', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = HDInsightHiveActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hDInsightLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/hDInsightLinkedService.js new file mode 100644 index 0000000000..73f24a977b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hDInsightLinkedService.js @@ -0,0 +1,176 @@ +/* + * 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'); + +/** + * HDInsight linked service. + * + * @extends models['LinkedService'] + */ +class HDInsightLinkedService extends models['LinkedService'] { + /** + * Create a HDInsightLinkedService. + * @member {object} clusterUri HDInsight cluster URI. Type: string (or + * Expression with resultType string). + * @member {object} [userName] HDInsight cluster user name. Type: string (or + * Expression with resultType string). + * @member {object} [password] HDInsight cluster password. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [linkedServiceName] The Azure Storage linked service + * reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [hcatalogLinkedServiceName] A reference to the Azure SQL + * linked service that points to the HCatalog database. + * @member {string} [hcatalogLinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HDInsightLinkedService + * + * @returns {object} metadata of HDInsightLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'HDInsight', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'HDInsightLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + clusterUri: { + required: true, + serializedName: 'typeProperties.clusterUri', + type: { + name: 'Object' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + linkedServiceName: { + required: false, + serializedName: 'typeProperties.linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + hcatalogLinkedServiceName: { + required: false, + serializedName: 'typeProperties.hcatalogLinkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HDInsightLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hDInsightMapReduceActivity.js b/lib/services/datafactoryManagement/lib/lib/models/hDInsightMapReduceActivity.js new file mode 100644 index 0000000000..caafacc678 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hDInsightMapReduceActivity.js @@ -0,0 +1,233 @@ +/* + * 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'); + +/** + * HDInsight MapReduce activity type. + * + * @extends models['ExecutionActivity'] + */ +class HDInsightMapReduceActivity extends models['ExecutionActivity'] { + /** + * Create a HDInsightMapReduceActivity. + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values + * include: 'None', 'Always', 'Failure' + * @member {object} className Class name. Type: string (or Expression with + * resultType string). + * @member {object} jarFilePath Jar path. Type: string (or Expression with + * resultType string). + * @member {object} [jarLinkedService] Jar linked service reference. + * @member {string} [jarLinkedService.referenceName] Reference LinkedService + * name. + * @member {object} [jarLinkedService.parameters] Arguments for + * LinkedService. + * @member {array} [jarLibs] Jar libs. + * @member {object} [defines] Allows user to specify defines for the + * MapReduce job request. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HDInsightMapReduceActivity + * + * @returns {object} metadata of HDInsightMapReduceActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'HDInsightMapReduce', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'HDInsightMapReduceActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + storageLinkedServices: { + required: false, + serializedName: 'typeProperties.storageLinkedServices', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceReferenceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + }, + argumentsProperty: { + required: false, + serializedName: 'typeProperties.arguments', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + getDebugInfo: { + required: false, + serializedName: 'typeProperties.getDebugInfo', + type: { + name: 'String' + } + }, + className: { + required: true, + serializedName: 'typeProperties.className', + type: { + name: 'Object' + } + }, + jarFilePath: { + required: true, + serializedName: 'typeProperties.jarFilePath', + type: { + name: 'Object' + } + }, + jarLinkedService: { + required: false, + serializedName: 'typeProperties.jarLinkedService', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + jarLibs: { + required: false, + serializedName: 'typeProperties.jarLibs', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + defines: { + required: false, + serializedName: 'typeProperties.defines', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = HDInsightMapReduceActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hDInsightOnDemandLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/hDInsightOnDemandLinkedService.js new file mode 100644 index 0000000000..851362c4ad --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hDInsightOnDemandLinkedService.js @@ -0,0 +1,422 @@ +/* + * 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'); + +/** + * HDInsight ondemand linked service. + * + * @extends models['LinkedService'] + */ +class HDInsightOnDemandLinkedService extends models['LinkedService'] { + /** + * Create a HDInsightOnDemandLinkedService. + * @member {object} clusterSize Number of worker/data nodes in the cluster. + * Suggestion value: 4. Type: string (or Expression with resultType string). + * @member {object} timeToLive The allowed idle time for the on-demand + * HDInsight cluster. Specifies how long the on-demand HDInsight cluster + * stays alive after completion of an activity run if there are no other + * active jobs in the cluster. The minimum value is 5 mins. Type: string (or + * Expression with resultType string). + * @member {object} version Version of the HDInsight cluster.  Type: string + * (or Expression with resultType string). + * @member {object} linkedServiceName Azure Storage linked service to be used + * by the on-demand cluster for storing and processing data. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} hostSubscriptionId The customer’s subscription to host + * the cluster. Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalId] The service principal id for the + * hostSubscriptionId. Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalKey] The key for the service principal + * id. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} tenant The Tenant id/name to which the service principal + * belongs. Type: string (or Expression with resultType string). + * @member {object} clusterResourceGroup The resource group where the cluster + * belongs. Type: string (or Expression with resultType string). + * @member {object} [clusterNamePrefix] The prefix of cluster name, postfix + * will be distinct with timestamp. Type: string (or Expression with + * resultType string). + * @member {object} [clusterUserName] The username to access the cluster. + * Type: string (or Expression with resultType string). + * @member {object} [clusterPassword] The password to access the cluster. + * @member {string} [clusterPassword.type] Polymorphic Discriminator + * @member {object} [clusterSshUserName] The username to SSH remotely connect + * to cluster’s node (for Linux). Type: string (or Expression with resultType + * string). + * @member {object} [clusterSshPassword] The password to SSH remotely connect + * cluster’s node (for Linux). + * @member {string} [clusterSshPassword.type] Polymorphic Discriminator + * @member {array} [additionalLinkedServiceNames] Specifies additional + * storage accounts for the HDInsight linked service so that the Data Factory + * service can register them on your behalf. + * @member {object} [hcatalogLinkedServiceName] The name of Azure SQL linked + * service that point to the HCatalog database. The on-demand HDInsight + * cluster is created by using the Azure SQL database as the metastore. + * @member {string} [hcatalogLinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [clusterType] The cluster type. Type: string (or + * Expression with resultType string). + * @member {object} [sparkVersion] The version of spark if the cluster type + * is 'spark'. Type: string (or Expression with resultType string). + * @member {object} [coreConfiguration] Specifies the core configuration + * parameters (as in core-site.xml) for the HDInsight cluster to be created. + * @member {object} [hBaseConfiguration] Specifies the HBase configuration + * parameters (hbase-site.xml) for the HDInsight cluster. + * @member {object} [hdfsConfiguration] Specifies the HDFS configuration + * parameters (hdfs-site.xml) for the HDInsight cluster. + * @member {object} [hiveConfiguration] Specifies the hive configuration + * parameters (hive-site.xml) for the HDInsight cluster. + * @member {object} [mapReduceConfiguration] Specifies the MapReduce + * configuration parameters (mapred-site.xml) for the HDInsight cluster. + * @member {object} [oozieConfiguration] Specifies the Oozie configuration + * parameters (oozie-site.xml) for the HDInsight cluster. + * @member {object} [stormConfiguration] Specifies the Storm configuration + * parameters (storm-site.xml) for the HDInsight cluster. + * @member {object} [yarnConfiguration] Specifies the Yarn configuration + * parameters (yarn-site.xml) for the HDInsight cluster. + * @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). + * @member {object} [headNodeSize] Specifies the size of the head node for + * the HDInsight cluster. + * @member {object} [dataNodeSize] Specifies the size of the data node for + * the HDInsight cluster. + * @member {object} [zookeeperNodeSize] Specifies the size of the Zoo Keeper + * node for the HDInsight cluster. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HDInsightOnDemandLinkedService + * + * @returns {object} metadata of HDInsightOnDemandLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'HDInsightOnDemand', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'HDInsightOnDemandLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + clusterSize: { + required: true, + serializedName: 'typeProperties.clusterSize', + type: { + name: 'Object' + } + }, + timeToLive: { + required: true, + serializedName: 'typeProperties.timeToLive', + type: { + name: 'Object' + } + }, + version: { + required: true, + serializedName: 'typeProperties.version', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'typeProperties.linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + hostSubscriptionId: { + required: true, + serializedName: 'typeProperties.hostSubscriptionId', + type: { + name: 'Object' + } + }, + servicePrincipalId: { + required: false, + serializedName: 'typeProperties.servicePrincipalId', + type: { + name: 'Object' + } + }, + servicePrincipalKey: { + required: false, + serializedName: 'typeProperties.servicePrincipalKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + tenant: { + required: true, + serializedName: 'typeProperties.tenant', + type: { + name: 'Object' + } + }, + clusterResourceGroup: { + required: true, + serializedName: 'typeProperties.clusterResourceGroup', + type: { + name: 'Object' + } + }, + clusterNamePrefix: { + required: false, + serializedName: 'typeProperties.clusterNamePrefix', + type: { + name: 'Object' + } + }, + clusterUserName: { + required: false, + serializedName: 'typeProperties.clusterUserName', + type: { + name: 'Object' + } + }, + clusterPassword: { + required: false, + serializedName: 'typeProperties.clusterPassword', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + clusterSshUserName: { + required: false, + serializedName: 'typeProperties.clusterSshUserName', + type: { + name: 'Object' + } + }, + clusterSshPassword: { + required: false, + serializedName: 'typeProperties.clusterSshPassword', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + additionalLinkedServiceNames: { + required: false, + serializedName: 'typeProperties.additionalLinkedServiceNames', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceReferenceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + }, + hcatalogLinkedServiceName: { + required: false, + serializedName: 'typeProperties.hcatalogLinkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + clusterType: { + required: false, + serializedName: 'typeProperties.clusterType', + type: { + name: 'Object' + } + }, + sparkVersion: { + required: false, + serializedName: 'typeProperties.sparkVersion', + type: { + name: 'Object' + } + }, + coreConfiguration: { + required: false, + serializedName: 'typeProperties.coreConfiguration', + type: { + name: 'Object' + } + }, + hBaseConfiguration: { + required: false, + serializedName: 'typeProperties.hBaseConfiguration', + type: { + name: 'Object' + } + }, + hdfsConfiguration: { + required: false, + serializedName: 'typeProperties.hdfsConfiguration', + type: { + name: 'Object' + } + }, + hiveConfiguration: { + required: false, + serializedName: 'typeProperties.hiveConfiguration', + type: { + name: 'Object' + } + }, + mapReduceConfiguration: { + required: false, + serializedName: 'typeProperties.mapReduceConfiguration', + type: { + name: 'Object' + } + }, + oozieConfiguration: { + required: false, + serializedName: 'typeProperties.oozieConfiguration', + type: { + name: 'Object' + } + }, + stormConfiguration: { + required: false, + serializedName: 'typeProperties.stormConfiguration', + type: { + name: 'Object' + } + }, + yarnConfiguration: { + required: false, + serializedName: 'typeProperties.yarnConfiguration', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + }, + headNodeSize: { + required: false, + serializedName: 'typeProperties.headNodeSize', + type: { + name: 'Object' + } + }, + dataNodeSize: { + required: false, + serializedName: 'typeProperties.dataNodeSize', + type: { + name: 'Object' + } + }, + zookeeperNodeSize: { + required: false, + serializedName: 'typeProperties.zookeeperNodeSize', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HDInsightOnDemandLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hDInsightPigActivity.js b/lib/services/datafactoryManagement/lib/lib/models/hDInsightPigActivity.js new file mode 100644 index 0000000000..d799d1dfdc --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hDInsightPigActivity.js @@ -0,0 +1,209 @@ +/* + * 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'); + +/** + * HDInsight Pig activity type. + * + * @extends models['ExecutionActivity'] + */ +class HDInsightPigActivity extends models['ExecutionActivity'] { + /** + * Create a HDInsightPigActivity. + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values + * include: 'None', 'Always', 'Failure' + * @member {object} [scriptPath] Script path. Type: string (or Expression + * with resultType string). + * @member {object} [scriptLinkedService] Script linked service reference. + * @member {string} [scriptLinkedService.referenceName] Reference + * LinkedService name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [defines] Allows user to specify defines for Pig job + * request. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HDInsightPigActivity + * + * @returns {object} metadata of HDInsightPigActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'HDInsightPig', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'HDInsightPigActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + storageLinkedServices: { + required: false, + serializedName: 'typeProperties.storageLinkedServices', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceReferenceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + }, + argumentsProperty: { + required: false, + serializedName: 'typeProperties.arguments', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + getDebugInfo: { + required: false, + serializedName: 'typeProperties.getDebugInfo', + type: { + name: 'String' + } + }, + scriptPath: { + required: false, + serializedName: 'typeProperties.scriptPath', + type: { + name: 'Object' + } + }, + scriptLinkedService: { + required: false, + serializedName: 'typeProperties.scriptLinkedService', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + defines: { + required: false, + serializedName: 'typeProperties.defines', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = HDInsightPigActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hDInsightSparkActivity.js b/lib/services/datafactoryManagement/lib/lib/models/hDInsightSparkActivity.js new file mode 100644 index 0000000000..67126d2e69 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hDInsightSparkActivity.js @@ -0,0 +1,220 @@ +/* + * 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'); + +/** + * HDInsight Spark activity. + * + * @extends models['ExecutionActivity'] + */ +class HDInsightSparkActivity extends models['ExecutionActivity'] { + /** + * Create a HDInsightSparkActivity. + * @member {object} rootPath The root path in 'sparkJobLinkedService' for all + * the job’s files. Type: string (or Expression with resultType string). + * @member {object} entryFilePath The relative path to the root folder of the + * code/package to be executed. Type: string (or Expression with resultType + * string). + * @member {array} [argumentsProperty] The user-specified arguments to + * HDInsightSparkActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values + * include: 'None', 'Always', 'Failure' + * @member {object} [sparkJobLinkedService] The storage linked service for + * uploading the entry file and dependencies, and for receiving logs. + * @member {string} [sparkJobLinkedService.referenceName] Reference + * LinkedService name. + * @member {object} [sparkJobLinkedService.parameters] Arguments for + * LinkedService. + * @member {string} [className] The application's Java/Spark main class. + * @member {object} [proxyUser] The user to impersonate that will execute the + * job. Type: string (or Expression with resultType string). + * @member {object} [sparkConfig] Spark configuration property. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HDInsightSparkActivity + * + * @returns {object} metadata of HDInsightSparkActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'HDInsightSpark', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'HDInsightSparkActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + rootPath: { + required: true, + serializedName: 'typeProperties.rootPath', + type: { + name: 'Object' + } + }, + entryFilePath: { + required: true, + serializedName: 'typeProperties.entryFilePath', + type: { + name: 'Object' + } + }, + argumentsProperty: { + required: false, + serializedName: 'typeProperties.arguments', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + getDebugInfo: { + required: false, + serializedName: 'typeProperties.getDebugInfo', + type: { + name: 'String' + } + }, + sparkJobLinkedService: { + required: false, + serializedName: 'typeProperties.sparkJobLinkedService', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + className: { + required: false, + serializedName: 'typeProperties.className', + type: { + name: 'String' + } + }, + proxyUser: { + required: false, + serializedName: 'typeProperties.proxyUser', + type: { + name: 'Object' + } + }, + sparkConfig: { + required: false, + serializedName: 'typeProperties.sparkConfig', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = HDInsightSparkActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hDInsightStreamingActivity.js b/lib/services/datafactoryManagement/lib/lib/models/hDInsightStreamingActivity.js new file mode 100644 index 0000000000..20c9406e29 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hDInsightStreamingActivity.js @@ -0,0 +1,277 @@ +/* + * 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'); + +/** + * HDInsight streaming activity type. + * + * @extends models['ExecutionActivity'] + */ +class HDInsightStreamingActivity extends models['ExecutionActivity'] { + /** + * Create a HDInsightStreamingActivity. + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values + * include: 'None', 'Always', 'Failure' + * @member {object} mapper Mapper executable name. Type: string (or + * Expression with resultType string). + * @member {object} reducer Reducer executable name. Type: string (or + * Expression with resultType string). + * @member {object} input Input blob path. Type: string (or Expression with + * resultType string). + * @member {object} output Output blob path. Type: string (or Expression with + * resultType string). + * @member {array} filePaths Paths to streaming job files. Can be + * directories. + * @member {object} [fileLinkedService] Linked service reference where the + * files are located. + * @member {string} [fileLinkedService.referenceName] Reference LinkedService + * name. + * @member {object} [fileLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [combiner] Combiner executable name. Type: string (or + * Expression with resultType string). + * @member {array} [commandEnvironment] Command line environment values. + * @member {object} [defines] Allows user to specify defines for streaming + * job request. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HDInsightStreamingActivity + * + * @returns {object} metadata of HDInsightStreamingActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'HDInsightStreaming', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'HDInsightStreamingActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + storageLinkedServices: { + required: false, + serializedName: 'typeProperties.storageLinkedServices', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceReferenceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + }, + argumentsProperty: { + required: false, + serializedName: 'typeProperties.arguments', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + getDebugInfo: { + required: false, + serializedName: 'typeProperties.getDebugInfo', + type: { + name: 'String' + } + }, + mapper: { + required: true, + serializedName: 'typeProperties.mapper', + type: { + name: 'Object' + } + }, + reducer: { + required: true, + serializedName: 'typeProperties.reducer', + type: { + name: 'Object' + } + }, + input: { + required: true, + serializedName: 'typeProperties.input', + type: { + name: 'Object' + } + }, + output: { + required: true, + serializedName: 'typeProperties.output', + type: { + name: 'Object' + } + }, + filePaths: { + required: true, + serializedName: 'typeProperties.filePaths', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + fileLinkedService: { + required: false, + serializedName: 'typeProperties.fileLinkedService', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + combiner: { + required: false, + serializedName: 'typeProperties.combiner', + type: { + name: 'Object' + } + }, + commandEnvironment: { + required: false, + serializedName: 'typeProperties.commandEnvironment', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + defines: { + required: false, + serializedName: 'typeProperties.defines', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = HDInsightStreamingActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hdfsLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/hdfsLinkedService.js new file mode 100644 index 0000000000..d2687d48f0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hdfsLinkedService.js @@ -0,0 +1,159 @@ +/* + * 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'); + +/** + * Hadoop Distributed File System (HDFS) linked service. + * + * @extends models['LinkedService'] + */ +class HdfsLinkedService extends models['LinkedService'] { + /** + * Create a HdfsLinkedService. + * @member {object} url The URL of the HDFS service endpoint, e.g. + * http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with + * resultType string). + * @member {object} [authenticationType] Type of authentication used to + * connect to the HDFS. Possible values are: Anonymous and Windows. Type: + * string (or Expression with resultType string). + * @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). + * @member {object} [userName] User name for Windows authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password for Windows authentication. + * @member {string} [password.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HdfsLinkedService + * + * @returns {object} metadata of HdfsLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Hdfs', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'HdfsLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + } + } + } + }; + } +} + +module.exports = HdfsLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hdfsSource.js b/lib/services/datafactoryManagement/lib/lib/models/hdfsSource.js new file mode 100644 index 0000000000..1674d24984 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hdfsSource.js @@ -0,0 +1,103 @@ +/* + * 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'); + +/** + * A copy activity HDFS source. + * + * @extends models['CopySource'] + */ +class HdfsSource extends models['CopySource'] { + /** + * Create a HdfsSource. + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [distcpSettings] Specifies Distcp-related settings. + * @member {object} [distcpSettings.resourceManagerEndpoint] Specifies the + * Yarn ResourceManager endpoint. Type: string (or Expression with resultType + * string). + * @member {object} [distcpSettings.tempScriptPath] Specifies an existing + * folder path which will be used to store temp Distcp command script. The + * script file is generated by ADF and will be removed after Copy job + * finished. Type: string (or Expression with resultType string). + * @member {object} [distcpSettings.distcpOptions] Specifies the Distcp + * options. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HdfsSource + * + * @returns {object} metadata of HdfsSource + * + */ + mapper() { + return { + required: false, + serializedName: 'HdfsSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'HdfsSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + recursive: { + required: false, + serializedName: 'recursive', + type: { + name: 'Object' + } + }, + distcpSettings: { + required: false, + serializedName: 'distcpSettings', + type: { + name: 'Composite', + className: 'DistcpSettings' + } + } + } + } + }; + } +} + +module.exports = HdfsSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hiveLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/hiveLinkedService.js new file mode 100644 index 0000000000..fb532fb8e7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hiveLinkedService.js @@ -0,0 +1,273 @@ +/* + * 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'); + +/** + * Hive Server linked service. + * + * @extends models['LinkedService'] + */ +class HiveLinkedService extends models['LinkedService'] { + /** + * Create a HiveLinkedService. + * @member {object} host IP address or host name of the Hive server, + * separated by ';' for multiple hosts (only when serviceDiscoveryMode is + * enable). + * @member {object} [port] The TCP port that the Hive server uses to listen + * for client connections. + * @member {string} [serverType] The type of Hive server. Possible values + * include: 'HiveServer1', 'HiveServer2', 'HiveThriftServer' + * @member {string} [thriftTransportProtocol] The transport protocol to use + * in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP ' + * @member {string} authenticationType The authentication method used to + * access the Hive server. Possible values include: 'Anonymous', 'Username', + * 'UsernameAndPassword', 'WindowsAzureHDInsightService' + * @member {object} [serviceDiscoveryMode] true to indicate using the + * ZooKeeper service, false not. + * @member {object} [zooKeeperNameSpace] The namespace on ZooKeeper under + * which Hive Server 2 nodes are added. + * @member {object} [useNativeQuery] Specifies whether the driver uses native + * HiveQL queries,or converts them into an equivalent form in HiveQL. + * @member {object} [username] The user name that you use to access Hive + * Server. + * @member {object} [password] The password corresponding to the user name + * that you provided in the Username field + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [httpPath] The partial URL corresponding to the Hive + * server. + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file + * containing trusted CA certificates for verifying the server when + * connecting over SSL. This property can only be set when using SSL on + * self-hosted IR. The default value is the cacerts.pem file installed with + * the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HiveLinkedService + * + * @returns {object} metadata of HiveLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Hive', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'HiveLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + serverType: { + required: false, + serializedName: 'typeProperties.serverType', + type: { + name: 'String' + } + }, + thriftTransportProtocol: { + required: false, + serializedName: 'typeProperties.thriftTransportProtocol', + type: { + name: 'String' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + serviceDiscoveryMode: { + required: false, + serializedName: 'typeProperties.serviceDiscoveryMode', + type: { + name: 'Object' + } + }, + zooKeeperNameSpace: { + required: false, + serializedName: 'typeProperties.zooKeeperNameSpace', + type: { + name: 'Object' + } + }, + useNativeQuery: { + required: false, + serializedName: 'typeProperties.useNativeQuery', + type: { + name: 'Object' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + httpPath: { + required: false, + serializedName: 'typeProperties.httpPath', + type: { + name: 'Object' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + trustedCertPath: { + required: false, + serializedName: 'typeProperties.trustedCertPath', + type: { + name: 'Object' + } + }, + useSystemTrustStore: { + required: false, + serializedName: 'typeProperties.useSystemTrustStore', + type: { + name: 'Object' + } + }, + allowHostNameCNMismatch: { + required: false, + serializedName: 'typeProperties.allowHostNameCNMismatch', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HiveLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hiveObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/hiveObjectDataset.js new file mode 100644 index 0000000000..b7f700ec20 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hiveObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Hive Server dataset. + * + * @extends models['Dataset'] + */ +class HiveObjectDataset extends models['Dataset'] { + /** + * Create a HiveObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HiveObjectDataset + * + * @returns {object} metadata of HiveObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'HiveObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'HiveObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = HiveObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hiveSource.js b/lib/services/datafactoryManagement/lib/lib/models/hiveSource.js new file mode 100644 index 0000000000..1230851273 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hiveSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Hive Server source. + * + * @extends models['CopySource'] + */ +class HiveSource extends models['CopySource'] { + /** + * Create a HiveSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HiveSource + * + * @returns {object} metadata of HiveSource + * + */ + mapper() { + return { + required: false, + serializedName: 'HiveSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'HiveSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HiveSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/httpDataset.js b/lib/services/datafactoryManagement/lib/lib/models/httpDataset.js new file mode 100644 index 0000000000..fb91b338f6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/httpDataset.js @@ -0,0 +1,211 @@ +/* + * 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'); + +/** + * A file in an HTTP web server. + * + * @extends models['Dataset'] + */ +class HttpDataset extends models['Dataset'] { + /** + * Create a HttpDataset. + * @member {object} [relativeUrl] The relative URL based on the URL in the + * HttpLinkedService refers to an HTTP file Type: string (or Expression with + * resultType string). + * @member {object} [requestMethod] The HTTP method for the HTTP request. + * Type: string (or Expression with resultType string). + * @member {object} [requestBody] The body for the HTTP request. Type: string + * (or Expression with resultType string). + * @member {object} [additionalHeaders] The headers for the HTTP Request. + * e.g. request-header-name-1:request-header-value-1 + * ... + * request-header-name-n:request-header-value-n Type: string (or Expression + * with resultType string). + * @member {object} [format] The format of files. + * @member {object} [format.serializer] Serializer. Type: string (or + * Expression with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used on files. + * @member {string} [compression.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HttpDataset + * + * @returns {object} metadata of HttpDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'HttpFile', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'HttpDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + relativeUrl: { + required: false, + serializedName: 'typeProperties.relativeUrl', + type: { + name: 'Object' + } + }, + requestMethod: { + required: false, + serializedName: 'typeProperties.requestMethod', + type: { + name: 'Object' + } + }, + requestBody: { + required: false, + serializedName: 'typeProperties.requestBody', + type: { + name: 'Object' + } + }, + additionalHeaders: { + required: false, + serializedName: 'typeProperties.additionalHeaders', + type: { + name: 'Object' + } + }, + format: { + required: false, + serializedName: 'typeProperties.format', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'DatasetStorageFormat' + } + }, + compression: { + required: false, + serializedName: 'typeProperties.compression', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetCompression', + className: 'DatasetCompression' + } + } + } + } + }; + } +} + +module.exports = HttpDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/httpLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/httpLinkedService.js new file mode 100644 index 0000000000..365356d504 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/httpLinkedService.js @@ -0,0 +1,194 @@ +/* + * 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'); + +/** + * Linked service for an HTTP source. + * + * @extends models['LinkedService'] + */ +class HttpLinkedService extends models['LinkedService'] { + /** + * Create a HttpLinkedService. + * @member {object} url The base URL of the HTTP endpoint, e.g. + * http://www.microsoft.com. Type: string (or Expression with resultType + * string). + * @member {string} [authenticationType] The authentication type to be used + * to connect to the HTTP server. Possible values include: 'Basic', + * 'Anonymous', 'Digest', 'Windows', 'ClientCertificate' + * @member {object} [userName] User name for Basic, Digest, or Windows + * authentication. Type: string (or Expression with resultType string). + * @member {object} [password] Password for Basic, Digest, Windows, or + * ClientCertificate with EmbeddedCertData authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [embeddedCertData] Base64 encoded certificate data for + * ClientCertificate authentication. For on-premises copy with + * ClientCertificate authentication, either CertThumbprint or + * EmbeddedCertData/Password should be specified. Type: string (or Expression + * with resultType string). + * @member {object} [certThumbprint] Thumbprint of certificate for + * ClientCertificate authentication. Only valid for on-premises copy. For + * on-premises copy with ClientCertificate authentication, either + * CertThumbprint or EmbeddedCertData/Password should be specified. Type: + * string (or Expression with resultType string). + * @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). + * @member {object} [enableServerCertificateValidation] If true, validate the + * HTTPS server SSL certificate. Default value is true. Type: boolean (or + * Expression with resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HttpLinkedService + * + * @returns {object} metadata of HttpLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'HttpServer', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'HttpLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + embeddedCertData: { + required: false, + serializedName: 'typeProperties.embeddedCertData', + type: { + name: 'Object' + } + }, + certThumbprint: { + required: false, + serializedName: 'typeProperties.certThumbprint', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + }, + enableServerCertificateValidation: { + required: false, + serializedName: 'typeProperties.enableServerCertificateValidation', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HttpLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/httpSource.js b/lib/services/datafactoryManagement/lib/lib/models/httpSource.js new file mode 100644 index 0000000000..f4115a04a0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/httpSource.js @@ -0,0 +1,87 @@ +/* + * 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'); + +/** + * A copy activity source for an HTTP file. + * + * @extends models['CopySource'] + */ +class HttpSource extends models['CopySource'] { + /** + * Create a HttpSource. + * @member {object} [httpRequestTimeout] Specifies the timeout for a HTTP + * client to get HTTP response from HTTP server. The default value is + * equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HttpSource + * + * @returns {object} metadata of HttpSource + * + */ + mapper() { + return { + required: false, + serializedName: 'HttpSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'HttpSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + httpRequestTimeout: { + required: false, + serializedName: 'httpRequestTimeout', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HttpSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hubspotLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/hubspotLinkedService.js new file mode 100644 index 0000000000..6235140c1a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hubspotLinkedService.js @@ -0,0 +1,201 @@ +/* + * 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'); + +/** + * Hubspot Serivce linked service. + * + * @extends models['LinkedService'] + */ +class HubspotLinkedService extends models['LinkedService'] { + /** + * Create a HubspotLinkedService. + * @member {object} clientId The client ID associated with your Hubspot + * application. + * @member {object} [clientSecret] The client secret associated with your + * Hubspot application. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [accessToken] The access token obtained when initially + * authenticating your OAuth integration. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [refreshToken] The refresh token obtained when initially + * authenticating your OAuth integration. + * @member {string} [refreshToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HubspotLinkedService + * + * @returns {object} metadata of HubspotLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Hubspot', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'HubspotLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + accessToken: { + required: false, + serializedName: 'typeProperties.accessToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + refreshToken: { + required: false, + serializedName: 'typeProperties.refreshToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HubspotLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hubspotObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/hubspotObjectDataset.js new file mode 100644 index 0000000000..d62b858309 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hubspotObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Hubspot Serivce dataset. + * + * @extends models['Dataset'] + */ +class HubspotObjectDataset extends models['Dataset'] { + /** + * Create a HubspotObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HubspotObjectDataset + * + * @returns {object} metadata of HubspotObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'HubspotObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'HubspotObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = HubspotObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/hubspotSource.js b/lib/services/datafactoryManagement/lib/lib/models/hubspotSource.js new file mode 100644 index 0000000000..0a407bc7a5 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/hubspotSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Hubspot Serivce source. + * + * @extends models['CopySource'] + */ +class HubspotSource extends models['CopySource'] { + /** + * Create a HubspotSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of HubspotSource + * + * @returns {object} metadata of HubspotSource + * + */ + mapper() { + return { + required: false, + serializedName: 'HubspotSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'HubspotSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = HubspotSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/ifConditionActivity.js b/lib/services/datafactoryManagement/lib/lib/models/ifConditionActivity.js new file mode 100644 index 0000000000..87e1efc469 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/ifConditionActivity.js @@ -0,0 +1,187 @@ +/* + * 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'); + +/** + * This activity evaluates a boolean expression and executes either the + * activities under the ifTrueActivities property or the ifFalseActivities + * property depending on the result of the expression. + * + * @extends models['ControlActivity'] + */ +class IfConditionActivity extends models['ControlActivity'] { + /** + * Create a IfConditionActivity. + * @member {object} expression An expression that would evaluate to Boolean. + * This is used to determine the block of activities (ifTrueActivities or + * ifFalseActivities) that will be executed. + * @member {string} [expression.value] Expression value. + * @member {array} [ifTrueActivities] List of activities to execute if + * expression is evaluated to true. This is an optional property and if not + * provided, the activity will exit without any action. + * @member {array} [ifFalseActivities] List of activities to execute if + * expression is evaluated to false. This is an optional property and if not + * provided, the activity will exit without any action. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of IfConditionActivity + * + * @returns {object} metadata of IfConditionActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'IfCondition', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'IfConditionActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + expression: { + required: true, + serializedName: 'typeProperties.expression', + defaultValue: {}, + type: { + name: 'Composite', + className: 'Expression' + } + }, + ifTrueActivities: { + required: false, + serializedName: 'typeProperties.ifTrueActivities', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'Activity' + } + } + } + }, + ifFalseActivities: { + required: false, + serializedName: 'typeProperties.ifFalseActivities', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'Activity' + } + } + } + } + } + } + }; + } +} + +module.exports = IfConditionActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/impalaLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/impalaLinkedService.js new file mode 100644 index 0000000000..19b8518673 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/impalaLinkedService.js @@ -0,0 +1,218 @@ +/* + * 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'); + +/** + * Impala server linked service. + * + * @extends models['LinkedService'] + */ +class ImpalaLinkedService extends models['LinkedService'] { + /** + * Create a ImpalaLinkedService. + * @member {object} host The IP address or host name of the Impala server. + * (i.e. 192.168.222.160) + * @member {object} [port] The TCP port that the Impala server uses to listen + * for client connections. The default value is 21050. + * @member {string} authenticationType The authentication type to use. + * Possible values include: 'Anonymous', 'SASLUsername', + * 'UsernameAndPassword' + * @member {object} [username] The user name used to access the Impala + * server. The default value is anonymous when using SASLUsername. + * @member {object} [password] The password corresponding to the user name + * when using UsernameAndPassword. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file + * containing trusted CA certificates for verifying the server when + * connecting over SSL. This property can only be set when using SSL on + * self-hosted IR. The default value is the cacerts.pem file installed with + * the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ImpalaLinkedService + * + * @returns {object} metadata of ImpalaLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Impala', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'ImpalaLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + trustedCertPath: { + required: false, + serializedName: 'typeProperties.trustedCertPath', + type: { + name: 'Object' + } + }, + useSystemTrustStore: { + required: false, + serializedName: 'typeProperties.useSystemTrustStore', + type: { + name: 'Object' + } + }, + allowHostNameCNMismatch: { + required: false, + serializedName: 'typeProperties.allowHostNameCNMismatch', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ImpalaLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/impalaObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/impalaObjectDataset.js new file mode 100644 index 0000000000..ce3d09b696 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/impalaObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Impala server dataset. + * + * @extends models['Dataset'] + */ +class ImpalaObjectDataset extends models['Dataset'] { + /** + * Create a ImpalaObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ImpalaObjectDataset + * + * @returns {object} metadata of ImpalaObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'ImpalaObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'ImpalaObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = ImpalaObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/impalaSource.js b/lib/services/datafactoryManagement/lib/lib/models/impalaSource.js new file mode 100644 index 0000000000..727e4f8480 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/impalaSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Impala server source. + * + * @extends models['CopySource'] + */ +class ImpalaSource extends models['CopySource'] { + /** + * Create a ImpalaSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ImpalaSource + * + * @returns {object} metadata of ImpalaSource + * + */ + mapper() { + return { + required: false, + serializedName: 'ImpalaSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'ImpalaSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ImpalaSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/lib/models/index.d.ts new file mode 100644 index 0000000000..a429b504ef --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/index.d.ts @@ -0,0 +1,7113 @@ +/* + * 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. + */ + +import { BaseResource } from 'ms-rest-azure'; +import { CloudError } from 'ms-rest-azure'; +import * as moment from 'moment'; + +export { BaseResource } from 'ms-rest-azure'; +export { CloudError } from 'ms-rest-azure'; + + +/** + * @class + * Initializes a new instance of the Resource class. + * @constructor + * Azure Data Factory top-level resource. + * + * @member {string} [id] The resource identifier. + * @member {string} [name] The resource name. + * @member {string} [type] The resource type. + * @member {string} [location] The resource location. + * @member {object} [tags] The resource tags. + */ +export interface Resource extends BaseResource { + readonly id?: string; + readonly name?: string; + readonly type?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the SubResource class. + * @constructor + * Azure Data Factory nested resource, which belongs to a factory. + * + * @member {string} [id] The resource identifier. + * @member {string} [name] The resource name. + * @member {string} [type] The resource type. + * @member {string} [etag] Etag identifies change in the resource. + */ +export interface SubResource extends BaseResource { + readonly id?: string; + readonly name?: string; + readonly type?: string; + readonly etag?: string; +} + +/** + * @class + * Initializes a new instance of the Expression class. + * @constructor + * Azure Data Factory expression definition. + * + * @member {string} value Expression value. + */ +export interface Expression { + value: string; +} + +/** + * @class + * Initializes a new instance of the SecretBase class. + * @constructor + * The base definition of a secret type. + * + * @member {string} type Polymorphic Discriminator + */ +export interface SecretBase { + type: string; +} + +/** + * @class + * Initializes a new instance of the SecureString class. + * @constructor + * Azure Data Factory secure string definition. The string value will be masked + * with asterisks '*' during Get or List API calls. + * + * @member {string} value Value of secure string. + */ +export interface SecureString extends SecretBase { + value: string; +} + +/** + * @class + * Initializes a new instance of the LinkedServiceReference class. + * @constructor + * Linked service reference type. + * + * @member {string} referenceName Reference LinkedService name. + * @member {object} [parameters] Arguments for LinkedService. + */ +export interface LinkedServiceReference { + referenceName: string; + parameters?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the AzureKeyVaultSecretReference class. + * @constructor + * Azure Key Vault secret reference. + * + * @member {object} store The Azure Key Vault linked service reference. + * @member {string} [store.referenceName] Reference LinkedService name. + * @member {object} [store.parameters] Arguments for LinkedService. + * @member {object} secretName The name of the secret in Azure Key Vault. Type: + * string (or Expression with resultType string). + * @member {object} [secretVersion] The version of the secret in Azure Key + * Vault. The default value is the latest version of the secret. Type: string + * (or Expression with resultType string). + */ +export interface AzureKeyVaultSecretReference extends SecretBase { + store: LinkedServiceReference; + secretName: any; + secretVersion?: any; +} + +/** + * @class + * Initializes a new instance of the FactoryIdentity class. + * @constructor + * Identity properties of the factory resource. + * + * @member {uuid} [principalId] The principal id of the identity. + * @member {uuid} [tenantId] The client tenant id of the identity. + */ +export interface FactoryIdentity { + readonly principalId?: string; + readonly tenantId?: string; +} + +/** + * @class + * Initializes a new instance of the Factory class. + * @constructor + * Factory resource type. + * + * @member {object} [identity] Managed service identity of the factory. + * @member {uuid} [identity.principalId] The principal id of the identity. + * @member {uuid} [identity.tenantId] The client tenant id of the identity. + * @member {string} [provisioningState] Factory provisioning state, example + * Succeeded. + * @member {date} [createTime] Time the factory was created in ISO8601 format. + * @member {string} [version] Version of the factory. + */ +export interface Factory extends Resource { + identity?: FactoryIdentity; + readonly provisioningState?: string; + readonly createTime?: Date; + readonly version?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntime class. + * @constructor + * Azure Data Factory nested object which serves as a compute resource for + * activities. + * + * @member {string} [description] Integration runtime description. + * @member {string} type Polymorphic Discriminator + */ +export interface IntegrationRuntime { + description?: string; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeResource class. + * @constructor + * Integration runtime resource type. + * + * @member {object} properties Integration runtime properties. + * @member {string} [properties.description] Integration runtime description. + * @member {string} [properties.type] Polymorphic Discriminator + */ +export interface IntegrationRuntimeResource extends SubResource { + properties: IntegrationRuntime; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeReference class. + * @constructor + * Integration runtime reference type. + * + * @member {string} referenceName Reference integration runtime name. + * @member {object} [parameters] Arguments for integration runtime. + */ +export interface IntegrationRuntimeReference { + referenceName: string; + parameters?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeStatus class. + * @constructor + * Integration runtime status. + * + * @member {string} [dataFactoryName] The data factory name which the + * integration runtime belong to. + * @member {string} [state] The state of integration runtime. Possible values + * include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', + * 'NeedRegistration', 'Online', 'Limited', 'Offline' + * @member {string} type Polymorphic Discriminator + */ +export interface IntegrationRuntimeStatus { + readonly dataFactoryName?: string; + readonly state?: string; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeStatusResponse class. + * @constructor + * Integration runtime status response. + * + * @member {string} [name] The integration runtime name. + * @member {object} properties Integration runtime properties. + * @member {string} [properties.dataFactoryName] The data factory name which + * the integration runtime belong to. + * @member {string} [properties.state] The state of integration runtime. + * Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', + * 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' + * @member {string} [properties.type] Polymorphic Discriminator + */ +export interface IntegrationRuntimeStatusResponse { + readonly name?: string; + properties: IntegrationRuntimeStatus; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeStatusListResponse class. + * @constructor + * A list of integration runtime status. + * + * @member {array} value List of integration runtime status. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface IntegrationRuntimeStatusListResponse { + value: IntegrationRuntimeStatusResponse[]; + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the UpdateIntegrationRuntimeRequest class. + * @constructor + * Update integration runtime request. + * + * @member {string} [autoUpdate] Enables or disables the auto-update feature of + * the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * @member {string} [updateDelayOffset] The time offset (in hours) in the day, + * e.g., PT03H is 3 hours. The integration runtime auto update will happen on + * that time. + */ +export interface UpdateIntegrationRuntimeRequest { + autoUpdate?: string; + updateDelayOffset?: string; +} + +/** + * @class + * Initializes a new instance of the UpdateIntegrationRuntimeNodeRequest class. + * @constructor + * Update integration runtime node request. + * + * @member {number} [concurrentJobsLimit] The number of concurrent jobs + * permitted to run on the integration runtime node. Values between 1 and + * maxConcurrentJobs(inclusive) are allowed. + */ +export interface UpdateIntegrationRuntimeNodeRequest { + concurrentJobsLimit?: number; +} + +/** + * @class + * Initializes a new instance of the ParameterSpecification class. + * @constructor + * Definition of a single parameter for an entity. + * + * @member {string} type Parameter type. Possible values include: 'Object', + * 'String', 'Int', 'Float', 'Bool', 'Array', 'SecureString' + * @member {object} [defaultValue] Default value of parameter. + */ +export interface ParameterSpecification { + type: string; + defaultValue?: any; +} + +/** + * @class + * Initializes a new instance of the LinkedService class. + * @constructor + * The Azure Data Factory nested object which contains the information and + * credential which can be used to connect with related store or compute + * resource. + * + * @member {object} [connectVia] The integration runtime reference. + * @member {string} [connectVia.referenceName] Reference integration runtime + * name. + * @member {object} [connectVia.parameters] Arguments for integration runtime. + * @member {string} [description] Linked service description. + * @member {object} [parameters] Parameters for linked service. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. + * @member {string} type Polymorphic Discriminator + */ +export interface LinkedService { + connectVia?: IntegrationRuntimeReference; + description?: string; + parameters?: { [propertyName: string]: ParameterSpecification }; + annotations?: any[]; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the LinkedServiceResource class. + * @constructor + * Linked service resource type. + * + * @member {object} properties Properties of linked service. + * @member {object} [properties.connectVia] The integration runtime reference. + * @member {string} [properties.connectVia.referenceName] Reference integration + * runtime name. + * @member {object} [properties.connectVia.parameters] Arguments for + * integration runtime. + * @member {string} [properties.description] Linked service description. + * @member {object} [properties.parameters] Parameters for linked service. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. + * @member {string} [properties.type] Polymorphic Discriminator + */ +export interface LinkedServiceResource extends SubResource { + properties: LinkedService; +} + +/** + * @class + * Initializes a new instance of the Dataset class. + * @constructor + * The Azure Data Factory nested object which identifies data within different + * data stores, such as tables, files, folders, and documents. + * + * @member {string} [description] Dataset description. + * @member {object} [structure] Columns that define the structure of the + * dataset. Type: array (or Expression with resultType array), itemType: + * DatasetDataElement. + * @member {object} linkedServiceName Linked service reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. + * @member {object} [parameters] Parameters for dataset. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. + * @member {string} type Polymorphic Discriminator + */ +export interface Dataset { + description?: string; + structure?: any; + linkedServiceName: LinkedServiceReference; + parameters?: { [propertyName: string]: ParameterSpecification }; + annotations?: any[]; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the DatasetResource class. + * @constructor + * Dataset resource type. + * + * @member {object} properties Dataset properties. + * @member {string} [properties.description] Dataset description. + * @member {object} [properties.structure] Columns that define the structure of + * the dataset. Type: array (or Expression with resultType array), itemType: + * DatasetDataElement. + * @member {object} [properties.linkedServiceName] Linked service reference. + * @member {string} [properties.linkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [properties.linkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [properties.parameters] Parameters for dataset. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. + * @member {string} [properties.type] Polymorphic Discriminator + */ +export interface DatasetResource extends SubResource { + properties: Dataset; +} + +/** + * @class + * Initializes a new instance of the ActivityDependency class. + * @constructor + * Activity dependency information. + * + * @member {string} activity Activity name. + * @member {array} dependencyConditions Match-Condition for the dependency. + */ +export interface ActivityDependency { + activity: string; + dependencyConditions: string[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the Activity class. + * @constructor + * A pipeline activity. + * + * @member {string} name Activity name. + * @member {string} [description] Activity description. + * @member {array} [dependsOn] Activity depends on condition. + * @member {string} type Polymorphic Discriminator + */ +export interface Activity { + name: string; + description?: string; + dependsOn?: ActivityDependency[]; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the PipelineResource class. + * @constructor + * Pipeline resource type. + * + * @member {string} [description] The description of the pipeline. + * @member {array} [activities] List of activities in pipeline. + * @member {object} [parameters] List of parameters for pipeline. + * @member {number} [concurrency] The max number of concurrent runs for the + * pipeline. + * @member {array} [annotations] List of tags that can be used for describing + * the Pipeline. + */ +export interface PipelineResource extends SubResource { + description?: string; + activities?: Activity[]; + parameters?: { [propertyName: string]: ParameterSpecification }; + concurrency?: number; + annotations?: any[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the Trigger class. + * @constructor + * Azure data factory nested object which contains information about creating + * pipeline run + * + * @member {string} [description] Trigger description. + * @member {string} [runtimeState] Indicates if trigger is running or not. + * Updated when Start/Stop APIs are called on the Trigger. Possible values + * include: 'Started', 'Stopped', 'Disabled' + * @member {string} type Polymorphic Discriminator + */ +export interface Trigger { + description?: string; + readonly runtimeState?: string; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the TriggerResource class. + * @constructor + * Trigger resource type. + * + * @member {object} properties Properties of the trigger. + * @member {string} [properties.description] Trigger description. + * @member {string} [properties.runtimeState] Indicates if trigger is running + * or not. Updated when Start/Stop APIs are called on the Trigger. Possible + * values include: 'Started', 'Stopped', 'Disabled' + * @member {string} [properties.type] Polymorphic Discriminator + */ +export interface TriggerResource extends SubResource { + properties: Trigger; +} + +/** + * @class + * Initializes a new instance of the CreateRunResponse class. + * @constructor + * Response body with a run identifier. + * + * @member {string} runId Identifier of a run. + */ +export interface CreateRunResponse { + runId: string; +} + +/** + * @class + * Initializes a new instance of the ErrorResponse class. + * @constructor + * The object that defines the structure of an Azure Data Factory response. + * + * @member {string} code Error code. + * @member {string} message Error message. + * @member {string} [target] Property name/path in request associated with + * error. + * @member {array} [details] Array with additional error details. + */ +export interface ErrorResponse { + code: string; + message: string; + target?: string; + details?: ErrorResponse[]; +} + +/** + * @class + * Initializes a new instance of the PipelineReference class. + * @constructor + * Pipeline reference type. + * + * @member {string} referenceName Reference pipeline name. + * @member {string} [name] Reference name. + */ +export interface PipelineReference { + referenceName: string; + name?: string; +} + +/** + * @class + * Initializes a new instance of the TriggerPipelineReference class. + * @constructor + * Pipeline that needs to be triggered with the given parameters. + * + * @member {object} [pipelineReference] Pipeline reference. + * @member {string} [pipelineReference.referenceName] Reference pipeline name. + * @member {string} [pipelineReference.name] Reference name. + * @member {object} [parameters] Pipeline parameters. + */ +export interface TriggerPipelineReference { + pipelineReference?: PipelineReference; + parameters?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the FactoryUpdateParameters class. + * @constructor + * Parameters for updating a factory resource. + * + * @member {object} [tags] The resource tags. + * @member {object} [identity] Managed service identity of the factory. + * @member {uuid} [identity.principalId] The principal id of the identity. + * @member {uuid} [identity.tenantId] The client tenant id of the identity. + */ +export interface FactoryUpdateParameters { + tags?: { [propertyName: string]: string }; + identity?: FactoryIdentity; +} + +/** + * @class + * Initializes a new instance of the DatasetReference class. + * @constructor + * Dataset reference type. + * + * @member {string} referenceName Reference dataset name. + * @member {object} [parameters] Arguments for dataset. + */ +export interface DatasetReference { + referenceName: string; + parameters?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the PipelineRunQueryFilter class. + * @constructor + * Query filter option for listing pipeline runs. + * + * @member {string} operand Parameter name to be used for filter. Possible + * values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd' + * @member {string} operator Operator to be used for filter. Possible values + * include: 'Equals', 'NotEquals', 'In', 'NotIn' + * @member {array} values List of filter values. + */ +export interface PipelineRunQueryFilter { + operand: string; + operator: string; + values: string[]; +} + +/** + * @class + * Initializes a new instance of the PipelineRunQueryOrderBy class. + * @constructor + * An object to provide order by options for listing pipeline runs. + * + * @member {string} orderBy Parameter name to be used for order by. Possible + * values include: 'RunStart', 'RunEnd' + * @member {string} order Sorting order of the parameter. Possible values + * include: 'ASC', 'DESC' + */ +export interface PipelineRunQueryOrderBy { + orderBy: string; + order: string; +} + +/** + * @class + * Initializes a new instance of the PipelineRunFilterParameters class. + * @constructor + * Query parameters for listing pipeline runs. + * + * @member {string} [continuationToken] The continuation token for getting the + * next page of results. Null for first page. + * @member {date} lastUpdatedAfter The time at or after which the pipeline run + * event was updated in 'ISO 8601' format. + * @member {date} lastUpdatedBefore The time at or before which the pipeline + * run event was updated in 'ISO 8601' format. + * @member {array} [filters] List of filters. + * @member {array} [orderBy] List of OrderBy option. + */ +export interface PipelineRunFilterParameters { + continuationToken?: string; + lastUpdatedAfter: Date; + lastUpdatedBefore: Date; + filters?: PipelineRunQueryFilter[]; + orderBy?: PipelineRunQueryOrderBy[]; +} + +/** + * @class + * Initializes a new instance of the PipelineRunInvokedBy class. + * @constructor + * Provides entity name and id that started the pipeline run. + * + * @member {string} [name] Name of the entity that started the pipeline run. + * @member {string} [id] The ID of the entity that started the run. + */ +export interface PipelineRunInvokedBy { + readonly name?: string; + readonly id?: string; +} + +/** + * @class + * Initializes a new instance of the PipelineRun class. + * @constructor + * Information about a pipeline run. + * + * @member {string} [runId] Identifier of a run. + * @member {string} [pipelineName] The pipeline name. + * @member {object} [parameters] The full or partial list of parameter name, + * value pair used in the pipeline run. + * @member {object} [invokedBy] Entity that started the pipeline run. + * @member {string} [invokedBy.name] Name of the entity that started the + * pipeline run. + * @member {string} [invokedBy.id] The ID of the entity that started the run. + * @member {date} [lastUpdated] The last updated timestamp for the pipeline run + * event in ISO8601 format. + * @member {date} [runStart] The start time of a pipeline run in ISO8601 + * format. + * @member {date} [runEnd] The end time of a pipeline run in ISO8601 format. + * @member {number} [durationInMs] The duration of a pipeline run. + * @member {string} [status] The status of a pipeline run. + * @member {string} [message] The message from a pipeline run. + */ +export interface PipelineRun { + readonly runId?: string; + readonly pipelineName?: string; + readonly parameters?: { [propertyName: string]: string }; + readonly invokedBy?: PipelineRunInvokedBy; + readonly lastUpdated?: Date; + readonly runStart?: Date; + readonly runEnd?: Date; + readonly durationInMs?: number; + readonly status?: string; + readonly message?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the PipelineRunQueryResponse class. + * @constructor + * A list pipeline runs. + * + * @member {array} value List of pipeline runs. + * @member {string} [continuationToken] The continuation token for getting the + * next page of results, if any remaining results exist, null otherwise. + */ +export interface PipelineRunQueryResponse { + value: PipelineRun[]; + continuationToken?: string; +} + +/** + * @class + * Initializes a new instance of the ActivityRun class. + * @constructor + * Information about an activity run in a pipeline. + * + * @member {string} [pipelineName] The name of the pipeline. + * @member {string} [pipelineRunId] The id of the pipeline run. + * @member {string} [activityName] The name of the activity. + * @member {string} [activityType] The type of the activity. + * @member {string} [activityRunId] The id of the activity run. + * @member {string} [linkedServiceName] The name of the compute linked service. + * @member {string} [status] The status of the activity run. + * @member {date} [activityRunStart] The start time of the activity run in 'ISO + * 8601' format. + * @member {date} [activityRunEnd] The end time of the activity run in 'ISO + * 8601' format. + * @member {number} [durationInMs] The duration of the activity run. + * @member {object} [input] The input for the activity. + * @member {object} [output] The output for the activity. + * @member {object} [error] The error if any from the activity run. + */ +export interface ActivityRun { + readonly pipelineName?: string; + readonly pipelineRunId?: string; + readonly activityName?: string; + readonly activityType?: string; + readonly activityRunId?: string; + readonly linkedServiceName?: string; + readonly status?: string; + readonly activityRunStart?: Date; + readonly activityRunEnd?: Date; + readonly durationInMs?: number; + readonly input?: any; + readonly output?: any; + readonly error?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the TriggerRun class. + * @constructor + * Trigger runs. + * + * @member {string} [triggerRunId] Trigger run id. + * @member {string} [triggerName] Trigger name. + * @member {string} [triggerType] Trigger type. + * @member {date} [triggerRunTimestamp] Trigger run start time. + * @member {string} [status] Trigger run status. Possible values include: + * 'Succeeded', 'Failed', 'Inprogress' + * @member {string} [message] Trigger error message. + * @member {object} [properties] List of property name and value related to + * trigger run. Name, value pair depends on type of trigger. + * @member {object} [triggeredPipelines] List of pipeline name and run Id + * triggered by the trigger run. + */ +export interface TriggerRun { + readonly triggerRunId?: string; + readonly triggerName?: string; + readonly triggerType?: string; + readonly triggerRunTimestamp?: Date; + readonly status?: string; + readonly message?: string; + readonly properties?: { [propertyName: string]: string }; + readonly triggeredPipelines?: { [propertyName: string]: string }; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the OperationDisplay class. + * @constructor + * Metadata associated with the operation. + * + * @member {string} [description] The description of the operation. + * @member {string} [provider] The name of the provider. + * @member {string} [resource] The name of the resource type on which the + * operation is performed. + * @member {string} [operation] The type of operation: get, read, delete, etc. + */ +export interface OperationDisplay { + description?: string; + provider?: string; + resource?: string; + operation?: string; +} + +/** + * @class + * Initializes a new instance of the OperationLogSpecification class. + * @constructor + * Details about an operation related to logs. + * + * @member {string} [name] The name of the log category. + * @member {string} [displayName] Localized display name. + * @member {string} [blobDuration] Blobs created in the customer storage + * account, per hour. + */ +export interface OperationLogSpecification { + name?: string; + displayName?: string; + blobDuration?: string; +} + +/** + * @class + * Initializes a new instance of the OperationMetricAvailability class. + * @constructor + * Defines how often data for a metric becomes available. + * + * @member {string} [timeGrain] The granularity for the metric. + * @member {string} [blobDuration] Blob created in the customer storage + * account, per hour. + */ +export interface OperationMetricAvailability { + timeGrain?: string; + blobDuration?: string; +} + +/** + * @class + * Initializes a new instance of the OperationMetricSpecification class. + * @constructor + * Details about an operation related to metrics. + * + * @member {string} [name] The name of the metric. + * @member {string} [displayName] Localized display name of the metric. + * @member {string} [displayDescription] The description of the metric. + * @member {string} [unit] The unit that the metric is measured in. + * @member {string} [aggregationType] The type of metric aggregation. + * @member {string} [enableRegionalMdmAccount] Whether or not the service is + * using regional MDM accounts. + * @member {string} [sourceMdmAccount] The name of the MDM account. + * @member {string} [sourceMdmNamespace] The name of the MDM namespace. + * @member {array} [availabilities] Defines how often data for metrics becomes + * available. + */ +export interface OperationMetricSpecification { + name?: string; + displayName?: string; + displayDescription?: string; + unit?: string; + aggregationType?: string; + enableRegionalMdmAccount?: string; + sourceMdmAccount?: string; + sourceMdmNamespace?: string; + availabilities?: OperationMetricAvailability[]; +} + +/** + * @class + * Initializes a new instance of the OperationServiceSpecification class. + * @constructor + * Details about a service operation. + * + * @member {array} [logSpecifications] Details about operations related to + * logs. + * @member {array} [metricSpecifications] Details about operations related to + * metrics. + */ +export interface OperationServiceSpecification { + logSpecifications?: OperationLogSpecification[]; + metricSpecifications?: OperationMetricSpecification[]; +} + +/** + * @class + * Initializes a new instance of the Operation class. + * @constructor + * Azure Data Factory API operation definition. + * + * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * @member {string} [origin] The intended executor of the operation. + * @member {object} [display] Metadata associated with the operation. + * @member {string} [display.description] The description of the operation. + * @member {string} [display.provider] The name of the provider. + * @member {string} [display.resource] The name of the resource type on which + * the operation is performed. + * @member {string} [display.operation] The type of operation: get, read, + * delete, etc. + * @member {object} [serviceSpecification] Details about a service operation. + * @member {array} [serviceSpecification.logSpecifications] Details about + * operations related to logs. + * @member {array} [serviceSpecification.metricSpecifications] Details about + * operations related to metrics. + */ +export interface Operation { + name?: string; + origin?: string; + display?: OperationDisplay; + serviceSpecification?: OperationServiceSpecification; +} + +/** + * @class + * Initializes a new instance of the OperationListResponse class. + * @constructor + * A list of operations that can be performed by the Data Factory service. + * + * @member {array} [value] List of Data Factory operations supported by the + * Data Factory resource provider. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface OperationListResponse { + value?: Operation[]; + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the AzureDatabricksLinkedService class. + * @constructor + * Azure Databricks linked service. + * + * @member {object} domain .azuredatabricks.net, domain name of your + * Databricks deployment. Type: string (or Expression with resultType string). + * @member {object} accessToken Access token for databricks REST API. Refer to + * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: + * string (or Expression with resultType string). + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [existingClusterId] The id of an existing cluster that will + * be used for all runs of this job. Type: string (or Expression with + * resultType string). + * @member {object} [newClusterVersion] The Spark version of new cluster. Type: + * string (or Expression with resultType string). + * @member {object} [newClusterNumOfWorker] Number of worker nodes that new + * cluster should have. A string formatted Int32, like '1' means numOfWorker is + * 1 or '1:10' means auto-scale from 1 as min and 10 as max. Type: string (or + * Expression with resultType string). + * @member {object} [newClusterNodeType] The node types of new cluster. Type: + * string (or Expression with resultType string). + * @member {object} [newClusterSparkConf] a set of optional, user-specified + * Spark configuration key-value pairs. + * @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). + */ +export interface AzureDatabricksLinkedService extends LinkedService { + domain: any; + accessToken: SecretBase; + existingClusterId?: any; + newClusterVersion?: any; + newClusterNumOfWorker?: any; + newClusterNodeType?: any; + newClusterSparkConf?: { [propertyName: string]: any }; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureDataLakeAnalyticsLinkedService class. + * @constructor + * Azure Data Lake Analytics linked service. + * + * @member {object} accountName The Azure Data Lake Analytics account name. + * Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalId] The ID of the application used to + * authenticate against the Azure Data Lake Analytics account. Type: string (or + * Expression with resultType string). + * @member {object} [servicePrincipalKey] The Key of the application used to + * authenticate against the Azure Data Lake Analytics account. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} tenant The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). + * @member {object} [subscriptionId] Data Lake Analytics account subscription + * ID (if different from Data Factory account). Type: string (or Expression + * with resultType string). + * @member {object} [resourceGroupName] Data Lake Analytics account resource + * group name (if different from Data Factory account). Type: string (or + * Expression with resultType string). + * @member {object} [dataLakeAnalyticsUri] Azure Data Lake Analytics URI Type: + * string (or Expression with resultType string). + * @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). + */ +export interface AzureDataLakeAnalyticsLinkedService extends LinkedService { + accountName: any; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant: any; + subscriptionId?: any; + resourceGroupName?: any; + dataLakeAnalyticsUri?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the HDInsightOnDemandLinkedService class. + * @constructor + * HDInsight ondemand linked service. + * + * @member {object} clusterSize Number of worker/data nodes in the cluster. + * Suggestion value: 4. Type: string (or Expression with resultType string). + * @member {object} timeToLive The allowed idle time for the on-demand + * HDInsight cluster. Specifies how long the on-demand HDInsight cluster stays + * alive after completion of an activity run if there are no other active jobs + * in the cluster. The minimum value is 5 mins. Type: string (or Expression + * with resultType string). + * @member {object} version Version of the HDInsight cluster.  Type: string (or + * Expression with resultType string). + * @member {object} linkedServiceName Azure Storage linked service to be used + * by the on-demand cluster for storing and processing data. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. + * @member {object} hostSubscriptionId The customer’s subscription to host the + * cluster. Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalId] The service principal id for the + * hostSubscriptionId. Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalKey] The key for the service principal id. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} tenant The Tenant id/name to which the service principal + * belongs. Type: string (or Expression with resultType string). + * @member {object} clusterResourceGroup The resource group where the cluster + * belongs. Type: string (or Expression with resultType string). + * @member {object} [clusterNamePrefix] The prefix of cluster name, postfix + * will be distinct with timestamp. Type: string (or Expression with resultType + * string). + * @member {object} [clusterUserName] The username to access the cluster. Type: + * string (or Expression with resultType string). + * @member {object} [clusterPassword] The password to access the cluster. + * @member {string} [clusterPassword.type] Polymorphic Discriminator + * @member {object} [clusterSshUserName] The username to SSH remotely connect + * to cluster’s node (for Linux). Type: string (or Expression with resultType + * string). + * @member {object} [clusterSshPassword] The password to SSH remotely connect + * cluster’s node (for Linux). + * @member {string} [clusterSshPassword.type] Polymorphic Discriminator + * @member {array} [additionalLinkedServiceNames] Specifies additional storage + * accounts for the HDInsight linked service so that the Data Factory service + * can register them on your behalf. + * @member {object} [hcatalogLinkedServiceName] The name of Azure SQL linked + * service that point to the HCatalog database. The on-demand HDInsight cluster + * is created by using the Azure SQL database as the metastore. + * @member {string} [hcatalogLinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [clusterType] The cluster type. Type: string (or Expression + * with resultType string). + * @member {object} [sparkVersion] The version of spark if the cluster type is + * 'spark'. Type: string (or Expression with resultType string). + * @member {object} [coreConfiguration] Specifies the core configuration + * parameters (as in core-site.xml) for the HDInsight cluster to be created. + * @member {object} [hBaseConfiguration] Specifies the HBase configuration + * parameters (hbase-site.xml) for the HDInsight cluster. + * @member {object} [hdfsConfiguration] Specifies the HDFS configuration + * parameters (hdfs-site.xml) for the HDInsight cluster. + * @member {object} [hiveConfiguration] Specifies the hive configuration + * parameters (hive-site.xml) for the HDInsight cluster. + * @member {object} [mapReduceConfiguration] Specifies the MapReduce + * configuration parameters (mapred-site.xml) for the HDInsight cluster. + * @member {object} [oozieConfiguration] Specifies the Oozie configuration + * parameters (oozie-site.xml) for the HDInsight cluster. + * @member {object} [stormConfiguration] Specifies the Storm configuration + * parameters (storm-site.xml) for the HDInsight cluster. + * @member {object} [yarnConfiguration] Specifies the Yarn configuration + * parameters (yarn-site.xml) for the HDInsight cluster. + * @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). + * @member {object} [headNodeSize] Specifies the size of the head node for the + * HDInsight cluster. + * @member {object} [dataNodeSize] Specifies the size of the data node for the + * HDInsight cluster. + * @member {object} [zookeeperNodeSize] Specifies the size of the Zoo Keeper + * node for the HDInsight cluster. + */ +export interface HDInsightOnDemandLinkedService extends LinkedService { + clusterSize: any; + timeToLive: any; + version: any; + linkedServiceName: LinkedServiceReference; + hostSubscriptionId: any; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant: any; + clusterResourceGroup: any; + clusterNamePrefix?: any; + clusterUserName?: any; + clusterPassword?: SecretBase; + clusterSshUserName?: any; + clusterSshPassword?: SecretBase; + additionalLinkedServiceNames?: LinkedServiceReference[]; + hcatalogLinkedServiceName?: LinkedServiceReference; + clusterType?: any; + sparkVersion?: any; + coreConfiguration?: any; + hBaseConfiguration?: any; + hdfsConfiguration?: any; + hiveConfiguration?: any; + mapReduceConfiguration?: any; + oozieConfiguration?: any; + stormConfiguration?: any; + yarnConfiguration?: any; + encryptedCredential?: any; + headNodeSize?: any; + dataNodeSize?: any; + zookeeperNodeSize?: any; +} + +/** + * @class + * Initializes a new instance of the SalesforceMarketingCloudLinkedService class. + * @constructor + * Salesforce Marketing Cloud linked service. + * + * @member {object} clientId The client ID associated with the Salesforce + * Marketing Cloud application. Type: string (or Expression with resultType + * string). + * @member {object} [clientSecret] The client secret associated with the + * Salesforce Marketing Cloud application. Type: string (or Expression with + * resultType string). + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. Type: + * boolean (or Expression with resultType boolean). + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. Type: boolean (or Expression + * with resultType boolean). + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * Type: boolean (or Expression with resultType boolean). + * @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). + */ +export interface SalesforceMarketingCloudLinkedService extends LinkedService { + clientId: any; + clientSecret?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the NetezzaLinkedService class. + * @constructor + * Netezza linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface NetezzaLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the VerticaLinkedService class. + * @constructor + * Vertica linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface VerticaLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the ZohoLinkedService class. + * @constructor + * Zoho server linked service. + * + * @member {object} endpoint The endpoint of the Zoho server. (i.e. + * crm.zoho.com/crm/private) + * @member {object} [accessToken] The access token for Zoho authentication. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface ZohoLinkedService extends LinkedService { + endpoint: any; + accessToken?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the XeroLinkedService class. + * @constructor + * Xero Serivce linked service. + * + * @member {object} host The endpoint of the Xero server. (i.e. api.xero.com) + * @member {object} [consumerKey] The consumer key associated with the Xero + * application. + * @member {string} [consumerKey.type] Polymorphic Discriminator + * @member {object} [privateKey] The private key from the .pem file that was + * generated for your Xero private application. You must include all the text + * from the .pem file, including the Unix line endings( + * ). + * @member {string} [privateKey.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface XeroLinkedService extends LinkedService { + host: any; + consumerKey?: SecretBase; + privateKey?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SquareLinkedService class. + * @constructor + * Square Serivce linked service. + * + * @member {object} host The URL of the Square instance. (i.e. + * mystore.mysquare.com) + * @member {object} clientId The client ID associated with your Square + * application. + * @member {object} [clientSecret] The client secret associated with your + * Square application. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} redirectUri The redirect URL assigned in the Square + * application dashboard. (i.e. http://localhost:2500) + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface SquareLinkedService extends LinkedService { + host: any; + clientId: any; + clientSecret?: SecretBase; + redirectUri: any; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SparkLinkedService class. + * @constructor + * Spark Server linked service. + * + * @member {object} host IP address or host name of the Spark server + * @member {object} port The TCP port that the Spark server uses to listen for + * client connections. + * @member {string} [serverType] The type of Spark server. Possible values + * include: 'SharkServer', 'SharkServer2', 'SparkThriftServer' + * @member {string} [thriftTransportProtocol] The transport protocol to use in + * the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP ' + * @member {string} authenticationType The authentication method used to access + * the Spark server. Possible values include: 'Anonymous', 'Username', + * 'UsernameAndPassword', 'WindowsAzureHDInsightService' + * @member {object} [username] The user name that you use to access Spark + * Server. + * @member {object} [password] The password corresponding to the user name that + * you provided in the Username field + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [httpPath] The partial URL corresponding to the Spark + * server. + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file containing + * trusted CA certificates for verifying the server when connecting over SSL. + * This property can only be set when using SSL on self-hosted IR. The default + * value is the cacerts.pem file installed with the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ +export interface SparkLinkedService extends LinkedService { + host: any; + port: any; + serverType?: string; + thriftTransportProtocol?: string; + authenticationType: string; + username?: any; + password?: SecretBase; + httpPath?: any; + enableSsl?: any; + trustedCertPath?: any; + useSystemTrustStore?: any; + allowHostNameCNMismatch?: any; + allowSelfSignedServerCert?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the ShopifyLinkedService class. + * @constructor + * Shopify Serivce linked service. + * + * @member {object} host The endpoint of the Shopify server. (i.e. + * mystore.myshopify.com) + * @member {object} [accessToken] The API access token that can be used to + * access Shopify’s data. The token won't expire if it is offline mode. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface ShopifyLinkedService extends LinkedService { + host: any; + accessToken?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the ServiceNowLinkedService class. + * @constructor + * ServiceNow server linked service. + * + * @member {object} endpoint The endpoint of the ServiceNow server. (i.e. + * ServiceNowData.com) + * @member {string} authenticationType The authentication type to use. Possible + * values include: 'Basic', 'OAuth2' + * @member {object} [username] The user name used to connect to the ServiceNow + * server for Basic and OAuth2 authentication. + * @member {object} [password] The password corresponding to the user name for + * Basic and OAuth2 authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [clientId] The client id for OAuth2 authentication. + * @member {object} [clientSecret] The client secret for OAuth2 authentication. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface ServiceNowLinkedService extends LinkedService { + endpoint: any; + authenticationType: string; + username?: any; + password?: SecretBase; + clientId?: any; + clientSecret?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the QuickBooksLinkedService class. + * @constructor + * QuickBooks server linked service. + * + * @member {object} endpoint The endpoint of the QuickBooks server. (i.e. + * quickbooks.api.intuit.com) + * @member {object} companyId The company ID of the QuickBooks company to + * authorize. + * @member {object} [accessToken] The access token for OAuth 1.0 + * authentication. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [accessTokenSecret] The access token secret for OAuth 1.0 + * authentication. + * @member {string} [accessTokenSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @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). + */ +export interface QuickBooksLinkedService extends LinkedService { + endpoint: any; + companyId: any; + accessToken?: SecretBase; + accessTokenSecret?: SecretBase; + useEncryptedEndpoints?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the PrestoLinkedService class. + * @constructor + * Presto server linked service. + * + * @member {object} host The IP address or host name of the Presto server. + * (i.e. 192.168.222.160) + * @member {object} serverVersion The version of the Presto server. (i.e. + * 0.148-t) + * @member {object} catalog The catalog context for all request against the + * server. + * @member {object} [port] The TCP port that the Presto server uses to listen + * for client connections. The default value is 8080. + * @member {string} authenticationType The authentication mechanism used to + * connect to the Presto server. Possible values include: 'Anonymous', 'LDAP' + * @member {object} [username] The user name used to connect to the Presto + * server. + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file containing + * trusted CA certificates for verifying the server when connecting over SSL. + * This property can only be set when using SSL on self-hosted IR. The default + * value is the cacerts.pem file installed with the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @member {object} [timeZoneID] The local time zone used by the connection. + * Valid values for this option are specified in the IANA Time Zone Database. + * The default value is the system time zone. + * @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). + */ +export interface PrestoLinkedService extends LinkedService { + host: any; + serverVersion: any; + catalog: any; + port?: any; + authenticationType: string; + username?: any; + password?: SecretBase; + enableSsl?: any; + trustedCertPath?: any; + useSystemTrustStore?: any; + allowHostNameCNMismatch?: any; + allowSelfSignedServerCert?: any; + timeZoneID?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the PhoenixLinkedService class. + * @constructor + * Phoenix server linked service. + * + * @member {object} host The IP address or host name of the Phoenix server. + * (i.e. 192.168.222.160) + * @member {object} [port] The TCP port that the Phoenix server uses to listen + * for client connections. The default value is 8765. + * @member {object} [httpPath] The partial URL corresponding to the Phoenix + * server. (i.e. /gateway/sandbox/phoenix/version). The default value is + * hbasephoenix if using WindowsAzureHDInsightService. + * @member {string} authenticationType The authentication mechanism used to + * connect to the Phoenix server. Possible values include: 'Anonymous', + * 'UsernameAndPassword', 'WindowsAzureHDInsightService' + * @member {object} [username] The user name used to connect to the Phoenix + * server. + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file containing + * trusted CA certificates for verifying the server when connecting over SSL. + * This property can only be set when using SSL on self-hosted IR. The default + * value is the cacerts.pem file installed with the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ +export interface PhoenixLinkedService extends LinkedService { + host: any; + port?: any; + httpPath?: any; + authenticationType: string; + username?: any; + password?: SecretBase; + enableSsl?: any; + trustedCertPath?: any; + useSystemTrustStore?: any; + allowHostNameCNMismatch?: any; + allowSelfSignedServerCert?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the PaypalLinkedService class. + * @constructor + * Paypal Serivce linked service. + * + * @member {object} host The URL of the PayPal instance. (i.e. + * api.sandbox.paypal.com) + * @member {object} clientId The client ID associated with your PayPal + * application. + * @member {object} [clientSecret] The client secret associated with your + * PayPal application. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface PaypalLinkedService extends LinkedService { + host: any; + clientId: any; + clientSecret?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the MarketoLinkedService class. + * @constructor + * Marketo server linked service. + * + * @member {object} endpoint The endpoint of the Marketo server. (i.e. + * 123-ABC-321.mktorest.com) + * @member {object} clientId The client Id of your Marketo service. + * @member {object} [clientSecret] The client secret of your Marketo service. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface MarketoLinkedService extends LinkedService { + endpoint: any; + clientId: any; + clientSecret?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the MariaDBLinkedService class. + * @constructor + * MariaDB server linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface MariaDBLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the MagentoLinkedService class. + * @constructor + * Magento server linked service. + * + * @member {object} host The URL of the Magento instance. (i.e. + * 192.168.222.110/magento3) + * @member {object} [accessToken] The access token from Magento. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface MagentoLinkedService extends LinkedService { + host: any; + accessToken?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the JiraLinkedService class. + * @constructor + * Jira Serivce linked service. + * + * @member {object} host The IP address or host name of the Jira service. (e.g. + * jira.example.com) + * @member {object} [port] The TCP port that the Jira server uses to listen for + * client connections. The default value is 443 if connecting through HTTPS, or + * 8080 if connecting through HTTP. + * @member {object} username The user name that you use to access Jira Service. + * @member {object} [password] The password corresponding to the user name that + * you provided in the username field. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface JiraLinkedService extends LinkedService { + host: any; + port?: any; + username: any; + password?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the ImpalaLinkedService class. + * @constructor + * Impala server linked service. + * + * @member {object} host The IP address or host name of the Impala server. + * (i.e. 192.168.222.160) + * @member {object} [port] The TCP port that the Impala server uses to listen + * for client connections. The default value is 21050. + * @member {string} authenticationType The authentication type to use. Possible + * values include: 'Anonymous', 'SASLUsername', 'UsernameAndPassword' + * @member {object} [username] The user name used to access the Impala server. + * The default value is anonymous when using SASLUsername. + * @member {object} [password] The password corresponding to the user name when + * using UsernameAndPassword. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file containing + * trusted CA certificates for verifying the server when connecting over SSL. + * This property can only be set when using SSL on self-hosted IR. The default + * value is the cacerts.pem file installed with the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ +export interface ImpalaLinkedService extends LinkedService { + host: any; + port?: any; + authenticationType: string; + username?: any; + password?: SecretBase; + enableSsl?: any; + trustedCertPath?: any; + useSystemTrustStore?: any; + allowHostNameCNMismatch?: any; + allowSelfSignedServerCert?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the HubspotLinkedService class. + * @constructor + * Hubspot Serivce linked service. + * + * @member {object} clientId The client ID associated with your Hubspot + * application. + * @member {object} [clientSecret] The client secret associated with your + * Hubspot application. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [accessToken] The access token obtained when initially + * authenticating your OAuth integration. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [refreshToken] The refresh token obtained when initially + * authenticating your OAuth integration. + * @member {string} [refreshToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface HubspotLinkedService extends LinkedService { + clientId: any; + clientSecret?: SecretBase; + accessToken?: SecretBase; + refreshToken?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the HiveLinkedService class. + * @constructor + * Hive Server linked service. + * + * @member {object} host IP address or host name of the Hive server, separated + * by ';' for multiple hosts (only when serviceDiscoveryMode is enable). + * @member {object} [port] The TCP port that the Hive server uses to listen for + * client connections. + * @member {string} [serverType] The type of Hive server. Possible values + * include: 'HiveServer1', 'HiveServer2', 'HiveThriftServer' + * @member {string} [thriftTransportProtocol] The transport protocol to use in + * the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP ' + * @member {string} authenticationType The authentication method used to access + * the Hive server. Possible values include: 'Anonymous', 'Username', + * 'UsernameAndPassword', 'WindowsAzureHDInsightService' + * @member {object} [serviceDiscoveryMode] true to indicate using the ZooKeeper + * service, false not. + * @member {object} [zooKeeperNameSpace] The namespace on ZooKeeper under which + * Hive Server 2 nodes are added. + * @member {object} [useNativeQuery] Specifies whether the driver uses native + * HiveQL queries,or converts them into an equivalent form in HiveQL. + * @member {object} [username] The user name that you use to access Hive + * Server. + * @member {object} [password] The password corresponding to the user name that + * you provided in the Username field + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [httpPath] The partial URL corresponding to the Hive + * server. + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file containing + * trusted CA certificates for verifying the server when connecting over SSL. + * This property can only be set when using SSL on self-hosted IR. The default + * value is the cacerts.pem file installed with the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ +export interface HiveLinkedService extends LinkedService { + host: any; + port?: any; + serverType?: string; + thriftTransportProtocol?: string; + authenticationType: string; + serviceDiscoveryMode?: any; + zooKeeperNameSpace?: any; + useNativeQuery?: any; + username?: any; + password?: SecretBase; + httpPath?: any; + enableSsl?: any; + trustedCertPath?: any; + useSystemTrustStore?: any; + allowHostNameCNMismatch?: any; + allowSelfSignedServerCert?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the HBaseLinkedService class. + * @constructor + * HBase server linked service. + * + * @member {object} host The IP address or host name of the HBase server. (i.e. + * 192.168.222.160) + * @member {object} [port] The TCP port that the HBase instance uses to listen + * for client connections. The default value is 9090. + * @member {object} [httpPath] The partial URL corresponding to the HBase + * server. (i.e. /gateway/sandbox/hbase/version) + * @member {string} authenticationType The authentication mechanism to use to + * connect to the HBase server. Possible values include: 'Anonymous', 'Basic' + * @member {object} [username] The user name used to connect to the HBase + * instance. + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file containing + * trusted CA certificates for verifying the server when connecting over SSL. + * This property can only be set when using SSL on self-hosted IR. The default + * value is the cacerts.pem file installed with the IR. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ +export interface HBaseLinkedService extends LinkedService { + host: any; + port?: any; + httpPath?: any; + authenticationType: string; + username?: any; + password?: SecretBase; + enableSsl?: any; + trustedCertPath?: any; + allowHostNameCNMismatch?: any; + allowSelfSignedServerCert?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the GreenplumLinkedService class. + * @constructor + * Greenplum Database linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface GreenplumLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the GoogleBigQueryLinkedService class. + * @constructor + * Google BigQuery service linked service. + * + * @member {object} project The default BigQuery project to query against. + * @member {object} [additionalProjects] A comma-separated list of public + * BigQuery projects to access. + * @member {object} [requestGoogleDriveScope] Whether to request access to + * Google Drive. Allowing Google Drive access enables support for federated + * tables that combine BigQuery data with data from Google Drive. The default + * value is false. + * @member {string} authenticationType The OAuth 2.0 authentication mechanism + * used for authentication. ServiceAuthentication can only be used on + * self-hosted IR. Possible values include: 'ServiceAuthentication', + * 'UserAuthentication' + * @member {object} [refreshToken] The refresh token obtained from Google for + * authorizing access to BigQuery for UserAuthentication. + * @member {string} [refreshToken.type] Polymorphic Discriminator + * @member {object} [clientId] The client id of the google application used to + * acquire the refresh token. + * @member {string} [clientId.type] Polymorphic Discriminator + * @member {object} [clientSecret] The client secret of the google application + * used to acquire the refresh token. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [email] The service account email ID that is used for + * ServiceAuthentication and can only be used on self-hosted IR. + * @member {object} [keyFilePath] The full path to the .p12 key file that is + * used to authenticate the service account email address and can only be used + * on self-hosted IR. + * @member {object} [trustedCertPath] The full path of the .pem file containing + * trusted CA certificates for verifying the server when connecting over SSL. + * This property can only be set when using SSL on self-hosted IR. The default + * value is the cacerts.pem file installed with the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @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). + */ +export interface GoogleBigQueryLinkedService extends LinkedService { + project: any; + additionalProjects?: any; + requestGoogleDriveScope?: any; + authenticationType: string; + refreshToken?: SecretBase; + clientId?: SecretBase; + clientSecret?: SecretBase; + email?: any; + keyFilePath?: any; + trustedCertPath?: any; + useSystemTrustStore?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the EloquaLinkedService class. + * @constructor + * Eloqua server linked service. + * + * @member {object} endpoint The endpoint of the Eloqua server. (i.e. + * eloqua.example.com) + * @member {object} username The site name and user name of your Eloqua account + * in the form: sitename/username. (i.e. Eloqua/Alice) + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface EloquaLinkedService extends LinkedService { + endpoint: any; + username: any; + password?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the DrillLinkedService class. + * @constructor + * Drill server linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface DrillLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the CouchbaseLinkedService class. + * @constructor + * Couchbase server linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface CouchbaseLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the ConcurLinkedService class. + * @constructor + * Concur Serivce linked service. + * + * @member {object} clientId Application client_id supplied by Concur App + * Management. + * @member {object} username The user name that you use to access Concur + * Service. + * @member {object} [password] The password corresponding to the user name that + * you provided in the username field. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface ConcurLinkedService extends LinkedService { + clientId: any; + username: any; + password?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzurePostgreSqlLinkedService class. + * @constructor + * Azure PostgreSQL linked service. + * + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface AzurePostgreSqlLinkedService extends LinkedService { + connectionString?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AmazonMWSLinkedService class. + * @constructor + * Amazon Marketplace Web Service linked service. + * + * @member {object} endpoint The endpoint of the Amazon MWS server, (i.e. + * mws.amazonservices.com) + * @member {object} marketplaceID The Amazon Marketplace ID you want to + * retrieve data from. To retrive data from multiple Marketplace IDs, seperate + * them with a comma (,). (i.e. A2EUQ1WTGCTBG2) + * @member {object} sellerID The Amazon seller ID. + * @member {object} [mwsAuthToken] The Amazon MWS authentication token. + * @member {string} [mwsAuthToken.type] Polymorphic Discriminator + * @member {object} accessKeyId The access key id used to access data. + * @member {object} [secretKey] The secret key used to access data. + * @member {string} [secretKey.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the host + * name in the server's certificate to match the host name of the server when + * connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is true. + * @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). + */ +export interface AmazonMWSLinkedService extends LinkedService { + endpoint: any; + marketplaceID: any; + sellerID: any; + mwsAuthToken?: SecretBase; + accessKeyId: any; + secretKey?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SapHanaLinkedService class. + * @constructor + * SAP HANA Linked Service. + * + * @member {object} server Host name of the SAP HANA server. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] The authentication type to be used to + * connect to the SAP HANA server. Possible values include: 'Basic', 'Windows' + * @member {object} [userName] Username to access the SAP HANA server. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password to access the SAP HANA server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface SapHanaLinkedService extends LinkedService { + server: any; + authenticationType?: string; + userName?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SapBWLinkedService class. + * @constructor + * SAP Business Warehouse Linked Service. + * + * @member {object} server Host name of the SAP BW instance. Type: string (or + * Expression with resultType string). + * @member {object} systemNumber System number of the BW system. (Usually a + * two-digit decimal number represented as a string.) Type: string (or + * Expression with resultType string). + * @member {object} clientId Client ID of the client on the BW system. (Usually + * a three-digit decimal number represented as a string) Type: string (or + * Expression with resultType string). + * @member {object} [userName] Username to access the SAP BW server. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password to access the SAP BW server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface SapBWLinkedService extends LinkedService { + server: any; + systemNumber: any; + clientId: any; + userName?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SftpServerLinkedService class. + * @constructor + * A linked service for an SSH File Transfer Protocol (SFTP) server. + * + * @member {object} host The SFTP server host name. Type: string (or Expression + * with resultType string). + * @member {object} [port] The TCP port number that the SFTP server uses to + * listen for client connections. Default value is 22. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {string} [authenticationType] The authentication type to be used to + * connect to the FTP server. Possible values include: 'Basic', 'SshPublicKey' + * @member {object} [userName] The username used to log on to the SFTP server. + * Type: string (or Expression with resultType string). + * @member {object} [password] Password to logon the SFTP server for Basic + * authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + * @member {object} [privateKeyPath] The SSH private key file path for + * SshPublicKey authentication. Only valid for on-premises copy. For + * on-premises copy with SshPublicKey authentication, either PrivateKeyPath or + * PrivateKeyContent should be specified. SSH private key should be OpenSSH + * format. Type: string (or Expression with resultType string). + * @member {object} [privateKeyContent] Base64 encoded SSH private key content + * for SshPublicKey authentication. For on-premises copy with SshPublicKey + * authentication, either PrivateKeyPath or PrivateKeyContent should be + * specified. SSH private key should be OpenSSH format. + * @member {string} [privateKeyContent.type] Polymorphic Discriminator + * @member {object} [passPhrase] The password to decrypt the SSH private key if + * the SSH private key is encrypted. + * @member {string} [passPhrase.type] Polymorphic Discriminator + * @member {object} [skipHostKeyValidation] If true, skip the SSH host key + * validation. Default value is false. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [hostKeyFingerprint] The host key finger-print of the SFTP + * server. When SkipHostKeyValidation is false, HostKeyFingerprint should be + * specified. Type: string (or Expression with resultType string). + */ +export interface SftpServerLinkedService extends LinkedService { + host: any; + port?: any; + authenticationType?: string; + userName?: any; + password?: SecretBase; + encryptedCredential?: any; + privateKeyPath?: any; + privateKeyContent?: SecretBase; + passPhrase?: SecretBase; + skipHostKeyValidation?: any; + hostKeyFingerprint?: any; +} + +/** + * @class + * Initializes a new instance of the FtpServerLinkedService class. + * @constructor + * A FTP server Linked Service. + * + * @member {object} host Host name of the FTP server. Type: string (or + * Expression with resultType string). + * @member {object} [port] The TCP port number that the FTP server uses to + * listen for client connections. Default value is 21. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {string} [authenticationType] The authentication type to be used to + * connect to the FTP server. Possible values include: 'Basic', 'Anonymous' + * @member {object} [userName] Username to logon the FTP server. Type: string + * (or Expression with resultType string). + * @member {object} [password] Password to logon the FTP server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + * @member {object} [enableSsl] If true, connect to the FTP server over SSL/TLS + * channel. Default value is true. Type: boolean (or Expression with resultType + * boolean). + * @member {object} [enableServerCertificateValidation] If true, validate the + * FTP server SSL certificate when connect over SSL/TLS channel. Default value + * is true. Type: boolean (or Expression with resultType boolean). + */ +export interface FtpServerLinkedService extends LinkedService { + host: any; + port?: any; + authenticationType?: string; + userName?: any; + password?: SecretBase; + encryptedCredential?: any; + enableSsl?: any; + enableServerCertificateValidation?: any; +} + +/** + * @class + * Initializes a new instance of the HttpLinkedService class. + * @constructor + * Linked service for an HTTP source. + * + * @member {object} url The base URL of the HTTP endpoint, e.g. + * http://www.microsoft.com. Type: string (or Expression with resultType + * string). + * @member {string} [authenticationType] The authentication type to be used to + * connect to the HTTP server. Possible values include: 'Basic', 'Anonymous', + * 'Digest', 'Windows', 'ClientCertificate' + * @member {object} [userName] User name for Basic, Digest, or Windows + * authentication. Type: string (or Expression with resultType string). + * @member {object} [password] Password for Basic, Digest, Windows, or + * ClientCertificate with EmbeddedCertData authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [embeddedCertData] Base64 encoded certificate data for + * ClientCertificate authentication. For on-premises copy with + * ClientCertificate authentication, either CertThumbprint or + * EmbeddedCertData/Password should be specified. Type: string (or Expression + * with resultType string). + * @member {object} [certThumbprint] Thumbprint of certificate for + * ClientCertificate authentication. Only valid for on-premises copy. For + * on-premises copy with ClientCertificate authentication, either + * CertThumbprint or EmbeddedCertData/Password should be specified. Type: + * string (or Expression with resultType string). + * @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). + * @member {object} [enableServerCertificateValidation] If true, validate the + * HTTPS server SSL certificate. Default value is true. Type: boolean (or + * Expression with resultType boolean). + */ +export interface HttpLinkedService extends LinkedService { + url: any; + authenticationType?: string; + userName?: any; + password?: SecretBase; + embeddedCertData?: any; + certThumbprint?: any; + encryptedCredential?: any; + enableServerCertificateValidation?: any; +} + +/** + * @class + * Initializes a new instance of the AzureSearchLinkedService class. + * @constructor + * Linked service for Windows Azure Search Service. + * + * @member {object} url URL for Azure Search service. Type: string (or + * Expression with resultType string). + * @member {object} [key] Admin Key for Azure Search service + * @member {string} [key.type] Polymorphic Discriminator + * @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). + */ +export interface AzureSearchLinkedService extends LinkedService { + url: any; + key?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the CustomDataSourceLinkedService class. + * @constructor + * Custom linked service. + * + * @member {object} typeProperties Custom linked service properties. + */ +export interface CustomDataSourceLinkedService extends LinkedService { + typeProperties: any; +} + +/** + * @class + * Initializes a new instance of the AmazonRedshiftLinkedService class. + * @constructor + * Linked service for Amazon Redshift. + * + * @member {object} server The name of the Amazon Redshift server. Type: string + * (or Expression with resultType string). + * @member {object} [username] The username of the Amazon Redshift source. + * Type: string (or Expression with resultType string). + * @member {object} [password] The password of the Amazon Redshift source. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} database The database name of the Amazon Redshift source. + * Type: string (or Expression with resultType string). + * @member {object} [port] The TCP port number that the Amazon Redshift server + * uses to listen for client connections. The default value is 5439. Type: + * integer (or Expression with resultType integer). + * @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). + */ +export interface AmazonRedshiftLinkedService extends LinkedService { + server: any; + username?: any; + password?: SecretBase; + database: any; + port?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AmazonS3LinkedService class. + * @constructor + * Linked service for Amazon S3. + * + * @member {object} [accessKeyId] The access key identifier of the Amazon S3 + * Identity and Access Management (IAM) user. Type: string (or Expression with + * resultType string). + * @member {object} [secretAccessKey] The secret access key of the Amazon S3 + * Identity and Access Management (IAM) user. + * @member {string} [secretAccessKey.type] Polymorphic Discriminator + * @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). + */ +export interface AmazonS3LinkedService extends LinkedService { + accessKeyId?: any; + secretAccessKey?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SapEccLinkedService class. + * @constructor + * Linked service for SAP ERP Central Component(SAP ECC). + * + * @member {string} url The URL of SAP ECC OData API. For example, + * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or + * Expression with resultType string). + * @member {string} [username] The username for Basic authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {string} [encryptedCredential] The encrypted credential used for + * authentication. Credentials are encrypted using the integration runtime + * credential manager. Either encryptedCredential or username/password must be + * provided. Type: string (or Expression with resultType string). + */ +export interface SapEccLinkedService extends LinkedService { + url: string; + username?: string; + password?: SecretBase; + encryptedCredential?: string; +} + +/** + * @class + * Initializes a new instance of the SapCloudForCustomerLinkedService class. + * @constructor + * Linked service for SAP Cloud for Customer. + * + * @member {object} url The URL of SAP Cloud for Customer OData API. For + * example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: + * string (or Expression with resultType string). + * @member {object} [username] The username for Basic authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [encryptedCredential] The encrypted credential used for + * authentication. Credentials are encrypted using the integration runtime + * credential manager. Either encryptedCredential or username/password must be + * provided. Type: string (or Expression with resultType string). + */ +export interface SapCloudForCustomerLinkedService extends LinkedService { + url: any; + username?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SalesforceLinkedService class. + * @constructor + * Linked service for Salesforce. + * + * @member {object} [environmentUrl] The URL of Salesforce instance. Default is + * 'https://login.salesforce.com'. To copy data from sandbox, specify + * 'https://test.salesforce.com'. To copy data from custom domain, specify, for + * example, 'https://[domain].my.salesforce.com'. Type: string (or Expression + * with resultType string). + * @member {object} [username] The username for Basic authentication of the + * Salesforce instance. Type: string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication of the + * Salesforce instance. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [securityToken] The security token is required to remotely + * access Salesforce instance. + * @member {string} [securityToken.type] Polymorphic Discriminator + * @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). + */ +export interface SalesforceLinkedService extends LinkedService { + environmentUrl?: any; + username?: any; + password?: SecretBase; + securityToken?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureDataLakeStoreLinkedService class. + * @constructor + * Azure Data Lake Store linked service. + * + * @member {object} dataLakeStoreUri Data Lake Store service URI. Type: string + * (or Expression with resultType string). + * @member {object} [servicePrincipalId] The ID of the application used to + * authenticate against the Azure Data Lake Store account. Type: string (or + * Expression with resultType string). + * @member {object} [servicePrincipalKey] The Key of the application used to + * authenticate against the Azure Data Lake Store account. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). + * @member {object} [accountName] Data Lake Store account name. Type: string + * (or Expression with resultType string). + * @member {object} [subscriptionId] Data Lake Store account subscription ID + * (if different from Data Factory account). Type: string (or Expression with + * resultType string). + * @member {object} [resourceGroupName] Data Lake Store account resource group + * name (if different from Data Factory account). Type: string (or Expression + * with resultType string). + * @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). + */ +export interface AzureDataLakeStoreLinkedService extends LinkedService { + dataLakeStoreUri: any; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant?: any; + accountName?: any; + subscriptionId?: any; + resourceGroupName?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the MongoDbLinkedService class. + * @constructor + * Linked service for MongoDb data source. + * + * @member {object} server The IP address or server name of the MongoDB server. + * Type: string (or Expression with resultType string). + * @member {string} [authenticationType] The authentication type to be used to + * connect to the MongoDB database. Possible values include: 'Basic', + * 'Anonymous' + * @member {object} databaseName The name of the MongoDB database that you want + * to access. Type: string (or Expression with resultType string). + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [authSource] Database to verify the username and password. + * Type: string (or Expression with resultType string). + * @member {object} [port] The TCP port number that the MongoDB server uses to + * listen for client connections. The default value is 27017. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {object} [enableSsl] Specifies whether the connections to the server + * are encrypted using SSL. The default value is false. Type: boolean (or + * Expression with resultType boolean). + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. Type: + * boolean (or Expression with resultType boolean). + * @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). + */ +export interface MongoDbLinkedService extends LinkedService { + server: any; + authenticationType?: string; + databaseName: any; + username?: any; + password?: SecretBase; + authSource?: any; + port?: any; + enableSsl?: any; + allowSelfSignedServerCert?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the CassandraLinkedService class. + * @constructor + * Linked service for Cassandra data source. + * + * @member {object} host Host name for connection. Type: string (or Expression + * with resultType string). + * @member {object} [authenticationType] AuthenticationType to be used for + * connection. Type: string (or Expression with resultType string). + * @member {object} [port] The port for the connection. Type: integer (or + * Expression with resultType integer). + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface CassandraLinkedService extends LinkedService { + host: any; + authenticationType?: any; + port?: any; + username?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the WebLinkedServiceTypeProperties class. + * @constructor + * Base definition of WebLinkedServiceTypeProperties, this typeProperties is + * polymorphic based on authenticationType, so not flattened in SDK models. + * + * @member {object} url The URL of the web service endpoint, e.g. + * http://www.microsoft.com . Type: string (or Expression with resultType + * string). + * @member {string} authenticationType Polymorphic Discriminator + */ +export interface WebLinkedServiceTypeProperties { + url: any; + authenticationType: string; +} + +/** + * @class + * Initializes a new instance of the WebClientCertificateAuthentication class. + * @constructor + * A WebLinkedService that uses client certificate based authentication to + * communicate with an HTTP endpoint. This scheme follows mutual + * authentication; the server must also provide valid credentials to the + * client. + * + * @member {object} pfx Base64-encoded contents of a PFX file. + * @member {string} [pfx.type] Polymorphic Discriminator + * @member {object} password Password for the PFX file. + * @member {string} [password.type] Polymorphic Discriminator + */ +export interface WebClientCertificateAuthentication extends WebLinkedServiceTypeProperties { + pfx: SecretBase; + password: SecretBase; +} + +/** + * @class + * Initializes a new instance of the WebBasicAuthentication class. + * @constructor + * A WebLinkedService that uses basic authentication to communicate with an + * HTTP endpoint. + * + * @member {object} username User name for Basic authentication. Type: string + * (or Expression with resultType string). + * @member {object} password The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + */ +export interface WebBasicAuthentication extends WebLinkedServiceTypeProperties { + username: any; + password: SecretBase; +} + +/** + * @class + * Initializes a new instance of the WebAnonymousAuthentication class. + * @constructor + * A WebLinkedService that uses anonymous authentication to communicate with an + * HTTP endpoint. + * + */ +export interface WebAnonymousAuthentication extends WebLinkedServiceTypeProperties { +} + +/** + * @class + * Initializes a new instance of the WebLinkedService class. + * @constructor + * Web linked service. + * + * @member {object} typeProperties Web linked service properties. + * @member {object} [typeProperties.url] The URL of the web service endpoint, + * e.g. http://www.microsoft.com . Type: string (or Expression with resultType + * string). + * @member {string} [typeProperties.authenticationType] Polymorphic + * Discriminator + */ +export interface WebLinkedService extends LinkedService { + typeProperties: WebLinkedServiceTypeProperties; +} + +/** + * @class + * Initializes a new instance of the ODataLinkedService class. + * @constructor + * Open Data Protocol (OData) linked service. + * + * @member {object} url The URL of the OData service endpoint. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] Type of authentication used to connect + * to the OData service. Possible values include: 'Basic', 'Anonymous' + * @member {object} [userName] User name of the OData service. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password of the OData service. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface ODataLinkedService extends LinkedService { + url: any; + authenticationType?: string; + userName?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the HdfsLinkedService class. + * @constructor + * Hadoop Distributed File System (HDFS) linked service. + * + * @member {object} url The URL of the HDFS service endpoint, e.g. + * http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with + * resultType string). + * @member {object} [authenticationType] Type of authentication used to connect + * to the HDFS. Possible values are: Anonymous and Windows. Type: string (or + * Expression with resultType string). + * @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). + * @member {object} [userName] User name for Windows authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password for Windows authentication. + * @member {string} [password.type] Polymorphic Discriminator + */ +export interface HdfsLinkedService extends LinkedService { + url: any; + authenticationType?: any; + encryptedCredential?: any; + userName?: any; + password?: SecretBase; +} + +/** + * @class + * Initializes a new instance of the OdbcLinkedService class. + * @constructor + * Open Database Connectivity (ODBC) linked service. + * + * @member {object} connectionString The non-access credential portion of the + * connection string as well as an optional encrypted credential. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [authenticationType] Type of authentication used to connect + * to the ODBC data store. Possible values are: Anonymous and Basic. Type: + * string (or Expression with resultType string). + * @member {object} [credential] The access credential portion of the + * connection string specified in driver-specific property-value format. + * @member {string} [credential.type] Polymorphic Discriminator + * @member {object} [userName] User name for Basic authentication. Type: string + * (or Expression with resultType string). + * @member {object} [password] Password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface OdbcLinkedService extends LinkedService { + connectionString: SecretBase; + authenticationType?: any; + credential?: SecretBase; + userName?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureMLLinkedService class. + * @constructor + * Azure ML Web Service linked service. + * + * @member {object} mlEndpoint The Batch Execution REST URL for an Azure ML Web + * Service endpoint. Type: string (or Expression with resultType string). + * @member {object} apiKey The API key for accessing the Azure ML model + * endpoint. + * @member {string} [apiKey.type] Polymorphic Discriminator + * @member {object} [updateResourceEndpoint] The Update Resource REST URL for + * an Azure ML Web Service endpoint. Type: string (or Expression with + * resultType string). + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against the ARM-based updateResourceEndpoint of an Azure ML + * web service. Type: string (or Expression with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal used + * to authenticate against the ARM-based updateResourceEndpoint of an Azure ML + * web service. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). + * @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). + */ +export interface AzureMLLinkedService extends LinkedService { + mlEndpoint: any; + apiKey: SecretBase; + updateResourceEndpoint?: any; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the TeradataLinkedService class. + * @constructor + * Linked service for Teradata data source. + * + * @member {object} server Server name for connection. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] AuthenticationType to be used for + * connection. Possible values include: 'Basic', 'Windows' + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface TeradataLinkedService extends LinkedService { + server: any; + authenticationType?: string; + username?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the Db2LinkedService class. + * @constructor + * Linked service for DB2 data source. + * + * @member {object} server Server name for connection. Type: string (or + * Expression with resultType string). + * @member {object} database Database name for connection. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] AuthenticationType to be used for + * connection. Possible values include: 'Basic' + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface Db2LinkedService extends LinkedService { + server: any; + database: any; + authenticationType?: string; + username?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SybaseLinkedService class. + * @constructor + * Linked service for Sybase data source. + * + * @member {object} server Server name for connection. Type: string (or + * Expression with resultType string). + * @member {object} database Database name for connection. Type: string (or + * Expression with resultType string). + * @member {object} [schema] Schema name for connection. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] AuthenticationType to be used for + * connection. Possible values include: 'Basic', 'Windows' + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface SybaseLinkedService extends LinkedService { + server: any; + database: any; + schema?: any; + authenticationType?: string; + username?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the PostgreSqlLinkedService class. + * @constructor + * Linked service for PostgreSQL data source. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface PostgreSqlLinkedService extends LinkedService { + connectionString: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the MySqlLinkedService class. + * @constructor + * Linked service for MySQL data source. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface MySqlLinkedService extends LinkedService { + connectionString: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureMySqlLinkedService class. + * @constructor + * Azure MySQL database linked service. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface AzureMySqlLinkedService extends LinkedService { + connectionString: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the OracleLinkedService class. + * @constructor + * Oracle database. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface OracleLinkedService extends LinkedService { + connectionString: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the FileServerLinkedService class. + * @constructor + * File system linked service. + * + * @member {object} host Host name of the server. Type: string (or Expression + * with resultType string). + * @member {object} [userId] User ID to logon the server. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password to logon the server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface FileServerLinkedService extends LinkedService { + host: any; + userId?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the HDInsightLinkedService class. + * @constructor + * HDInsight linked service. + * + * @member {object} clusterUri HDInsight cluster URI. Type: string (or + * Expression with resultType string). + * @member {object} [userName] HDInsight cluster user name. Type: string (or + * Expression with resultType string). + * @member {object} [password] HDInsight cluster password. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [linkedServiceName] The Azure Storage linked service + * reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. + * @member {object} [hcatalogLinkedServiceName] A reference to the Azure SQL + * linked service that points to the HCatalog database. + * @member {string} [hcatalogLinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [hcatalogLinkedServiceName.parameters] Arguments for + * LinkedService. + * @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). + */ +export interface HDInsightLinkedService extends LinkedService { + clusterUri: any; + userName?: any; + password?: SecretBase; + linkedServiceName?: LinkedServiceReference; + hcatalogLinkedServiceName?: LinkedServiceReference; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the DynamicsLinkedService class. + * @constructor + * Dynamics linked service. + * + * @member {object} deploymentType The deployment type of the Dynamics + * instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics + * on-premises with Ifd. Type: string (or Expression with resultType string). + * @member {object} [hostName] The host name of the on-premises Dynamics + * server. The property is required for on-prem and not allowed for online. + * Type: string (or Expression with resultType string). + * @member {object} [port] The port of on-premises Dynamics server. The + * property is required for on-prem and not allowed for online. Default is 443. + * Type: integer (or Expression with resultType integer), minimum: 0. + * @member {object} [serviceUri] The URL to the Microsoft Dynamics server. The + * property is required for on-line and not allowed for on-prem. Type: string + * (or Expression with resultType string). + * @member {object} [organizationName] The organization name of the Dynamics + * instance. The property is required for on-prem and required for online when + * there are more than one Dynamics instances associated with the user. Type: + * string (or Expression with resultType string). + * @member {object} authenticationType The authentication type to connect to + * Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises with + * Ifd scenario. Type: string (or Expression with resultType string). + * @member {object} username User name to access the Dynamics instance. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password to access the Dynamics instance. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface DynamicsLinkedService extends LinkedService { + deploymentType: any; + hostName?: any; + port?: any; + serviceUri?: any; + organizationName?: any; + authenticationType: any; + username: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the CosmosDbLinkedService class. + * @constructor + * Microsoft Azure Cosmos Database (CosmosDB) linked service. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ +export interface CosmosDbLinkedService extends LinkedService { + connectionString: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureKeyVaultLinkedService class. + * @constructor + * Azure Key Vault linked service. + * + * @member {object} baseUrl The base URL of the Azure Key Vault. e.g. + * https://myakv.vault.azure.net Type: string (or Expression with resultType + * string). + */ +export interface AzureKeyVaultLinkedService extends LinkedService { + baseUrl: any; +} + +/** + * @class + * Initializes a new instance of the AzureBatchLinkedService class. + * @constructor + * Azure Batch linked service. + * + * @member {object} accountName The Azure Batch account name. Type: string (or + * Expression with resultType string). + * @member {object} [accessKey] The Azure Batch account access key. + * @member {string} [accessKey.type] Polymorphic Discriminator + * @member {object} batchUri The Azure Batch URI. Type: string (or Expression + * with resultType string). + * @member {object} poolName The Azure Batch pool name. Type: string (or + * Expression with resultType string). + * @member {object} linkedServiceName The Azure Storage linked service + * reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. + * @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). + */ +export interface AzureBatchLinkedService extends LinkedService { + accountName: any; + accessKey?: SecretBase; + batchUri: any; + poolName: any; + linkedServiceName: LinkedServiceReference; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureSqlDatabaseLinkedService class. + * @constructor + * Microsoft Azure SQL Database linked service. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Database. Type: string (or Expression with + * resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal used + * to authenticate against Azure SQL Database. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). + * @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). + */ +export interface AzureSqlDatabaseLinkedService extends LinkedService { + connectionString: SecretBase; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SqlServerLinkedService class. + * @constructor + * SQL Server linked service. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [userName] The on-premises Windows authentication user + * name. Type: string (or Expression with resultType string). + * @member {object} [password] The on-premises Windows authentication password. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ +export interface SqlServerLinkedService extends LinkedService { + connectionString: SecretBase; + userName?: any; + password?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureSqlDWLinkedService class. + * @constructor + * Azure SQL Data Warehouse linked service. + * + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [servicePrincipalId] The ID of the service principal used + * to authenticate against Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + * @member {object} [servicePrincipalKey] The key of the service principal used + * to authenticate against Azure SQL Data Warehouse. + * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @member {object} [tenant] The name or ID of the tenant to which the service + * principal belongs. Type: string (or Expression with resultType string). + * @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). + */ +export interface AzureSqlDWLinkedService extends LinkedService { + connectionString: SecretBase; + servicePrincipalId?: any; + servicePrincipalKey?: SecretBase; + tenant?: any; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the AzureStorageLinkedService class. + * @constructor + * The storage account linked service. + * + * @member {object} [connectionString] The connection string. It is mutually + * exclusive with sasUri property. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [sasUri] SAS URI of the Azure Storage resource. It is + * mutually exclusive with connectionString property. + * @member {string} [sasUri.type] Polymorphic Discriminator + * @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). + */ +export interface AzureStorageLinkedService extends LinkedService { + connectionString?: SecretBase; + sasUri?: SecretBase; + encryptedCredential?: any; +} + +/** + * @class + * Initializes a new instance of the SalesforceMarketingCloudObjectDataset class. + * @constructor + * Salesforce Marketing Cloud dataset. + * + */ +export interface SalesforceMarketingCloudObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the VerticaTableDataset class. + * @constructor + * Vertica dataset. + * + */ +export interface VerticaTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the NetezzaTableDataset class. + * @constructor + * Netezza dataset. + * + */ +export interface NetezzaTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the ZohoObjectDataset class. + * @constructor + * Zoho server dataset. + * + */ +export interface ZohoObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the XeroObjectDataset class. + * @constructor + * Xero Serivce dataset. + * + */ +export interface XeroObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the SquareObjectDataset class. + * @constructor + * Square Serivce dataset. + * + */ +export interface SquareObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the SparkObjectDataset class. + * @constructor + * Spark Server dataset. + * + */ +export interface SparkObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the ShopifyObjectDataset class. + * @constructor + * Shopify Serivce dataset. + * + */ +export interface ShopifyObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the ServiceNowObjectDataset class. + * @constructor + * ServiceNow server dataset. + * + */ +export interface ServiceNowObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the QuickBooksObjectDataset class. + * @constructor + * QuickBooks server dataset. + * + */ +export interface QuickBooksObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the PrestoObjectDataset class. + * @constructor + * Presto server dataset. + * + */ +export interface PrestoObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the PhoenixObjectDataset class. + * @constructor + * Phoenix server dataset. + * + */ +export interface PhoenixObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the PaypalObjectDataset class. + * @constructor + * Paypal Serivce dataset. + * + */ +export interface PaypalObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the MarketoObjectDataset class. + * @constructor + * Marketo server dataset. + * + */ +export interface MarketoObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the MariaDBTableDataset class. + * @constructor + * MariaDB server dataset. + * + */ +export interface MariaDBTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the MagentoObjectDataset class. + * @constructor + * Magento server dataset. + * + */ +export interface MagentoObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the JiraObjectDataset class. + * @constructor + * Jira Serivce dataset. + * + */ +export interface JiraObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the ImpalaObjectDataset class. + * @constructor + * Impala server dataset. + * + */ +export interface ImpalaObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the HubspotObjectDataset class. + * @constructor + * Hubspot Serivce dataset. + * + */ +export interface HubspotObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the HiveObjectDataset class. + * @constructor + * Hive Server dataset. + * + */ +export interface HiveObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the HBaseObjectDataset class. + * @constructor + * HBase server dataset. + * + */ +export interface HBaseObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the GreenplumTableDataset class. + * @constructor + * Greenplum Database dataset. + * + */ +export interface GreenplumTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the GoogleBigQueryObjectDataset class. + * @constructor + * Google BigQuery service dataset. + * + */ +export interface GoogleBigQueryObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the EloquaObjectDataset class. + * @constructor + * Eloqua server dataset. + * + */ +export interface EloquaObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the DrillTableDataset class. + * @constructor + * Drill server dataset. + * + */ +export interface DrillTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the CouchbaseTableDataset class. + * @constructor + * Couchbase server dataset. + * + */ +export interface CouchbaseTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the ConcurObjectDataset class. + * @constructor + * Concur Serivce dataset. + * + */ +export interface ConcurObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the AzurePostgreSqlTableDataset class. + * @constructor + * Azure PostgreSQL dataset. + * + */ +export interface AzurePostgreSqlTableDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the AmazonMWSObjectDataset class. + * @constructor + * Amazon Marketplace Web Service dataset. + * + */ +export interface AmazonMWSObjectDataset extends Dataset { +} + +/** + * @class + * Initializes a new instance of the DatasetCompression class. + * @constructor + * The compression method used on a dataset. + * + * @member {string} type Polymorphic Discriminator + */ +export interface DatasetCompression { + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the DatasetZipDeflateCompression class. + * @constructor + * The ZipDeflate compression method used on a dataset. + * + * @member {string} [level] The ZipDeflate compression level. Possible values + * include: 'Optimal', 'Fastest' + */ +export interface DatasetZipDeflateCompression extends DatasetCompression { + level?: string; +} + +/** + * @class + * Initializes a new instance of the DatasetDeflateCompression class. + * @constructor + * The Deflate compression method used on a dataset. + * + * @member {string} [level] The Deflate compression level. Possible values + * include: 'Optimal', 'Fastest' + */ +export interface DatasetDeflateCompression extends DatasetCompression { + level?: string; +} + +/** + * @class + * Initializes a new instance of the DatasetGZipCompression class. + * @constructor + * The GZip compression method used on a dataset. + * + * @member {string} [level] The GZip compression level. Possible values + * include: 'Optimal', 'Fastest' + */ +export interface DatasetGZipCompression extends DatasetCompression { + level?: string; +} + +/** + * @class + * Initializes a new instance of the DatasetBZip2Compression class. + * @constructor + * The BZip2 compression method used on a dataset. + * + */ +export interface DatasetBZip2Compression extends DatasetCompression { +} + +/** + * @class + * Initializes a new instance of the DatasetStorageFormat class. + * @constructor + * The format definition of a storage. + * + * @member {object} [serializer] Serializer. Type: string (or Expression with + * resultType string). + * @member {object} [deserializer] Deserializer. Type: string (or Expression + * with resultType string). + * @member {string} type Polymorphic Discriminator + */ +export interface DatasetStorageFormat { + serializer?: any; + deserializer?: any; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ParquetFormat class. + * @constructor + * The data stored in Parquet format. + * + */ +export interface ParquetFormat extends DatasetStorageFormat { +} + +/** + * @class + * Initializes a new instance of the OrcFormat class. + * @constructor + * The data stored in Optimized Row Columnar (ORC) format. + * + */ +export interface OrcFormat extends DatasetStorageFormat { +} + +/** + * @class + * Initializes a new instance of the AvroFormat class. + * @constructor + * The data stored in Avro format. + * + */ +export interface AvroFormat extends DatasetStorageFormat { +} + +/** + * @class + * Initializes a new instance of the JsonFormat class. + * @constructor + * The data stored in JSON format. + * + * @member {string} [filePattern] File pattern of JSON. To be more specific, + * the way of separating a collection of JSON objects. The default value is + * 'setOfObjects'. It is case-sensitive. Possible values include: + * 'setOfObjects', 'arrayOfObjects' + * @member {object} [nestingSeparator] The character used to separate nesting + * levels. Default value is '.' (dot). Type: string (or Expression with + * resultType string). + * @member {object} [encodingName] The code page name of the preferred + * encoding. If not provided, the default value is 'utf-8', unless the byte + * order mark (BOM) denotes another Unicode encoding. The full list of + * supported values can be found in the 'Name' column of the table of encodings + * in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. + * Type: string (or Expression with resultType string). + * @member {object} [jsonNodeReference] The JSONPath of the JSON array element + * to be flattened. Example: "$.ArrayPath". Type: string (or Expression with + * resultType string). + * @member {object} [jsonPathDefinition] The JSONPath definition for each + * column mapping with a customized column name to extract data from JSON file. + * For fields under root object, start with "$"; for fields inside the array + * chosen by jsonNodeReference property, start from the array element. Example: + * {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object + * (or Expression with resultType object). + */ +export interface JsonFormat extends DatasetStorageFormat { + filePattern?: string; + nestingSeparator?: any; + encodingName?: any; + jsonNodeReference?: any; + jsonPathDefinition?: any; +} + +/** + * @class + * Initializes a new instance of the TextFormat class. + * @constructor + * The data stored in text format. + * + * @member {object} [columnDelimiter] The column delimiter. Type: string (or + * Expression with resultType string). + * @member {object} [rowDelimiter] The row delimiter. Type: string (or + * Expression with resultType string). + * @member {object} [escapeChar] The escape character. Type: string (or + * Expression with resultType string). + * @member {object} [quoteChar] The quote character. Type: string (or + * Expression with resultType string). + * @member {object} [nullValue] The null value string. Type: string (or + * Expression with resultType string). + * @member {object} [encodingName] The code page name of the preferred + * encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes + * another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the + * following link to set supported values: + * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string + * (or Expression with resultType string). + * @member {object} [treatEmptyAsNull] Treat empty column values in the text + * file as null. The default value is true. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [skipLineCount] The number of lines/rows to be skipped when + * parsing text files. The default value is 0. Type: integer (or Expression + * with resultType integer). + * @member {object} [firstRowAsHeader] When used as input, treat the first row + * of data as headers. When used as output,write the headers into the output as + * the first row of data. The default value is false. Type: boolean (or + * Expression with resultType boolean). + */ +export interface TextFormat extends DatasetStorageFormat { + columnDelimiter?: any; + rowDelimiter?: any; + escapeChar?: any; + quoteChar?: any; + nullValue?: any; + encodingName?: any; + treatEmptyAsNull?: any; + skipLineCount?: any; + firstRowAsHeader?: any; +} + +/** + * @class + * Initializes a new instance of the HttpDataset class. + * @constructor + * A file in an HTTP web server. + * + * @member {object} [relativeUrl] The relative URL based on the URL in the + * HttpLinkedService refers to an HTTP file Type: string (or Expression with + * resultType string). + * @member {object} [requestMethod] The HTTP method for the HTTP request. Type: + * string (or Expression with resultType string). + * @member {object} [requestBody] The body for the HTTP request. Type: string + * (or Expression with resultType string). + * @member {object} [additionalHeaders] The headers for the HTTP Request. e.g. + * request-header-name-1:request-header-value-1 + * ... + * request-header-name-n:request-header-value-n Type: string (or Expression + * with resultType string). + * @member {object} [format] The format of files. + * @member {object} [format.serializer] Serializer. Type: string (or Expression + * with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used on files. + * @member {string} [compression.type] Polymorphic Discriminator + */ +export interface HttpDataset extends Dataset { + relativeUrl?: any; + requestMethod?: any; + requestBody?: any; + additionalHeaders?: any; + format?: DatasetStorageFormat; + compression?: DatasetCompression; +} + +/** + * @class + * Initializes a new instance of the AzureSearchIndexDataset class. + * @constructor + * The Azure Search Index. + * + * @member {object} indexName The name of the Azure Search Index. Type: string + * (or Expression with resultType string). + */ +export interface AzureSearchIndexDataset extends Dataset { + indexName: any; +} + +/** + * @class + * Initializes a new instance of the WebTableDataset class. + * @constructor + * The dataset points to a HTML table in the web page. + * + * @member {object} index The zero-based index of the table in the web page. + * Type: integer (or Expression with resultType integer), minimum: 0. + * @member {object} [path] The relative URL to the web page from the linked + * service URL. Type: string (or Expression with resultType string). + */ +export interface WebTableDataset extends Dataset { + index: any; + path?: any; +} + +/** + * @class + * Initializes a new instance of the SqlServerTableDataset class. + * @constructor + * The on-premises SQL Server dataset. + * + * @member {object} tableName The table name of the SQL Server dataset. Type: + * string (or Expression with resultType string). + */ +export interface SqlServerTableDataset extends Dataset { + tableName: any; +} + +/** + * @class + * Initializes a new instance of the SapEccResourceDataset class. + * @constructor + * The path of the SAP ECC OData entity. + * + * @member {string} path The path of the SAP ECC OData entity. Type: string (or + * Expression with resultType string). + */ +export interface SapEccResourceDataset extends Dataset { + path: string; +} + +/** + * @class + * Initializes a new instance of the SapCloudForCustomerResourceDataset class. + * @constructor + * The path of the SAP Cloud for Customer OData entity. + * + * @member {object} path The path of the SAP Cloud for Customer OData entity. + * Type: string (or Expression with resultType string). + */ +export interface SapCloudForCustomerResourceDataset extends Dataset { + path: any; +} + +/** + * @class + * Initializes a new instance of the SalesforceObjectDataset class. + * @constructor + * The Salesforce object dataset. + * + * @member {object} [objectApiName] The Salesforce object API name. Type: + * string (or Expression with resultType string). + */ +export interface SalesforceObjectDataset extends Dataset { + objectApiName?: any; +} + +/** + * @class + * Initializes a new instance of the RelationalTableDataset class. + * @constructor + * The relational table dataset. + * + * @member {object} [tableName] The relational table name. Type: string (or + * Expression with resultType string). + */ +export interface RelationalTableDataset extends Dataset { + tableName?: any; +} + +/** + * @class + * Initializes a new instance of the AzureMySqlTableDataset class. + * @constructor + * The Azure MySQL database dataset. + * + * @member {object} [tableName] The Azure MySQL database table name. Type: + * string (or Expression with resultType string). + */ +export interface AzureMySqlTableDataset extends Dataset { + tableName?: any; +} + +/** + * @class + * Initializes a new instance of the OracleTableDataset class. + * @constructor + * The on-premises Oracle database dataset. + * + * @member {object} tableName The table name of the on-premises Oracle + * database. Type: string (or Expression with resultType string). + */ +export interface OracleTableDataset extends Dataset { + tableName: any; +} + +/** + * @class + * Initializes a new instance of the ODataResourceDataset class. + * @constructor + * The Open Data Protocol (OData) resource dataset. + * + * @member {object} [path] The OData resource path. Type: string (or Expression + * with resultType string). + */ +export interface ODataResourceDataset extends Dataset { + path?: any; +} + +/** + * @class + * Initializes a new instance of the MongoDbCollectionDataset class. + * @constructor + * The MongoDB database dataset. + * + * @member {object} collectionName The table name of the MongoDB database. + * Type: string (or Expression with resultType string). + */ +export interface MongoDbCollectionDataset extends Dataset { + collectionName: any; +} + +/** + * @class + * Initializes a new instance of the FileShareDataset class. + * @constructor + * An on-premises file system dataset. + * + * @member {object} [folderPath] The path of the on-premises file system. Type: + * string (or Expression with resultType string). + * @member {object} [fileName] The name of the on-premises file system. Type: + * string (or Expression with resultType string). + * @member {object} [format] The format of the files. + * @member {object} [format.serializer] Serializer. Type: string (or Expression + * with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [fileFilter] Specify a filter to be used to select a subset + * of files in the folderPath rather than all files. Type: string (or + * Expression with resultType string). + * @member {object} [compression] The data compression method used for the file + * system. + * @member {string} [compression.type] Polymorphic Discriminator + */ +export interface FileShareDataset extends Dataset { + folderPath?: any; + fileName?: any; + format?: DatasetStorageFormat; + fileFilter?: any; + compression?: DatasetCompression; +} + +/** + * @class + * Initializes a new instance of the AzureDataLakeStoreDataset class. + * @constructor + * Azure Data Lake Store dataset. + * + * @member {object} folderPath Path to the folder in the Azure Data Lake Store. + * Type: string (or Expression with resultType string). + * @member {object} [fileName] The name of the file in the Azure Data Lake + * Store. Type: string (or Expression with resultType string). + * @member {object} [format] The format of the Data Lake Store. + * @member {object} [format.serializer] Serializer. Type: string (or Expression + * with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used for the + * item(s) in the Azure Data Lake Store. + * @member {string} [compression.type] Polymorphic Discriminator + */ +export interface AzureDataLakeStoreDataset extends Dataset { + folderPath: any; + fileName?: any; + format?: DatasetStorageFormat; + compression?: DatasetCompression; +} + +/** + * @class + * Initializes a new instance of the DynamicsEntityDataset class. + * @constructor + * The Dynamics entity dataset. + * + * @member {object} [entityName] The logical name of the entity. Type: string + * (or Expression with resultType string). + */ +export interface DynamicsEntityDataset extends Dataset { + entityName?: any; +} + +/** + * @class + * Initializes a new instance of the DocumentDbCollectionDataset class. + * @constructor + * Microsoft Azure Document Database Collection dataset. + * + * @member {object} collectionName Document Database collection name. Type: + * string (or Expression with resultType string). + */ +export interface DocumentDbCollectionDataset extends Dataset { + collectionName: any; +} + +/** + * @class + * Initializes a new instance of the CustomDataset class. + * @constructor + * The custom dataset. + * + * @member {object} typeProperties Custom dataset properties. + */ +export interface CustomDataset extends Dataset { + typeProperties: any; +} + +/** + * @class + * Initializes a new instance of the CassandraTableDataset class. + * @constructor + * The Cassandra database dataset. + * + * @member {object} [tableName] The table name of the Cassandra database. Type: + * string (or Expression with resultType string). + * @member {object} [keyspace] The keyspace of the Cassandra database. Type: + * string (or Expression with resultType string). + */ +export interface CassandraTableDataset extends Dataset { + tableName?: any; + keyspace?: any; +} + +/** + * @class + * Initializes a new instance of the AzureSqlDWTableDataset class. + * @constructor + * The Azure SQL Data Warehouse dataset. + * + * @member {object} tableName The table name of the Azure SQL Data Warehouse. + * Type: string (or Expression with resultType string). + */ +export interface AzureSqlDWTableDataset extends Dataset { + tableName: any; +} + +/** + * @class + * Initializes a new instance of the AzureSqlTableDataset class. + * @constructor + * The Azure SQL Server database dataset. + * + * @member {object} tableName The table name of the Azure SQL database. Type: + * string (or Expression with resultType string). + */ +export interface AzureSqlTableDataset extends Dataset { + tableName: any; +} + +/** + * @class + * Initializes a new instance of the AzureTableDataset class. + * @constructor + * The Azure Table storage dataset. + * + * @member {object} tableName The table name of the Azure Table storage. Type: + * string (or Expression with resultType string). + */ +export interface AzureTableDataset extends Dataset { + tableName: any; +} + +/** + * @class + * Initializes a new instance of the AzureBlobDataset class. + * @constructor + * The Azure Blob storage. + * + * @member {object} [folderPath] The path of the Azure Blob storage. Type: + * string (or Expression with resultType string). + * @member {object} [tableRootLocation] The root of blob path. Type: string (or + * Expression with resultType string). + * @member {object} [fileName] The name of the Azure Blob. Type: string (or + * Expression with resultType string). + * @member {object} [format] The format of the Azure Blob storage. + * @member {object} [format.serializer] Serializer. Type: string (or Expression + * with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used for the blob + * storage. + * @member {string} [compression.type] Polymorphic Discriminator + */ +export interface AzureBlobDataset extends Dataset { + folderPath?: any; + tableRootLocation?: any; + fileName?: any; + format?: DatasetStorageFormat; + compression?: DatasetCompression; +} + +/** + * @class + * Initializes a new instance of the AmazonS3Dataset class. + * @constructor + * A single Amazon Simple Storage Service (S3) object or a set of S3 objects. + * + * @member {object} bucketName The name of the Amazon S3 bucket. Type: string + * (or Expression with resultType string). + * @member {object} [key] The key of the Amazon S3 object. Type: string (or + * Expression with resultType string). + * @member {object} [prefix] The prefix filter for the S3 object name. Type: + * string (or Expression with resultType string). + * @member {object} [version] The version for the S3 object. Type: string (or + * Expression with resultType string). + * @member {object} [format] The format of files. + * @member {object} [format.serializer] Serializer. Type: string (or Expression + * with resultType string). + * @member {object} [format.deserializer] Deserializer. Type: string (or + * Expression with resultType string). + * @member {string} [format.type] Polymorphic Discriminator + * @member {object} [compression] The data compression method used for the + * Amazon S3 object. + * @member {string} [compression.type] Polymorphic Discriminator + */ +export interface AmazonS3Dataset extends Dataset { + bucketName: any; + key?: any; + prefix?: any; + version?: any; + format?: DatasetStorageFormat; + compression?: DatasetCompression; +} + +/** + * @class + * Initializes a new instance of the RetryPolicy class. + * @constructor + * Execution policy for an activity. + * + * @member {object} [count] Maximum ordinary retry attempts. Default is 0. + * Type: integer (or Expression with resultType integer), minimum: 0. + * @member {number} [intervalInSeconds] Interval between retries in seconds. + * Default is 30. + */ +export interface RetryPolicy { + count?: any; + intervalInSeconds?: number; +} + +/** + * @class + * Initializes a new instance of the TumblingWindowTrigger class. + * @constructor + * Trigger that schedules pipeline runs for all fixed time interval windows + * from a start time without gaps and also supports backfill scenarios (when + * start time is in the past). + * + * @member {object} pipelineProperty Pipeline for which runs are created when + * an event is fired for trigger window that is ready. + * @member {object} [pipelineProperty.pipelineReference] Pipeline reference. + * @member {string} [pipelineProperty.pipelineReference.referenceName] + * Reference pipeline name. + * @member {string} [pipelineProperty.pipelineReference.name] Reference name. + * @member {object} [pipelineProperty.parameters] Pipeline parameters. + * @member {string} frequency The frequency of the time windows. Possible + * values include: 'Minute', 'Hour' + * @member {number} interval The interval of the time windows. The minimum + * interval allowed is 15 Minutes. + * @member {date} startTime The start time for the time period for the trigger + * during which events are fired for windows that are ready. Only UTC time is + * currently supported. + * @member {date} [endTime] The end time for the time period for the trigger + * during which events are fired for windows that are ready. Only UTC time is + * currently supported. + * @member {object} [delay] Specifies how long the trigger waits past due time + * before triggering new run. It doesn't alter window start and end time. The + * default is 0. Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {number} maxConcurrency The max number of parallel time windows + * (ready for execution) for which a new run is triggered. + * @member {object} [retryPolicy] Retry policy that will be applied for failed + * pipeline runs. + * @member {object} [retryPolicy.count] Maximum ordinary retry attempts. + * Default is 0. Type: integer (or Expression with resultType integer), + * minimum: 0. + * @member {number} [retryPolicy.intervalInSeconds] Interval between retries in + * seconds. Default is 30. + */ +export interface TumblingWindowTrigger extends Trigger { + pipelineProperty: TriggerPipelineReference; + frequency: string; + interval: number; + startTime: Date; + endTime?: Date; + delay?: any; + maxConcurrency: number; + retryPolicy?: RetryPolicy; +} + +/** + * @class + * Initializes a new instance of the MultiplePipelineTrigger class. + * @constructor + * Base class for all triggers that support one to many model for trigger to + * pipeline. + * + * @member {array} [pipelines] Pipelines that need to be started. + */ +export interface MultiplePipelineTrigger extends Trigger { + pipelines?: TriggerPipelineReference[]; +} + +/** + * @class + * Initializes a new instance of the BlobTrigger class. + * @constructor + * Trigger that runs everytime the selected Blob container changes. + * + * @member {string} folderPath The path of the container/folder that will + * trigger the pipeline. + * @member {number} maxConcurrency The max number of parallel files to handle + * when it is triggered. + * @member {object} linkedService The Azure Storage linked service reference. + * @member {string} [linkedService.referenceName] Reference LinkedService name. + * @member {object} [linkedService.parameters] Arguments for LinkedService. + */ +export interface BlobTrigger extends MultiplePipelineTrigger { + folderPath: string; + maxConcurrency: number; + linkedService: LinkedServiceReference; +} + +/** + * @class + * Initializes a new instance of the RecurrenceScheduleOccurrence class. + * @constructor + * The recurrence schedule occurence. + * + * @member {string} [day] The day of the week. Possible values include: + * 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' + * @member {number} [occurrence] The occurrence. + */ +export interface RecurrenceScheduleOccurrence { + day?: string; + occurrence?: number; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the RecurrenceSchedule class. + * @constructor + * The recurrence schedule. + * + * @member {array} [minutes] The minutes. + * @member {array} [hours] The hours. + * @member {array} [weekDays] The days of the week. + * @member {array} [monthDays] The month days. + * @member {array} [monthlyOccurrences] The monthly occurrences. + */ +export interface RecurrenceSchedule { + minutes?: number[]; + hours?: number[]; + weekDays?: string[]; + monthDays?: number[]; + monthlyOccurrences?: RecurrenceScheduleOccurrence[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ScheduleTriggerRecurrence class. + * @constructor + * The workflow trigger recurrence. + * + * @member {string} [frequency] The frequency. Possible values include: + * 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' + * @member {number} [interval] The interval. + * @member {date} [startTime] The start time. + * @member {date} [endTime] The end time. + * @member {string} [timeZone] The time zone. + * @member {object} [schedule] The recurrence schedule. + * @member {array} [schedule.minutes] The minutes. + * @member {array} [schedule.hours] The hours. + * @member {array} [schedule.weekDays] The days of the week. + * @member {array} [schedule.monthDays] The month days. + * @member {array} [schedule.monthlyOccurrences] The monthly occurrences. + */ +export interface ScheduleTriggerRecurrence { + frequency?: string; + interval?: number; + startTime?: Date; + endTime?: Date; + timeZone?: string; + schedule?: RecurrenceSchedule; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ScheduleTrigger class. + * @constructor + * Trigger that creates pipeline runs periodically, on schedule. + * + * @member {object} recurrence Recurrence schedule configuration. + * @member {string} [recurrence.frequency] The frequency. Possible values + * include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' + * @member {number} [recurrence.interval] The interval. + * @member {date} [recurrence.startTime] The start time. + * @member {date} [recurrence.endTime] The end time. + * @member {string} [recurrence.timeZone] The time zone. + * @member {object} [recurrence.schedule] The recurrence schedule. + * @member {array} [recurrence.schedule.minutes] The minutes. + * @member {array} [recurrence.schedule.hours] The hours. + * @member {array} [recurrence.schedule.weekDays] The days of the week. + * @member {array} [recurrence.schedule.monthDays] The month days. + * @member {array} [recurrence.schedule.monthlyOccurrences] The monthly + * occurrences. + */ +export interface ScheduleTrigger extends MultiplePipelineTrigger { + recurrence: ScheduleTriggerRecurrence; +} + +/** + * @class + * Initializes a new instance of the ActivityPolicy class. + * @constructor + * Execution policy for an activity. + * + * @member {object} [timeout] Specifies the timeout for the activity to run. + * The default timeout is 7 days. Type: string (or Expression with resultType + * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [retry] Maximum ordinary retry attempts. Default is 0. + * 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. + */ +export interface ActivityPolicy { + timeout?: any; + retry?: any; + retryIntervalInSeconds?: number; + secureOutput?: boolean; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ExecutionActivity class. + * @constructor + * Base class for all execution activities. + * + * @member {object} [linkedServiceName] Linked service reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. + * @member {object} [policy] Activity policy. + * @member {object} [policy.timeout] Specifies the timeout for the activity to + * run. The default timeout is 7 days. Type: string (or Expression with + * resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [policy.retry] Maximum ordinary retry attempts. Default is + * 0. Type: integer (or Expression with resultType integer), minimum: 0. + * @member {number} [policy.retryIntervalInSeconds] Interval between each retry + * attempt (in seconds). The default is 30 sec. + * @member {boolean} [policy.secureOutput] When set to true, Output from + * activity is considered as secure and will not be logged to monitoring. + */ +export interface ExecutionActivity extends Activity { + linkedServiceName?: LinkedServiceReference; + policy?: ActivityPolicy; +} + +/** + * @class + * Initializes a new instance of the DatabricksNotebookActivity class. + * @constructor + * DatabricksNotebook activity. + * + * @member {object} notebookPath The absolute path of the notebook to be run in + * the Databricks Workspace. This path must begin with a slash. Type: string + * (or Expression with resultType string). + * @member {object} [baseParameters] Base parameters to be used for each run of + * this job.If the notebook takes a parameter that is not specified, the + * default value from the notebook will be used. + */ +export interface DatabricksNotebookActivity extends ExecutionActivity { + notebookPath: any; + baseParameters?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the DataLakeAnalyticsUSQLActivity class. + * @constructor + * Data Lake Analytics U-SQL activity. + * + * @member {object} scriptPath Case-sensitive path to folder that contains the + * U-SQL script. Type: string (or Expression with resultType string). + * @member {object} scriptLinkedService Script linked service reference. + * @member {string} [scriptLinkedService.referenceName] Reference LinkedService + * name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [degreeOfParallelism] The maximum number of nodes + * simultaneously used to run the job. Default value is 1. Type: integer (or + * Expression with resultType integer), minimum: 1. + * @member {object} [priority] Determines which jobs out of all that are queued + * should be selected to run first. The lower the number, the higher the + * priority. Default value is 1000. Type: integer (or Expression with + * resultType integer), minimum: 1. + * @member {object} [parameters] Parameters for U-SQL job request. + * @member {object} [runtimeVersion] Runtime version of the U-SQL engine to + * use. Type: string (or Expression with resultType string). + * @member {object} [compilationMode] Compilation mode of U-SQL. Must be one of + * these values : Semantic, Full and SingleBox. Type: string (or Expression + * with resultType string). + */ +export interface DataLakeAnalyticsUSQLActivity extends ExecutionActivity { + scriptPath: any; + scriptLinkedService: LinkedServiceReference; + degreeOfParallelism?: any; + priority?: any; + parameters?: { [propertyName: string]: any }; + runtimeVersion?: any; + compilationMode?: any; +} + +/** + * @class + * Initializes a new instance of the AzureMLUpdateResourceActivity class. + * @constructor + * Azure ML Update Resource management activity. + * + * @member {object} trainedModelName Name of the Trained Model module in the + * Web Service experiment to be updated. Type: string (or Expression with + * resultType string). + * @member {object} trainedModelLinkedServiceName Name of Azure Storage linked + * service holding the .ilearner file that will be uploaded by the update + * operation. + * @member {string} [trainedModelLinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [trainedModelLinkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} trainedModelFilePath The relative file path in + * trainedModelLinkedService to represent the .ilearner file that will be + * uploaded by the update operation. Type: string (or Expression with + * resultType string). + */ +export interface AzureMLUpdateResourceActivity extends ExecutionActivity { + trainedModelName: any; + trainedModelLinkedServiceName: LinkedServiceReference; + trainedModelFilePath: any; +} + +/** + * @class + * Initializes a new instance of the AzureMLWebServiceFile class. + * @constructor + * Azure ML WebService Input/Output file + * + * @member {object} filePath The relative file path, including container name, + * in the Azure Blob Storage specified by the LinkedService. Type: string (or + * Expression with resultType string). + * @member {object} linkedServiceName Reference to an Azure Storage + * LinkedService, where Azure ML WebService Input/Output file located. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. + */ +export interface AzureMLWebServiceFile { + filePath: any; + linkedServiceName: LinkedServiceReference; +} + +/** + * @class + * Initializes a new instance of the AzureMLBatchExecutionActivity class. + * @constructor + * Azure ML Batch Execution activity. + * + * @member {object} [globalParameters] Key,Value pairs to be passed to the + * Azure ML Batch Execution Service endpoint. Keys must match the names of web + * service parameters defined in the published Azure ML web service. Values + * will be passed in the GlobalParameters property of the Azure ML batch + * execution request. + * @member {object} [webServiceOutputs] Key,Value pairs, mapping the names of + * Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects + * specifying the output Blob locations. This information will be passed in the + * WebServiceOutputs property of the Azure ML batch execution request. + * @member {object} [webServiceInputs] Key,Value pairs, mapping the names of + * Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects + * specifying the input Blob locations.. This information will be passed in the + * WebServiceInputs property of the Azure ML batch execution request. + */ +export interface AzureMLBatchExecutionActivity extends ExecutionActivity { + globalParameters?: { [propertyName: string]: any }; + webServiceOutputs?: { [propertyName: string]: AzureMLWebServiceFile }; + webServiceInputs?: { [propertyName: string]: AzureMLWebServiceFile }; +} + +/** + * @class + * Initializes a new instance of the GetMetadataActivity class. + * @constructor + * Activity to get metadata of dataset + * + * @member {object} dataset GetMetadata activity dataset reference. + * @member {string} [dataset.referenceName] Reference dataset name. + * @member {object} [dataset.parameters] Arguments for dataset. + * @member {array} [fieldList] Fields of metadata to get from dataset. + */ +export interface GetMetadataActivity extends ExecutionActivity { + dataset: DatasetReference; + fieldList?: any[]; +} + +/** + * @class + * Initializes a new instance of the WebActivityAuthentication class. + * @constructor + * Web activity authentication properties. + * + * @member {string} type Web activity authentication + * (Basic/ClientCertificate/MSI) + * @member {object} [pfx] Base64-encoded contents of a PFX file. + * @member {string} [pfx.value] Value of secure string. + * @member {string} [username] Web activity authentication user name for basic + * authentication. + * @member {object} [password] Password for the PFX file or basic + * authentication. + * @member {string} [password.value] Value of secure string. + * @member {string} [resource] Resource for which Azure Auth token will be + * requested when using MSI Authentication. + */ +export interface WebActivityAuthentication { + type: string; + pfx?: SecureString; + username?: string; + password?: SecureString; + resource?: string; +} + +/** + * @class + * Initializes a new instance of the WebActivity class. + * @constructor + * Web activity. + * + * @member {string} method Rest API method for target endpoint. Possible values + * include: 'GET', 'POST', 'PUT', 'DELETE' + * @member {object} url Web activity target endpoint and path. Type: string (or + * Expression with resultType string). + * @member {object} [headers] Represents the headers that will be sent to the + * request. For example, to set the language and type on a request: "headers" : + * { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: + * string (or Expression with resultType string). + * @member {object} [body] Represents the payload that will be sent to the + * endpoint. Required for POST/PUT method, not allowed for GET method Type: + * string (or Expression with resultType string). + * @member {object} [authentication] Authentication method used for calling the + * endpoint. + * @member {string} [authentication.type] Web activity authentication + * (Basic/ClientCertificate/MSI) + * @member {object} [authentication.pfx] Base64-encoded contents of a PFX file. + * @member {string} [authentication.pfx.value] Value of secure string. + * @member {string} [authentication.username] Web activity authentication user + * name for basic authentication. + * @member {object} [authentication.password] Password for the PFX file or + * basic authentication. + * @member {string} [authentication.password.value] Value of secure string. + * @member {string} [authentication.resource] Resource for which Azure Auth + * token will be requested when using MSI Authentication. + * @member {array} [datasets] List of datasets passed to web endpoint. + * @member {array} [linkedServices] List of linked services passed to web + * endpoint. + */ +export interface WebActivity extends ExecutionActivity { + method: string; + url: any; + headers?: any; + body?: any; + authentication?: WebActivityAuthentication; + datasets?: DatasetReference[]; + linkedServices?: LinkedServiceReference[]; +} + +/** + * @class + * Initializes a new instance of the RedshiftUnloadSettings class. + * @constructor + * The Amazon S3 settings needed for the interim Amazon S3 when copying from + * Amazon Redshift with unload. With this, data from Amazon Redshift source + * will be unloaded into S3 first and then copied into the targeted sink from + * the interim S3. + * + * @member {object} s3LinkedServiceName The name of the Amazon S3 linked + * service which will be used for the unload operation when copying from the + * Amazon Redshift source. + * @member {string} [s3LinkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [s3LinkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} bucketName The bucket of the interim Amazon S3 which will + * be used to store the unloaded data from Amazon Redshift source. The bucket + * must be in the same region as the Amazon Redshift source. Type: string (or + * Expression with resultType string). + */ +export interface RedshiftUnloadSettings { + s3LinkedServiceName: LinkedServiceReference; + bucketName: any; +} + +/** + * @class + * Initializes a new instance of the CopySource class. + * @constructor + * A copy activity source. + * + * @member {object} [sourceRetryCount] Source retry count. Type: integer (or + * Expression with resultType integer). + * @member {object} [sourceRetryWait] Source retry wait. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} type Polymorphic Discriminator + */ +export interface CopySource { + sourceRetryCount?: any; + sourceRetryWait?: any; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the AmazonRedshiftSource class. + * @constructor + * A copy activity source for Amazon Redshift Source. + * + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + * @member {object} [redshiftUnloadSettings] The Amazon S3 settings needed for + * the interim Amazon S3 when copying from Amazon Redshift with unload. With + * this, data from Amazon Redshift source will be unloaded into S3 first and + * then copied into the targeted sink from the interim S3. + * @member {object} [redshiftUnloadSettings.s3LinkedServiceName] The name of + * the Amazon S3 linked service which will be used for the unload operation + * when copying from the Amazon Redshift source. + * @member {string} [redshiftUnloadSettings.s3LinkedServiceName.referenceName] + * Reference LinkedService name. + * @member {object} [redshiftUnloadSettings.s3LinkedServiceName.parameters] + * Arguments for LinkedService. + * @member {object} [redshiftUnloadSettings.bucketName] The bucket of the + * interim Amazon S3 which will be used to store the unloaded data from Amazon + * Redshift source. The bucket must be in the same region as the Amazon + * Redshift source. Type: string (or Expression with resultType string). + */ +export interface AmazonRedshiftSource extends CopySource { + query?: any; + redshiftUnloadSettings?: RedshiftUnloadSettings; +} + +/** + * @class + * Initializes a new instance of the SalesforceMarketingCloudSource class. + * @constructor + * A copy activity Salesforce Marketing Cloud source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface SalesforceMarketingCloudSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the VerticaSource class. + * @constructor + * A copy activity Vertica source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface VerticaSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the NetezzaSource class. + * @constructor + * A copy activity Netezza source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface NetezzaSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the ZohoSource class. + * @constructor + * A copy activity Zoho server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface ZohoSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the XeroSource class. + * @constructor + * A copy activity Xero Serivce source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface XeroSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the SquareSource class. + * @constructor + * A copy activity Square Serivce source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface SquareSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the SparkSource class. + * @constructor + * A copy activity Spark Server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface SparkSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the ShopifySource class. + * @constructor + * A copy activity Shopify Serivce source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface ShopifySource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the ServiceNowSource class. + * @constructor + * A copy activity ServiceNow server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface ServiceNowSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the QuickBooksSource class. + * @constructor + * A copy activity QuickBooks server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface QuickBooksSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the PrestoSource class. + * @constructor + * A copy activity Presto server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface PrestoSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the PhoenixSource class. + * @constructor + * A copy activity Phoenix server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface PhoenixSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the PaypalSource class. + * @constructor + * A copy activity Paypal Serivce source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface PaypalSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the MarketoSource class. + * @constructor + * A copy activity Marketo server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface MarketoSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the MariaDBSource class. + * @constructor + * A copy activity MariaDB server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface MariaDBSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the MagentoSource class. + * @constructor + * A copy activity Magento server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface MagentoSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the JiraSource class. + * @constructor + * A copy activity Jira Serivce source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface JiraSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the ImpalaSource class. + * @constructor + * A copy activity Impala server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface ImpalaSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the HubspotSource class. + * @constructor + * A copy activity Hubspot Serivce source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface HubspotSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the HiveSource class. + * @constructor + * A copy activity Hive Server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface HiveSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the HBaseSource class. + * @constructor + * A copy activity HBase server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface HBaseSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the GreenplumSource class. + * @constructor + * A copy activity Greenplum Database source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface GreenplumSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the GoogleBigQuerySource class. + * @constructor + * A copy activity Google BigQuery service source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface GoogleBigQuerySource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the EloquaSource class. + * @constructor + * A copy activity Eloqua server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface EloquaSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the DrillSource class. + * @constructor + * A copy activity Drill server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface DrillSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the CouchbaseSource class. + * @constructor + * A copy activity Couchbase server source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface CouchbaseSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the ConcurSource class. + * @constructor + * A copy activity Concur Serivce source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface ConcurSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the AzurePostgreSqlSource class. + * @constructor + * A copy activity Azure PostgreSQL source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface AzurePostgreSqlSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the AmazonMWSSource class. + * @constructor + * A copy activity Amazon Marketplace Web Service source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface AmazonMWSSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the HttpSource class. + * @constructor + * A copy activity source for an HTTP file. + * + * @member {object} [httpRequestTimeout] Specifies the timeout for a HTTP + * client to get HTTP response from HTTP server. The default value is + * equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression + * with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ +export interface HttpSource extends CopySource { + httpRequestTimeout?: any; +} + +/** + * @class + * Initializes a new instance of the AzureDataLakeStoreSource class. + * @constructor + * A copy activity Azure Data Lake source. + * + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + */ +export interface AzureDataLakeStoreSource extends CopySource { + recursive?: any; +} + +/** + * @class + * Initializes a new instance of the MongoDbSource class. + * @constructor + * A copy activity source for a MongoDB database. + * + * @member {object} [query] Database query. Should be a SQL-92 query + * expression. Type: string (or Expression with resultType string). + */ +export interface MongoDbSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the CassandraSource class. + * @constructor + * A copy activity source for a Cassandra database. + * + * @member {object} [query] Database query. Should be a SQL-92 query expression + * or Cassandra Query Language (CQL) command. Type: string (or Expression with + * resultType string). + * @member {string} [consistencyLevel] The consistency level specifies how many + * Cassandra servers must respond to a read request before returning data to + * the client application. Cassandra checks the specified number of Cassandra + * servers for data to satisfy the read request. Must be one of + * cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is + * case-insensitive. Possible values include: 'ALL', 'EACH_QUORUM', 'QUORUM', + * 'LOCAL_QUORUM', 'ONE', 'TWO', 'THREE', 'LOCAL_ONE', 'SERIAL', 'LOCAL_SERIAL' + */ +export interface CassandraSource extends CopySource { + query?: any; + consistencyLevel?: string; +} + +/** + * @class + * Initializes a new instance of the WebSource class. + * @constructor + * A copy activity source for web page table. + * + */ +export interface WebSource extends CopySource { +} + +/** + * @class + * Initializes a new instance of the OracleSource class. + * @constructor + * A copy activity Oracle source. + * + * @member {object} [oracleReaderQuery] Oracle reader query. Type: string (or + * Expression with resultType string). + * @member {object} [queryTimeout] Query timeout. Type: string (or Expression + * with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ +export interface OracleSource extends CopySource { + oracleReaderQuery?: any; + queryTimeout?: any; +} + +/** + * @class + * Initializes a new instance of the AzureMySqlSource class. + * @constructor + * A copy activity Azure MySQL source. + * + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + */ +export interface AzureMySqlSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the DistcpSettings class. + * @constructor + * Distcp settings. + * + * @member {object} resourceManagerEndpoint Specifies the Yarn ResourceManager + * endpoint. Type: string (or Expression with resultType string). + * @member {object} tempScriptPath Specifies an existing folder path which will + * be used to store temp Distcp command script. The script file is generated by + * ADF and will be removed after Copy job finished. Type: string (or Expression + * with resultType string). + * @member {object} [distcpOptions] Specifies the Distcp options. Type: string + * (or Expression with resultType string). + */ +export interface DistcpSettings { + resourceManagerEndpoint: any; + tempScriptPath: any; + distcpOptions?: any; +} + +/** + * @class + * Initializes a new instance of the HdfsSource class. + * @constructor + * A copy activity HDFS source. + * + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [distcpSettings] Specifies Distcp-related settings. + * @member {object} [distcpSettings.resourceManagerEndpoint] Specifies the Yarn + * ResourceManager endpoint. Type: string (or Expression with resultType + * string). + * @member {object} [distcpSettings.tempScriptPath] Specifies an existing + * folder path which will be used to store temp Distcp command script. The + * script file is generated by ADF and will be removed after Copy job finished. + * Type: string (or Expression with resultType string). + * @member {object} [distcpSettings.distcpOptions] Specifies the Distcp + * options. Type: string (or Expression with resultType string). + */ +export interface HdfsSource extends CopySource { + recursive?: any; + distcpSettings?: DistcpSettings; +} + +/** + * @class + * Initializes a new instance of the FileSystemSource class. + * @constructor + * A copy activity file system source. + * + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + */ +export interface FileSystemSource extends CopySource { + recursive?: any; +} + +/** + * @class + * Initializes a new instance of the SqlDWSource class. + * @constructor + * A copy activity SQL Data Warehouse source. + * + * @member {object} [sqlReaderQuery] SQL Data Warehouse reader query. Type: + * string (or Expression with resultType string). + * @member {object} [sqlReaderStoredProcedureName] Name of the stored procedure + * for a SQL Data Warehouse source. This cannot be used at the same time as + * SqlReaderQuery. Type: string (or Expression with resultType string). + * @member {object} [storedProcedureParameters] Value and type setting for + * stored procedure parameters. Example: "{Parameter1: {value: "1", type: + * "int"}}". Type: object (or Expression with resultType object), itemType: + * StoredProcedureParameter. + */ +export interface SqlDWSource extends CopySource { + sqlReaderQuery?: any; + sqlReaderStoredProcedureName?: any; + storedProcedureParameters?: any; +} + +/** + * @class + * Initializes a new instance of the StoredProcedureParameter class. + * @constructor + * SQL stored procedure parameter. + * + * @member {object} value Stored procedure parameter value. Type: string (or + * Expression with resultType string). + * @member {string} [type] Stored procedure parameter type. Possible values + * include: 'String', 'Int', 'Decimal', 'Guid', 'Boolean', 'Date' + */ +export interface StoredProcedureParameter { + value: any; + type?: string; +} + +/** + * @class + * Initializes a new instance of the SqlSource class. + * @constructor + * A copy activity SQL source. + * + * @member {object} [sqlReaderQuery] SQL reader query. Type: string (or + * Expression with resultType string). + * @member {object} [sqlReaderStoredProcedureName] Name of the stored procedure + * for a SQL Database source. This cannot be used at the same time as + * SqlReaderQuery. Type: string (or Expression with resultType string). + * @member {object} [storedProcedureParameters] Value and type setting for + * stored procedure parameters. Example: "{Parameter1: {value: "1", type: + * "int"}}". + */ +export interface SqlSource extends CopySource { + sqlReaderQuery?: any; + sqlReaderStoredProcedureName?: any; + storedProcedureParameters?: { [propertyName: string]: StoredProcedureParameter }; +} + +/** + * @class + * Initializes a new instance of the SapEccSource class. + * @constructor + * A copy activity source for SAP ECC source. + * + * @member {string} [query] SAP ECC OData query. For example, "$top=1". Type: + * string (or Expression with resultType string). + */ +export interface SapEccSource extends CopySource { + query?: string; +} + +/** + * @class + * Initializes a new instance of the SapCloudForCustomerSource class. + * @constructor + * A copy activity source for SAP Cloud for Customer source. + * + * @member {object} [query] SAP Cloud for Customer OData query. For example, + * "$top=1". Type: string (or Expression with resultType string). + */ +export interface SapCloudForCustomerSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the SalesforceSource class. + * @constructor + * A copy activity Salesforce source. + * + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + * @member {string} [readBehavior] The read behavior for the operation. Default + * is Query. Possible values include: 'Query', 'QueryAll' + */ +export interface SalesforceSource extends CopySource { + query?: any; + readBehavior?: string; +} + +/** + * @class + * Initializes a new instance of the RelationalSource class. + * @constructor + * A copy activity source for various relational databases. + * + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + */ +export interface RelationalSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the DynamicsSource class. + * @constructor + * A copy activity Dynamics source. + * + * @member {object} [query] FetchXML is a proprietary query language that is + * used in Microsoft Dynamics (online & on-premises). Type: string (or + * Expression with resultType string). + */ +export interface DynamicsSource extends CopySource { + query?: any; +} + +/** + * @class + * Initializes a new instance of the DocumentDbCollectionSource class. + * @constructor + * A copy activity Document Database Collection source. + * + * @member {object} [query] Documents query. Type: string (or Expression with + * resultType string). + * @member {object} [nestingSeparator] Nested properties separator. Type: + * string (or Expression with resultType string). + */ +export interface DocumentDbCollectionSource extends CopySource { + query?: any; + nestingSeparator?: any; +} + +/** + * @class + * Initializes a new instance of the BlobSource class. + * @constructor + * A copy activity Azure Blob source. + * + * @member {object} [treatEmptyAsNull] Treat empty as null. Type: boolean (or + * Expression with resultType boolean). + * @member {object} [skipHeaderLineCount] Number of header lines to skip from + * each blob. Type: integer (or Expression with resultType integer). + * @member {object} [recursive] If true, files under the folder path will be + * read recursively. Default is true. Type: boolean (or Expression with + * resultType boolean). + */ +export interface BlobSource extends CopySource { + treatEmptyAsNull?: any; + skipHeaderLineCount?: any; + recursive?: any; +} + +/** + * @class + * Initializes a new instance of the AzureTableSource class. + * @constructor + * A copy activity Azure Table source. + * + * @member {object} [azureTableSourceQuery] Azure Table source query. Type: + * string (or Expression with resultType string). + * @member {object} [azureTableSourceIgnoreTableNotFound] Azure Table source + * ignore table not found. Type: boolean (or Expression with resultType + * boolean). + */ +export interface AzureTableSource extends CopySource { + azureTableSourceQuery?: any; + azureTableSourceIgnoreTableNotFound?: any; +} + +/** + * @class + * Initializes a new instance of the LookupActivity class. + * @constructor + * Lookup activity. + * + * @member {object} source Dataset-specific source properties, same as copy + * activity source. + * @member {object} [source.sourceRetryCount] Source retry count. Type: integer + * (or Expression with resultType integer). + * @member {object} [source.sourceRetryWait] Source retry wait. Type: string + * (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} [source.type] Polymorphic Discriminator + * @member {object} dataset Lookup activity dataset reference. + * @member {string} [dataset.referenceName] Reference dataset name. + * @member {object} [dataset.parameters] Arguments for dataset. + * @member {object} [firstRowOnly] Whether to return first row or all rows. + * Default value is true. Type: boolean (or Expression with resultType + * boolean). + */ +export interface LookupActivity extends ExecutionActivity { + source: CopySource; + dataset: DatasetReference; + firstRowOnly?: any; +} + +/** + * @class + * Initializes a new instance of the SqlServerStoredProcedureActivity class. + * @constructor + * SQL stored procedure activity type. + * + * @member {object} storedProcedureName Stored procedure name. Type: string (or + * Expression with resultType string). + * @member {object} [storedProcedureParameters] Value and type setting for + * stored procedure parameters. Example: "{Parameter1: {value: "1", type: + * "int"}}". + */ +export interface SqlServerStoredProcedureActivity extends ExecutionActivity { + storedProcedureName: any; + storedProcedureParameters?: { [propertyName: string]: StoredProcedureParameter }; +} + +/** + * @class + * Initializes a new instance of the CustomActivityReferenceObject class. + * @constructor + * Reference objects for custom activity + * + * @member {array} [linkedServices] Linked service references. + * @member {array} [datasets] Dataset references. + */ +export interface CustomActivityReferenceObject { + linkedServices?: LinkedServiceReference[]; + datasets?: DatasetReference[]; +} + +/** + * @class + * Initializes a new instance of the CustomActivity class. + * @constructor + * Custom activity type. + * + * @member {object} command Command for custom activity Type: string (or + * Expression with resultType string). + * @member {object} [resourceLinkedService] Resource linked service reference. + * @member {string} [resourceLinkedService.referenceName] Reference + * LinkedService name. + * @member {object} [resourceLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [folderPath] Folder path for resource files Type: string + * (or Expression with resultType string). + * @member {object} [referenceObjects] Reference objects + * @member {array} [referenceObjects.linkedServices] Linked service references. + * @member {array} [referenceObjects.datasets] Dataset references. + * @member {object} [extendedProperties] User defined property bag. There is no + * restriction on the keys or values that can be used. The user specified + * custom activity has the full responsibility to consume and interpret the + * content defined. + */ +export interface CustomActivity extends ExecutionActivity { + command: any; + resourceLinkedService?: LinkedServiceReference; + folderPath?: any; + referenceObjects?: CustomActivityReferenceObject; + extendedProperties?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the SSISPackageLocation class. + * @constructor + * SSIS package location. + * + * @member {string} packagePath The SSIS package path. + */ +export interface SSISPackageLocation { + packagePath: string; +} + +/** + * @class + * Initializes a new instance of the ExecuteSSISPackageActivity class. + * @constructor + * Execute SSIS package activity. + * + * @member {object} packageLocation SSIS package location. + * @member {string} [packageLocation.packagePath] The SSIS package path. + * @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 {object} connectVia The integration runtime reference. + * @member {string} [connectVia.referenceName] Reference integration runtime + * name. + * @member {object} [connectVia.parameters] Arguments for integration runtime. + */ +export interface ExecuteSSISPackageActivity extends ExecutionActivity { + packageLocation: SSISPackageLocation; + runtime?: string; + loggingLevel?: string; + environmentPath?: string; + connectVia: IntegrationRuntimeReference; +} + +/** + * @class + * Initializes a new instance of the HDInsightSparkActivity class. + * @constructor + * HDInsight Spark activity. + * + * @member {object} rootPath The root path in 'sparkJobLinkedService' for all + * the job’s files. Type: string (or Expression with resultType string). + * @member {object} entryFilePath The relative path to the root folder of the + * code/package to be executed. Type: string (or Expression with resultType + * string). + * @member {array} [argumentsProperty] The user-specified arguments to + * HDInsightSparkActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values include: + * 'None', 'Always', 'Failure' + * @member {object} [sparkJobLinkedService] The storage linked service for + * uploading the entry file and dependencies, and for receiving logs. + * @member {string} [sparkJobLinkedService.referenceName] Reference + * LinkedService name. + * @member {object} [sparkJobLinkedService.parameters] Arguments for + * LinkedService. + * @member {string} [className] The application's Java/Spark main class. + * @member {object} [proxyUser] The user to impersonate that will execute the + * job. Type: string (or Expression with resultType string). + * @member {object} [sparkConfig] Spark configuration property. + */ +export interface HDInsightSparkActivity extends ExecutionActivity { + rootPath: any; + entryFilePath: any; + argumentsProperty?: any[]; + getDebugInfo?: string; + sparkJobLinkedService?: LinkedServiceReference; + className?: string; + proxyUser?: any; + sparkConfig?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the HDInsightStreamingActivity class. + * @constructor + * HDInsight streaming activity type. + * + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values include: + * 'None', 'Always', 'Failure' + * @member {object} mapper Mapper executable name. Type: string (or Expression + * with resultType string). + * @member {object} reducer Reducer executable name. Type: string (or + * Expression with resultType string). + * @member {object} input Input blob path. Type: string (or Expression with + * resultType string). + * @member {object} output Output blob path. Type: string (or Expression with + * resultType string). + * @member {array} filePaths Paths to streaming job files. Can be directories. + * @member {object} [fileLinkedService] Linked service reference where the + * files are located. + * @member {string} [fileLinkedService.referenceName] Reference LinkedService + * name. + * @member {object} [fileLinkedService.parameters] Arguments for LinkedService. + * @member {object} [combiner] Combiner executable name. Type: string (or + * Expression with resultType string). + * @member {array} [commandEnvironment] Command line environment values. + * @member {object} [defines] Allows user to specify defines for streaming job + * request. + */ +export interface HDInsightStreamingActivity extends ExecutionActivity { + storageLinkedServices?: LinkedServiceReference[]; + argumentsProperty?: any[]; + getDebugInfo?: string; + mapper: any; + reducer: any; + input: any; + output: any; + filePaths: any[]; + fileLinkedService?: LinkedServiceReference; + combiner?: any; + commandEnvironment?: any[]; + defines?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the HDInsightMapReduceActivity class. + * @constructor + * HDInsight MapReduce activity type. + * + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values include: + * 'None', 'Always', 'Failure' + * @member {object} className Class name. Type: string (or Expression with + * resultType string). + * @member {object} jarFilePath Jar path. Type: string (or Expression with + * resultType string). + * @member {object} [jarLinkedService] Jar linked service reference. + * @member {string} [jarLinkedService.referenceName] Reference LinkedService + * name. + * @member {object} [jarLinkedService.parameters] Arguments for LinkedService. + * @member {array} [jarLibs] Jar libs. + * @member {object} [defines] Allows user to specify defines for the MapReduce + * job request. + */ +export interface HDInsightMapReduceActivity extends ExecutionActivity { + storageLinkedServices?: LinkedServiceReference[]; + argumentsProperty?: any[]; + getDebugInfo?: string; + className: any; + jarFilePath: any; + jarLinkedService?: LinkedServiceReference; + jarLibs?: any[]; + defines?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the HDInsightPigActivity class. + * @constructor + * HDInsight Pig activity type. + * + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values include: + * 'None', 'Always', 'Failure' + * @member {object} [scriptPath] Script path. Type: string (or Expression with + * resultType string). + * @member {object} [scriptLinkedService] Script linked service reference. + * @member {string} [scriptLinkedService.referenceName] Reference LinkedService + * name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [defines] Allows user to specify defines for Pig job + * request. + */ +export interface HDInsightPigActivity extends ExecutionActivity { + storageLinkedServices?: LinkedServiceReference[]; + argumentsProperty?: any[]; + getDebugInfo?: string; + scriptPath?: any; + scriptLinkedService?: LinkedServiceReference; + defines?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the HDInsightHiveActivity class. + * @constructor + * HDInsight Hive activity type. + * + * @member {array} [storageLinkedServices] Storage linked service references. + * @member {array} [argumentsProperty] User specified arguments to + * HDInsightActivity. + * @member {string} [getDebugInfo] Debug info option. Possible values include: + * 'None', 'Always', 'Failure' + * @member {object} [scriptPath] Script path. Type: string (or Expression with + * resultType string). + * @member {object} [scriptLinkedService] Script linked service reference. + * @member {string} [scriptLinkedService.referenceName] Reference LinkedService + * name. + * @member {object} [scriptLinkedService.parameters] Arguments for + * LinkedService. + * @member {object} [defines] Allows user to specify defines for Hive job + * request. + */ +export interface HDInsightHiveActivity extends ExecutionActivity { + storageLinkedServices?: LinkedServiceReference[]; + argumentsProperty?: any[]; + getDebugInfo?: string; + scriptPath?: any; + scriptLinkedService?: LinkedServiceReference; + defines?: { [propertyName: string]: any }; +} + +/** + * @class + * Initializes a new instance of the RedirectIncompatibleRowSettings class. + * @constructor + * Redirect incompatible row settings + * + * @member {object} linkedServiceName Name of the Azure Storage, Storage SAS, + * or Azure Data Lake Store linked service used for redirecting incompatible + * row. Must be specified if redirectIncompatibleRowSettings is specified. + * Type: string (or Expression with resultType string). + * @member {object} [path] The path for storing the redirect incompatible row + * data. Type: string (or Expression with resultType string). + */ +export interface RedirectIncompatibleRowSettings { + linkedServiceName: any; + path?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the StagingSettings class. + * @constructor + * Staging settings. + * + * @member {object} linkedServiceName Staging linked service reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for LinkedService. + * @member {object} [path] The path to storage for storing the interim data. + * Type: string (or Expression with resultType string). + * @member {object} [enableCompression] Specifies whether to use compression + * when copying data via an interim staging. Default value is false. Type: + * boolean (or Expression with resultType boolean). + */ +export interface StagingSettings { + linkedServiceName: LinkedServiceReference; + path?: any; + enableCompression?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the CopyTranslator class. + * @constructor + * A copy activity translator. + * + * @member {string} type Polymorphic Discriminator + */ +export interface CopyTranslator { + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the TabularTranslator class. + * @constructor + * A copy activity tabular translator. + * + * @member {object} [columnMappings] Column mappings. Type: string (or + * Expression with resultType string). + */ +export interface TabularTranslator extends CopyTranslator { + columnMappings?: any; +} + +/** + * @class + * Initializes a new instance of the CopySink class. + * @constructor + * A copy activity sink. + * + * @member {object} [writeBatchSize] Write batch size. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {object} [writeBatchTimeout] Write batch timeout. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [sinkRetryCount] Sink retry count. Type: integer (or + * Expression with resultType integer). + * @member {object} [sinkRetryWait] Sink retry wait. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} type Polymorphic Discriminator + */ +export interface CopySink { + writeBatchSize?: any; + writeBatchTimeout?: any; + sinkRetryCount?: any; + sinkRetryWait?: any; + type: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the SalesforceSink class. + * @constructor + * A copy activity Salesforce sink. + * + * @member {string} [writeBehavior] The write behavior for the operation. + * Default is Insert. Possible values include: 'Insert', 'Upsert' + * @member {object} [externalIdFieldName] The name of the external ID field for + * upsert operation. Default value is 'Id' column. Type: string (or Expression + * with resultType string). + * @member {object} [ignoreNullValues] The flag indicating whether or not to + * ignore null values from input dataset (except key fields) during write + * operation. Default value is false. If set it to true, it means ADF will + * leave the data in the destination object unchanged when doing upsert/update + * operation and insert defined default value when doing insert operation, + * versus ADF will update the data in the destination object to NULL when doing + * upsert/update operation and insert NULL value when doing insert operation. + * Type: boolean (or Expression with resultType boolean). + */ +export interface SalesforceSink extends CopySink { + writeBehavior?: string; + externalIdFieldName?: any; + ignoreNullValues?: any; +} + +/** + * @class + * Initializes a new instance of the DynamicsSink class. + * @constructor + * A copy activity Dynamics sink. + * + * @member {object} [ignoreNullValues] The flag indicating whether ignore null + * values from input dataset (except key fields) during write operation. + * Default is false. Type: boolean (or Expression with resultType boolean). + */ +export interface DynamicsSink extends CopySink { + ignoreNullValues?: any; +} + +/** + * @class + * Initializes a new instance of the OdbcSink class. + * @constructor + * A copy activity ODBC sink. + * + * @member {object} [preCopyScript] A query to execute before starting the + * copy. Type: string (or Expression with resultType string). + */ +export interface OdbcSink extends CopySink { + preCopyScript?: any; +} + +/** + * @class + * Initializes a new instance of the AzureSearchIndexSink class. + * @constructor + * A copy activity Azure Search Index sink. + * + * @member {string} [writeBehavior] Specify the write behavior when upserting + * documents into Azure Search Index. Possible values include: 'Merge', + * 'Upload' + */ +export interface AzureSearchIndexSink extends CopySink { + writeBehavior?: string; +} + +/** + * @class + * Initializes a new instance of the AzureDataLakeStoreSink class. + * @constructor + * A copy activity Azure Data Lake Store sink. + * + * @member {string} [copyBehavior] The type of copy behavior for copy sink. + * Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', + * 'MergeFiles' + */ +export interface AzureDataLakeStoreSink extends CopySink { + copyBehavior?: string; +} + +/** + * @class + * Initializes a new instance of the OracleSink class. + * @constructor + * A copy activity Oracle sink. + * + * @member {object} [preCopyScript] SQL pre-copy script. Type: string (or + * Expression with resultType string). + */ +export interface OracleSink extends CopySink { + preCopyScript?: any; +} + +/** + * @class + * Initializes a new instance of the PolybaseSettings class. + * @constructor + * PolyBase settings. + * + * @member {string} [rejectType] Reject type. Possible values include: 'value', + * 'percentage' + * @member {object} [rejectValue] Specifies the value or the percentage of rows + * that can be rejected before the query fails. Type: number (or Expression + * with resultType number), minimum: 0. + * @member {object} [rejectSampleValue] Determines the number of rows to + * attempt to retrieve before the PolyBase recalculates the percentage of + * rejected rows. Type: integer (or Expression with resultType integer), + * minimum: 0. + * @member {object} [useTypeDefault] Specifies how to handle missing values in + * delimited text files when PolyBase retrieves data from the text file. Type: + * boolean (or Expression with resultType boolean). + */ +export interface PolybaseSettings { + rejectType?: string; + rejectValue?: any; + rejectSampleValue?: any; + useTypeDefault?: any; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the SqlDWSink class. + * @constructor + * A copy activity SQL Data Warehouse sink. + * + * @member {object} [preCopyScript] SQL pre-copy script. Type: string (or + * Expression with resultType string). + * @member {object} [allowPolyBase] Indicates to use PolyBase to copy data into + * SQL Data Warehouse when applicable. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [polyBaseSettings] Specifies PolyBase-related settings when + * allowPolyBase is true. + * @member {string} [polyBaseSettings.rejectType] Reject type. Possible values + * include: 'value', 'percentage' + * @member {object} [polyBaseSettings.rejectValue] Specifies the value or the + * percentage of rows that can be rejected before the query fails. Type: number + * (or Expression with resultType number), minimum: 0. + * @member {object} [polyBaseSettings.rejectSampleValue] Determines the number + * of rows to attempt to retrieve before the PolyBase recalculates the + * percentage of rejected rows. Type: integer (or Expression with resultType + * integer), minimum: 0. + * @member {object} [polyBaseSettings.useTypeDefault] Specifies how to handle + * missing values in delimited text files when PolyBase retrieves data from the + * text file. Type: boolean (or Expression with resultType boolean). + */ +export interface SqlDWSink extends CopySink { + preCopyScript?: any; + allowPolyBase?: any; + polyBaseSettings?: PolybaseSettings; +} + +/** + * @class + * Initializes a new instance of the SqlSink class. + * @constructor + * A copy activity SQL sink. + * + * @member {object} [sqlWriterStoredProcedureName] SQL writer stored procedure + * name. Type: string (or Expression with resultType string). + * @member {object} [sqlWriterTableType] SQL writer table type. Type: string + * (or Expression with resultType string). + * @member {object} [preCopyScript] SQL pre-copy script. Type: string (or + * Expression with resultType string). + * @member {object} [storedProcedureParameters] SQL stored procedure + * parameters. + */ +export interface SqlSink extends CopySink { + sqlWriterStoredProcedureName?: any; + sqlWriterTableType?: any; + preCopyScript?: any; + storedProcedureParameters?: { [propertyName: string]: StoredProcedureParameter }; +} + +/** + * @class + * Initializes a new instance of the DocumentDbCollectionSink class. + * @constructor + * A copy activity Document Database Collection sink. + * + * @member {object} [nestingSeparator] Nested properties separator. Default is + * . (dot). Type: string (or Expression with resultType string). + */ +export interface DocumentDbCollectionSink extends CopySink { + nestingSeparator?: any; +} + +/** + * @class + * Initializes a new instance of the FileSystemSink class. + * @constructor + * A copy activity file system sink. + * + * @member {string} [copyBehavior] The type of copy behavior for copy sink. + * Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', + * 'MergeFiles' + */ +export interface FileSystemSink extends CopySink { + copyBehavior?: string; +} + +/** + * @class + * Initializes a new instance of the BlobSink class. + * @constructor + * A copy activity Azure Blob sink. + * + * @member {object} [blobWriterOverwriteFiles] Blob writer overwrite files. + * Type: boolean (or Expression with resultType boolean). + * @member {object} [blobWriterDateTimeFormat] Blob writer date time format. + * Type: string (or Expression with resultType string). + * @member {object} [blobWriterAddHeader] Blob writer add header. Type: boolean + * (or Expression with resultType boolean). + * @member {string} [copyBehavior] The type of copy behavior for copy sink. + * Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', + * 'MergeFiles' + */ +export interface BlobSink extends CopySink { + blobWriterOverwriteFiles?: any; + blobWriterDateTimeFormat?: any; + blobWriterAddHeader?: any; + copyBehavior?: string; +} + +/** + * @class + * Initializes a new instance of the AzureTableSink class. + * @constructor + * A copy activity Azure Table sink. + * + * @member {object} [azureTableDefaultPartitionKeyValue] Azure Table default + * partition key value. Type: string (or Expression with resultType string). + * @member {object} [azureTablePartitionKeyName] Azure Table partition key + * name. Type: string (or Expression with resultType string). + * @member {object} [azureTableRowKeyName] Azure Table row key name. Type: + * string (or Expression with resultType string). + * @member {object} [azureTableInsertType] Azure Table insert type. Type: + * string (or Expression with resultType string). + */ +export interface AzureTableSink extends CopySink { + azureTableDefaultPartitionKeyValue?: any; + azureTablePartitionKeyName?: any; + azureTableRowKeyName?: any; + azureTableInsertType?: any; +} + +/** + * @class + * Initializes a new instance of the AzureQueueSink class. + * @constructor + * A copy activity Azure Queue sink. + * + */ +export interface AzureQueueSink extends CopySink { +} + +/** + * @class + * Initializes a new instance of the SapCloudForCustomerSink class. + * @constructor + * A copy activity SAP Cloud for Customer sink. + * + * @member {string} [writeBehavior] The write behavior for the operation. + * Default is 'Insert'. Possible values include: 'Insert', 'Update' + */ +export interface SapCloudForCustomerSink extends CopySink { + writeBehavior?: string; +} + +/** + * @class + * Initializes a new instance of the CopyActivity class. + * @constructor + * Copy activity. + * + * @member {object} source Copy activity source. + * @member {object} [source.sourceRetryCount] Source retry count. Type: integer + * (or Expression with resultType integer). + * @member {object} [source.sourceRetryWait] Source retry wait. Type: string + * (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} [source.type] Polymorphic Discriminator + * @member {object} sink Copy activity sink. + * @member {object} [sink.writeBatchSize] Write batch size. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {object} [sink.writeBatchTimeout] Write batch timeout. Type: string + * (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {object} [sink.sinkRetryCount] Sink retry count. Type: integer (or + * Expression with resultType integer). + * @member {object} [sink.sinkRetryWait] Sink retry wait. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} [sink.type] Polymorphic Discriminator + * @member {object} [translator] Copy activity translator. If not specificed, + * tabular translator is used. + * @member {string} [translator.type] Polymorphic Discriminator + * @member {object} [enableStaging] Specifies whether to copy data via an + * interim staging. Default value is false. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [stagingSettings] Specifies interim staging settings when + * EnableStaging is true. + * @member {object} [stagingSettings.linkedServiceName] Staging linked service + * reference. + * @member {string} [stagingSettings.linkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [stagingSettings.linkedServiceName.parameters] Arguments + * for LinkedService. + * @member {object} [stagingSettings.path] The path to storage for storing the + * interim data. Type: string (or Expression with resultType string). + * @member {object} [stagingSettings.enableCompression] Specifies whether to + * use compression when copying data via an interim staging. Default value is + * false. Type: boolean (or Expression with resultType boolean). + * @member {object} [parallelCopies] Maximum number of concurrent sessions + * opened on the source or sink to avoid overloading the data store. Type: + * integer (or Expression with resultType integer), minimum: 0. + * @member {object} [cloudDataMovementUnits] Maximum number of cloud data + * movement units that can be used to perform this data movement. Type: integer + * (or Expression with resultType integer), minimum: 0. + * @member {object} [enableSkipIncompatibleRow] Whether to skip incompatible + * row. Default value is false. Type: boolean (or Expression with resultType + * boolean). + * @member {object} [redirectIncompatibleRowSettings] Redirect incompatible row + * settings when EnableSkipIncompatibleRow is true. + * @member {object} [redirectIncompatibleRowSettings.linkedServiceName] Name of + * the Azure Storage, Storage SAS, or Azure Data Lake Store linked service used + * for redirecting incompatible row. Must be specified if + * redirectIncompatibleRowSettings is specified. Type: string (or Expression + * with resultType string). + * @member {object} [redirectIncompatibleRowSettings.path] The path for storing + * the redirect incompatible row data. Type: string (or Expression with + * resultType string). + * @member {array} [inputs] List of inputs for the activity. + * @member {array} [outputs] List of outputs for the activity. + */ +export interface CopyActivity extends ExecutionActivity { + source: CopySource; + sink: CopySink; + translator?: CopyTranslator; + enableStaging?: any; + stagingSettings?: StagingSettings; + parallelCopies?: any; + cloudDataMovementUnits?: any; + enableSkipIncompatibleRow?: any; + redirectIncompatibleRowSettings?: RedirectIncompatibleRowSettings; + inputs?: DatasetReference[]; + outputs?: DatasetReference[]; +} + +/** + * @class + * Initializes a new instance of the ControlActivity class. + * @constructor + * Base class for all control activities like IfCondition, ForEach , Until. + * + */ +export interface ControlActivity extends Activity { +} + +/** + * @class + * Initializes a new instance of the FilterActivity class. + * @constructor + * Filter and return results from input array based on the conditions. + * + * @member {object} items Input array on which filter should be applied. + * @member {string} [items.value] Expression value. + * @member {object} condition Condition to be used for filtering the input. + * @member {string} [condition.value] Expression value. + */ +export interface FilterActivity extends ControlActivity { + items: Expression; + condition: Expression; +} + +/** + * @class + * Initializes a new instance of the UntilActivity class. + * @constructor + * This activity executes inner activities until the specified boolean + * expression results to true or timeout is reached, whichever is earlier. + * + * @member {object} expression An expression that would evaluate to Boolean. + * The loop will continue until this expression evaluates to true + * @member {string} [expression.value] Expression value. + * @member {object} [timeout] Specifies the timeout for the activity to run. If + * there is no value specified, it takes the value of TimeSpan.FromDays(7) + * which is 1 week as default. Type: string (or Expression with resultType + * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {array} activities List of activities to execute. + */ +export interface UntilActivity extends ControlActivity { + expression: Expression; + timeout?: any; + activities: Activity[]; +} + +/** + * @class + * Initializes a new instance of the WaitActivity class. + * @constructor + * This activity suspends pipeline execution for the specified interval. + * + * @member {number} waitTimeInSeconds Duration in seconds. + */ +export interface WaitActivity extends ControlActivity { + waitTimeInSeconds: number; +} + +/** + * @class + * Initializes a new instance of the ForEachActivity class. + * @constructor + * This activity is used for iterating over a collection and execute given + * activities. + * + * @member {boolean} [isSequential] Should the loop be executed in sequence or + * in parallel (max 50) + * @member {number} [batchCount] Batch count to be used for controlling the + * number of parallel execution (when isSequential is set to false). + * @member {object} items Collection to iterate. + * @member {string} [items.value] Expression value. + * @member {array} activities List of activities to execute . + */ +export interface ForEachActivity extends ControlActivity { + isSequential?: boolean; + batchCount?: number; + items: Expression; + activities: Activity[]; +} + +/** + * @class + * Initializes a new instance of the IfConditionActivity class. + * @constructor + * This activity evaluates a boolean expression and executes either the + * activities under the ifTrueActivities property or the ifFalseActivities + * property depending on the result of the expression. + * + * @member {object} expression An expression that would evaluate to Boolean. + * This is used to determine the block of activities (ifTrueActivities or + * ifFalseActivities) that will be executed. + * @member {string} [expression.value] Expression value. + * @member {array} [ifTrueActivities] List of activities to execute if + * expression is evaluated to true. This is an optional property and if not + * provided, the activity will exit without any action. + * @member {array} [ifFalseActivities] List of activities to execute if + * expression is evaluated to false. This is an optional property and if not + * provided, the activity will exit without any action. + */ +export interface IfConditionActivity extends ControlActivity { + expression: Expression; + ifTrueActivities?: Activity[]; + ifFalseActivities?: Activity[]; +} + +/** + * @class + * Initializes a new instance of the ExecutePipelineActivity class. + * @constructor + * Execute pipeline activity. + * + * @member {object} pipelineProperty Pipeline reference. + * @member {string} [pipelineProperty.referenceName] Reference pipeline name. + * @member {string} [pipelineProperty.name] Reference name. + * @member {object} [parameters] Pipeline parameters. + * @member {boolean} [waitOnCompletion] Defines whether activity execution will + * wait for the dependent pipeline execution to finish. Default is false. + */ +export interface ExecutePipelineActivity extends ControlActivity { + pipelineProperty: PipelineReference; + parameters?: { [propertyName: string]: any }; + waitOnCompletion?: boolean; +} + +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntime class. + * @constructor + * The linked integration runtime information. + * + * @member {string} [name] The name of the linked integration runtime. + * @member {string} [subscriptionId] The subscription ID for which the linked + * integration runtime belong to. + * @member {string} [dataFactoryName] The name of the data factory for which + * the linked integration runtime belong to. + * @member {string} [dataFactoryLocation] The location of the data factory for + * which the linked integration runtime belong to. + * @member {date} [createTime] The creating time of the linked integration + * runtime. + */ +export interface LinkedIntegrationRuntime { + readonly name?: string; + readonly subscriptionId?: string; + readonly dataFactoryName?: string; + readonly dataFactoryLocation?: string; + readonly createTime?: Date; +} + +/** + * @class + * Initializes a new instance of the SelfHostedIntegrationRuntimeNode class. + * @constructor + * Properties of Self-hosted integration runtime node. + * + * @member {string} [nodeName] Name of the integration runtime node. + * @member {string} [machineName] Machine name of the integration runtime node. + * @member {string} [hostServiceUri] URI for the host machine of the + * integration runtime. + * @member {string} [status] Status of the integration runtime node. Possible + * values include: 'NeedRegistration', 'Online', 'Limited', 'Offline', + * 'Upgrading', 'Initializing', 'InitializeFailed' + * @member {object} [capabilities] The integration runtime capabilities + * dictionary + * @member {string} [versionStatus] Status of the integration runtime node + * version. + * @member {string} [version] Version of the integration runtime node. + * @member {date} [registerTime] The time at which the integration runtime node + * was registered in ISO8601 format. + * @member {date} [lastConnectTime] The most recent time at which the + * integration runtime was connected in ISO8601 format. + * @member {date} [expiryTime] The time at which the integration runtime will + * expire in ISO8601 format. + * @member {date} [lastStartTime] The time the node last started up. + * @member {date} [lastStopTime] The integration runtime node last stop time. + * @member {string} [lastUpdateResult] The result of the last integration + * runtime node update. Possible values include: 'Succeed', 'Fail' + * @member {date} [lastStartUpdateTime] The last time for the integration + * runtime node update start. + * @member {date} [lastEndUpdateTime] The last time for the integration runtime + * node update end. + * @member {boolean} [isActiveDispatcher] Indicates whether this node is the + * active dispatcher for integration runtime requests. + * @member {number} [concurrentJobsLimit] Maximum concurrent jobs on the + * integration runtime node. + * @member {number} [maxConcurrentJobs] The maximum concurrent jobs in this + * integration runtime. + */ +export interface SelfHostedIntegrationRuntimeNode { + readonly nodeName?: string; + readonly machineName?: string; + readonly hostServiceUri?: string; + readonly status?: string; + readonly capabilities?: { [propertyName: string]: string }; + readonly versionStatus?: string; + readonly version?: string; + readonly registerTime?: Date; + readonly lastConnectTime?: Date; + readonly expiryTime?: Date; + readonly lastStartTime?: Date; + readonly lastStopTime?: Date; + readonly lastUpdateResult?: string; + readonly lastStartUpdateTime?: Date; + readonly lastEndUpdateTime?: Date; + readonly isActiveDispatcher?: boolean; + readonly concurrentJobsLimit?: number; + readonly maxConcurrentJobs?: number; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the SelfHostedIntegrationRuntimeStatus class. + * @constructor + * Self-hosted integration runtime status. + * + * @member {date} [createTime] The time at which the integration runtime was + * created, in ISO8601 format. + * @member {string} [taskQueueId] The task queue id of the integration runtime. + * @member {string} [internalChannelEncryption] It is used to set the + * encryption mode for node-node communication channel (when more than 2 + * self-hosted integration runtime nodes exist). Possible values include: + * 'NotSet', 'SslEncrypted', 'NotEncrypted' + * @member {string} [version] Version of the integration runtime. + * @member {array} [nodes] The list of nodes for this integration runtime. + * @member {date} [scheduledUpdateDate] The date at which the integration + * runtime will be scheduled to update, in ISO8601 format. + * @member {string} [updateDelayOffset] The time in the date scheduled by + * service to update the integration runtime, e.g., PT03H is 3 hours + * @member {string} [localTimeZoneOffset] The local time zone offset in hours. + * @member {object} [capabilities] Object with additional information about + * integration runtime capabilities. + * @member {array} [serviceUrls] The URLs for the services used in integration + * runtime backend service. + * @member {string} [autoUpdate] Whether Self-hosted integration runtime auto + * update has been turned on. Possible values include: 'On', 'Off' + * @member {string} [versionStatus] Status of the integration runtime version. + * @member {array} [links] The list of linked integration runtimes that are + * created to share with this integration runtime. + */ +export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { + readonly createTime?: Date; + readonly taskQueueId?: string; + readonly internalChannelEncryption?: string; + readonly version?: string; + nodes?: SelfHostedIntegrationRuntimeNode[]; + readonly scheduledUpdateDate?: Date; + readonly updateDelayOffset?: string; + readonly localTimeZoneOffset?: string; + readonly capabilities?: { [propertyName: string]: string }; + readonly serviceUrls?: string[]; + readonly autoUpdate?: string; + readonly versionStatus?: string; + links?: LinkedIntegrationRuntime[]; +} + +/** + * @class + * Initializes a new instance of the ManagedIntegrationRuntimeOperationResult class. + * @constructor + * Properties of managed integration runtime operation result. + * + * @member {string} [type] The operation type. Could be start or stop. + * @member {date} [startTime] The start time of the operation. + * @member {string} [result] The operation result. + * @member {string} [errorCode] The error code. + * @member {array} [parameters] Managed integration runtime error parameters. + * @member {string} [activityId] The activity id for the operation request. + */ +export interface ManagedIntegrationRuntimeOperationResult { + readonly type?: string; + readonly startTime?: Date; + readonly result?: string; + readonly errorCode?: string; + readonly parameters?: string[]; + readonly activityId?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ManagedIntegrationRuntimeError class. + * @constructor + * Error definition for managed integration runtime. + * + * @member {date} [time] The time when the error occurred. + * @member {string} [code] Error code. + * @member {array} [parameters] Managed integration runtime error parameters. + * @member {string} [message] Error message. + */ +export interface ManagedIntegrationRuntimeError { + readonly time?: Date; + readonly code?: string; + readonly parameters?: string[]; + readonly message?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ManagedIntegrationRuntimeNode class. + * @constructor + * Properties of integration runtime node. + * + * @member {string} [nodeId] The managed integration runtime node id. + * @member {string} [status] The managed integration runtime node status. + * Possible values include: 'Starting', 'Available', 'Recycling', 'Unavailable' + * @member {array} [errors] The errors that occurred on this integration + * runtime node. + */ +export interface ManagedIntegrationRuntimeNode { + readonly nodeId?: string; + readonly status?: string; + errors?: ManagedIntegrationRuntimeError[]; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ManagedIntegrationRuntimeStatus class. + * @constructor + * Managed integration runtime status. + * + * @member {date} [createTime] The time at which the integration runtime was + * created, in ISO8601 format. + * @member {array} [nodes] The list of nodes for managed integration runtime. + * @member {array} [otherErrors] The errors that occurred on this integration + * runtime. + * @member {object} [lastOperation] The last operation result that occurred on + * this integration runtime. + * @member {string} [lastOperation.type] The operation type. Could be start or + * stop. + * @member {date} [lastOperation.startTime] The start time of the operation. + * @member {string} [lastOperation.result] The operation result. + * @member {string} [lastOperation.errorCode] The error code. + * @member {array} [lastOperation.parameters] Managed integration runtime error + * parameters. + * @member {string} [lastOperation.activityId] The activity id for the + * operation request. + */ +export interface ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { + readonly createTime?: Date; + readonly nodes?: ManagedIntegrationRuntimeNode[]; + readonly otherErrors?: ManagedIntegrationRuntimeError[]; + readonly lastOperation?: ManagedIntegrationRuntimeOperationResult; +} + +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntimeProperties class. + * @constructor + * The base definition of a secret type. + * + * @member {string} authorizationType Polymorphic Discriminator + */ +export interface LinkedIntegrationRuntimeProperties { + authorizationType: string; +} + +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntimeRbac class. + * @constructor + * The base definition of a secret type. + * + * @member {string} resourceId The resource ID of the integration runtime to be + * shared. + */ +export interface LinkedIntegrationRuntimeRbac extends LinkedIntegrationRuntimeProperties { + resourceId: string; +} + +/** + * @class + * Initializes a new instance of the LinkedIntegrationRuntimeKey class. + * @constructor + * The base definition of a secret type. + * + * @member {object} key Type of the secret. + * @member {string} [key.value] Value of secure string. + */ +export interface LinkedIntegrationRuntimeKey extends LinkedIntegrationRuntimeProperties { + key: SecureString; +} + +/** + * @class + * Initializes a new instance of the SelfHostedIntegrationRuntime class. + * @constructor + * Self-hosted integration runtime. + * + * @member {object} [linkedInfo] + * @member {string} [linkedInfo.authorizationType] Polymorphic Discriminator + */ +export interface SelfHostedIntegrationRuntime extends IntegrationRuntime { + linkedInfo?: LinkedIntegrationRuntimeProperties; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeCustomSetupScriptProperties class. + * @constructor + * Custom setup script properties for a managed dedicated integration runtime. + * + * @member {string} [blobContainerUri] The URI of the Azure blob container that + * contains the custom setup script. + * @member {object} [sasToken] The SAS token of the Azure blob container. + * @member {string} [sasToken.value] Value of secure string. + */ +export interface IntegrationRuntimeCustomSetupScriptProperties { + blobContainerUri?: string; + sasToken?: SecureString; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeSsisCatalogInfo class. + * @constructor + * Catalog information for managed dedicated integration runtime. + * + * @member {string} [catalogServerEndpoint] The catalog database server URL. + * @member {string} [catalogAdminUserName] The administrator user name of + * catalog database. + * @member {object} [catalogAdminPassword] The password of the administrator + * user account of the catalog database. + * @member {string} [catalogAdminPassword.value] Value of secure string. + * @member {string} [catalogPricingTier] The pricing tier for the catalog + * database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible + * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + */ +export interface IntegrationRuntimeSsisCatalogInfo { + catalogServerEndpoint?: string; + catalogAdminUserName?: string; + catalogAdminPassword?: SecureString; + catalogPricingTier?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeSsisProperties class. + * @constructor + * SSIS properties for managed integration runtime. + * + * @member {object} [catalogInfo] Catalog information for managed dedicated + * integration runtime. + * @member {string} [catalogInfo.catalogServerEndpoint] The catalog database + * server URL. + * @member {string} [catalogInfo.catalogAdminUserName] The administrator user + * name of catalog database. + * @member {object} [catalogInfo.catalogAdminPassword] The password of the + * administrator user account of the catalog database. + * @member {string} [catalogInfo.catalogAdminPassword.value] Value of secure + * string. + * @member {string} [catalogInfo.catalogPricingTier] The pricing tier for the + * catalog database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible + * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [licenseType] License type for bringing your own license + * scenario. Possible values include: 'BasePrice', 'LicenseIncluded' + * @member {object} [customSetupScriptProperties] Custom setup script + * properties for a managed dedicated integration runtime. + * @member {string} [customSetupScriptProperties.blobContainerUri] The URI of + * the Azure blob container that contains the custom setup script. + * @member {object} [customSetupScriptProperties.sasToken] The SAS token of the + * Azure blob container. + * @member {string} [customSetupScriptProperties.sasToken.value] Value of + * secure string. + * @member {string} [edition] The edition for the SSIS Integration Runtime. + * Possible values include: 'Standard', 'Enterprise' + */ +export interface IntegrationRuntimeSsisProperties { + catalogInfo?: IntegrationRuntimeSsisCatalogInfo; + licenseType?: string; + customSetupScriptProperties?: IntegrationRuntimeCustomSetupScriptProperties; + edition?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeVNetProperties class. + * @constructor + * VNet properties for managed integration runtime. + * + * @member {string} [vNetId] The ID of the VNet that this integration runtime + * will join. + * @member {string} [subnet] The name of the subnet this integration runtime + * will join. + */ +export interface IntegrationRuntimeVNetProperties { + vNetId?: string; + subnet?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeComputeProperties class. + * @constructor + * The compute resource properties for managed integration runtime. + * + * @member {string} [location] The location for managed integration runtime. + * The supported regions could be found on + * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities + * @member {string} [nodeSize] The node size requirement to managed integration + * runtime. + * @member {number} [numberOfNodes] The required number of nodes for managed + * integration runtime. + * @member {number} [maxParallelExecutionsPerNode] Maximum parallel executions + * count per node for managed integration runtime. + * @member {object} [vNetProperties] VNet properties for managed integration + * runtime. + * @member {string} [vNetProperties.vNetId] The ID of the VNet that this + * integration runtime will join. + * @member {string} [vNetProperties.subnet] The name of the subnet this + * integration runtime will join. + */ +export interface IntegrationRuntimeComputeProperties { + location?: string; + nodeSize?: string; + numberOfNodes?: number; + maxParallelExecutionsPerNode?: number; + vNetProperties?: IntegrationRuntimeVNetProperties; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the ManagedIntegrationRuntime class. + * @constructor + * Managed integration runtime, including managed elastic and managed dedicated + * integration runtimes. + * + * @member {string} [state] Integration runtime state, only valid for managed + * dedicated integration runtime. Possible values include: 'Initial', + * 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', + * 'Limited', 'Offline' + * @member {object} [computeProperties] The compute resource for managed + * integration runtime. + * @member {string} [computeProperties.location] The location for managed + * integration runtime. The supported regions could be found on + * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities + * @member {string} [computeProperties.nodeSize] The node size requirement to + * managed integration runtime. + * @member {number} [computeProperties.numberOfNodes] The required number of + * nodes for managed integration runtime. + * @member {number} [computeProperties.maxParallelExecutionsPerNode] Maximum + * parallel executions count per node for managed integration runtime. + * @member {object} [computeProperties.vNetProperties] VNet properties for + * managed integration runtime. + * @member {string} [computeProperties.vNetProperties.vNetId] The ID of the + * VNet that this integration runtime will join. + * @member {string} [computeProperties.vNetProperties.subnet] The name of the + * subnet this integration runtime will join. + * @member {object} [ssisProperties] SSIS properties for managed integration + * runtime. + * @member {object} [ssisProperties.catalogInfo] Catalog information for + * managed dedicated integration runtime. + * @member {string} [ssisProperties.catalogInfo.catalogServerEndpoint] The + * catalog database server URL. + * @member {string} [ssisProperties.catalogInfo.catalogAdminUserName] The + * administrator user name of catalog database. + * @member {object} [ssisProperties.catalogInfo.catalogAdminPassword] The + * password of the administrator user account of the catalog database. + * @member {string} [ssisProperties.catalogInfo.catalogAdminPassword.value] + * Value of secure string. + * @member {string} [ssisProperties.catalogInfo.catalogPricingTier] The pricing + * tier for the catalog database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible + * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [ssisProperties.licenseType] License type for bringing your + * own license scenario. Possible values include: 'BasePrice', + * 'LicenseIncluded' + * @member {object} [ssisProperties.customSetupScriptProperties] Custom setup + * script properties for a managed dedicated integration runtime. + * @member {string} + * [ssisProperties.customSetupScriptProperties.blobContainerUri] The URI of the + * Azure blob container that contains the custom setup script. + * @member {object} [ssisProperties.customSetupScriptProperties.sasToken] The + * SAS token of the Azure blob container. + * @member {string} [ssisProperties.customSetupScriptProperties.sasToken.value] + * Value of secure string. + * @member {string} [ssisProperties.edition] The edition for the SSIS + * Integration Runtime. Possible values include: 'Standard', 'Enterprise' + */ +export interface ManagedIntegrationRuntime extends IntegrationRuntime { + readonly state?: string; + computeProperties?: IntegrationRuntimeComputeProperties; + ssisProperties?: IntegrationRuntimeSsisProperties; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeNodeIpAddress class. + * @constructor + * The IP address of self-hosted integration runtime node. + * + * @member {string} [ipAddress] The IP address of self-hosted integration + * runtime node. + */ +export interface IntegrationRuntimeNodeIpAddress { + readonly ipAddress?: string; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeNodeMonitoringData class. + * @constructor + * Monitoring data for integration runtime node. + * + * @member {string} [nodeName] Name of the integration runtime node. + * @member {number} [availableMemoryInMB] Available memory (MB) on the + * integration runtime node. + * @member {number} [cpuUtilization] CPU percentage on the integration runtime + * node. + * @member {number} [concurrentJobsLimit] Maximum concurrent jobs on the + * integration runtime node. + * @member {number} [concurrentJobsRunning] The number of jobs currently + * running on the integration runtime node. + * @member {number} [maxConcurrentJobs] The maximum concurrent jobs in this + * integration runtime. + * @member {number} [sentBytes] Sent bytes on the integration runtime node. + * @member {number} [receivedBytes] Received bytes on the integration runtime + * node. + */ +export interface IntegrationRuntimeNodeMonitoringData { + readonly nodeName?: string; + readonly availableMemoryInMB?: number; + readonly cpuUtilization?: number; + readonly concurrentJobsLimit?: number; + readonly concurrentJobsRunning?: number; + readonly maxConcurrentJobs?: number; + readonly sentBytes?: number; + readonly receivedBytes?: number; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeMonitoringData class. + * @constructor + * Get monitoring data response. + * + * @member {string} [name] Integration runtime name. + * @member {array} [nodes] Integration runtime node monitoring data. + */ +export interface IntegrationRuntimeMonitoringData { + name?: string; + nodes?: IntegrationRuntimeNodeMonitoringData[]; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeRemoveNodeRequest class. + * @constructor + * Request to remove a node. + * + * @member {string} [nodeName] The name of the node to be removed. + */ +export interface IntegrationRuntimeRemoveNodeRequest { + nodeName?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeAuthKeys class. + * @constructor + * The integration runtime authentication keys. + * + * @member {string} [authKey1] The primary integration runtime authentication + * key. + * @member {string} [authKey2] The secondary integration runtime authentication + * key. + */ +export interface IntegrationRuntimeAuthKeys { + authKey1?: string; + authKey2?: string; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeRegenerateKeyParameters class. + * @constructor + * Parameters to regenerate the authentication key. + * + * @member {string} [keyName] The name of the authentication key to regenerate. + * Possible values include: 'authKey1', 'authKey2' + */ +export interface IntegrationRuntimeRegenerateKeyParameters { + keyName?: string; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeConnectionInfo class. + * @constructor + * Connection information for encrypting the on-premises data source + * credentials. + * + * @member {string} [serviceToken] The token generated in service. Callers use + * this token to authenticate to integration runtime. + * @member {string} [identityCertThumbprint] The integration runtime SSL + * certificate thumbprint. Click-Once application uses it to do server + * validation. + * @member {string} [hostServiceUri] The on-premises integration runtime host + * URL. + * @member {string} [version] The integration runtime version. + * @member {string} [publicKey] The public key for encrypting a credential when + * transferring the credential to the integration runtime. + * @member {boolean} [isIdentityCertExprired] Whether the identity certificate + * is expired. + */ +export interface IntegrationRuntimeConnectionInfo { + readonly serviceToken?: string; + readonly identityCertThumbprint?: string; + readonly hostServiceUri?: string; + readonly version?: string; + readonly publicKey?: string; + readonly isIdentityCertExprired?: boolean; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + + +/** + * @class + * Initializes a new instance of the FactoryListResponse class. + * @constructor + * A list of factory resources. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface FactoryListResponse extends Array { + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the IntegrationRuntimeListResponse class. + * @constructor + * A list of integration runtime resources. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface IntegrationRuntimeListResponse extends Array { + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LinkedServiceListResponse class. + * @constructor + * A list of linked service resources. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface LinkedServiceListResponse extends Array { + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the DatasetListResponse class. + * @constructor + * A list of dataset resources. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface DatasetListResponse extends Array { + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the PipelineListResponse class. + * @constructor + * A list of pipeline resources. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface PipelineListResponse extends Array { + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the ActivityRunsListResponse class. + * @constructor + * A list activity runs. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface ActivityRunsListResponse extends Array { + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the TriggerListResponse class. + * @constructor + * A list of trigger resources. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface TriggerListResponse extends Array { + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the TriggerRunListResponse class. + * @constructor + * A list of trigger runs. + * + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ +export interface TriggerRunListResponse extends Array { + nextLink?: string; +} diff --git a/lib/services/datafactoryManagement/lib/lib/models/index.js b/lib/services/datafactoryManagement/lib/lib/models/index.js new file mode 100644 index 0000000000..6165944e3c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/index.js @@ -0,0 +1,595 @@ +/* + * 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. + */ + +/* jshint latedef:false */ +/* jshint forin:false */ +/* jshint noempty:false */ + +'use strict'; + +var msRestAzure = require('ms-rest-azure'); + +exports.BaseResource = msRestAzure.BaseResource; +exports.CloudError = msRestAzure.CloudError; +exports.Resource = require('./resource'); +exports.SubResource = require('./subResource'); +exports.Expression = require('./expression'); +exports.SecretBase = require('./secretBase'); +exports.SecureString = require('./secureString'); +exports.LinkedServiceReference = require('./linkedServiceReference'); +exports.AzureKeyVaultSecretReference = require('./azureKeyVaultSecretReference'); +exports.FactoryIdentity = require('./factoryIdentity'); +exports.Factory = require('./factory'); +exports.IntegrationRuntime = require('./integrationRuntime'); +exports.IntegrationRuntimeResource = require('./integrationRuntimeResource'); +exports.IntegrationRuntimeReference = require('./integrationRuntimeReference'); +exports.IntegrationRuntimeStatus = require('./integrationRuntimeStatus'); +exports.IntegrationRuntimeStatusResponse = require('./integrationRuntimeStatusResponse'); +exports.IntegrationRuntimeStatusListResponse = require('./integrationRuntimeStatusListResponse'); +exports.UpdateIntegrationRuntimeRequest = require('./updateIntegrationRuntimeRequest'); +exports.UpdateIntegrationRuntimeNodeRequest = require('./updateIntegrationRuntimeNodeRequest'); +exports.ParameterSpecification = require('./parameterSpecification'); +exports.LinkedService = require('./linkedService'); +exports.LinkedServiceResource = require('./linkedServiceResource'); +exports.Dataset = require('./dataset'); +exports.DatasetResource = require('./datasetResource'); +exports.ActivityDependency = require('./activityDependency'); +exports.Activity = require('./activity'); +exports.PipelineResource = require('./pipelineResource'); +exports.Trigger = require('./trigger'); +exports.TriggerResource = require('./triggerResource'); +exports.CreateRunResponse = require('./createRunResponse'); +exports.ErrorResponse = require('./errorResponse'); +exports.PipelineReference = require('./pipelineReference'); +exports.TriggerPipelineReference = require('./triggerPipelineReference'); +exports.FactoryUpdateParameters = require('./factoryUpdateParameters'); +exports.DatasetReference = require('./datasetReference'); +exports.PipelineRunQueryFilter = require('./pipelineRunQueryFilter'); +exports.PipelineRunQueryOrderBy = require('./pipelineRunQueryOrderBy'); +exports.PipelineRunFilterParameters = require('./pipelineRunFilterParameters'); +exports.PipelineRunInvokedBy = require('./pipelineRunInvokedBy'); +exports.PipelineRun = require('./pipelineRun'); +exports.PipelineRunQueryResponse = require('./pipelineRunQueryResponse'); +exports.ActivityRun = require('./activityRun'); +exports.TriggerRun = require('./triggerRun'); +exports.OperationDisplay = require('./operationDisplay'); +exports.OperationLogSpecification = require('./operationLogSpecification'); +exports.OperationMetricAvailability = require('./operationMetricAvailability'); +exports.OperationMetricSpecification = require('./operationMetricSpecification'); +exports.OperationServiceSpecification = require('./operationServiceSpecification'); +exports.Operation = require('./operation'); +exports.OperationListResponse = require('./operationListResponse'); +exports.AzureDatabricksLinkedService = require('./azureDatabricksLinkedService'); +exports.AzureDataLakeAnalyticsLinkedService = require('./azureDataLakeAnalyticsLinkedService'); +exports.HDInsightOnDemandLinkedService = require('./hDInsightOnDemandLinkedService'); +exports.SalesforceMarketingCloudLinkedService = require('./salesforceMarketingCloudLinkedService'); +exports.NetezzaLinkedService = require('./netezzaLinkedService'); +exports.VerticaLinkedService = require('./verticaLinkedService'); +exports.ZohoLinkedService = require('./zohoLinkedService'); +exports.XeroLinkedService = require('./xeroLinkedService'); +exports.SquareLinkedService = require('./squareLinkedService'); +exports.SparkLinkedService = require('./sparkLinkedService'); +exports.ShopifyLinkedService = require('./shopifyLinkedService'); +exports.ServiceNowLinkedService = require('./serviceNowLinkedService'); +exports.QuickBooksLinkedService = require('./quickBooksLinkedService'); +exports.PrestoLinkedService = require('./prestoLinkedService'); +exports.PhoenixLinkedService = require('./phoenixLinkedService'); +exports.PaypalLinkedService = require('./paypalLinkedService'); +exports.MarketoLinkedService = require('./marketoLinkedService'); +exports.MariaDBLinkedService = require('./mariaDBLinkedService'); +exports.MagentoLinkedService = require('./magentoLinkedService'); +exports.JiraLinkedService = require('./jiraLinkedService'); +exports.ImpalaLinkedService = require('./impalaLinkedService'); +exports.HubspotLinkedService = require('./hubspotLinkedService'); +exports.HiveLinkedService = require('./hiveLinkedService'); +exports.HBaseLinkedService = require('./hBaseLinkedService'); +exports.GreenplumLinkedService = require('./greenplumLinkedService'); +exports.GoogleBigQueryLinkedService = require('./googleBigQueryLinkedService'); +exports.EloquaLinkedService = require('./eloquaLinkedService'); +exports.DrillLinkedService = require('./drillLinkedService'); +exports.CouchbaseLinkedService = require('./couchbaseLinkedService'); +exports.ConcurLinkedService = require('./concurLinkedService'); +exports.AzurePostgreSqlLinkedService = require('./azurePostgreSqlLinkedService'); +exports.AmazonMWSLinkedService = require('./amazonMWSLinkedService'); +exports.SapHanaLinkedService = require('./sapHanaLinkedService'); +exports.SapBWLinkedService = require('./sapBWLinkedService'); +exports.SftpServerLinkedService = require('./sftpServerLinkedService'); +exports.FtpServerLinkedService = require('./ftpServerLinkedService'); +exports.HttpLinkedService = require('./httpLinkedService'); +exports.AzureSearchLinkedService = require('./azureSearchLinkedService'); +exports.CustomDataSourceLinkedService = require('./customDataSourceLinkedService'); +exports.AmazonRedshiftLinkedService = require('./amazonRedshiftLinkedService'); +exports.AmazonS3LinkedService = require('./amazonS3LinkedService'); +exports.SapEccLinkedService = require('./sapEccLinkedService'); +exports.SapCloudForCustomerLinkedService = require('./sapCloudForCustomerLinkedService'); +exports.SalesforceLinkedService = require('./salesforceLinkedService'); +exports.AzureDataLakeStoreLinkedService = require('./azureDataLakeStoreLinkedService'); +exports.MongoDbLinkedService = require('./mongoDbLinkedService'); +exports.CassandraLinkedService = require('./cassandraLinkedService'); +exports.WebLinkedServiceTypeProperties = require('./webLinkedServiceTypeProperties'); +exports.WebClientCertificateAuthentication = require('./webClientCertificateAuthentication'); +exports.WebBasicAuthentication = require('./webBasicAuthentication'); +exports.WebAnonymousAuthentication = require('./webAnonymousAuthentication'); +exports.WebLinkedService = require('./webLinkedService'); +exports.ODataLinkedService = require('./oDataLinkedService'); +exports.HdfsLinkedService = require('./hdfsLinkedService'); +exports.OdbcLinkedService = require('./odbcLinkedService'); +exports.AzureMLLinkedService = require('./azureMLLinkedService'); +exports.TeradataLinkedService = require('./teradataLinkedService'); +exports.Db2LinkedService = require('./db2LinkedService'); +exports.SybaseLinkedService = require('./sybaseLinkedService'); +exports.PostgreSqlLinkedService = require('./postgreSqlLinkedService'); +exports.MySqlLinkedService = require('./mySqlLinkedService'); +exports.AzureMySqlLinkedService = require('./azureMySqlLinkedService'); +exports.OracleLinkedService = require('./oracleLinkedService'); +exports.FileServerLinkedService = require('./fileServerLinkedService'); +exports.HDInsightLinkedService = require('./hDInsightLinkedService'); +exports.DynamicsLinkedService = require('./dynamicsLinkedService'); +exports.CosmosDbLinkedService = require('./cosmosDbLinkedService'); +exports.AzureKeyVaultLinkedService = require('./azureKeyVaultLinkedService'); +exports.AzureBatchLinkedService = require('./azureBatchLinkedService'); +exports.AzureSqlDatabaseLinkedService = require('./azureSqlDatabaseLinkedService'); +exports.SqlServerLinkedService = require('./sqlServerLinkedService'); +exports.AzureSqlDWLinkedService = require('./azureSqlDWLinkedService'); +exports.AzureStorageLinkedService = require('./azureStorageLinkedService'); +exports.SalesforceMarketingCloudObjectDataset = require('./salesforceMarketingCloudObjectDataset'); +exports.VerticaTableDataset = require('./verticaTableDataset'); +exports.NetezzaTableDataset = require('./netezzaTableDataset'); +exports.ZohoObjectDataset = require('./zohoObjectDataset'); +exports.XeroObjectDataset = require('./xeroObjectDataset'); +exports.SquareObjectDataset = require('./squareObjectDataset'); +exports.SparkObjectDataset = require('./sparkObjectDataset'); +exports.ShopifyObjectDataset = require('./shopifyObjectDataset'); +exports.ServiceNowObjectDataset = require('./serviceNowObjectDataset'); +exports.QuickBooksObjectDataset = require('./quickBooksObjectDataset'); +exports.PrestoObjectDataset = require('./prestoObjectDataset'); +exports.PhoenixObjectDataset = require('./phoenixObjectDataset'); +exports.PaypalObjectDataset = require('./paypalObjectDataset'); +exports.MarketoObjectDataset = require('./marketoObjectDataset'); +exports.MariaDBTableDataset = require('./mariaDBTableDataset'); +exports.MagentoObjectDataset = require('./magentoObjectDataset'); +exports.JiraObjectDataset = require('./jiraObjectDataset'); +exports.ImpalaObjectDataset = require('./impalaObjectDataset'); +exports.HubspotObjectDataset = require('./hubspotObjectDataset'); +exports.HiveObjectDataset = require('./hiveObjectDataset'); +exports.HBaseObjectDataset = require('./hBaseObjectDataset'); +exports.GreenplumTableDataset = require('./greenplumTableDataset'); +exports.GoogleBigQueryObjectDataset = require('./googleBigQueryObjectDataset'); +exports.EloquaObjectDataset = require('./eloquaObjectDataset'); +exports.DrillTableDataset = require('./drillTableDataset'); +exports.CouchbaseTableDataset = require('./couchbaseTableDataset'); +exports.ConcurObjectDataset = require('./concurObjectDataset'); +exports.AzurePostgreSqlTableDataset = require('./azurePostgreSqlTableDataset'); +exports.AmazonMWSObjectDataset = require('./amazonMWSObjectDataset'); +exports.DatasetCompression = require('./datasetCompression'); +exports.DatasetZipDeflateCompression = require('./datasetZipDeflateCompression'); +exports.DatasetDeflateCompression = require('./datasetDeflateCompression'); +exports.DatasetGZipCompression = require('./datasetGZipCompression'); +exports.DatasetBZip2Compression = require('./datasetBZip2Compression'); +exports.DatasetStorageFormat = require('./datasetStorageFormat'); +exports.ParquetFormat = require('./parquetFormat'); +exports.OrcFormat = require('./orcFormat'); +exports.AvroFormat = require('./avroFormat'); +exports.JsonFormat = require('./jsonFormat'); +exports.TextFormat = require('./textFormat'); +exports.HttpDataset = require('./httpDataset'); +exports.AzureSearchIndexDataset = require('./azureSearchIndexDataset'); +exports.WebTableDataset = require('./webTableDataset'); +exports.SqlServerTableDataset = require('./sqlServerTableDataset'); +exports.SapEccResourceDataset = require('./sapEccResourceDataset'); +exports.SapCloudForCustomerResourceDataset = require('./sapCloudForCustomerResourceDataset'); +exports.SalesforceObjectDataset = require('./salesforceObjectDataset'); +exports.RelationalTableDataset = require('./relationalTableDataset'); +exports.AzureMySqlTableDataset = require('./azureMySqlTableDataset'); +exports.OracleTableDataset = require('./oracleTableDataset'); +exports.ODataResourceDataset = require('./oDataResourceDataset'); +exports.MongoDbCollectionDataset = require('./mongoDbCollectionDataset'); +exports.FileShareDataset = require('./fileShareDataset'); +exports.AzureDataLakeStoreDataset = require('./azureDataLakeStoreDataset'); +exports.DynamicsEntityDataset = require('./dynamicsEntityDataset'); +exports.DocumentDbCollectionDataset = require('./documentDbCollectionDataset'); +exports.CustomDataset = require('./customDataset'); +exports.CassandraTableDataset = require('./cassandraTableDataset'); +exports.AzureSqlDWTableDataset = require('./azureSqlDWTableDataset'); +exports.AzureSqlTableDataset = require('./azureSqlTableDataset'); +exports.AzureTableDataset = require('./azureTableDataset'); +exports.AzureBlobDataset = require('./azureBlobDataset'); +exports.AmazonS3Dataset = require('./amazonS3Dataset'); +exports.RetryPolicy = require('./retryPolicy'); +exports.TumblingWindowTrigger = require('./tumblingWindowTrigger'); +exports.MultiplePipelineTrigger = require('./multiplePipelineTrigger'); +exports.BlobTrigger = require('./blobTrigger'); +exports.RecurrenceScheduleOccurrence = require('./recurrenceScheduleOccurrence'); +exports.RecurrenceSchedule = require('./recurrenceSchedule'); +exports.ScheduleTriggerRecurrence = require('./scheduleTriggerRecurrence'); +exports.ScheduleTrigger = require('./scheduleTrigger'); +exports.ActivityPolicy = require('./activityPolicy'); +exports.ExecutionActivity = require('./executionActivity'); +exports.DatabricksNotebookActivity = require('./databricksNotebookActivity'); +exports.DataLakeAnalyticsUSQLActivity = require('./dataLakeAnalyticsUSQLActivity'); +exports.AzureMLUpdateResourceActivity = require('./azureMLUpdateResourceActivity'); +exports.AzureMLWebServiceFile = require('./azureMLWebServiceFile'); +exports.AzureMLBatchExecutionActivity = require('./azureMLBatchExecutionActivity'); +exports.GetMetadataActivity = require('./getMetadataActivity'); +exports.WebActivityAuthentication = require('./webActivityAuthentication'); +exports.WebActivity = require('./webActivity'); +exports.RedshiftUnloadSettings = require('./redshiftUnloadSettings'); +exports.CopySource = require('./copySource'); +exports.AmazonRedshiftSource = require('./amazonRedshiftSource'); +exports.SalesforceMarketingCloudSource = require('./salesforceMarketingCloudSource'); +exports.VerticaSource = require('./verticaSource'); +exports.NetezzaSource = require('./netezzaSource'); +exports.ZohoSource = require('./zohoSource'); +exports.XeroSource = require('./xeroSource'); +exports.SquareSource = require('./squareSource'); +exports.SparkSource = require('./sparkSource'); +exports.ShopifySource = require('./shopifySource'); +exports.ServiceNowSource = require('./serviceNowSource'); +exports.QuickBooksSource = require('./quickBooksSource'); +exports.PrestoSource = require('./prestoSource'); +exports.PhoenixSource = require('./phoenixSource'); +exports.PaypalSource = require('./paypalSource'); +exports.MarketoSource = require('./marketoSource'); +exports.MariaDBSource = require('./mariaDBSource'); +exports.MagentoSource = require('./magentoSource'); +exports.JiraSource = require('./jiraSource'); +exports.ImpalaSource = require('./impalaSource'); +exports.HubspotSource = require('./hubspotSource'); +exports.HiveSource = require('./hiveSource'); +exports.HBaseSource = require('./hBaseSource'); +exports.GreenplumSource = require('./greenplumSource'); +exports.GoogleBigQuerySource = require('./googleBigQuerySource'); +exports.EloquaSource = require('./eloquaSource'); +exports.DrillSource = require('./drillSource'); +exports.CouchbaseSource = require('./couchbaseSource'); +exports.ConcurSource = require('./concurSource'); +exports.AzurePostgreSqlSource = require('./azurePostgreSqlSource'); +exports.AmazonMWSSource = require('./amazonMWSSource'); +exports.HttpSource = require('./httpSource'); +exports.AzureDataLakeStoreSource = require('./azureDataLakeStoreSource'); +exports.MongoDbSource = require('./mongoDbSource'); +exports.CassandraSource = require('./cassandraSource'); +exports.WebSource = require('./webSource'); +exports.OracleSource = require('./oracleSource'); +exports.AzureMySqlSource = require('./azureMySqlSource'); +exports.DistcpSettings = require('./distcpSettings'); +exports.HdfsSource = require('./hdfsSource'); +exports.FileSystemSource = require('./fileSystemSource'); +exports.SqlDWSource = require('./sqlDWSource'); +exports.StoredProcedureParameter = require('./storedProcedureParameter'); +exports.SqlSource = require('./sqlSource'); +exports.SapEccSource = require('./sapEccSource'); +exports.SapCloudForCustomerSource = require('./sapCloudForCustomerSource'); +exports.SalesforceSource = require('./salesforceSource'); +exports.RelationalSource = require('./relationalSource'); +exports.DynamicsSource = require('./dynamicsSource'); +exports.DocumentDbCollectionSource = require('./documentDbCollectionSource'); +exports.BlobSource = require('./blobSource'); +exports.AzureTableSource = require('./azureTableSource'); +exports.LookupActivity = require('./lookupActivity'); +exports.SqlServerStoredProcedureActivity = require('./sqlServerStoredProcedureActivity'); +exports.CustomActivityReferenceObject = require('./customActivityReferenceObject'); +exports.CustomActivity = require('./customActivity'); +exports.SSISPackageLocation = require('./sSISPackageLocation'); +exports.ExecuteSSISPackageActivity = require('./executeSSISPackageActivity'); +exports.HDInsightSparkActivity = require('./hDInsightSparkActivity'); +exports.HDInsightStreamingActivity = require('./hDInsightStreamingActivity'); +exports.HDInsightMapReduceActivity = require('./hDInsightMapReduceActivity'); +exports.HDInsightPigActivity = require('./hDInsightPigActivity'); +exports.HDInsightHiveActivity = require('./hDInsightHiveActivity'); +exports.RedirectIncompatibleRowSettings = require('./redirectIncompatibleRowSettings'); +exports.StagingSettings = require('./stagingSettings'); +exports.CopyTranslator = require('./copyTranslator'); +exports.TabularTranslator = require('./tabularTranslator'); +exports.CopySink = require('./copySink'); +exports.SalesforceSink = require('./salesforceSink'); +exports.DynamicsSink = require('./dynamicsSink'); +exports.OdbcSink = require('./odbcSink'); +exports.AzureSearchIndexSink = require('./azureSearchIndexSink'); +exports.AzureDataLakeStoreSink = require('./azureDataLakeStoreSink'); +exports.OracleSink = require('./oracleSink'); +exports.PolybaseSettings = require('./polybaseSettings'); +exports.SqlDWSink = require('./sqlDWSink'); +exports.SqlSink = require('./sqlSink'); +exports.DocumentDbCollectionSink = require('./documentDbCollectionSink'); +exports.FileSystemSink = require('./fileSystemSink'); +exports.BlobSink = require('./blobSink'); +exports.AzureTableSink = require('./azureTableSink'); +exports.AzureQueueSink = require('./azureQueueSink'); +exports.SapCloudForCustomerSink = require('./sapCloudForCustomerSink'); +exports.CopyActivity = require('./copyActivity'); +exports.ControlActivity = require('./controlActivity'); +exports.FilterActivity = require('./filterActivity'); +exports.UntilActivity = require('./untilActivity'); +exports.WaitActivity = require('./waitActivity'); +exports.ForEachActivity = require('./forEachActivity'); +exports.IfConditionActivity = require('./ifConditionActivity'); +exports.ExecutePipelineActivity = require('./executePipelineActivity'); +exports.LinkedIntegrationRuntime = require('./linkedIntegrationRuntime'); +exports.SelfHostedIntegrationRuntimeNode = require('./selfHostedIntegrationRuntimeNode'); +exports.SelfHostedIntegrationRuntimeStatus = require('./selfHostedIntegrationRuntimeStatus'); +exports.ManagedIntegrationRuntimeOperationResult = require('./managedIntegrationRuntimeOperationResult'); +exports.ManagedIntegrationRuntimeError = require('./managedIntegrationRuntimeError'); +exports.ManagedIntegrationRuntimeNode = require('./managedIntegrationRuntimeNode'); +exports.ManagedIntegrationRuntimeStatus = require('./managedIntegrationRuntimeStatus'); +exports.LinkedIntegrationRuntimeProperties = require('./linkedIntegrationRuntimeProperties'); +exports.LinkedIntegrationRuntimeRbac = require('./linkedIntegrationRuntimeRbac'); +exports.LinkedIntegrationRuntimeKey = require('./linkedIntegrationRuntimeKey'); +exports.SelfHostedIntegrationRuntime = require('./selfHostedIntegrationRuntime'); +exports.IntegrationRuntimeCustomSetupScriptProperties = require('./integrationRuntimeCustomSetupScriptProperties'); +exports.IntegrationRuntimeSsisCatalogInfo = require('./integrationRuntimeSsisCatalogInfo'); +exports.IntegrationRuntimeSsisProperties = require('./integrationRuntimeSsisProperties'); +exports.IntegrationRuntimeVNetProperties = require('./integrationRuntimeVNetProperties'); +exports.IntegrationRuntimeComputeProperties = require('./integrationRuntimeComputeProperties'); +exports.ManagedIntegrationRuntime = require('./managedIntegrationRuntime'); +exports.IntegrationRuntimeNodeIpAddress = require('./integrationRuntimeNodeIpAddress'); +exports.IntegrationRuntimeNodeMonitoringData = require('./integrationRuntimeNodeMonitoringData'); +exports.IntegrationRuntimeMonitoringData = require('./integrationRuntimeMonitoringData'); +exports.IntegrationRuntimeRemoveNodeRequest = require('./integrationRuntimeRemoveNodeRequest'); +exports.IntegrationRuntimeAuthKeys = require('./integrationRuntimeAuthKeys'); +exports.IntegrationRuntimeRegenerateKeyParameters = require('./integrationRuntimeRegenerateKeyParameters'); +exports.IntegrationRuntimeConnectionInfo = require('./integrationRuntimeConnectionInfo'); +exports.FactoryListResponse = require('./factoryListResponse'); +exports.IntegrationRuntimeListResponse = require('./integrationRuntimeListResponse'); +exports.LinkedServiceListResponse = require('./linkedServiceListResponse'); +exports.DatasetListResponse = require('./datasetListResponse'); +exports.PipelineListResponse = require('./pipelineListResponse'); +exports.ActivityRunsListResponse = require('./activityRunsListResponse'); +exports.TriggerListResponse = require('./triggerListResponse'); +exports.TriggerRunListResponse = require('./triggerRunListResponse'); +exports.discriminators = { + 'SecretBase.SecureString' : exports.SecureString, + 'SecretBase.AzureKeyVaultSecret' : exports.AzureKeyVaultSecretReference, + 'SecretBase' : exports.SecretBase, + 'IntegrationRuntime' : exports.IntegrationRuntime, + 'IntegrationRuntimeStatus' : exports.IntegrationRuntimeStatus, + 'LinkedService' : exports.LinkedService, + 'Dataset' : exports.Dataset, + 'Activity' : exports.Activity, + 'Trigger' : exports.Trigger, + 'LinkedService.AzureDatabricks' : exports.AzureDatabricksLinkedService, + 'LinkedService.AzureDataLakeAnalytics' : exports.AzureDataLakeAnalyticsLinkedService, + 'LinkedService.HDInsightOnDemand' : exports.HDInsightOnDemandLinkedService, + 'LinkedService.SalesforceMarketingCloud' : exports.SalesforceMarketingCloudLinkedService, + 'LinkedService.Netezza' : exports.NetezzaLinkedService, + 'LinkedService.Vertica' : exports.VerticaLinkedService, + 'LinkedService.Zoho' : exports.ZohoLinkedService, + 'LinkedService.Xero' : exports.XeroLinkedService, + 'LinkedService.Square' : exports.SquareLinkedService, + 'LinkedService.Spark' : exports.SparkLinkedService, + 'LinkedService.Shopify' : exports.ShopifyLinkedService, + 'LinkedService.ServiceNow' : exports.ServiceNowLinkedService, + 'LinkedService.QuickBooks' : exports.QuickBooksLinkedService, + 'LinkedService.Presto' : exports.PrestoLinkedService, + 'LinkedService.Phoenix' : exports.PhoenixLinkedService, + 'LinkedService.Paypal' : exports.PaypalLinkedService, + 'LinkedService.Marketo' : exports.MarketoLinkedService, + 'LinkedService.MariaDB' : exports.MariaDBLinkedService, + 'LinkedService.Magento' : exports.MagentoLinkedService, + 'LinkedService.Jira' : exports.JiraLinkedService, + 'LinkedService.Impala' : exports.ImpalaLinkedService, + 'LinkedService.Hubspot' : exports.HubspotLinkedService, + 'LinkedService.Hive' : exports.HiveLinkedService, + 'LinkedService.HBase' : exports.HBaseLinkedService, + 'LinkedService.Greenplum' : exports.GreenplumLinkedService, + 'LinkedService.GoogleBigQuery' : exports.GoogleBigQueryLinkedService, + 'LinkedService.Eloqua' : exports.EloquaLinkedService, + 'LinkedService.Drill' : exports.DrillLinkedService, + 'LinkedService.Couchbase' : exports.CouchbaseLinkedService, + 'LinkedService.Concur' : exports.ConcurLinkedService, + 'LinkedService.AzurePostgreSql' : exports.AzurePostgreSqlLinkedService, + 'LinkedService.AmazonMWS' : exports.AmazonMWSLinkedService, + 'LinkedService.SapHana' : exports.SapHanaLinkedService, + 'LinkedService.SapBW' : exports.SapBWLinkedService, + 'LinkedService.Sftp' : exports.SftpServerLinkedService, + 'LinkedService.FtpServer' : exports.FtpServerLinkedService, + 'LinkedService.HttpServer' : exports.HttpLinkedService, + 'LinkedService.AzureSearch' : exports.AzureSearchLinkedService, + 'LinkedService.CustomDataSource' : exports.CustomDataSourceLinkedService, + 'LinkedService.AmazonRedshift' : exports.AmazonRedshiftLinkedService, + 'LinkedService.AmazonS3' : exports.AmazonS3LinkedService, + 'LinkedService.SapEcc' : exports.SapEccLinkedService, + 'LinkedService.SapCloudForCustomer' : exports.SapCloudForCustomerLinkedService, + 'LinkedService.Salesforce' : exports.SalesforceLinkedService, + 'LinkedService.AzureDataLakeStore' : exports.AzureDataLakeStoreLinkedService, + 'LinkedService.MongoDb' : exports.MongoDbLinkedService, + 'LinkedService.Cassandra' : exports.CassandraLinkedService, + 'WebLinkedServiceTypeProperties.ClientCertificate' : exports.WebClientCertificateAuthentication, + 'WebLinkedServiceTypeProperties.Basic' : exports.WebBasicAuthentication, + 'WebLinkedServiceTypeProperties.Anonymous' : exports.WebAnonymousAuthentication, + 'WebLinkedServiceTypeProperties' : exports.WebLinkedServiceTypeProperties, + 'LinkedService.Web' : exports.WebLinkedService, + 'LinkedService.OData' : exports.ODataLinkedService, + 'LinkedService.Hdfs' : exports.HdfsLinkedService, + 'LinkedService.Odbc' : exports.OdbcLinkedService, + 'LinkedService.AzureML' : exports.AzureMLLinkedService, + 'LinkedService.Teradata' : exports.TeradataLinkedService, + 'LinkedService.Db2' : exports.Db2LinkedService, + 'LinkedService.Sybase' : exports.SybaseLinkedService, + 'LinkedService.PostgreSql' : exports.PostgreSqlLinkedService, + 'LinkedService.MySql' : exports.MySqlLinkedService, + 'LinkedService.AzureMySql' : exports.AzureMySqlLinkedService, + 'LinkedService.Oracle' : exports.OracleLinkedService, + 'LinkedService.FileServer' : exports.FileServerLinkedService, + 'LinkedService.HDInsight' : exports.HDInsightLinkedService, + 'LinkedService.Dynamics' : exports.DynamicsLinkedService, + 'LinkedService.CosmosDb' : exports.CosmosDbLinkedService, + 'LinkedService.AzureKeyVault' : exports.AzureKeyVaultLinkedService, + 'LinkedService.AzureBatch' : exports.AzureBatchLinkedService, + 'LinkedService.AzureSqlDatabase' : exports.AzureSqlDatabaseLinkedService, + 'LinkedService.SqlServer' : exports.SqlServerLinkedService, + 'LinkedService.AzureSqlDW' : exports.AzureSqlDWLinkedService, + 'LinkedService.AzureStorage' : exports.AzureStorageLinkedService, + 'Dataset.SalesforceMarketingCloudObject' : exports.SalesforceMarketingCloudObjectDataset, + 'Dataset.VerticaTable' : exports.VerticaTableDataset, + 'Dataset.NetezzaTable' : exports.NetezzaTableDataset, + 'Dataset.ZohoObject' : exports.ZohoObjectDataset, + 'Dataset.XeroObject' : exports.XeroObjectDataset, + 'Dataset.SquareObject' : exports.SquareObjectDataset, + 'Dataset.SparkObject' : exports.SparkObjectDataset, + 'Dataset.ShopifyObject' : exports.ShopifyObjectDataset, + 'Dataset.ServiceNowObject' : exports.ServiceNowObjectDataset, + 'Dataset.QuickBooksObject' : exports.QuickBooksObjectDataset, + 'Dataset.PrestoObject' : exports.PrestoObjectDataset, + 'Dataset.PhoenixObject' : exports.PhoenixObjectDataset, + 'Dataset.PaypalObject' : exports.PaypalObjectDataset, + 'Dataset.MarketoObject' : exports.MarketoObjectDataset, + 'Dataset.MariaDBTable' : exports.MariaDBTableDataset, + 'Dataset.MagentoObject' : exports.MagentoObjectDataset, + 'Dataset.JiraObject' : exports.JiraObjectDataset, + 'Dataset.ImpalaObject' : exports.ImpalaObjectDataset, + 'Dataset.HubspotObject' : exports.HubspotObjectDataset, + 'Dataset.HiveObject' : exports.HiveObjectDataset, + 'Dataset.HBaseObject' : exports.HBaseObjectDataset, + 'Dataset.GreenplumTable' : exports.GreenplumTableDataset, + 'Dataset.GoogleBigQueryObject' : exports.GoogleBigQueryObjectDataset, + 'Dataset.EloquaObject' : exports.EloquaObjectDataset, + 'Dataset.DrillTable' : exports.DrillTableDataset, + 'Dataset.CouchbaseTable' : exports.CouchbaseTableDataset, + 'Dataset.ConcurObject' : exports.ConcurObjectDataset, + 'Dataset.AzurePostgreSqlTable' : exports.AzurePostgreSqlTableDataset, + 'Dataset.AmazonMWSObject' : exports.AmazonMWSObjectDataset, + 'DatasetCompression.ZipDeflate' : exports.DatasetZipDeflateCompression, + 'DatasetCompression.Deflate' : exports.DatasetDeflateCompression, + 'DatasetCompression.GZip' : exports.DatasetGZipCompression, + 'DatasetCompression.BZip2' : exports.DatasetBZip2Compression, + 'DatasetCompression' : exports.DatasetCompression, + 'DatasetStorageFormat.ParquetFormat' : exports.ParquetFormat, + 'DatasetStorageFormat.OrcFormat' : exports.OrcFormat, + 'DatasetStorageFormat.AvroFormat' : exports.AvroFormat, + 'DatasetStorageFormat.JsonFormat' : exports.JsonFormat, + 'DatasetStorageFormat.TextFormat' : exports.TextFormat, + 'DatasetStorageFormat' : exports.DatasetStorageFormat, + 'Dataset.HttpFile' : exports.HttpDataset, + 'Dataset.AzureSearchIndex' : exports.AzureSearchIndexDataset, + 'Dataset.WebTable' : exports.WebTableDataset, + 'Dataset.SqlServerTable' : exports.SqlServerTableDataset, + 'Dataset.SapEccResource' : exports.SapEccResourceDataset, + 'Dataset.SapCloudForCustomerResource' : exports.SapCloudForCustomerResourceDataset, + 'Dataset.SalesforceObject' : exports.SalesforceObjectDataset, + 'Dataset.RelationalTable' : exports.RelationalTableDataset, + 'Dataset.AzureMySqlTable' : exports.AzureMySqlTableDataset, + 'Dataset.OracleTable' : exports.OracleTableDataset, + 'Dataset.ODataResource' : exports.ODataResourceDataset, + 'Dataset.MongoDbCollection' : exports.MongoDbCollectionDataset, + 'Dataset.FileShare' : exports.FileShareDataset, + 'Dataset.AzureDataLakeStoreFile' : exports.AzureDataLakeStoreDataset, + 'Dataset.DynamicsEntity' : exports.DynamicsEntityDataset, + 'Dataset.DocumentDbCollection' : exports.DocumentDbCollectionDataset, + 'Dataset.CustomDataset' : exports.CustomDataset, + 'Dataset.CassandraTable' : exports.CassandraTableDataset, + 'Dataset.AzureSqlDWTable' : exports.AzureSqlDWTableDataset, + 'Dataset.AzureSqlTable' : exports.AzureSqlTableDataset, + 'Dataset.AzureTable' : exports.AzureTableDataset, + 'Dataset.AzureBlob' : exports.AzureBlobDataset, + 'Dataset.AmazonS3Object' : exports.AmazonS3Dataset, + 'Trigger.TumblingWindowTrigger' : exports.TumblingWindowTrigger, + 'Trigger.BlobTrigger' : exports.BlobTrigger, + 'Trigger.ScheduleTrigger' : exports.ScheduleTrigger, + 'Trigger.MultiplePipelineTrigger' : exports.MultiplePipelineTrigger, + 'Activity.DatabricksNotebook' : exports.DatabricksNotebookActivity, + 'Activity.DataLakeAnalyticsU-SQL' : exports.DataLakeAnalyticsUSQLActivity, + 'Activity.AzureMLUpdateResource' : exports.AzureMLUpdateResourceActivity, + 'Activity.AzureMLBatchExecution' : exports.AzureMLBatchExecutionActivity, + 'Activity.GetMetadata' : exports.GetMetadataActivity, + 'Activity.WebActivity' : exports.WebActivity, + 'CopySource.AmazonRedshiftSource' : exports.AmazonRedshiftSource, + 'CopySource.SalesforceMarketingCloudSource' : exports.SalesforceMarketingCloudSource, + 'CopySource.VerticaSource' : exports.VerticaSource, + 'CopySource.NetezzaSource' : exports.NetezzaSource, + 'CopySource.ZohoSource' : exports.ZohoSource, + 'CopySource.XeroSource' : exports.XeroSource, + 'CopySource.SquareSource' : exports.SquareSource, + 'CopySource.SparkSource' : exports.SparkSource, + 'CopySource.ShopifySource' : exports.ShopifySource, + 'CopySource.ServiceNowSource' : exports.ServiceNowSource, + 'CopySource.QuickBooksSource' : exports.QuickBooksSource, + 'CopySource.PrestoSource' : exports.PrestoSource, + 'CopySource.PhoenixSource' : exports.PhoenixSource, + 'CopySource.PaypalSource' : exports.PaypalSource, + 'CopySource.MarketoSource' : exports.MarketoSource, + 'CopySource.MariaDBSource' : exports.MariaDBSource, + 'CopySource.MagentoSource' : exports.MagentoSource, + 'CopySource.JiraSource' : exports.JiraSource, + 'CopySource.ImpalaSource' : exports.ImpalaSource, + 'CopySource.HubspotSource' : exports.HubspotSource, + 'CopySource.HiveSource' : exports.HiveSource, + 'CopySource.HBaseSource' : exports.HBaseSource, + 'CopySource.GreenplumSource' : exports.GreenplumSource, + 'CopySource.GoogleBigQuerySource' : exports.GoogleBigQuerySource, + 'CopySource.EloquaSource' : exports.EloquaSource, + 'CopySource.DrillSource' : exports.DrillSource, + 'CopySource.CouchbaseSource' : exports.CouchbaseSource, + 'CopySource.ConcurSource' : exports.ConcurSource, + 'CopySource.AzurePostgreSqlSource' : exports.AzurePostgreSqlSource, + 'CopySource.AmazonMWSSource' : exports.AmazonMWSSource, + 'CopySource.HttpSource' : exports.HttpSource, + 'CopySource.AzureDataLakeStoreSource' : exports.AzureDataLakeStoreSource, + 'CopySource.MongoDbSource' : exports.MongoDbSource, + 'CopySource.CassandraSource' : exports.CassandraSource, + 'CopySource.WebSource' : exports.WebSource, + 'CopySource.OracleSource' : exports.OracleSource, + 'CopySource.AzureMySqlSource' : exports.AzureMySqlSource, + 'CopySource.HdfsSource' : exports.HdfsSource, + 'CopySource.FileSystemSource' : exports.FileSystemSource, + 'CopySource.SqlDWSource' : exports.SqlDWSource, + 'CopySource.SqlSource' : exports.SqlSource, + 'CopySource.SapEccSource' : exports.SapEccSource, + 'CopySource.SapCloudForCustomerSource' : exports.SapCloudForCustomerSource, + 'CopySource.SalesforceSource' : exports.SalesforceSource, + 'CopySource.RelationalSource' : exports.RelationalSource, + 'CopySource.DynamicsSource' : exports.DynamicsSource, + 'CopySource.DocumentDbCollectionSource' : exports.DocumentDbCollectionSource, + 'CopySource.BlobSource' : exports.BlobSource, + 'CopySource.AzureTableSource' : exports.AzureTableSource, + 'CopySource' : exports.CopySource, + 'Activity.Lookup' : exports.LookupActivity, + 'Activity.SqlServerStoredProcedure' : exports.SqlServerStoredProcedureActivity, + 'Activity.Custom' : exports.CustomActivity, + 'Activity.ExecuteSSISPackage' : exports.ExecuteSSISPackageActivity, + 'Activity.HDInsightSpark' : exports.HDInsightSparkActivity, + 'Activity.HDInsightStreaming' : exports.HDInsightStreamingActivity, + 'Activity.HDInsightMapReduce' : exports.HDInsightMapReduceActivity, + 'Activity.HDInsightPig' : exports.HDInsightPigActivity, + 'Activity.HDInsightHive' : exports.HDInsightHiveActivity, + 'CopyTranslator.TabularTranslator' : exports.TabularTranslator, + 'CopyTranslator' : exports.CopyTranslator, + 'CopySink.SalesforceSink' : exports.SalesforceSink, + 'CopySink.DynamicsSink' : exports.DynamicsSink, + 'CopySink.OdbcSink' : exports.OdbcSink, + 'CopySink.AzureSearchIndexSink' : exports.AzureSearchIndexSink, + 'CopySink.AzureDataLakeStoreSink' : exports.AzureDataLakeStoreSink, + 'CopySink.OracleSink' : exports.OracleSink, + 'CopySink.SqlDWSink' : exports.SqlDWSink, + 'CopySink.SqlSink' : exports.SqlSink, + 'CopySink.DocumentDbCollectionSink' : exports.DocumentDbCollectionSink, + 'CopySink.FileSystemSink' : exports.FileSystemSink, + 'CopySink.BlobSink' : exports.BlobSink, + 'CopySink.AzureTableSink' : exports.AzureTableSink, + 'CopySink.AzureQueueSink' : exports.AzureQueueSink, + 'CopySink.SapCloudForCustomerSink' : exports.SapCloudForCustomerSink, + 'CopySink' : exports.CopySink, + 'Activity.Copy' : exports.CopyActivity, + 'Activity.Execution' : exports.ExecutionActivity, + 'Activity.Filter' : exports.FilterActivity, + 'Activity.Until' : exports.UntilActivity, + 'Activity.Wait' : exports.WaitActivity, + 'Activity.ForEach' : exports.ForEachActivity, + 'Activity.IfCondition' : exports.IfConditionActivity, + 'Activity.ExecutePipeline' : exports.ExecutePipelineActivity, + 'Activity.Container' : exports.ControlActivity, + 'IntegrationRuntimeStatus.SelfHosted' : exports.SelfHostedIntegrationRuntimeStatus, + 'IntegrationRuntimeStatus.Managed' : exports.ManagedIntegrationRuntimeStatus, + 'LinkedIntegrationRuntimeProperties.RBAC' : exports.LinkedIntegrationRuntimeRbac, + 'LinkedIntegrationRuntimeProperties.Key' : exports.LinkedIntegrationRuntimeKey, + 'LinkedIntegrationRuntimeProperties' : exports.LinkedIntegrationRuntimeProperties, + 'IntegrationRuntime.SelfHosted' : exports.SelfHostedIntegrationRuntime, + 'IntegrationRuntime.Managed' : exports.ManagedIntegrationRuntime +}; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntime.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntime.js new file mode 100644 index 0000000000..e4db5cc0f4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntime.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'; + +/** + * Azure Data Factory nested object which serves as a compute resource for + * activities. + * + */ +class IntegrationRuntime { + /** + * Create a IntegrationRuntime. + * @member {string} [description] Integration runtime description. + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntime + * + * @returns {object} metadata of IntegrationRuntime + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntime', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntime', + className: 'IntegrationRuntime', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntime; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeAuthKeys.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeAuthKeys.js new file mode 100644 index 0000000000..f185d0c5b2 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeAuthKeys.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'; + +/** + * The integration runtime authentication keys. + * + */ +class IntegrationRuntimeAuthKeys { + /** + * Create a IntegrationRuntimeAuthKeys. + * @member {string} [authKey1] The primary integration runtime authentication + * key. + * @member {string} [authKey2] The secondary integration runtime + * authentication key. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeAuthKeys + * + * @returns {object} metadata of IntegrationRuntimeAuthKeys + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeAuthKeys', + type: { + name: 'Composite', + className: 'IntegrationRuntimeAuthKeys', + modelProperties: { + authKey1: { + required: false, + serializedName: 'authKey1', + type: { + name: 'String' + } + }, + authKey2: { + required: false, + serializedName: 'authKey2', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeAuthKeys; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeComputeProperties.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeComputeProperties.js new file mode 100644 index 0000000000..cc5d6142e1 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeComputeProperties.js @@ -0,0 +1,128 @@ +/* + * 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'); + +/** + * The compute resource properties for managed integration runtime. + * + */ +class IntegrationRuntimeComputeProperties { + /** + * Create a IntegrationRuntimeComputeProperties. + * @member {string} [location] The location for managed integration runtime. + * The supported regions could be found on + * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities + * @member {string} [nodeSize] The node size requirement to managed + * integration runtime. + * @member {number} [numberOfNodes] The required number of nodes for managed + * integration runtime. + * @member {number} [maxParallelExecutionsPerNode] Maximum parallel + * executions count per node for managed integration runtime. + * @member {object} [vNetProperties] VNet properties for managed integration + * runtime. + * @member {string} [vNetProperties.vNetId] The ID of the VNet that this + * integration runtime will join. + * @member {string} [vNetProperties.subnet] The name of the subnet this + * integration runtime will join. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeComputeProperties + * + * @returns {object} metadata of IntegrationRuntimeComputeProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeComputeProperties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeComputeProperties', + modelProperties: { + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + nodeSize: { + required: false, + serializedName: 'nodeSize', + type: { + name: 'String' + } + }, + numberOfNodes: { + required: false, + serializedName: 'numberOfNodes', + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + }, + maxParallelExecutionsPerNode: { + required: false, + serializedName: 'maxParallelExecutionsPerNode', + constraints: { + InclusiveMaximum: 8, + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + }, + vNetProperties: { + required: false, + serializedName: 'vNetProperties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeVNetProperties' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeComputeProperties; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeConnectionInfo.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeConnectionInfo.js new file mode 100644 index 0000000000..881aafa9f5 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeConnectionInfo.js @@ -0,0 +1,117 @@ +/* + * 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'; + +/** + * Connection information for encrypting the on-premises data source + * credentials. + * + */ +class IntegrationRuntimeConnectionInfo { + /** + * Create a IntegrationRuntimeConnectionInfo. + * @member {string} [serviceToken] The token generated in service. Callers + * use this token to authenticate to integration runtime. + * @member {string} [identityCertThumbprint] The integration runtime SSL + * certificate thumbprint. Click-Once application uses it to do server + * validation. + * @member {string} [hostServiceUri] The on-premises integration runtime host + * URL. + * @member {string} [version] The integration runtime version. + * @member {string} [publicKey] The public key for encrypting a credential + * when transferring the credential to the integration runtime. + * @member {boolean} [isIdentityCertExprired] Whether the identity + * certificate is expired. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeConnectionInfo + * + * @returns {object} metadata of IntegrationRuntimeConnectionInfo + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeConnectionInfo', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeConnectionInfo', + modelProperties: { + serviceToken: { + required: false, + readOnly: true, + serializedName: 'serviceToken', + type: { + name: 'String' + } + }, + identityCertThumbprint: { + required: false, + readOnly: true, + serializedName: 'identityCertThumbprint', + type: { + name: 'String' + } + }, + hostServiceUri: { + required: false, + readOnly: true, + serializedName: 'hostServiceUri', + type: { + name: 'String' + } + }, + version: { + required: false, + readOnly: true, + serializedName: 'version', + type: { + name: 'String' + } + }, + publicKey: { + required: false, + readOnly: true, + serializedName: 'publicKey', + type: { + name: 'String' + } + }, + isIdentityCertExprired: { + required: false, + readOnly: true, + serializedName: 'isIdentityCertExprired', + type: { + name: 'Boolean' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeConnectionInfo; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeCustomSetupScriptProperties.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeCustomSetupScriptProperties.js new file mode 100644 index 0000000000..bede46378a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeCustomSetupScriptProperties.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * Custom setup script properties for a managed dedicated integration runtime. + * + */ +class IntegrationRuntimeCustomSetupScriptProperties { + /** + * Create a IntegrationRuntimeCustomSetupScriptProperties. + * @member {string} [blobContainerUri] The URI of the Azure blob container + * that contains the custom setup script. + * @member {object} [sasToken] The SAS token of the Azure blob container. + * @member {string} [sasToken.value] Value of secure string. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeCustomSetupScriptProperties + * + * @returns {object} metadata of IntegrationRuntimeCustomSetupScriptProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeCustomSetupScriptProperties', + type: { + name: 'Composite', + className: 'IntegrationRuntimeCustomSetupScriptProperties', + modelProperties: { + blobContainerUri: { + required: false, + serializedName: 'blobContainerUri', + type: { + name: 'String' + } + }, + sasToken: { + required: false, + serializedName: 'sasToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeCustomSetupScriptProperties; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeListResponse.js new file mode 100644 index 0000000000..e8943ebf41 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeListResponse.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * A list of integration runtime resources. + */ +class IntegrationRuntimeListResponse extends Array { + /** + * Create a IntegrationRuntimeListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of IntegrationRuntimeListResponse + * + * @returns {object} metadata of IntegrationRuntimeListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeListResponse', + type: { + name: 'Composite', + className: 'IntegrationRuntimeListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'IntegrationRuntimeResourceElementType', + type: { + name: 'Composite', + className: 'IntegrationRuntimeResource' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeMonitoringData.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeMonitoringData.js new file mode 100644 index 0000000000..7211d4e39c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeMonitoringData.js @@ -0,0 +1,82 @@ +/* + * 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'); + +/** + * Get monitoring data response. + * + */ +class IntegrationRuntimeMonitoringData { + /** + * Create a IntegrationRuntimeMonitoringData. + * @member {string} [name] Integration runtime name. + * @member {array} [nodes] Integration runtime node monitoring data. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeMonitoringData + * + * @returns {object} metadata of IntegrationRuntimeMonitoringData + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeMonitoringData', + type: { + name: 'Composite', + className: 'IntegrationRuntimeMonitoringData', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + nodes: { + required: false, + serializedName: 'nodes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'IntegrationRuntimeNodeMonitoringDataElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeNodeMonitoringData' + } + } + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeMonitoringData; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeIpAddress.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeIpAddress.js new file mode 100644 index 0000000000..7e8c6be426 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeIpAddress.js @@ -0,0 +1,54 @@ +/* + * 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'; + +/** + * The IP address of self-hosted integration runtime node. + * + */ +class IntegrationRuntimeNodeIpAddress { + /** + * Create a IntegrationRuntimeNodeIpAddress. + * @member {string} [ipAddress] The IP address of self-hosted integration + * runtime node. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeNodeIpAddress + * + * @returns {object} metadata of IntegrationRuntimeNodeIpAddress + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeNodeIpAddress', + type: { + name: 'Composite', + className: 'IntegrationRuntimeNodeIpAddress', + modelProperties: { + ipAddress: { + required: false, + readOnly: true, + serializedName: 'ipAddress', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeNodeIpAddress; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeMonitoringData.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeMonitoringData.js new file mode 100644 index 0000000000..8d355cb972 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeNodeMonitoringData.js @@ -0,0 +1,134 @@ +/* + * 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'; + +/** + * Monitoring data for integration runtime node. + * + */ +class IntegrationRuntimeNodeMonitoringData { + /** + * Create a IntegrationRuntimeNodeMonitoringData. + * @member {string} [nodeName] Name of the integration runtime node. + * @member {number} [availableMemoryInMB] Available memory (MB) on the + * integration runtime node. + * @member {number} [cpuUtilization] CPU percentage on the integration + * runtime node. + * @member {number} [concurrentJobsLimit] Maximum concurrent jobs on the + * integration runtime node. + * @member {number} [concurrentJobsRunning] The number of jobs currently + * running on the integration runtime node. + * @member {number} [maxConcurrentJobs] The maximum concurrent jobs in this + * integration runtime. + * @member {number} [sentBytes] Sent bytes on the integration runtime node. + * @member {number} [receivedBytes] Received bytes on the integration runtime + * node. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeNodeMonitoringData + * + * @returns {object} metadata of IntegrationRuntimeNodeMonitoringData + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeNodeMonitoringData', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeNodeMonitoringData', + modelProperties: { + nodeName: { + required: false, + readOnly: true, + serializedName: 'nodeName', + type: { + name: 'String' + } + }, + availableMemoryInMB: { + required: false, + readOnly: true, + serializedName: 'availableMemoryInMB', + type: { + name: 'Number' + } + }, + cpuUtilization: { + required: false, + readOnly: true, + serializedName: 'cpuUtilization', + type: { + name: 'Number' + } + }, + concurrentJobsLimit: { + required: false, + readOnly: true, + serializedName: 'concurrentJobsLimit', + type: { + name: 'Number' + } + }, + concurrentJobsRunning: { + required: false, + readOnly: true, + serializedName: 'concurrentJobsRunning', + type: { + name: 'Number' + } + }, + maxConcurrentJobs: { + required: false, + readOnly: true, + serializedName: 'maxConcurrentJobs', + type: { + name: 'Number' + } + }, + sentBytes: { + required: false, + readOnly: true, + serializedName: 'sentBytes', + type: { + name: 'Number' + } + }, + receivedBytes: { + required: false, + readOnly: true, + serializedName: 'receivedBytes', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeNodeMonitoringData; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeReference.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeReference.js new file mode 100644 index 0000000000..9d126c0c8b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeReference.js @@ -0,0 +1,76 @@ +/* + * 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'; + +/** + * Integration runtime reference type. + * + */ +class IntegrationRuntimeReference { + /** + * Create a IntegrationRuntimeReference. + * @member {string} referenceName Reference integration runtime name. + * @member {object} [parameters] Arguments for integration runtime. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeReference + * + * @returns {object} metadata of IntegrationRuntimeReference + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeReference', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference', + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: 'type', + defaultValue: 'IntegrationRuntimeReference', + type: { + name: 'String' + } + }, + referenceName: { + required: true, + serializedName: 'referenceName', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeReference; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRegenerateKeyParameters.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRegenerateKeyParameters.js new file mode 100644 index 0000000000..3e084bddc4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRegenerateKeyParameters.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'; + +/** + * Parameters to regenerate the authentication key. + * + */ +class IntegrationRuntimeRegenerateKeyParameters { + /** + * Create a IntegrationRuntimeRegenerateKeyParameters. + * @member {string} [keyName] The name of the authentication key to + * regenerate. Possible values include: 'authKey1', 'authKey2' + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeRegenerateKeyParameters + * + * @returns {object} metadata of IntegrationRuntimeRegenerateKeyParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeRegenerateKeyParameters', + type: { + name: 'Composite', + className: 'IntegrationRuntimeRegenerateKeyParameters', + modelProperties: { + keyName: { + required: false, + serializedName: 'keyName', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeRegenerateKeyParameters; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRemoveNodeRequest.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRemoveNodeRequest.js new file mode 100644 index 0000000000..409605477f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeRemoveNodeRequest.js @@ -0,0 +1,64 @@ +/* + * 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'; + +/** + * Request to remove a node. + * + */ +class IntegrationRuntimeRemoveNodeRequest { + /** + * Create a IntegrationRuntimeRemoveNodeRequest. + * @member {string} [nodeName] The name of the node to be removed. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeRemoveNodeRequest + * + * @returns {object} metadata of IntegrationRuntimeRemoveNodeRequest + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeRemoveNodeRequest', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeRemoveNodeRequest', + modelProperties: { + nodeName: { + required: false, + serializedName: 'nodeName', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeRemoveNodeRequest; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeResource.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeResource.js new file mode 100644 index 0000000000..e059e8b254 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeResource.js @@ -0,0 +1,108 @@ +/* + * 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'); + +/** + * Integration runtime resource type. + * + * @extends models['SubResource'] + */ +class IntegrationRuntimeResource extends models['SubResource'] { + /** + * Create a IntegrationRuntimeResource. + * @member {object} properties Integration runtime properties. + * @member {string} [properties.description] Integration runtime description. + * @member {string} [properties.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of IntegrationRuntimeResource + * + * @returns {object} metadata of IntegrationRuntimeResource + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeResource', + type: { + name: 'Composite', + className: 'IntegrationRuntimeResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + }, + properties: { + required: true, + serializedName: 'properties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntime', + className: 'IntegrationRuntime' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeResource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisCatalogInfo.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisCatalogInfo.js new file mode 100644 index 0000000000..8d9c23c8fe --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisCatalogInfo.js @@ -0,0 +1,106 @@ +/* + * 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'); + +/** + * Catalog information for managed dedicated integration runtime. + * + */ +class IntegrationRuntimeSsisCatalogInfo { + /** + * Create a IntegrationRuntimeSsisCatalogInfo. + * @member {string} [catalogServerEndpoint] The catalog database server URL. + * @member {string} [catalogAdminUserName] The administrator user name of + * catalog database. + * @member {object} [catalogAdminPassword] The password of the administrator + * user account of the catalog database. + * @member {string} [catalogAdminPassword.value] Value of secure string. + * @member {string} [catalogPricingTier] The pricing tier for the catalog + * database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible + * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeSsisCatalogInfo + * + * @returns {object} metadata of IntegrationRuntimeSsisCatalogInfo + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeSsisCatalogInfo', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeSsisCatalogInfo', + modelProperties: { + catalogServerEndpoint: { + required: false, + serializedName: 'catalogServerEndpoint', + type: { + name: 'String' + } + }, + catalogAdminUserName: { + required: false, + serializedName: 'catalogAdminUserName', + constraints: { + MaxLength: 128, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + catalogAdminPassword: { + required: false, + serializedName: 'catalogAdminPassword', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + }, + catalogPricingTier: { + required: false, + serializedName: 'catalogPricingTier', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeSsisCatalogInfo; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisProperties.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisProperties.js new file mode 100644 index 0000000000..f161a3e77a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeSsisProperties.js @@ -0,0 +1,126 @@ +/* + * 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'); + +/** + * SSIS properties for managed integration runtime. + * + */ +class IntegrationRuntimeSsisProperties { + /** + * Create a IntegrationRuntimeSsisProperties. + * @member {object} [catalogInfo] Catalog information for managed dedicated + * integration runtime. + * @member {string} [catalogInfo.catalogServerEndpoint] The catalog database + * server URL. + * @member {string} [catalogInfo.catalogAdminUserName] The administrator user + * name of catalog database. + * @member {object} [catalogInfo.catalogAdminPassword] The password of the + * administrator user account of the catalog database. + * @member {string} [catalogInfo.catalogAdminPassword.value] Value of secure + * string. + * @member {string} [catalogInfo.catalogPricingTier] The pricing tier for the + * catalog database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible + * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [licenseType] License type for bringing your own license + * scenario. Possible values include: 'BasePrice', 'LicenseIncluded' + * @member {object} [customSetupScriptProperties] Custom setup script + * properties for a managed dedicated integration runtime. + * @member {string} [customSetupScriptProperties.blobContainerUri] The URI of + * the Azure blob container that contains the custom setup script. + * @member {object} [customSetupScriptProperties.sasToken] The SAS token of + * the Azure blob container. + * @member {string} [customSetupScriptProperties.sasToken.value] Value of + * secure string. + * @member {string} [edition] The edition for the SSIS Integration Runtime. + * Possible values include: 'Standard', 'Enterprise' + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeSsisProperties + * + * @returns {object} metadata of IntegrationRuntimeSsisProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeSsisProperties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeSsisProperties', + modelProperties: { + catalogInfo: { + required: false, + serializedName: 'catalogInfo', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeSsisCatalogInfo' + } + }, + licenseType: { + required: false, + serializedName: 'licenseType', + type: { + name: 'String' + } + }, + customSetupScriptProperties: { + required: false, + serializedName: 'customSetupScriptProperties', + type: { + name: 'Composite', + className: 'IntegrationRuntimeCustomSetupScriptProperties' + } + }, + edition: { + required: false, + serializedName: 'edition', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeSsisProperties; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatus.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatus.js new file mode 100644 index 0000000000..d6fa960a23 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatus.js @@ -0,0 +1,91 @@ +/* + * 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'; + +/** + * Integration runtime status. + * + */ +class IntegrationRuntimeStatus { + /** + * Create a IntegrationRuntimeStatus. + * @member {string} [dataFactoryName] The data factory name which the + * integration runtime belong to. + * @member {string} [state] The state of integration runtime. Possible values + * include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', + * 'NeedRegistration', 'Online', 'Limited', 'Offline' + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeStatus + * + * @returns {object} metadata of IntegrationRuntimeStatus + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeStatus', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntimeStatus', + className: 'IntegrationRuntimeStatus', + modelProperties: { + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'state', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeStatus; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusListResponse.js new file mode 100644 index 0000000000..fd28131a36 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusListResponse.js @@ -0,0 +1,71 @@ +/* + * 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'); + +/** + * A list of integration runtime status. + * + */ +class IntegrationRuntimeStatusListResponse { + /** + * Create a IntegrationRuntimeStatusListResponse. + * @member {array} value List of integration runtime status. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeStatusListResponse + * + * @returns {object} metadata of IntegrationRuntimeStatusListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeStatusListResponse', + type: { + name: 'Composite', + className: 'IntegrationRuntimeStatusListResponse', + modelProperties: { + value: { + required: true, + serializedName: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'IntegrationRuntimeStatusResponseElementType', + type: { + name: 'Composite', + className: 'IntegrationRuntimeStatusResponse' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeStatusListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusResponse.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusResponse.js new file mode 100644 index 0000000000..f52765aefa --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeStatusResponse.js @@ -0,0 +1,87 @@ +/* + * 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'); + +/** + * Integration runtime status response. + * + */ +class IntegrationRuntimeStatusResponse { + /** + * Create a IntegrationRuntimeStatusResponse. + * @member {string} [name] The integration runtime name. + * @member {object} properties Integration runtime properties. + * @member {string} [properties.dataFactoryName] The data factory name which + * the integration runtime belong to. + * @member {string} [properties.state] The state of integration runtime. + * Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', + * 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' + * @member {string} [properties.type] Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeStatusResponse + * + * @returns {object} metadata of IntegrationRuntimeStatusResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeStatusResponse', + type: { + name: 'Composite', + className: 'IntegrationRuntimeStatusResponse', + modelProperties: { + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + properties: { + required: true, + serializedName: 'properties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntimeStatus', + className: 'IntegrationRuntimeStatus' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeStatusResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeVNetProperties.js b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeVNetProperties.js new file mode 100644 index 0000000000..9993d07e9b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/integrationRuntimeVNetProperties.js @@ -0,0 +1,74 @@ +/* + * 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'; + +/** + * VNet properties for managed integration runtime. + * + */ +class IntegrationRuntimeVNetProperties { + /** + * Create a IntegrationRuntimeVNetProperties. + * @member {string} [vNetId] The ID of the VNet that this integration runtime + * will join. + * @member {string} [subnet] The name of the subnet this integration runtime + * will join. + */ + constructor() { + } + + /** + * Defines the metadata of IntegrationRuntimeVNetProperties + * + * @returns {object} metadata of IntegrationRuntimeVNetProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'IntegrationRuntimeVNetProperties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeVNetProperties', + modelProperties: { + vNetId: { + required: false, + serializedName: 'vNetId', + type: { + name: 'String' + } + }, + subnet: { + required: false, + serializedName: 'subnet', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = IntegrationRuntimeVNetProperties; diff --git a/lib/services/datafactoryManagement/lib/lib/models/jiraLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/jiraLinkedService.js new file mode 100644 index 0000000000..ca7e177f8a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/jiraLinkedService.js @@ -0,0 +1,188 @@ +/* + * 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'); + +/** + * Jira Serivce linked service. + * + * @extends models['LinkedService'] + */ +class JiraLinkedService extends models['LinkedService'] { + /** + * Create a JiraLinkedService. + * @member {object} host The IP address or host name of the Jira service. + * (e.g. jira.example.com) + * @member {object} [port] The TCP port that the Jira server uses to listen + * for client connections. The default value is 443 if connecting through + * HTTPS, or 8080 if connecting through HTTP. + * @member {object} username The user name that you use to access Jira + * Service. + * @member {object} [password] The password corresponding to the user name + * that you provided in the username field. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of JiraLinkedService + * + * @returns {object} metadata of JiraLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Jira', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'JiraLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + username: { + required: true, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = JiraLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/jiraObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/jiraObjectDataset.js new file mode 100644 index 0000000000..3da5b0002b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/jiraObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Jira Serivce dataset. + * + * @extends models['Dataset'] + */ +class JiraObjectDataset extends models['Dataset'] { + /** + * Create a JiraObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of JiraObjectDataset + * + * @returns {object} metadata of JiraObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'JiraObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'JiraObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = JiraObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/jiraSource.js b/lib/services/datafactoryManagement/lib/lib/models/jiraSource.js new file mode 100644 index 0000000000..6d1c0b79bc --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/jiraSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Jira Serivce source. + * + * @extends models['CopySource'] + */ +class JiraSource extends models['CopySource'] { + /** + * Create a JiraSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of JiraSource + * + * @returns {object} metadata of JiraSource + * + */ + mapper() { + return { + required: false, + serializedName: 'JiraSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'JiraSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = JiraSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/jsonFormat.js b/lib/services/datafactoryManagement/lib/lib/models/jsonFormat.js new file mode 100644 index 0000000000..2ddc8f8bc9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/jsonFormat.js @@ -0,0 +1,133 @@ +/* + * 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'); + +/** + * The data stored in JSON format. + * + * @extends models['DatasetStorageFormat'] + */ +class JsonFormat extends models['DatasetStorageFormat'] { + /** + * Create a JsonFormat. + * @member {string} [filePattern] File pattern of JSON. To be more specific, + * the way of separating a collection of JSON objects. The default value is + * 'setOfObjects'. It is case-sensitive. Possible values include: + * 'setOfObjects', 'arrayOfObjects' + * @member {object} [nestingSeparator] The character used to separate nesting + * levels. Default value is '.' (dot). Type: string (or Expression with + * resultType string). + * @member {object} [encodingName] The code page name of the preferred + * encoding. If not provided, the default value is 'utf-8', unless the byte + * order mark (BOM) denotes another Unicode encoding. The full list of + * supported values can be found in the 'Name' column of the table of + * encodings in the following reference: + * https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or + * Expression with resultType string). + * @member {object} [jsonNodeReference] The JSONPath of the JSON array + * element to be flattened. Example: "$.ArrayPath". Type: string (or + * Expression with resultType string). + * @member {object} [jsonPathDefinition] The JSONPath definition for each + * column mapping with a customized column name to extract data from JSON + * file. For fields under root object, start with "$"; for fields inside the + * array chosen by jsonNodeReference property, start from the array element. + * Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. + * Type: object (or Expression with resultType object). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of JsonFormat + * + * @returns {object} metadata of JsonFormat + * + */ + mapper() { + return { + required: false, + serializedName: 'JsonFormat', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'JsonFormat', + modelProperties: { + serializer: { + required: false, + serializedName: 'serializer', + type: { + name: 'Object' + } + }, + deserializer: { + required: false, + serializedName: 'deserializer', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + filePattern: { + required: false, + serializedName: 'filePattern', + type: { + name: 'String' + } + }, + nestingSeparator: { + required: false, + serializedName: 'nestingSeparator', + type: { + name: 'Object' + } + }, + encodingName: { + required: false, + serializedName: 'encodingName', + type: { + name: 'Object' + } + }, + jsonNodeReference: { + required: false, + serializedName: 'jsonNodeReference', + type: { + name: 'Object' + } + }, + jsonPathDefinition: { + required: false, + serializedName: 'jsonPathDefinition', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = JsonFormat; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntime.js b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntime.js new file mode 100644 index 0000000000..dd674fb676 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntime.js @@ -0,0 +1,93 @@ +/* + * 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'; + +/** + * The linked integration runtime information. + * + */ +class LinkedIntegrationRuntime { + /** + * Create a LinkedIntegrationRuntime. + * @member {string} [name] The name of the linked integration runtime. + * @member {string} [subscriptionId] The subscription ID for which the linked + * integration runtime belong to. + * @member {string} [dataFactoryName] The name of the data factory for which + * the linked integration runtime belong to. + * @member {string} [dataFactoryLocation] The location of the data factory + * for which the linked integration runtime belong to. + * @member {date} [createTime] The creating time of the linked integration + * runtime. + */ + constructor() { + } + + /** + * Defines the metadata of LinkedIntegrationRuntime + * + * @returns {object} metadata of LinkedIntegrationRuntime + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedIntegrationRuntime', + type: { + name: 'Composite', + className: 'LinkedIntegrationRuntime', + modelProperties: { + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + subscriptionId: { + required: false, + readOnly: true, + serializedName: 'subscriptionId', + type: { + name: 'String' + } + }, + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, + dataFactoryLocation: { + required: false, + readOnly: true, + serializedName: 'dataFactoryLocation', + type: { + name: 'String' + } + }, + createTime: { + required: false, + readOnly: true, + serializedName: 'createTime', + type: { + name: 'DateTime' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntime; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeKey.js b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeKey.js new file mode 100644 index 0000000000..5d4e0ccce8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeKey.js @@ -0,0 +1,76 @@ +/* + * 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'); + +/** + * The base definition of a secret type. + * + * @extends models['LinkedIntegrationRuntimeProperties'] + */ +class LinkedIntegrationRuntimeKey extends models['LinkedIntegrationRuntimeProperties'] { + /** + * Create a LinkedIntegrationRuntimeKey. + * @member {object} key Type of the secret. + * @member {string} [key.value] Value of secure string. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LinkedIntegrationRuntimeKey + * + * @returns {object} metadata of LinkedIntegrationRuntimeKey + * + */ + mapper() { + return { + required: false, + serializedName: 'Key', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeKey', + modelProperties: { + authorizationType: { + required: true, + serializedName: 'authorizationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + key: { + required: true, + serializedName: 'key', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntimeKey; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeProperties.js b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeProperties.js new file mode 100644 index 0000000000..5e9d9d3444 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeProperties.js @@ -0,0 +1,58 @@ +/* + * 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'; + +/** + * The base definition of a secret type. + * + */ +class LinkedIntegrationRuntimeProperties { + /** + * Create a LinkedIntegrationRuntimeProperties. + * @member {string} authorizationType Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of LinkedIntegrationRuntimeProperties + * + * @returns {object} metadata of LinkedIntegrationRuntimeProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedIntegrationRuntimeProperties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeProperties', + modelProperties: { + authorizationType: { + required: true, + serializedName: 'authorizationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntimeProperties; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeRbac.js b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeRbac.js new file mode 100644 index 0000000000..2393b48d1d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedIntegrationRuntimeRbac.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * The base definition of a secret type. + * + * @extends models['LinkedIntegrationRuntimeProperties'] + */ +class LinkedIntegrationRuntimeRbac extends models['LinkedIntegrationRuntimeProperties'] { + /** + * Create a LinkedIntegrationRuntimeRbac. + * @member {string} resourceId The resource ID of the integration runtime to + * be shared. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LinkedIntegrationRuntimeRbac + * + * @returns {object} metadata of LinkedIntegrationRuntimeRbac + * + */ + mapper() { + return { + required: false, + serializedName: 'RBAC', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeRbac', + modelProperties: { + authorizationType: { + required: true, + serializedName: 'authorizationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + resourceId: { + required: true, + serializedName: 'resourceId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LinkedIntegrationRuntimeRbac; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedService.js b/lib/services/datafactoryManagement/lib/lib/models/linkedService.js new file mode 100644 index 0000000000..09c619c7c3 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedService.js @@ -0,0 +1,127 @@ +/* + * 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'); + +/** + * The Azure Data Factory nested object which contains the information and + * credential which can be used to connect with related store or compute + * resource. + * + */ +class LinkedService { + /** + * Create a LinkedService. + * @member {object} [connectVia] The integration runtime reference. + * @member {string} [connectVia.referenceName] Reference integration runtime + * name. + * @member {object} [connectVia.parameters] Arguments for integration + * runtime. + * @member {string} [description] Linked service description. + * @member {object} [parameters] Parameters for linked service. + * @member {array} [annotations] List of tags that can be used for describing + * the Dataset. + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of LinkedService + * + * @returns {object} metadata of LinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedService', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'LinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + } + } + } + }; + } +} + +module.exports = LinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedServiceListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/linkedServiceListResponse.js new file mode 100644 index 0000000000..2dcfd07f0c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedServiceListResponse.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * A list of linked service resources. + */ +class LinkedServiceListResponse extends Array { + /** + * Create a LinkedServiceListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LinkedServiceListResponse + * + * @returns {object} metadata of LinkedServiceListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedServiceListResponse', + type: { + name: 'Composite', + className: 'LinkedServiceListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceResourceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceResource' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LinkedServiceListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedServiceReference.js b/lib/services/datafactoryManagement/lib/lib/models/linkedServiceReference.js new file mode 100644 index 0000000000..3bd3baacb6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedServiceReference.js @@ -0,0 +1,76 @@ +/* + * 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'; + +/** + * Linked service reference type. + * + */ +class LinkedServiceReference { + /** + * Create a LinkedServiceReference. + * @member {string} referenceName Reference LinkedService name. + * @member {object} [parameters] Arguments for LinkedService. + */ + constructor() { + } + + /** + * Defines the metadata of LinkedServiceReference + * + * @returns {object} metadata of LinkedServiceReference + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedServiceReference', + type: { + name: 'Composite', + className: 'LinkedServiceReference', + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: 'type', + defaultValue: 'LinkedServiceReference', + type: { + name: 'String' + } + }, + referenceName: { + required: true, + serializedName: 'referenceName', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = LinkedServiceReference; diff --git a/lib/services/datafactoryManagement/lib/lib/models/linkedServiceResource.js b/lib/services/datafactoryManagement/lib/lib/models/linkedServiceResource.js new file mode 100644 index 0000000000..0d767d32f3 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/linkedServiceResource.js @@ -0,0 +1,118 @@ +/* + * 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'); + +/** + * Linked service resource type. + * + * @extends models['SubResource'] + */ +class LinkedServiceResource extends models['SubResource'] { + /** + * Create a LinkedServiceResource. + * @member {object} properties Properties of linked service. + * @member {object} [properties.connectVia] The integration runtime + * reference. + * @member {string} [properties.connectVia.referenceName] Reference + * integration runtime name. + * @member {object} [properties.connectVia.parameters] Arguments for + * integration runtime. + * @member {string} [properties.description] Linked service description. + * @member {object} [properties.parameters] Parameters for linked service. + * @member {array} [properties.annotations] List of tags that can be used for + * describing the Dataset. + * @member {string} [properties.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LinkedServiceResource + * + * @returns {object} metadata of LinkedServiceResource + * + */ + mapper() { + return { + required: false, + serializedName: 'LinkedServiceResource', + type: { + name: 'Composite', + className: 'LinkedServiceResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + }, + properties: { + required: true, + serializedName: 'properties', + defaultValue: {}, + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'LinkedService' + } + } + } + } + }; + } +} + +module.exports = LinkedServiceResource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/lookupActivity.js b/lib/services/datafactoryManagement/lib/lib/models/lookupActivity.js new file mode 100644 index 0000000000..6120d6f5aa --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/lookupActivity.js @@ -0,0 +1,185 @@ +/* + * 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'); + +/** + * Lookup activity. + * + * @extends models['ExecutionActivity'] + */ +class LookupActivity extends models['ExecutionActivity'] { + /** + * Create a LookupActivity. + * @member {object} source Dataset-specific source properties, same as copy + * activity source. + * @member {object} [source.sourceRetryCount] Source retry count. Type: + * integer (or Expression with resultType integer). + * @member {object} [source.sourceRetryWait] Source retry wait. Type: string + * (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {string} [source.type] Polymorphic Discriminator + * @member {object} dataset Lookup activity dataset reference. + * @member {string} [dataset.referenceName] Reference dataset name. + * @member {object} [dataset.parameters] Arguments for dataset. + * @member {object} [firstRowOnly] Whether to return first row or all rows. + * Default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LookupActivity + * + * @returns {object} metadata of LookupActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Lookup', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'LookupActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + source: { + required: true, + serializedName: 'typeProperties.source', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'CopySource' + } + }, + dataset: { + required: true, + serializedName: 'typeProperties.dataset', + defaultValue: {}, + type: { + name: 'Composite', + className: 'DatasetReference' + } + }, + firstRowOnly: { + required: false, + serializedName: 'typeProperties.firstRowOnly', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = LookupActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/magentoLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/magentoLinkedService.js new file mode 100644 index 0000000000..f3f1f45037 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/magentoLinkedService.js @@ -0,0 +1,168 @@ +/* + * 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'); + +/** + * Magento server linked service. + * + * @extends models['LinkedService'] + */ +class MagentoLinkedService extends models['LinkedService'] { + /** + * Create a MagentoLinkedService. + * @member {object} host The URL of the Magento instance. (i.e. + * 192.168.222.110/magento3) + * @member {object} [accessToken] The access token from Magento. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MagentoLinkedService + * + * @returns {object} metadata of MagentoLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Magento', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'MagentoLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + accessToken: { + required: false, + serializedName: 'typeProperties.accessToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MagentoLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/magentoObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/magentoObjectDataset.js new file mode 100644 index 0000000000..5a0637de05 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/magentoObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Magento server dataset. + * + * @extends models['Dataset'] + */ +class MagentoObjectDataset extends models['Dataset'] { + /** + * Create a MagentoObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MagentoObjectDataset + * + * @returns {object} metadata of MagentoObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'MagentoObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'MagentoObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = MagentoObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/magentoSource.js b/lib/services/datafactoryManagement/lib/lib/models/magentoSource.js new file mode 100644 index 0000000000..9a68a18f02 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/magentoSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Magento server source. + * + * @extends models['CopySource'] + */ +class MagentoSource extends models['CopySource'] { + /** + * Create a MagentoSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MagentoSource + * + * @returns {object} metadata of MagentoSource + * + */ + mapper() { + return { + required: false, + serializedName: 'MagentoSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'MagentoSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MagentoSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntime.js b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntime.js new file mode 100644 index 0000000000..6ebe822d53 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntime.js @@ -0,0 +1,169 @@ +/* + * 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'); + +/** + * Managed integration runtime, including managed elastic and managed dedicated + * integration runtimes. + * + * @extends models['IntegrationRuntime'] + */ +class ManagedIntegrationRuntime extends models['IntegrationRuntime'] { + /** + * Create a ManagedIntegrationRuntime. + * @member {string} [state] Integration runtime state, only valid for managed + * dedicated integration runtime. Possible values include: 'Initial', + * 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', + * 'Online', 'Limited', 'Offline' + * @member {object} [computeProperties] The compute resource for managed + * integration runtime. + * @member {string} [computeProperties.location] The location for managed + * integration runtime. The supported regions could be found on + * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities + * @member {string} [computeProperties.nodeSize] The node size requirement to + * managed integration runtime. + * @member {number} [computeProperties.numberOfNodes] The required number of + * nodes for managed integration runtime. + * @member {number} [computeProperties.maxParallelExecutionsPerNode] Maximum + * parallel executions count per node for managed integration runtime. + * @member {object} [computeProperties.vNetProperties] VNet properties for + * managed integration runtime. + * @member {string} [computeProperties.vNetProperties.vNetId] The ID of the + * VNet that this integration runtime will join. + * @member {string} [computeProperties.vNetProperties.subnet] The name of the + * subnet this integration runtime will join. + * @member {object} [ssisProperties] SSIS properties for managed integration + * runtime. + * @member {object} [ssisProperties.catalogInfo] Catalog information for + * managed dedicated integration runtime. + * @member {string} [ssisProperties.catalogInfo.catalogServerEndpoint] The + * catalog database server URL. + * @member {string} [ssisProperties.catalogInfo.catalogAdminUserName] The + * administrator user name of catalog database. + * @member {object} [ssisProperties.catalogInfo.catalogAdminPassword] The + * password of the administrator user account of the catalog database. + * @member {string} [ssisProperties.catalogInfo.catalogAdminPassword.value] + * Value of secure string. + * @member {string} [ssisProperties.catalogInfo.catalogPricingTier] The + * pricing tier for the catalog database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible + * values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @member {string} [ssisProperties.licenseType] License type for bringing + * your own license scenario. Possible values include: 'BasePrice', + * 'LicenseIncluded' + * @member {object} [ssisProperties.customSetupScriptProperties] Custom setup + * script properties for a managed dedicated integration runtime. + * @member {string} + * [ssisProperties.customSetupScriptProperties.blobContainerUri] The URI of + * the Azure blob container that contains the custom setup script. + * @member {object} [ssisProperties.customSetupScriptProperties.sasToken] The + * SAS token of the Azure blob container. + * @member {string} + * [ssisProperties.customSetupScriptProperties.sasToken.value] Value of + * secure string. + * @member {string} [ssisProperties.edition] The edition for the SSIS + * Integration Runtime. Possible values include: 'Standard', 'Enterprise' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ManagedIntegrationRuntime + * + * @returns {object} metadata of ManagedIntegrationRuntime + * + */ + mapper() { + return { + required: false, + serializedName: 'Managed', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntime', + className: 'ManagedIntegrationRuntime', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'state', + type: { + name: 'String' + } + }, + computeProperties: { + required: false, + serializedName: 'typeProperties.computeProperties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeComputeProperties' + } + }, + ssisProperties: { + required: false, + serializedName: 'typeProperties.ssisProperties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'IntegrationRuntimeSsisProperties' + } + } + } + } + }; + } +} + +module.exports = ManagedIntegrationRuntime; diff --git a/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeError.js b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeError.js new file mode 100644 index 0000000000..a3e54fc310 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeError.js @@ -0,0 +1,99 @@ +/* + * 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'; + +/** + * Error definition for managed integration runtime. + * + */ +class ManagedIntegrationRuntimeError { + /** + * Create a ManagedIntegrationRuntimeError. + * @member {date} [time] The time when the error occurred. + * @member {string} [code] Error code. + * @member {array} [parameters] Managed integration runtime error parameters. + * @member {string} [message] Error message. + */ + constructor() { + } + + /** + * Defines the metadata of ManagedIntegrationRuntimeError + * + * @returns {object} metadata of ManagedIntegrationRuntimeError + * + */ + mapper() { + return { + required: false, + serializedName: 'ManagedIntegrationRuntimeError', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ManagedIntegrationRuntimeError', + modelProperties: { + time: { + required: false, + readOnly: true, + serializedName: 'time', + type: { + name: 'DateTime' + } + }, + code: { + required: false, + readOnly: true, + serializedName: 'code', + type: { + name: 'String' + } + }, + parameters: { + required: false, + readOnly: true, + serializedName: 'parameters', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + message: { + required: false, + readOnly: true, + serializedName: 'message', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ManagedIntegrationRuntimeError; diff --git a/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeNode.js b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeNode.js new file mode 100644 index 0000000000..6a2e7482d0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeNode.js @@ -0,0 +1,107 @@ +/* + * 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'); + +/** + * Properties of integration runtime node. + * + */ +class ManagedIntegrationRuntimeNode { + /** + * Create a ManagedIntegrationRuntimeNode. + * @member {string} [nodeId] The managed integration runtime node id. + * @member {string} [status] The managed integration runtime node status. + * Possible values include: 'Starting', 'Available', 'Recycling', + * 'Unavailable' + * @member {array} [errors] The errors that occurred on this integration + * runtime node. + */ + constructor() { + } + + /** + * Defines the metadata of ManagedIntegrationRuntimeNode + * + * @returns {object} metadata of ManagedIntegrationRuntimeNode + * + */ + mapper() { + return { + required: false, + serializedName: 'ManagedIntegrationRuntimeNode', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ManagedIntegrationRuntimeNode', + modelProperties: { + nodeId: { + required: false, + readOnly: true, + serializedName: 'nodeId', + type: { + name: 'String' + } + }, + status: { + required: false, + readOnly: true, + serializedName: 'status', + type: { + name: 'String' + } + }, + errors: { + required: false, + serializedName: 'errors', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ManagedIntegrationRuntimeErrorElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ManagedIntegrationRuntimeError' + } + } + } + } + } + } + }; + } +} + +module.exports = ManagedIntegrationRuntimeNode; diff --git a/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeOperationResult.js b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeOperationResult.js new file mode 100644 index 0000000000..f970d1a9db --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeOperationResult.js @@ -0,0 +1,117 @@ +/* + * 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'; + +/** + * Properties of managed integration runtime operation result. + * + */ +class ManagedIntegrationRuntimeOperationResult { + /** + * Create a ManagedIntegrationRuntimeOperationResult. + * @member {string} [type] The operation type. Could be start or stop. + * @member {date} [startTime] The start time of the operation. + * @member {string} [result] The operation result. + * @member {string} [errorCode] The error code. + * @member {array} [parameters] Managed integration runtime error parameters. + * @member {string} [activityId] The activity id for the operation request. + */ + constructor() { + } + + /** + * Defines the metadata of ManagedIntegrationRuntimeOperationResult + * + * @returns {object} metadata of ManagedIntegrationRuntimeOperationResult + * + */ + mapper() { + return { + required: false, + serializedName: 'ManagedIntegrationRuntimeOperationResult', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ManagedIntegrationRuntimeOperationResult', + modelProperties: { + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + startTime: { + required: false, + readOnly: true, + serializedName: 'startTime', + type: { + name: 'DateTime' + } + }, + result: { + required: false, + readOnly: true, + serializedName: 'result', + type: { + name: 'String' + } + }, + errorCode: { + required: false, + readOnly: true, + serializedName: 'errorCode', + type: { + name: 'String' + } + }, + parameters: { + required: false, + readOnly: true, + serializedName: 'parameters', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + activityId: { + required: false, + readOnly: true, + serializedName: 'activityId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ManagedIntegrationRuntimeOperationResult; diff --git a/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeStatus.js b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeStatus.js new file mode 100644 index 0000000000..19f3aa9717 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/managedIntegrationRuntimeStatus.js @@ -0,0 +1,178 @@ +/* + * 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'); + +/** + * Managed integration runtime status. + * + * @extends models['IntegrationRuntimeStatus'] + */ +class ManagedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] { + /** + * Create a ManagedIntegrationRuntimeStatus. + * @member {date} [createTime] The time at which the integration runtime was + * created, in ISO8601 format. + * @member {array} [nodes] The list of nodes for managed integration runtime. + * @member {array} [otherErrors] The errors that occurred on this integration + * runtime. + * @member {object} [lastOperation] The last operation result that occurred + * on this integration runtime. + * @member {string} [lastOperation.type] The operation type. Could be start + * or stop. + * @member {date} [lastOperation.startTime] The start time of the operation. + * @member {string} [lastOperation.result] The operation result. + * @member {string} [lastOperation.errorCode] The error code. + * @member {array} [lastOperation.parameters] Managed integration runtime + * error parameters. + * @member {string} [lastOperation.activityId] The activity id for the + * operation request. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ManagedIntegrationRuntimeStatus + * + * @returns {object} metadata of ManagedIntegrationRuntimeStatus + * + */ + mapper() { + return { + required: false, + serializedName: 'Managed', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntimeStatus', + className: 'ManagedIntegrationRuntimeStatus', + modelProperties: { + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'state', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + createTime: { + required: false, + readOnly: true, + serializedName: 'typeProperties.createTime', + type: { + name: 'DateTime' + } + }, + nodes: { + required: false, + readOnly: true, + serializedName: 'typeProperties.nodes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ManagedIntegrationRuntimeNodeElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ManagedIntegrationRuntimeNode' + } + } + } + }, + otherErrors: { + required: false, + readOnly: true, + serializedName: 'typeProperties.otherErrors', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ManagedIntegrationRuntimeErrorElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ManagedIntegrationRuntimeError' + } + } + } + }, + lastOperation: { + required: false, + readOnly: true, + serializedName: 'typeProperties.lastOperation', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ManagedIntegrationRuntimeOperationResult' + } + } + } + } + }; + } +} + +module.exports = ManagedIntegrationRuntimeStatus; diff --git a/lib/services/datafactoryManagement/lib/lib/models/mariaDBLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/mariaDBLinkedService.js new file mode 100644 index 0000000000..6c3a719f53 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/mariaDBLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * MariaDB server linked service. + * + * @extends models['LinkedService'] + */ +class MariaDBLinkedService extends models['LinkedService'] { + /** + * Create a MariaDBLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MariaDBLinkedService + * + * @returns {object} metadata of MariaDBLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'MariaDB', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'MariaDBLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MariaDBLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/mariaDBSource.js b/lib/services/datafactoryManagement/lib/lib/models/mariaDBSource.js new file mode 100644 index 0000000000..4b330ab8fe --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/mariaDBSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity MariaDB server source. + * + * @extends models['CopySource'] + */ +class MariaDBSource extends models['CopySource'] { + /** + * Create a MariaDBSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MariaDBSource + * + * @returns {object} metadata of MariaDBSource + * + */ + mapper() { + return { + required: false, + serializedName: 'MariaDBSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'MariaDBSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MariaDBSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/mariaDBTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/mariaDBTableDataset.js new file mode 100644 index 0000000000..b75df28689 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/mariaDBTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * MariaDB server dataset. + * + * @extends models['Dataset'] + */ +class MariaDBTableDataset extends models['Dataset'] { + /** + * Create a MariaDBTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MariaDBTableDataset + * + * @returns {object} metadata of MariaDBTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'MariaDBTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'MariaDBTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = MariaDBTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/marketoLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/marketoLinkedService.js new file mode 100644 index 0000000000..ed39818371 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/marketoLinkedService.js @@ -0,0 +1,176 @@ +/* + * 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'); + +/** + * Marketo server linked service. + * + * @extends models['LinkedService'] + */ +class MarketoLinkedService extends models['LinkedService'] { + /** + * Create a MarketoLinkedService. + * @member {object} endpoint The endpoint of the Marketo server. (i.e. + * 123-ABC-321.mktorest.com) + * @member {object} clientId The client Id of your Marketo service. + * @member {object} [clientSecret] The client secret of your Marketo service. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MarketoLinkedService + * + * @returns {object} metadata of MarketoLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Marketo', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'MarketoLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + endpoint: { + required: true, + serializedName: 'typeProperties.endpoint', + type: { + name: 'Object' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MarketoLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/marketoObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/marketoObjectDataset.js new file mode 100644 index 0000000000..3e4ff2624a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/marketoObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Marketo server dataset. + * + * @extends models['Dataset'] + */ +class MarketoObjectDataset extends models['Dataset'] { + /** + * Create a MarketoObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MarketoObjectDataset + * + * @returns {object} metadata of MarketoObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'MarketoObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'MarketoObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = MarketoObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/marketoSource.js b/lib/services/datafactoryManagement/lib/lib/models/marketoSource.js new file mode 100644 index 0000000000..d0b0a0648c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/marketoSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Marketo server source. + * + * @extends models['CopySource'] + */ +class MarketoSource extends models['CopySource'] { + /** + * Create a MarketoSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MarketoSource + * + * @returns {object} metadata of MarketoSource + * + */ + mapper() { + return { + required: false, + serializedName: 'MarketoSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'MarketoSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MarketoSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/mongoDbCollectionDataset.js b/lib/services/datafactoryManagement/lib/lib/models/mongoDbCollectionDataset.js new file mode 100644 index 0000000000..6ead59510d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/mongoDbCollectionDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The MongoDB database dataset. + * + * @extends models['Dataset'] + */ +class MongoDbCollectionDataset extends models['Dataset'] { + /** + * Create a MongoDbCollectionDataset. + * @member {object} collectionName The table name of the MongoDB database. + * Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MongoDbCollectionDataset + * + * @returns {object} metadata of MongoDbCollectionDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'MongoDbCollection', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'MongoDbCollectionDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + collectionName: { + required: true, + serializedName: 'typeProperties.collectionName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MongoDbCollectionDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/mongoDbLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/mongoDbLinkedService.js new file mode 100644 index 0000000000..5da4ea0198 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/mongoDbLinkedService.js @@ -0,0 +1,206 @@ +/* + * 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'); + +/** + * Linked service for MongoDb data source. + * + * @extends models['LinkedService'] + */ +class MongoDbLinkedService extends models['LinkedService'] { + /** + * Create a MongoDbLinkedService. + * @member {object} server The IP address or server name of the MongoDB + * server. Type: string (or Expression with resultType string). + * @member {string} [authenticationType] The authentication type to be used + * to connect to the MongoDB database. Possible values include: 'Basic', + * 'Anonymous' + * @member {object} databaseName The name of the MongoDB database that you + * want to access. Type: string (or Expression with resultType string). + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [authSource] Database to verify the username and + * password. Type: string (or Expression with resultType string). + * @member {object} [port] The TCP port number that the MongoDB server uses + * to listen for client connections. The default value is 27017. Type: + * integer (or Expression with resultType integer), minimum: 0. + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. Type: boolean + * (or Expression with resultType boolean). + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * Type: boolean (or Expression with resultType boolean). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MongoDbLinkedService + * + * @returns {object} metadata of MongoDbLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'MongoDb', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'MongoDbLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + databaseName: { + required: true, + serializedName: 'typeProperties.databaseName', + type: { + name: 'Object' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + authSource: { + required: false, + serializedName: 'typeProperties.authSource', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MongoDbLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/mongoDbSource.js b/lib/services/datafactoryManagement/lib/lib/models/mongoDbSource.js new file mode 100644 index 0000000000..0dd1c81ac4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/mongoDbSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity source for a MongoDB database. + * + * @extends models['CopySource'] + */ +class MongoDbSource extends models['CopySource'] { + /** + * Create a MongoDbSource. + * @member {object} [query] Database query. Should be a SQL-92 query + * expression. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MongoDbSource + * + * @returns {object} metadata of MongoDbSource + * + */ + mapper() { + return { + required: false, + serializedName: 'MongoDbSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'MongoDbSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MongoDbSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/multiplePipelineTrigger.js b/lib/services/datafactoryManagement/lib/lib/models/multiplePipelineTrigger.js new file mode 100644 index 0000000000..46ea6ac034 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/multiplePipelineTrigger.js @@ -0,0 +1,93 @@ +/* + * 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'); + +/** + * Base class for all triggers that support one to many model for trigger to + * pipeline. + * + * @extends models['Trigger'] + */ +class MultiplePipelineTrigger extends models['Trigger'] { + /** + * Create a MultiplePipelineTrigger. + * @member {array} [pipelines] Pipelines that need to be started. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MultiplePipelineTrigger + * + * @returns {object} metadata of MultiplePipelineTrigger + * + */ + mapper() { + return { + required: false, + serializedName: 'MultiplePipelineTrigger', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', + className: 'MultiplePipelineTrigger', + 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' + } + } + } + } + } + } + }; + } +} + +module.exports = MultiplePipelineTrigger; diff --git a/lib/services/datafactoryManagement/lib/lib/models/mySqlLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/mySqlLinkedService.js new file mode 100644 index 0000000000..ce64b3ca47 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/mySqlLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Linked service for MySQL data source. + * + * @extends models['LinkedService'] + */ +class MySqlLinkedService extends models['LinkedService'] { + /** + * Create a MySqlLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of MySqlLinkedService + * + * @returns {object} metadata of MySqlLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'MySql', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'MySqlLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = MySqlLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/netezzaLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/netezzaLinkedService.js new file mode 100644 index 0000000000..eae486da8b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/netezzaLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Netezza linked service. + * + * @extends models['LinkedService'] + */ +class NetezzaLinkedService extends models['LinkedService'] { + /** + * Create a NetezzaLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetezzaLinkedService + * + * @returns {object} metadata of NetezzaLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Netezza', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'NetezzaLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = NetezzaLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/netezzaSource.js b/lib/services/datafactoryManagement/lib/lib/models/netezzaSource.js new file mode 100644 index 0000000000..c18fc59d4b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/netezzaSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Netezza source. + * + * @extends models['CopySource'] + */ +class NetezzaSource extends models['CopySource'] { + /** + * Create a NetezzaSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetezzaSource + * + * @returns {object} metadata of NetezzaSource + * + */ + mapper() { + return { + required: false, + serializedName: 'NetezzaSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'NetezzaSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = NetezzaSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/netezzaTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/netezzaTableDataset.js new file mode 100644 index 0000000000..c8444b0fb6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/netezzaTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Netezza dataset. + * + * @extends models['Dataset'] + */ +class NetezzaTableDataset extends models['Dataset'] { + /** + * Create a NetezzaTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetezzaTableDataset + * + * @returns {object} metadata of NetezzaTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'NetezzaTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'NetezzaTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = NetezzaTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/oDataLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/oDataLinkedService.js new file mode 100644 index 0000000000..325ad7a867 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/oDataLinkedService.js @@ -0,0 +1,158 @@ +/* + * 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'); + +/** + * Open Data Protocol (OData) linked service. + * + * @extends models['LinkedService'] + */ +class ODataLinkedService extends models['LinkedService'] { + /** + * Create a ODataLinkedService. + * @member {object} url The URL of the OData service endpoint. Type: string + * (or Expression with resultType string). + * @member {string} [authenticationType] Type of authentication used to + * connect to the OData service. Possible values include: 'Basic', + * 'Anonymous' + * @member {object} [userName] User name of the OData service. Type: string + * (or Expression with resultType string). + * @member {object} [password] Password of the OData service. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ODataLinkedService + * + * @returns {object} metadata of ODataLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'OData', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'ODataLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ODataLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/oDataResourceDataset.js b/lib/services/datafactoryManagement/lib/lib/models/oDataResourceDataset.js new file mode 100644 index 0000000000..ae3fcebfee --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/oDataResourceDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Open Data Protocol (OData) resource dataset. + * + * @extends models['Dataset'] + */ +class ODataResourceDataset extends models['Dataset'] { + /** + * Create a ODataResourceDataset. + * @member {object} [path] The OData resource path. Type: string (or + * Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ODataResourceDataset + * + * @returns {object} metadata of ODataResourceDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'ODataResource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'ODataResourceDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + path: { + required: false, + serializedName: 'typeProperties.path', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ODataResourceDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/odbcLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/odbcLinkedService.js new file mode 100644 index 0000000000..3d63073bfa --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/odbcLinkedService.js @@ -0,0 +1,181 @@ +/* + * 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'); + +/** + * Open Database Connectivity (ODBC) linked service. + * + * @extends models['LinkedService'] + */ +class OdbcLinkedService extends models['LinkedService'] { + /** + * Create a OdbcLinkedService. + * @member {object} connectionString The non-access credential portion of the + * connection string as well as an optional encrypted credential. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [authenticationType] Type of authentication used to + * connect to the ODBC data store. Possible values are: Anonymous and Basic. + * Type: string (or Expression with resultType string). + * @member {object} [credential] The access credential portion of the + * connection string specified in driver-specific property-value format. + * @member {string} [credential.type] Polymorphic Discriminator + * @member {object} [userName] User name for Basic authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OdbcLinkedService + * + * @returns {object} metadata of OdbcLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Odbc', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'OdbcLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'Object' + } + }, + credential: { + required: false, + serializedName: 'typeProperties.credential', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = OdbcLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/odbcSink.js b/lib/services/datafactoryManagement/lib/lib/models/odbcSink.js new file mode 100644 index 0000000000..eeeefe27c5 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/odbcSink.js @@ -0,0 +1,98 @@ +/* + * 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'); + +/** + * A copy activity ODBC sink. + * + * @extends models['CopySink'] + */ +class OdbcSink extends models['CopySink'] { + /** + * Create a OdbcSink. + * @member {object} [preCopyScript] A query to execute before starting the + * copy. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OdbcSink + * + * @returns {object} metadata of OdbcSink + * + */ + mapper() { + return { + required: false, + serializedName: 'OdbcSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'OdbcSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + preCopyScript: { + required: false, + serializedName: 'preCopyScript', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = OdbcSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/operation.js b/lib/services/datafactoryManagement/lib/lib/models/operation.js new file mode 100644 index 0000000000..cf05c5065c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/operation.js @@ -0,0 +1,90 @@ +/* + * 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'); + +/** + * Azure Data Factory API operation definition. + * + */ +class Operation { + /** + * Create a Operation. + * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * @member {string} [origin] The intended executor of the operation. + * @member {object} [display] Metadata associated with the operation. + * @member {string} [display.description] The description of the operation. + * @member {string} [display.provider] The name of the provider. + * @member {string} [display.resource] The name of the resource type on which + * the operation is performed. + * @member {string} [display.operation] The type of operation: get, read, + * delete, etc. + * @member {object} [serviceSpecification] Details about a service operation. + * @member {array} [serviceSpecification.logSpecifications] Details about + * operations related to logs. + * @member {array} [serviceSpecification.metricSpecifications] Details about + * operations related to metrics. + */ + constructor() { + } + + /** + * Defines the metadata of Operation + * + * @returns {object} metadata of Operation + * + */ + mapper() { + return { + required: false, + serializedName: 'Operation', + type: { + name: 'Composite', + className: 'Operation', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + origin: { + required: false, + serializedName: 'origin', + type: { + name: 'String' + } + }, + display: { + required: false, + serializedName: 'display', + type: { + name: 'Composite', + className: 'OperationDisplay' + } + }, + serviceSpecification: { + required: false, + serializedName: 'properties.serviceSpecification', + type: { + name: 'Composite', + className: 'OperationServiceSpecification' + } + } + } + } + }; + } +} + +module.exports = Operation; diff --git a/lib/services/datafactoryManagement/lib/lib/models/operationDisplay.js b/lib/services/datafactoryManagement/lib/lib/models/operationDisplay.js new file mode 100644 index 0000000000..bd4e5d5058 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/operationDisplay.js @@ -0,0 +1,78 @@ +/* + * 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'; + +/** + * Metadata associated with the operation. + * + */ +class OperationDisplay { + /** + * Create a OperationDisplay. + * @member {string} [description] The description of the operation. + * @member {string} [provider] The name of the provider. + * @member {string} [resource] The name of the resource type on which the + * operation is performed. + * @member {string} [operation] The type of operation: get, read, delete, + * etc. + */ + constructor() { + } + + /** + * Defines the metadata of OperationDisplay + * + * @returns {object} metadata of OperationDisplay + * + */ + mapper() { + return { + required: false, + serializedName: 'Operation_display', + type: { + name: 'Composite', + className: 'OperationDisplay', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + provider: { + required: false, + serializedName: 'provider', + type: { + name: 'String' + } + }, + resource: { + required: false, + serializedName: 'resource', + type: { + name: 'String' + } + }, + operation: { + required: false, + serializedName: 'operation', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OperationDisplay; diff --git a/lib/services/datafactoryManagement/lib/lib/models/operationListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/operationListResponse.js new file mode 100644 index 0000000000..9427df0325 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/operationListResponse.js @@ -0,0 +1,72 @@ +/* + * 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'); + +/** + * A list of operations that can be performed by the Data Factory service. + * + */ +class OperationListResponse { + /** + * Create a OperationListResponse. + * @member {array} [value] List of Data Factory operations supported by the + * Data Factory resource provider. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + } + + /** + * Defines the metadata of OperationListResponse + * + * @returns {object} metadata of OperationListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationListResponse', + type: { + name: 'Composite', + className: 'OperationListResponse', + modelProperties: { + value: { + required: false, + serializedName: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'OperationElementType', + type: { + name: 'Composite', + className: 'Operation' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OperationListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/operationLogSpecification.js b/lib/services/datafactoryManagement/lib/lib/models/operationLogSpecification.js new file mode 100644 index 0000000000..2e92fc69b3 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/operationLogSpecification.js @@ -0,0 +1,69 @@ +/* + * 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'; + +/** + * Details about an operation related to logs. + * + */ +class OperationLogSpecification { + /** + * Create a OperationLogSpecification. + * @member {string} [name] The name of the log category. + * @member {string} [displayName] Localized display name. + * @member {string} [blobDuration] Blobs created in the customer storage + * account, per hour. + */ + constructor() { + } + + /** + * Defines the metadata of OperationLogSpecification + * + * @returns {object} metadata of OperationLogSpecification + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationLogSpecification', + type: { + name: 'Composite', + className: 'OperationLogSpecification', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + displayName: { + required: false, + serializedName: 'displayName', + type: { + name: 'String' + } + }, + blobDuration: { + required: false, + serializedName: 'blobDuration', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OperationLogSpecification; diff --git a/lib/services/datafactoryManagement/lib/lib/models/operationMetricAvailability.js b/lib/services/datafactoryManagement/lib/lib/models/operationMetricAvailability.js new file mode 100644 index 0000000000..15ebbbda0b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/operationMetricAvailability.js @@ -0,0 +1,61 @@ +/* + * 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'; + +/** + * Defines how often data for a metric becomes available. + * + */ +class OperationMetricAvailability { + /** + * Create a OperationMetricAvailability. + * @member {string} [timeGrain] The granularity for the metric. + * @member {string} [blobDuration] Blob created in the customer storage + * account, per hour. + */ + constructor() { + } + + /** + * Defines the metadata of OperationMetricAvailability + * + * @returns {object} metadata of OperationMetricAvailability + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationMetricAvailability', + type: { + name: 'Composite', + className: 'OperationMetricAvailability', + modelProperties: { + timeGrain: { + required: false, + serializedName: 'timeGrain', + type: { + name: 'String' + } + }, + blobDuration: { + required: false, + serializedName: 'blobDuration', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OperationMetricAvailability; diff --git a/lib/services/datafactoryManagement/lib/lib/models/operationMetricSpecification.js b/lib/services/datafactoryManagement/lib/lib/models/operationMetricSpecification.js new file mode 100644 index 0000000000..2ee68459aa --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/operationMetricSpecification.js @@ -0,0 +1,128 @@ +/* + * 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'); + +/** + * Details about an operation related to metrics. + * + */ +class OperationMetricSpecification { + /** + * Create a OperationMetricSpecification. + * @member {string} [name] The name of the metric. + * @member {string} [displayName] Localized display name of the metric. + * @member {string} [displayDescription] The description of the metric. + * @member {string} [unit] The unit that the metric is measured in. + * @member {string} [aggregationType] The type of metric aggregation. + * @member {string} [enableRegionalMdmAccount] Whether or not the service is + * using regional MDM accounts. + * @member {string} [sourceMdmAccount] The name of the MDM account. + * @member {string} [sourceMdmNamespace] The name of the MDM namespace. + * @member {array} [availabilities] Defines how often data for metrics + * becomes available. + */ + constructor() { + } + + /** + * Defines the metadata of OperationMetricSpecification + * + * @returns {object} metadata of OperationMetricSpecification + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationMetricSpecification', + type: { + name: 'Composite', + className: 'OperationMetricSpecification', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + displayName: { + required: false, + serializedName: 'displayName', + type: { + name: 'String' + } + }, + displayDescription: { + required: false, + serializedName: 'displayDescription', + type: { + name: 'String' + } + }, + unit: { + required: false, + serializedName: 'unit', + type: { + name: 'String' + } + }, + aggregationType: { + required: false, + serializedName: 'aggregationType', + type: { + name: 'String' + } + }, + enableRegionalMdmAccount: { + required: false, + serializedName: 'enableRegionalMdmAccount', + type: { + name: 'String' + } + }, + sourceMdmAccount: { + required: false, + serializedName: 'sourceMdmAccount', + type: { + name: 'String' + } + }, + sourceMdmNamespace: { + required: false, + serializedName: 'sourceMdmNamespace', + type: { + name: 'String' + } + }, + availabilities: { + required: false, + serializedName: 'availabilities', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'OperationMetricAvailabilityElementType', + type: { + name: 'Composite', + className: 'OperationMetricAvailability' + } + } + } + } + } + } + }; + } +} + +module.exports = OperationMetricSpecification; diff --git a/lib/services/datafactoryManagement/lib/lib/models/operationServiceSpecification.js b/lib/services/datafactoryManagement/lib/lib/models/operationServiceSpecification.js new file mode 100644 index 0000000000..abd318a42c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/operationServiceSpecification.js @@ -0,0 +1,80 @@ +/* + * 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'); + +/** + * Details about a service operation. + * + */ +class OperationServiceSpecification { + /** + * Create a OperationServiceSpecification. + * @member {array} [logSpecifications] Details about operations related to + * logs. + * @member {array} [metricSpecifications] Details about operations related to + * metrics. + */ + constructor() { + } + + /** + * Defines the metadata of OperationServiceSpecification + * + * @returns {object} metadata of OperationServiceSpecification + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationServiceSpecification', + type: { + name: 'Composite', + className: 'OperationServiceSpecification', + modelProperties: { + logSpecifications: { + required: false, + serializedName: 'logSpecifications', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'OperationLogSpecificationElementType', + type: { + name: 'Composite', + className: 'OperationLogSpecification' + } + } + } + }, + metricSpecifications: { + required: false, + serializedName: 'metricSpecifications', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'OperationMetricSpecificationElementType', + type: { + name: 'Composite', + className: 'OperationMetricSpecification' + } + } + } + } + } + } + }; + } +} + +module.exports = OperationServiceSpecification; diff --git a/lib/services/datafactoryManagement/lib/lib/models/oracleLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/oracleLinkedService.js new file mode 100644 index 0000000000..eebb868729 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/oracleLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Oracle database. + * + * @extends models['LinkedService'] + */ +class OracleLinkedService extends models['LinkedService'] { + /** + * Create a OracleLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OracleLinkedService + * + * @returns {object} metadata of OracleLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Oracle', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'OracleLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = OracleLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/oracleSink.js b/lib/services/datafactoryManagement/lib/lib/models/oracleSink.js new file mode 100644 index 0000000000..6d8a1c70e6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/oracleSink.js @@ -0,0 +1,98 @@ +/* + * 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'); + +/** + * A copy activity Oracle sink. + * + * @extends models['CopySink'] + */ +class OracleSink extends models['CopySink'] { + /** + * Create a OracleSink. + * @member {object} [preCopyScript] SQL pre-copy script. Type: string (or + * Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OracleSink + * + * @returns {object} metadata of OracleSink + * + */ + mapper() { + return { + required: false, + serializedName: 'OracleSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'OracleSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + preCopyScript: { + required: false, + serializedName: 'preCopyScript', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = OracleSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/oracleSource.js b/lib/services/datafactoryManagement/lib/lib/models/oracleSource.js new file mode 100644 index 0000000000..64a27bb682 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/oracleSource.js @@ -0,0 +1,94 @@ +/* + * 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'); + +/** + * A copy activity Oracle source. + * + * @extends models['CopySource'] + */ +class OracleSource extends models['CopySource'] { + /** + * Create a OracleSource. + * @member {object} [oracleReaderQuery] Oracle reader query. Type: string (or + * Expression with resultType string). + * @member {object} [queryTimeout] Query timeout. Type: string (or Expression + * with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OracleSource + * + * @returns {object} metadata of OracleSource + * + */ + mapper() { + return { + required: false, + serializedName: 'OracleSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'OracleSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + oracleReaderQuery: { + required: false, + serializedName: 'oracleReaderQuery', + type: { + name: 'Object' + } + }, + queryTimeout: { + required: false, + serializedName: 'queryTimeout', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = OracleSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/oracleTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/oracleTableDataset.js new file mode 100644 index 0000000000..9b6659ae95 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/oracleTableDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The on-premises Oracle database dataset. + * + * @extends models['Dataset'] + */ +class OracleTableDataset extends models['Dataset'] { + /** + * Create a OracleTableDataset. + * @member {object} tableName The table name of the on-premises Oracle + * database. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OracleTableDataset + * + * @returns {object} metadata of OracleTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'OracleTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'OracleTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: true, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = OracleTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/orcFormat.js b/lib/services/datafactoryManagement/lib/lib/models/orcFormat.js new file mode 100644 index 0000000000..c544390c06 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/orcFormat.js @@ -0,0 +1,75 @@ +/* + * 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'); + +/** + * The data stored in Optimized Row Columnar (ORC) format. + * + * @extends models['DatasetStorageFormat'] + */ +class OrcFormat extends models['DatasetStorageFormat'] { + /** + * Create a OrcFormat. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OrcFormat + * + * @returns {object} metadata of OrcFormat + * + */ + mapper() { + return { + required: false, + serializedName: 'OrcFormat', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'OrcFormat', + modelProperties: { + serializer: { + required: false, + serializedName: 'serializer', + type: { + name: 'Object' + } + }, + deserializer: { + required: false, + serializedName: 'deserializer', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OrcFormat; diff --git a/lib/services/datafactoryManagement/lib/lib/models/parameterSpecification.js b/lib/services/datafactoryManagement/lib/lib/models/parameterSpecification.js new file mode 100644 index 0000000000..8df992264a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/parameterSpecification.js @@ -0,0 +1,61 @@ +/* + * 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'; + +/** + * Definition of a single parameter for an entity. + * + */ +class ParameterSpecification { + /** + * Create a ParameterSpecification. + * @member {string} type Parameter type. Possible values include: 'Object', + * 'String', 'Int', 'Float', 'Bool', 'Array', 'SecureString' + * @member {object} [defaultValue] Default value of parameter. + */ + constructor() { + } + + /** + * Defines the metadata of ParameterSpecification + * + * @returns {object} metadata of ParameterSpecification + * + */ + mapper() { + return { + required: false, + serializedName: 'ParameterSpecification', + type: { + name: 'Composite', + className: 'ParameterSpecification', + modelProperties: { + type: { + required: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + defaultValue: { + required: false, + serializedName: 'defaultValue', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ParameterSpecification; diff --git a/lib/services/datafactoryManagement/lib/lib/models/parquetFormat.js b/lib/services/datafactoryManagement/lib/lib/models/parquetFormat.js new file mode 100644 index 0000000000..ebdc64f61b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/parquetFormat.js @@ -0,0 +1,75 @@ +/* + * 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'); + +/** + * The data stored in Parquet format. + * + * @extends models['DatasetStorageFormat'] + */ +class ParquetFormat extends models['DatasetStorageFormat'] { + /** + * Create a ParquetFormat. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ParquetFormat + * + * @returns {object} metadata of ParquetFormat + * + */ + mapper() { + return { + required: false, + serializedName: 'ParquetFormat', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'ParquetFormat', + modelProperties: { + serializer: { + required: false, + serializedName: 'serializer', + type: { + name: 'Object' + } + }, + deserializer: { + required: false, + serializedName: 'deserializer', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ParquetFormat; diff --git a/lib/services/datafactoryManagement/lib/lib/models/paypalLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/paypalLinkedService.js new file mode 100644 index 0000000000..0944d97a12 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/paypalLinkedService.js @@ -0,0 +1,178 @@ +/* + * 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'); + +/** + * Paypal Serivce linked service. + * + * @extends models['LinkedService'] + */ +class PaypalLinkedService extends models['LinkedService'] { + /** + * Create a PaypalLinkedService. + * @member {object} host The URL of the PayPal instance. (i.e. + * api.sandbox.paypal.com) + * @member {object} clientId The client ID associated with your PayPal + * application. + * @member {object} [clientSecret] The client secret associated with your + * PayPal application. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PaypalLinkedService + * + * @returns {object} metadata of PaypalLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Paypal', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'PaypalLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PaypalLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/paypalObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/paypalObjectDataset.js new file mode 100644 index 0000000000..237fd0c6c0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/paypalObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Paypal Serivce dataset. + * + * @extends models['Dataset'] + */ +class PaypalObjectDataset extends models['Dataset'] { + /** + * Create a PaypalObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PaypalObjectDataset + * + * @returns {object} metadata of PaypalObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'PaypalObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'PaypalObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = PaypalObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/paypalSource.js b/lib/services/datafactoryManagement/lib/lib/models/paypalSource.js new file mode 100644 index 0000000000..69d3e2ce30 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/paypalSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Paypal Serivce source. + * + * @extends models['CopySource'] + */ +class PaypalSource extends models['CopySource'] { + /** + * Create a PaypalSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PaypalSource + * + * @returns {object} metadata of PaypalSource + * + */ + mapper() { + return { + required: false, + serializedName: 'PaypalSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'PaypalSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PaypalSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/phoenixLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/phoenixLinkedService.js new file mode 100644 index 0000000000..1bdf8ec74a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/phoenixLinkedService.js @@ -0,0 +1,227 @@ +/* + * 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'); + +/** + * Phoenix server linked service. + * + * @extends models['LinkedService'] + */ +class PhoenixLinkedService extends models['LinkedService'] { + /** + * Create a PhoenixLinkedService. + * @member {object} host The IP address or host name of the Phoenix server. + * (i.e. 192.168.222.160) + * @member {object} [port] The TCP port that the Phoenix server uses to + * listen for client connections. The default value is 8765. + * @member {object} [httpPath] The partial URL corresponding to the Phoenix + * server. (i.e. /gateway/sandbox/phoenix/version). The default value is + * hbasephoenix if using WindowsAzureHDInsightService. + * @member {string} authenticationType The authentication mechanism used to + * connect to the Phoenix server. Possible values include: 'Anonymous', + * 'UsernameAndPassword', 'WindowsAzureHDInsightService' + * @member {object} [username] The user name used to connect to the Phoenix + * server. + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file + * containing trusted CA certificates for verifying the server when + * connecting over SSL. This property can only be set when using SSL on + * self-hosted IR. The default value is the cacerts.pem file installed with + * the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PhoenixLinkedService + * + * @returns {object} metadata of PhoenixLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Phoenix', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'PhoenixLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + httpPath: { + required: false, + serializedName: 'typeProperties.httpPath', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + trustedCertPath: { + required: false, + serializedName: 'typeProperties.trustedCertPath', + type: { + name: 'Object' + } + }, + useSystemTrustStore: { + required: false, + serializedName: 'typeProperties.useSystemTrustStore', + type: { + name: 'Object' + } + }, + allowHostNameCNMismatch: { + required: false, + serializedName: 'typeProperties.allowHostNameCNMismatch', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PhoenixLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/phoenixObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/phoenixObjectDataset.js new file mode 100644 index 0000000000..598d3d6cb4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/phoenixObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Phoenix server dataset. + * + * @extends models['Dataset'] + */ +class PhoenixObjectDataset extends models['Dataset'] { + /** + * Create a PhoenixObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PhoenixObjectDataset + * + * @returns {object} metadata of PhoenixObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'PhoenixObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'PhoenixObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = PhoenixObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/phoenixSource.js b/lib/services/datafactoryManagement/lib/lib/models/phoenixSource.js new file mode 100644 index 0000000000..103665b661 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/phoenixSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Phoenix server source. + * + * @extends models['CopySource'] + */ +class PhoenixSource extends models['CopySource'] { + /** + * Create a PhoenixSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PhoenixSource + * + * @returns {object} metadata of PhoenixSource + * + */ + mapper() { + return { + required: false, + serializedName: 'PhoenixSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'PhoenixSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PhoenixSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineListResponse.js new file mode 100644 index 0000000000..5f69ce4505 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineListResponse.js @@ -0,0 +1,80 @@ +/* + * 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'; + +/** + * A list of pipeline resources. + */ +class PipelineListResponse extends Array { + /** + * Create a PipelineListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PipelineListResponse + * + * @returns {object} metadata of PipelineListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineListResponse', + type: { + name: 'Composite', + className: 'PipelineListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'PipelineResourceElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'PipelineResource' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PipelineListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineReference.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineReference.js new file mode 100644 index 0000000000..5d8a784a28 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineReference.js @@ -0,0 +1,69 @@ +/* + * 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'; + +/** + * Pipeline reference type. + * + */ +class PipelineReference { + /** + * Create a PipelineReference. + * @member {string} referenceName Reference pipeline name. + * @member {string} [name] Reference name. + */ + constructor() { + } + + /** + * Defines the metadata of PipelineReference + * + * @returns {object} metadata of PipelineReference + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineReference', + type: { + name: 'Composite', + className: 'PipelineReference', + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: 'type', + defaultValue: 'PipelineReference', + type: { + name: 'String' + } + }, + referenceName: { + required: true, + serializedName: 'referenceName', + type: { + name: 'String' + } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PipelineReference; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineResource.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineResource.js new file mode 100644 index 0000000000..a2ac113838 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineResource.js @@ -0,0 +1,177 @@ +/* + * 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'); + +/** + * Pipeline resource type. + * + * @extends models['SubResource'] + */ +class PipelineResource extends models['SubResource'] { + /** + * Create a PipelineResource. + * @member {string} [description] The description of the pipeline. + * @member {array} [activities] List of activities in pipeline. + * @member {object} [parameters] List of parameters for pipeline. + * @member {number} [concurrency] The max number of concurrent runs for the + * pipeline. + * @member {array} [annotations] List of tags that can be used for describing + * the Pipeline. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PipelineResource + * + * @returns {object} metadata of PipelineResource + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineResource', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'PipelineResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'properties.description', + type: { + name: 'String' + } + }, + activities: { + required: false, + serializedName: 'properties.activities', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'Activity' + } + } + } + }, + parameters: { + required: false, + serializedName: 'properties.parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ParameterSpecificationElementType', + type: { + name: 'Composite', + className: 'ParameterSpecification' + } + } + } + }, + concurrency: { + required: false, + serializedName: 'properties.concurrency', + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + }, + annotations: { + required: false, + serializedName: 'properties.annotations', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = PipelineResource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineRun.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineRun.js new file mode 100644 index 0000000000..58bac721f6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineRun.js @@ -0,0 +1,162 @@ +/* + * 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'); + +/** + * Information about a pipeline run. + * + */ +class PipelineRun { + /** + * Create a PipelineRun. + * @member {string} [runId] Identifier of a run. + * @member {string} [pipelineName] The pipeline name. + * @member {object} [parameters] The full or partial list of parameter name, + * value pair used in the pipeline run. + * @member {object} [invokedBy] Entity that started the pipeline run. + * @member {string} [invokedBy.name] Name of the entity that started the + * pipeline run. + * @member {string} [invokedBy.id] The ID of the entity that started the run. + * @member {date} [lastUpdated] The last updated timestamp for the pipeline + * run event in ISO8601 format. + * @member {date} [runStart] The start time of a pipeline run in ISO8601 + * format. + * @member {date} [runEnd] The end time of a pipeline run in ISO8601 format. + * @member {number} [durationInMs] The duration of a pipeline run. + * @member {string} [status] The status of a pipeline run. + * @member {string} [message] The message from a pipeline run. + */ + constructor() { + } + + /** + * Defines the metadata of PipelineRun + * + * @returns {object} metadata of PipelineRun + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineRun', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'PipelineRun', + modelProperties: { + runId: { + required: false, + readOnly: true, + serializedName: 'runId', + type: { + name: 'String' + } + }, + pipelineName: { + required: false, + readOnly: true, + serializedName: 'pipelineName', + type: { + name: 'String' + } + }, + parameters: { + required: false, + readOnly: true, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + invokedBy: { + required: false, + readOnly: true, + serializedName: 'invokedBy', + type: { + name: 'Composite', + className: 'PipelineRunInvokedBy' + } + }, + lastUpdated: { + required: false, + readOnly: true, + serializedName: 'lastUpdated', + type: { + name: 'DateTime' + } + }, + runStart: { + required: false, + readOnly: true, + serializedName: 'runStart', + type: { + name: 'DateTime' + } + }, + runEnd: { + required: false, + readOnly: true, + serializedName: 'runEnd', + type: { + name: 'DateTime' + } + }, + durationInMs: { + required: false, + readOnly: true, + serializedName: 'durationInMs', + type: { + name: 'Number' + } + }, + status: { + required: false, + readOnly: true, + serializedName: 'status', + type: { + name: 'String' + } + }, + message: { + required: false, + readOnly: true, + serializedName: 'message', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PipelineRun; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineRunFilterParameters.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunFilterParameters.js new file mode 100644 index 0000000000..e73ea8e9c7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunFilterParameters.js @@ -0,0 +1,105 @@ +/* + * 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'); + +/** + * Query parameters for listing pipeline runs. + * + */ +class PipelineRunFilterParameters { + /** + * Create a PipelineRunFilterParameters. + * @member {string} [continuationToken] The continuation token for getting + * the next page of results. Null for first page. + * @member {date} lastUpdatedAfter The time at or after which the pipeline + * run event was updated in 'ISO 8601' format. + * @member {date} lastUpdatedBefore The time at or before which the pipeline + * run event was updated in 'ISO 8601' format. + * @member {array} [filters] List of filters. + * @member {array} [orderBy] List of OrderBy option. + */ + constructor() { + } + + /** + * Defines the metadata of PipelineRunFilterParameters + * + * @returns {object} metadata of PipelineRunFilterParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineRunFilterParameters', + type: { + name: 'Composite', + className: 'PipelineRunFilterParameters', + modelProperties: { + continuationToken: { + required: false, + serializedName: 'continuationToken', + type: { + name: 'String' + } + }, + lastUpdatedAfter: { + required: true, + serializedName: 'lastUpdatedAfter', + type: { + name: 'DateTime' + } + }, + lastUpdatedBefore: { + required: true, + serializedName: 'lastUpdatedBefore', + type: { + name: 'DateTime' + } + }, + filters: { + required: false, + serializedName: 'filters', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'PipelineRunQueryFilterElementType', + type: { + name: 'Composite', + className: 'PipelineRunQueryFilter' + } + } + } + }, + orderBy: { + required: false, + serializedName: 'orderBy', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'PipelineRunQueryOrderByElementType', + type: { + name: 'Composite', + className: 'PipelineRunQueryOrderBy' + } + } + } + } + } + } + }; + } +} + +module.exports = PipelineRunFilterParameters; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineRunInvokedBy.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunInvokedBy.js new file mode 100644 index 0000000000..8f48d602d7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunInvokedBy.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'; + +/** + * Provides entity name and id that started the pipeline run. + * + */ +class PipelineRunInvokedBy { + /** + * Create a PipelineRunInvokedBy. + * @member {string} [name] Name of the entity that started the pipeline run. + * @member {string} [id] The ID of the entity that started the run. + */ + constructor() { + } + + /** + * Defines the metadata of PipelineRunInvokedBy + * + * @returns {object} metadata of PipelineRunInvokedBy + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineRunInvokedBy', + type: { + name: 'Composite', + className: 'PipelineRunInvokedBy', + modelProperties: { + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PipelineRunInvokedBy; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryFilter.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryFilter.js new file mode 100644 index 0000000000..bf9f3d4224 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryFilter.js @@ -0,0 +1,77 @@ +/* + * 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'; + +/** + * Query filter option for listing pipeline runs. + * + */ +class PipelineRunQueryFilter { + /** + * Create a PipelineRunQueryFilter. + * @member {string} operand Parameter name to be used for filter. Possible + * values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd' + * @member {string} operator Operator to be used for filter. Possible values + * include: 'Equals', 'NotEquals', 'In', 'NotIn' + * @member {array} values List of filter values. + */ + constructor() { + } + + /** + * Defines the metadata of PipelineRunQueryFilter + * + * @returns {object} metadata of PipelineRunQueryFilter + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineRunQueryFilter', + type: { + name: 'Composite', + className: 'PipelineRunQueryFilter', + modelProperties: { + operand: { + required: true, + serializedName: 'operand', + type: { + name: 'String' + } + }, + operator: { + required: true, + serializedName: 'operator', + type: { + name: 'String' + } + }, + values: { + required: true, + serializedName: 'values', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = PipelineRunQueryFilter; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryOrderBy.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryOrderBy.js new file mode 100644 index 0000000000..4006bfb0d0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryOrderBy.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'; + +/** + * An object to provide order by options for listing pipeline runs. + * + */ +class PipelineRunQueryOrderBy { + /** + * Create a PipelineRunQueryOrderBy. + * @member {string} orderBy Parameter name to be used for order by. Possible + * values include: 'RunStart', 'RunEnd' + * @member {string} order Sorting order of the parameter. Possible values + * include: 'ASC', 'DESC' + */ + constructor() { + } + + /** + * Defines the metadata of PipelineRunQueryOrderBy + * + * @returns {object} metadata of PipelineRunQueryOrderBy + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineRunQueryOrderBy', + type: { + name: 'Composite', + className: 'PipelineRunQueryOrderBy', + modelProperties: { + orderBy: { + required: true, + serializedName: 'orderBy', + type: { + name: 'String' + } + }, + order: { + required: true, + serializedName: 'order', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PipelineRunQueryOrderBy; diff --git a/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryResponse.js b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryResponse.js new file mode 100644 index 0000000000..beb7f60bb4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/pipelineRunQueryResponse.js @@ -0,0 +1,83 @@ +/* + * 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'); + +/** + * A list pipeline runs. + * + */ +class PipelineRunQueryResponse { + /** + * Create a PipelineRunQueryResponse. + * @member {array} value List of pipeline runs. + * @member {string} [continuationToken] The continuation token for getting + * the next page of results, if any remaining results exist, null otherwise. + */ + constructor() { + } + + /** + * Defines the metadata of PipelineRunQueryResponse + * + * @returns {object} metadata of PipelineRunQueryResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'PipelineRunQueryResponse', + type: { + name: 'Composite', + className: 'PipelineRunQueryResponse', + modelProperties: { + value: { + required: true, + serializedName: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'PipelineRunElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'PipelineRun' + } + } + } + }, + continuationToken: { + required: false, + serializedName: 'continuationToken', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PipelineRunQueryResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/polybaseSettings.js b/lib/services/datafactoryManagement/lib/lib/models/polybaseSettings.js new file mode 100644 index 0000000000..0546c26e30 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/polybaseSettings.js @@ -0,0 +1,96 @@ +/* + * 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'; + +/** + * PolyBase settings. + * + */ +class PolybaseSettings { + /** + * Create a PolybaseSettings. + * @member {string} [rejectType] Reject type. Possible values include: + * 'value', 'percentage' + * @member {object} [rejectValue] Specifies the value or the percentage of + * rows that can be rejected before the query fails. Type: number (or + * Expression with resultType number), minimum: 0. + * @member {object} [rejectSampleValue] Determines the number of rows to + * attempt to retrieve before the PolyBase recalculates the percentage of + * rejected rows. Type: integer (or Expression with resultType integer), + * minimum: 0. + * @member {object} [useTypeDefault] Specifies how to handle missing values + * in delimited text files when PolyBase retrieves data from the text file. + * Type: boolean (or Expression with resultType boolean). + */ + constructor() { + } + + /** + * Defines the metadata of PolybaseSettings + * + * @returns {object} metadata of PolybaseSettings + * + */ + mapper() { + return { + required: false, + serializedName: 'PolybaseSettings', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'PolybaseSettings', + modelProperties: { + rejectType: { + required: false, + serializedName: 'rejectType', + type: { + name: 'String' + } + }, + rejectValue: { + required: false, + serializedName: 'rejectValue', + type: { + name: 'Object' + } + }, + rejectSampleValue: { + required: false, + serializedName: 'rejectSampleValue', + type: { + name: 'Object' + } + }, + useTypeDefault: { + required: false, + serializedName: 'useTypeDefault', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PolybaseSettings; diff --git a/lib/services/datafactoryManagement/lib/lib/models/postgreSqlLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/postgreSqlLinkedService.js new file mode 100644 index 0000000000..0f62b51576 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/postgreSqlLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Linked service for PostgreSQL data source. + * + * @extends models['LinkedService'] + */ +class PostgreSqlLinkedService extends models['LinkedService'] { + /** + * Create a PostgreSqlLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PostgreSqlLinkedService + * + * @returns {object} metadata of PostgreSqlLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'PostgreSql', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'PostgreSqlLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PostgreSqlLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/prestoLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/prestoLinkedService.js new file mode 100644 index 0000000000..83b87cc817 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/prestoLinkedService.js @@ -0,0 +1,244 @@ +/* + * 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'); + +/** + * Presto server linked service. + * + * @extends models['LinkedService'] + */ +class PrestoLinkedService extends models['LinkedService'] { + /** + * Create a PrestoLinkedService. + * @member {object} host The IP address or host name of the Presto server. + * (i.e. 192.168.222.160) + * @member {object} serverVersion The version of the Presto server. (i.e. + * 0.148-t) + * @member {object} catalog The catalog context for all request against the + * server. + * @member {object} [port] The TCP port that the Presto server uses to listen + * for client connections. The default value is 8080. + * @member {string} authenticationType The authentication mechanism used to + * connect to the Presto server. Possible values include: 'Anonymous', 'LDAP' + * @member {object} [username] The user name used to connect to the Presto + * server. + * @member {object} [password] The password corresponding to the user name. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file + * containing trusted CA certificates for verifying the server when + * connecting over SSL. This property can only be set when using SSL on + * self-hosted IR. The default value is the cacerts.pem file installed with + * the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @member {object} [timeZoneID] The local time zone used by the connection. + * Valid values for this option are specified in the IANA Time Zone Database. + * The default value is the system time zone. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PrestoLinkedService + * + * @returns {object} metadata of PrestoLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Presto', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'PrestoLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + serverVersion: { + required: true, + serializedName: 'typeProperties.serverVersion', + type: { + name: 'Object' + } + }, + catalog: { + required: true, + serializedName: 'typeProperties.catalog', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + trustedCertPath: { + required: false, + serializedName: 'typeProperties.trustedCertPath', + type: { + name: 'Object' + } + }, + useSystemTrustStore: { + required: false, + serializedName: 'typeProperties.useSystemTrustStore', + type: { + name: 'Object' + } + }, + allowHostNameCNMismatch: { + required: false, + serializedName: 'typeProperties.allowHostNameCNMismatch', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, + timeZoneID: { + required: false, + serializedName: 'typeProperties.timeZoneID', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PrestoLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/prestoObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/prestoObjectDataset.js new file mode 100644 index 0000000000..13fbeedffe --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/prestoObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Presto server dataset. + * + * @extends models['Dataset'] + */ +class PrestoObjectDataset extends models['Dataset'] { + /** + * Create a PrestoObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PrestoObjectDataset + * + * @returns {object} metadata of PrestoObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'PrestoObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'PrestoObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = PrestoObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/prestoSource.js b/lib/services/datafactoryManagement/lib/lib/models/prestoSource.js new file mode 100644 index 0000000000..d0c0f706e6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/prestoSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Presto server source. + * + * @extends models['CopySource'] + */ +class PrestoSource extends models['CopySource'] { + /** + * Create a PrestoSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PrestoSource + * + * @returns {object} metadata of PrestoSource + * + */ + mapper() { + return { + required: false, + serializedName: 'PrestoSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'PrestoSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = PrestoSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/quickBooksLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/quickBooksLinkedService.js new file mode 100644 index 0000000000..9d5703d391 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/quickBooksLinkedService.js @@ -0,0 +1,174 @@ +/* + * 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'); + +/** + * QuickBooks server linked service. + * + * @extends models['LinkedService'] + */ +class QuickBooksLinkedService extends models['LinkedService'] { + /** + * Create a QuickBooksLinkedService. + * @member {object} endpoint The endpoint of the QuickBooks server. (i.e. + * quickbooks.api.intuit.com) + * @member {object} companyId The company ID of the QuickBooks company to + * authorize. + * @member {object} [accessToken] The access token for OAuth 1.0 + * authentication. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [accessTokenSecret] The access token secret for OAuth 1.0 + * authentication. + * @member {string} [accessTokenSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of QuickBooksLinkedService + * + * @returns {object} metadata of QuickBooksLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'QuickBooks', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'QuickBooksLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + endpoint: { + required: true, + serializedName: 'typeProperties.endpoint', + type: { + name: 'Object' + } + }, + companyId: { + required: true, + serializedName: 'typeProperties.companyId', + type: { + name: 'Object' + } + }, + accessToken: { + required: false, + serializedName: 'typeProperties.accessToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + accessTokenSecret: { + required: false, + serializedName: 'typeProperties.accessTokenSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = QuickBooksLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/quickBooksObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/quickBooksObjectDataset.js new file mode 100644 index 0000000000..aaa529aab4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/quickBooksObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * QuickBooks server dataset. + * + * @extends models['Dataset'] + */ +class QuickBooksObjectDataset extends models['Dataset'] { + /** + * Create a QuickBooksObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of QuickBooksObjectDataset + * + * @returns {object} metadata of QuickBooksObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'QuickBooksObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'QuickBooksObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = QuickBooksObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/quickBooksSource.js b/lib/services/datafactoryManagement/lib/lib/models/quickBooksSource.js new file mode 100644 index 0000000000..28c6f40def --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/quickBooksSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity QuickBooks server source. + * + * @extends models['CopySource'] + */ +class QuickBooksSource extends models['CopySource'] { + /** + * Create a QuickBooksSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of QuickBooksSource + * + * @returns {object} metadata of QuickBooksSource + * + */ + mapper() { + return { + required: false, + serializedName: 'QuickBooksSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'QuickBooksSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = QuickBooksSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/recurrenceSchedule.js b/lib/services/datafactoryManagement/lib/lib/models/recurrenceSchedule.js new file mode 100644 index 0000000000..ecafc6daf6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/recurrenceSchedule.js @@ -0,0 +1,147 @@ +/* + * 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'); + +/** + * The recurrence schedule. + * + */ +class RecurrenceSchedule { + /** + * Create a RecurrenceSchedule. + * @member {array} [minutes] The minutes. + * @member {array} [hours] The hours. + * @member {array} [weekDays] The days of the week. + * @member {array} [monthDays] The month days. + * @member {array} [monthlyOccurrences] The monthly occurrences. + */ + constructor() { + } + + /** + * Defines the metadata of RecurrenceSchedule + * + * @returns {object} metadata of RecurrenceSchedule + * + */ + mapper() { + return { + required: false, + serializedName: 'RecurrenceSchedule', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'RecurrenceSchedule', + modelProperties: { + minutes: { + required: false, + serializedName: 'minutes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NumberElementType', + type: { + name: 'Number' + } + } + } + }, + hours: { + required: false, + serializedName: 'hours', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NumberElementType', + type: { + name: 'Number' + } + } + } + }, + weekDays: { + required: false, + serializedName: 'weekDays', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'DaysOfWeekElementType', + type: { + name: 'Enum', + allowedValues: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ] + } + } + } + }, + monthDays: { + required: false, + serializedName: 'monthDays', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NumberElementType', + type: { + name: 'Number' + } + } + } + }, + monthlyOccurrences: { + required: false, + serializedName: 'monthlyOccurrences', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'RecurrenceScheduleOccurrenceElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'RecurrenceScheduleOccurrence' + } + } + } + } + } + } + }; + } +} + +module.exports = RecurrenceSchedule; diff --git a/lib/services/datafactoryManagement/lib/lib/models/recurrenceScheduleOccurrence.js b/lib/services/datafactoryManagement/lib/lib/models/recurrenceScheduleOccurrence.js new file mode 100644 index 0000000000..ae8c948ff3 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/recurrenceScheduleOccurrence.js @@ -0,0 +1,75 @@ +/* + * 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'; + +/** + * The recurrence schedule occurence. + * + */ +class RecurrenceScheduleOccurrence { + /** + * Create a RecurrenceScheduleOccurrence. + * @member {string} [day] The day of the week. Possible values include: + * 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + * 'Saturday' + * @member {number} [occurrence] The occurrence. + */ + constructor() { + } + + /** + * Defines the metadata of RecurrenceScheduleOccurrence + * + * @returns {object} metadata of RecurrenceScheduleOccurrence + * + */ + mapper() { + return { + required: false, + serializedName: 'RecurrenceScheduleOccurrence', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'RecurrenceScheduleOccurrence', + modelProperties: { + day: { + required: false, + serializedName: 'day', + type: { + name: 'Enum', + allowedValues: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ] + } + }, + occurrence: { + required: false, + serializedName: 'occurrence', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = RecurrenceScheduleOccurrence; diff --git a/lib/services/datafactoryManagement/lib/lib/models/redirectIncompatibleRowSettings.js b/lib/services/datafactoryManagement/lib/lib/models/redirectIncompatibleRowSettings.js new file mode 100644 index 0000000000..ef85230631 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/redirectIncompatibleRowSettings.js @@ -0,0 +1,76 @@ +/* + * 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'; + +/** + * Redirect incompatible row settings + * + */ +class RedirectIncompatibleRowSettings { + /** + * Create a RedirectIncompatibleRowSettings. + * @member {object} linkedServiceName Name of the Azure Storage, Storage SAS, + * or Azure Data Lake Store linked service used for redirecting incompatible + * row. Must be specified if redirectIncompatibleRowSettings is specified. + * Type: string (or Expression with resultType string). + * @member {object} [path] The path for storing the redirect incompatible row + * data. Type: string (or Expression with resultType string). + */ + constructor() { + } + + /** + * Defines the metadata of RedirectIncompatibleRowSettings + * + * @returns {object} metadata of RedirectIncompatibleRowSettings + * + */ + mapper() { + return { + required: false, + serializedName: 'RedirectIncompatibleRowSettings', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'RedirectIncompatibleRowSettings', + modelProperties: { + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + type: { + name: 'Object' + } + }, + path: { + required: false, + serializedName: 'path', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = RedirectIncompatibleRowSettings; diff --git a/lib/services/datafactoryManagement/lib/lib/models/redshiftUnloadSettings.js b/lib/services/datafactoryManagement/lib/lib/models/redshiftUnloadSettings.js new file mode 100644 index 0000000000..d21c28bc7a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/redshiftUnloadSettings.js @@ -0,0 +1,76 @@ +/* + * 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'); + +/** + * The Amazon S3 settings needed for the interim Amazon S3 when copying from + * Amazon Redshift with unload. With this, data from Amazon Redshift source + * will be unloaded into S3 first and then copied into the targeted sink from + * the interim S3. + * + */ +class RedshiftUnloadSettings { + /** + * Create a RedshiftUnloadSettings. + * @member {object} s3LinkedServiceName The name of the Amazon S3 linked + * service which will be used for the unload operation when copying from the + * Amazon Redshift source. + * @member {string} [s3LinkedServiceName.referenceName] Reference + * LinkedService name. + * @member {object} [s3LinkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} bucketName The bucket of the interim Amazon S3 which will + * be used to store the unloaded data from Amazon Redshift source. The bucket + * must be in the same region as the Amazon Redshift source. Type: string (or + * Expression with resultType string). + */ + constructor() { + } + + /** + * Defines the metadata of RedshiftUnloadSettings + * + * @returns {object} metadata of RedshiftUnloadSettings + * + */ + mapper() { + return { + required: false, + serializedName: 'RedshiftUnloadSettings', + type: { + name: 'Composite', + className: 'RedshiftUnloadSettings', + modelProperties: { + s3LinkedServiceName: { + required: true, + serializedName: 's3LinkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + bucketName: { + required: true, + serializedName: 'bucketName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = RedshiftUnloadSettings; diff --git a/lib/services/datafactoryManagement/lib/lib/models/relationalSource.js b/lib/services/datafactoryManagement/lib/lib/models/relationalSource.js new file mode 100644 index 0000000000..05de4df076 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/relationalSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity source for various relational databases. + * + * @extends models['CopySource'] + */ +class RelationalSource extends models['CopySource'] { + /** + * Create a RelationalSource. + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of RelationalSource + * + * @returns {object} metadata of RelationalSource + * + */ + mapper() { + return { + required: false, + serializedName: 'RelationalSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'RelationalSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = RelationalSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/relationalTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/relationalTableDataset.js new file mode 100644 index 0000000000..8066e1c13b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/relationalTableDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The relational table dataset. + * + * @extends models['Dataset'] + */ +class RelationalTableDataset extends models['Dataset'] { + /** + * Create a RelationalTableDataset. + * @member {object} [tableName] The relational table name. Type: string (or + * Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of RelationalTableDataset + * + * @returns {object} metadata of RelationalTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'RelationalTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'RelationalTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: false, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = RelationalTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/resource.js b/lib/services/datafactoryManagement/lib/lib/models/resource.js new file mode 100644 index 0000000000..1ca93caeee --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/resource.js @@ -0,0 +1,98 @@ +/* + * 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'); + +/** + * Azure Data Factory top-level resource. + * + * @extends models['BaseResource'] + */ +class Resource extends models['BaseResource'] { + /** + * Create a Resource. + * @member {string} [id] The resource identifier. + * @member {string} [name] The resource name. + * @member {string} [type] The resource type. + * @member {string} [location] The resource location. + * @member {object} [tags] The resource tags. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of Resource + * + * @returns {object} metadata of Resource + * + */ + mapper() { + return { + required: false, + serializedName: 'Resource', + type: { + name: 'Composite', + className: 'Resource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = Resource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/retryPolicy.js b/lib/services/datafactoryManagement/lib/lib/models/retryPolicy.js new file mode 100644 index 0000000000..3ec427f9da --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/retryPolicy.js @@ -0,0 +1,66 @@ +/* + * 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'; + +/** + * Execution policy for an activity. + * + */ +class RetryPolicy { + /** + * Create a RetryPolicy. + * @member {object} [count] Maximum ordinary retry attempts. Default is 0. + * Type: integer (or Expression with resultType integer), minimum: 0. + * @member {number} [intervalInSeconds] Interval between retries in seconds. + * Default is 30. + */ + constructor() { + } + + /** + * Defines the metadata of RetryPolicy + * + * @returns {object} metadata of RetryPolicy + * + */ + mapper() { + return { + required: false, + serializedName: 'RetryPolicy', + type: { + name: 'Composite', + className: 'RetryPolicy', + modelProperties: { + count: { + required: false, + serializedName: 'count', + type: { + name: 'Object' + } + }, + intervalInSeconds: { + required: false, + serializedName: 'intervalInSeconds', + constraints: { + InclusiveMaximum: 86400, + InclusiveMinimum: 30 + }, + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = RetryPolicy; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sSISPackageLocation.js b/lib/services/datafactoryManagement/lib/lib/models/sSISPackageLocation.js new file mode 100644 index 0000000000..55392c698b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sSISPackageLocation.js @@ -0,0 +1,52 @@ +/* + * 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 package location. + * + */ +class SSISPackageLocation { + /** + * Create a SSISPackageLocation. + * @member {string} packagePath The SSIS package path. + */ + constructor() { + } + + /** + * Defines the metadata of SSISPackageLocation + * + * @returns {object} metadata of SSISPackageLocation + * + */ + mapper() { + return { + required: false, + serializedName: 'SSISPackageLocation', + type: { + name: 'Composite', + className: 'SSISPackageLocation', + modelProperties: { + packagePath: { + required: true, + serializedName: 'packagePath', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SSISPackageLocation; diff --git a/lib/services/datafactoryManagement/lib/lib/models/salesforceLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/salesforceLinkedService.js new file mode 100644 index 0000000000..4ac04f20ac --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/salesforceLinkedService.js @@ -0,0 +1,168 @@ +/* + * 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'); + +/** + * Linked service for Salesforce. + * + * @extends models['LinkedService'] + */ +class SalesforceLinkedService extends models['LinkedService'] { + /** + * Create a SalesforceLinkedService. + * @member {object} [environmentUrl] The URL of Salesforce instance. Default + * is 'https://login.salesforce.com'. To copy data from sandbox, specify + * 'https://test.salesforce.com'. To copy data from custom domain, specify, + * for example, 'https://[domain].my.salesforce.com'. Type: string (or + * Expression with resultType string). + * @member {object} [username] The username for Basic authentication of the + * Salesforce instance. Type: string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication of the + * Salesforce instance. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [securityToken] The security token is required to + * remotely access Salesforce instance. + * @member {string} [securityToken.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceLinkedService + * + * @returns {object} metadata of SalesforceLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Salesforce', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SalesforceLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + environmentUrl: { + required: false, + serializedName: 'typeProperties.environmentUrl', + type: { + name: 'Object' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + securityToken: { + required: false, + serializedName: 'typeProperties.securityToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SalesforceLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudLinkedService.js new file mode 100644 index 0000000000..fec1c08d77 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudLinkedService.js @@ -0,0 +1,173 @@ +/* + * 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'); + +/** + * Salesforce Marketing Cloud linked service. + * + * @extends models['LinkedService'] + */ +class SalesforceMarketingCloudLinkedService extends models['LinkedService'] { + /** + * Create a SalesforceMarketingCloudLinkedService. + * @member {object} clientId The client ID associated with the Salesforce + * Marketing Cloud application. Type: string (or Expression with resultType + * string). + * @member {object} [clientSecret] The client secret associated with the + * Salesforce Marketing Cloud application. Type: string (or Expression with + * resultType string). + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. Type: + * boolean (or Expression with resultType boolean). + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. Type: boolean (or + * Expression with resultType boolean). + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. Type: boolean (or Expression with resultType boolean). + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceMarketingCloudLinkedService + * + * @returns {object} metadata of SalesforceMarketingCloudLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceMarketingCloud', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SalesforceMarketingCloudLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SalesforceMarketingCloudLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudObjectDataset.js new file mode 100644 index 0000000000..10d315fa5b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Salesforce Marketing Cloud dataset. + * + * @extends models['Dataset'] + */ +class SalesforceMarketingCloudObjectDataset extends models['Dataset'] { + /** + * Create a SalesforceMarketingCloudObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceMarketingCloudObjectDataset + * + * @returns {object} metadata of SalesforceMarketingCloudObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceMarketingCloudObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SalesforceMarketingCloudObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = SalesforceMarketingCloudObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudSource.js b/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudSource.js new file mode 100644 index 0000000000..91b7b84bb9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/salesforceMarketingCloudSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Salesforce Marketing Cloud source. + * + * @extends models['CopySource'] + */ +class SalesforceMarketingCloudSource extends models['CopySource'] { + /** + * Create a SalesforceMarketingCloudSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceMarketingCloudSource + * + * @returns {object} metadata of SalesforceMarketingCloudSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceMarketingCloudSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SalesforceMarketingCloudSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SalesforceMarketingCloudSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/salesforceObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/salesforceObjectDataset.js new file mode 100644 index 0000000000..24403a0ef0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/salesforceObjectDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The Salesforce object dataset. + * + * @extends models['Dataset'] + */ +class SalesforceObjectDataset extends models['Dataset'] { + /** + * Create a SalesforceObjectDataset. + * @member {object} [objectApiName] The Salesforce object API name. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceObjectDataset + * + * @returns {object} metadata of SalesforceObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SalesforceObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + objectApiName: { + required: false, + serializedName: 'typeProperties.objectApiName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SalesforceObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/salesforceSink.js b/lib/services/datafactoryManagement/lib/lib/models/salesforceSink.js new file mode 100644 index 0000000000..c790becb2a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/salesforceSink.js @@ -0,0 +1,123 @@ +/* + * 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'); + +/** + * A copy activity Salesforce sink. + * + * @extends models['CopySink'] + */ +class SalesforceSink extends models['CopySink'] { + /** + * Create a SalesforceSink. + * @member {string} [writeBehavior] The write behavior for the operation. + * Default is Insert. Possible values include: 'Insert', 'Upsert' + * @member {object} [externalIdFieldName] The name of the external ID field + * for upsert operation. Default value is 'Id' column. Type: string (or + * Expression with resultType string). + * @member {object} [ignoreNullValues] The flag indicating whether or not to + * ignore null values from input dataset (except key fields) during write + * operation. Default value is false. If set it to true, it means ADF will + * leave the data in the destination object unchanged when doing + * upsert/update operation and insert defined default value when doing insert + * operation, versus ADF will update the data in the destination object to + * NULL when doing upsert/update operation and insert NULL value when doing + * insert operation. Type: boolean (or Expression with resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceSink + * + * @returns {object} metadata of SalesforceSink + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'SalesforceSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + writeBehavior: { + required: false, + serializedName: 'writeBehavior', + type: { + name: 'String' + } + }, + externalIdFieldName: { + required: false, + serializedName: 'externalIdFieldName', + type: { + name: 'Object' + } + }, + ignoreNullValues: { + required: false, + serializedName: 'ignoreNullValues', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SalesforceSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/salesforceSource.js b/lib/services/datafactoryManagement/lib/lib/models/salesforceSource.js new file mode 100644 index 0000000000..579ca4467e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/salesforceSource.js @@ -0,0 +1,93 @@ +/* + * 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'); + +/** + * A copy activity Salesforce source. + * + * @extends models['CopySource'] + */ +class SalesforceSource extends models['CopySource'] { + /** + * Create a SalesforceSource. + * @member {object} [query] Database query. Type: string (or Expression with + * resultType string). + * @member {string} [readBehavior] The read behavior for the operation. + * Default is Query. Possible values include: 'Query', 'QueryAll' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SalesforceSource + * + * @returns {object} metadata of SalesforceSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SalesforceSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SalesforceSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + }, + readBehavior: { + required: false, + serializedName: 'readBehavior', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SalesforceSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapBWLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sapBWLinkedService.js new file mode 100644 index 0000000000..a4574122b2 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapBWLinkedService.js @@ -0,0 +1,168 @@ +/* + * 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'); + +/** + * SAP Business Warehouse Linked Service. + * + * @extends models['LinkedService'] + */ +class SapBWLinkedService extends models['LinkedService'] { + /** + * Create a SapBWLinkedService. + * @member {object} server Host name of the SAP BW instance. Type: string (or + * Expression with resultType string). + * @member {object} systemNumber System number of the BW system. (Usually a + * two-digit decimal number represented as a string.) Type: string (or + * Expression with resultType string). + * @member {object} clientId Client ID of the client on the BW system. + * (Usually a three-digit decimal number represented as a string) Type: + * string (or Expression with resultType string). + * @member {object} [userName] Username to access the SAP BW server. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password to access the SAP BW server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapBWLinkedService + * + * @returns {object} metadata of SapBWLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SapBW', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SapBWLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + systemNumber: { + required: true, + serializedName: 'typeProperties.systemNumber', + type: { + name: 'Object' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SapBWLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerLinkedService.js new file mode 100644 index 0000000000..909a12d1f1 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerLinkedService.js @@ -0,0 +1,150 @@ +/* + * 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'); + +/** + * Linked service for SAP Cloud for Customer. + * + * @extends models['LinkedService'] + */ +class SapCloudForCustomerLinkedService extends models['LinkedService'] { + /** + * Create a SapCloudForCustomerLinkedService. + * @member {object} url The URL of SAP Cloud for Customer OData API. For + * example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: + * string (or Expression with resultType string). + * @member {object} [username] The username for Basic authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [encryptedCredential] The encrypted credential used for + * authentication. Credentials are encrypted using the integration runtime + * credential manager. Either encryptedCredential or username/password must + * be provided. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapCloudForCustomerLinkedService + * + * @returns {object} metadata of SapCloudForCustomerLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SapCloudForCustomer', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SapCloudForCustomerLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'Object' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SapCloudForCustomerLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerResourceDataset.js b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerResourceDataset.js new file mode 100644 index 0000000000..9470a76351 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerResourceDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The path of the SAP Cloud for Customer OData entity. + * + * @extends models['Dataset'] + */ +class SapCloudForCustomerResourceDataset extends models['Dataset'] { + /** + * Create a SapCloudForCustomerResourceDataset. + * @member {object} path The path of the SAP Cloud for Customer OData entity. + * Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapCloudForCustomerResourceDataset + * + * @returns {object} metadata of SapCloudForCustomerResourceDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SapCloudForCustomerResource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SapCloudForCustomerResourceDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + path: { + required: true, + serializedName: 'typeProperties.path', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SapCloudForCustomerResourceDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSink.js b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSink.js new file mode 100644 index 0000000000..354c0552ac --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSink.js @@ -0,0 +1,98 @@ +/* + * 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'); + +/** + * A copy activity SAP Cloud for Customer sink. + * + * @extends models['CopySink'] + */ +class SapCloudForCustomerSink extends models['CopySink'] { + /** + * Create a SapCloudForCustomerSink. + * @member {string} [writeBehavior] The write behavior for the operation. + * Default is 'Insert'. Possible values include: 'Insert', 'Update' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapCloudForCustomerSink + * + * @returns {object} metadata of SapCloudForCustomerSink + * + */ + mapper() { + return { + required: false, + serializedName: 'SapCloudForCustomerSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'SapCloudForCustomerSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + writeBehavior: { + required: false, + serializedName: 'writeBehavior', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapCloudForCustomerSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSource.js b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSource.js new file mode 100644 index 0000000000..84c60656b8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapCloudForCustomerSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity source for SAP Cloud for Customer source. + * + * @extends models['CopySource'] + */ +class SapCloudForCustomerSource extends models['CopySource'] { + /** + * Create a SapCloudForCustomerSource. + * @member {object} [query] SAP Cloud for Customer OData query. For example, + * "$top=1". Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapCloudForCustomerSource + * + * @returns {object} metadata of SapCloudForCustomerSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SapCloudForCustomerSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SapCloudForCustomerSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SapCloudForCustomerSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapEccLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sapEccLinkedService.js new file mode 100644 index 0000000000..4bd036ec0a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapEccLinkedService.js @@ -0,0 +1,150 @@ +/* + * 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'); + +/** + * Linked service for SAP ERP Central Component(SAP ECC). + * + * @extends models['LinkedService'] + */ +class SapEccLinkedService extends models['LinkedService'] { + /** + * Create a SapEccLinkedService. + * @member {string} url The URL of SAP ECC OData API. For example, + * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or + * Expression with resultType string). + * @member {string} [username] The username for Basic authentication. Type: + * string (or Expression with resultType string). + * @member {object} [password] The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {string} [encryptedCredential] The encrypted credential used for + * authentication. Credentials are encrypted using the integration runtime + * credential manager. Either encryptedCredential or username/password must + * be provided. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapEccLinkedService + * + * @returns {object} metadata of SapEccLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SapEcc', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SapEccLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'String' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapEccLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapEccResourceDataset.js b/lib/services/datafactoryManagement/lib/lib/models/sapEccResourceDataset.js new file mode 100644 index 0000000000..6854b02883 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapEccResourceDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The path of the SAP ECC OData entity. + * + * @extends models['Dataset'] + */ +class SapEccResourceDataset extends models['Dataset'] { + /** + * Create a SapEccResourceDataset. + * @member {string} path The path of the SAP ECC OData entity. Type: string + * (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapEccResourceDataset + * + * @returns {object} metadata of SapEccResourceDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SapEccResource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SapEccResourceDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + path: { + required: true, + serializedName: 'typeProperties.path', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapEccResourceDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapEccSource.js b/lib/services/datafactoryManagement/lib/lib/models/sapEccSource.js new file mode 100644 index 0000000000..0c03f52ef3 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapEccSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity source for SAP ECC source. + * + * @extends models['CopySource'] + */ +class SapEccSource extends models['CopySource'] { + /** + * Create a SapEccSource. + * @member {string} [query] SAP ECC OData query. For example, "$top=1". Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapEccSource + * + * @returns {object} metadata of SapEccSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SapEccSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SapEccSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapEccSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sapHanaLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sapHanaLinkedService.js new file mode 100644 index 0000000000..32236e2d52 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sapHanaLinkedService.js @@ -0,0 +1,158 @@ +/* + * 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'); + +/** + * SAP HANA Linked Service. + * + * @extends models['LinkedService'] + */ +class SapHanaLinkedService extends models['LinkedService'] { + /** + * Create a SapHanaLinkedService. + * @member {object} server Host name of the SAP HANA server. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] The authentication type to be used + * to connect to the SAP HANA server. Possible values include: 'Basic', + * 'Windows' + * @member {object} [userName] Username to access the SAP HANA server. Type: + * string (or Expression with resultType string). + * @member {object} [password] Password to access the SAP HANA server. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapHanaLinkedService + * + * @returns {object} metadata of SapHanaLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SapHana', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SapHanaLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SapHanaLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/scheduleTrigger.js b/lib/services/datafactoryManagement/lib/lib/models/scheduleTrigger.js new file mode 100644 index 0000000000..185df95067 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/scheduleTrigger.js @@ -0,0 +1,125 @@ +/* + * 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 creates pipeline runs periodically, on schedule. + * + * @extends models['MultiplePipelineTrigger'] + */ +class ScheduleTrigger extends models['MultiplePipelineTrigger'] { + /** + * Create a ScheduleTrigger. + * @member {object} recurrence Recurrence schedule configuration. + * @member {string} [recurrence.frequency] The frequency. Possible values + * include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' + * @member {number} [recurrence.interval] The interval. + * @member {date} [recurrence.startTime] The start time. + * @member {date} [recurrence.endTime] The end time. + * @member {string} [recurrence.timeZone] The time zone. + * @member {object} [recurrence.schedule] The recurrence schedule. + * @member {array} [recurrence.schedule.minutes] The minutes. + * @member {array} [recurrence.schedule.hours] The hours. + * @member {array} [recurrence.schedule.weekDays] The days of the week. + * @member {array} [recurrence.schedule.monthDays] The month days. + * @member {array} [recurrence.schedule.monthlyOccurrences] The monthly + * occurrences. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ScheduleTrigger + * + * @returns {object} metadata of ScheduleTrigger + * + */ + mapper() { + return { + required: false, + serializedName: 'ScheduleTrigger', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', + className: 'ScheduleTrigger', + 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' + } + } + } + }, + recurrence: { + required: true, + serializedName: 'typeProperties.recurrence', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ScheduleTriggerRecurrence' + } + } + } + } + }; + } +} + +module.exports = ScheduleTrigger; diff --git a/lib/services/datafactoryManagement/lib/lib/models/scheduleTriggerRecurrence.js b/lib/services/datafactoryManagement/lib/lib/models/scheduleTriggerRecurrence.js new file mode 100644 index 0000000000..1150426250 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/scheduleTriggerRecurrence.js @@ -0,0 +1,125 @@ +/* + * 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'); + +/** + * The workflow trigger recurrence. + * + */ +class ScheduleTriggerRecurrence { + /** + * Create a ScheduleTriggerRecurrence. + * @member {string} [frequency] The frequency. Possible values include: + * 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' + * @member {number} [interval] The interval. + * @member {date} [startTime] The start time. + * @member {date} [endTime] The end time. + * @member {string} [timeZone] The time zone. + * @member {object} [schedule] The recurrence schedule. + * @member {array} [schedule.minutes] The minutes. + * @member {array} [schedule.hours] The hours. + * @member {array} [schedule.weekDays] The days of the week. + * @member {array} [schedule.monthDays] The month days. + * @member {array} [schedule.monthlyOccurrences] The monthly occurrences. + */ + constructor() { + } + + /** + * Defines the metadata of ScheduleTriggerRecurrence + * + * @returns {object} metadata of ScheduleTriggerRecurrence + * + */ + mapper() { + return { + required: false, + serializedName: 'ScheduleTriggerRecurrence', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ScheduleTriggerRecurrence', + modelProperties: { + frequency: { + required: false, + serializedName: 'frequency', + type: { + name: 'String' + } + }, + interval: { + required: false, + serializedName: 'interval', + type: { + name: 'Number' + } + }, + startTime: { + required: false, + serializedName: 'startTime', + type: { + name: 'DateTime' + } + }, + endTime: { + required: false, + serializedName: 'endTime', + type: { + name: 'DateTime' + } + }, + timeZone: { + required: false, + serializedName: 'timeZone', + type: { + name: 'String' + } + }, + schedule: { + required: false, + serializedName: 'schedule', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'RecurrenceSchedule' + } + } + } + } + }; + } +} + +module.exports = ScheduleTriggerRecurrence; diff --git a/lib/services/datafactoryManagement/lib/lib/models/secretBase.js b/lib/services/datafactoryManagement/lib/lib/models/secretBase.js new file mode 100644 index 0000000000..58ab3a67a2 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/secretBase.js @@ -0,0 +1,58 @@ +/* + * 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'; + +/** + * The base definition of a secret type. + * + */ +class SecretBase { + /** + * Create a SecretBase. + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of SecretBase + * + * @returns {object} metadata of SecretBase + * + */ + mapper() { + return { + required: false, + serializedName: 'SecretBase', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SecretBase; diff --git a/lib/services/datafactoryManagement/lib/lib/models/secureString.js b/lib/services/datafactoryManagement/lib/lib/models/secureString.js new file mode 100644 index 0000000000..1df97aaa80 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/secureString.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * Azure Data Factory secure string definition. The string value will be masked + * with asterisks '*' during Get or List API calls. + * + * @extends models['SecretBase'] + */ +class SecureString extends models['SecretBase'] { + /** + * Create a SecureString. + * @member {string} value Value of secure string. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SecureString + * + * @returns {object} metadata of SecureString + * + */ + mapper() { + return { + required: false, + serializedName: 'SecureString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + value: { + required: true, + serializedName: 'value', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SecureString; diff --git a/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntime.js b/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntime.js new file mode 100644 index 0000000000..eda9dc4d39 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntime.js @@ -0,0 +1,83 @@ +/* + * 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'); + +/** + * Self-hosted integration runtime. + * + * @extends models['IntegrationRuntime'] + */ +class SelfHostedIntegrationRuntime extends models['IntegrationRuntime'] { + /** + * Create a SelfHostedIntegrationRuntime. + * @member {object} [linkedInfo] + * @member {string} [linkedInfo.authorizationType] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SelfHostedIntegrationRuntime + * + * @returns {object} metadata of SelfHostedIntegrationRuntime + * + */ + mapper() { + return { + required: false, + serializedName: 'SelfHosted', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntime', + className: 'SelfHostedIntegrationRuntime', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedInfo: { + required: false, + serializedName: 'typeProperties.linkedInfo', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authorizationType', + clientName: 'authorizationType' + }, + uberParent: 'LinkedIntegrationRuntimeProperties', + className: 'LinkedIntegrationRuntimeProperties' + } + } + } + } + }; + } +} + +module.exports = SelfHostedIntegrationRuntime; diff --git a/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeNode.js b/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeNode.js new file mode 100644 index 0000000000..37fdfd315a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeNode.js @@ -0,0 +1,240 @@ +/* + * 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'; + +/** + * Properties of Self-hosted integration runtime node. + * + */ +class SelfHostedIntegrationRuntimeNode { + /** + * Create a SelfHostedIntegrationRuntimeNode. + * @member {string} [nodeName] Name of the integration runtime node. + * @member {string} [machineName] Machine name of the integration runtime + * node. + * @member {string} [hostServiceUri] URI for the host machine of the + * integration runtime. + * @member {string} [status] Status of the integration runtime node. Possible + * values include: 'NeedRegistration', 'Online', 'Limited', 'Offline', + * 'Upgrading', 'Initializing', 'InitializeFailed' + * @member {object} [capabilities] The integration runtime capabilities + * dictionary + * @member {string} [versionStatus] Status of the integration runtime node + * version. + * @member {string} [version] Version of the integration runtime node. + * @member {date} [registerTime] The time at which the integration runtime + * node was registered in ISO8601 format. + * @member {date} [lastConnectTime] The most recent time at which the + * integration runtime was connected in ISO8601 format. + * @member {date} [expiryTime] The time at which the integration runtime will + * expire in ISO8601 format. + * @member {date} [lastStartTime] The time the node last started up. + * @member {date} [lastStopTime] The integration runtime node last stop time. + * @member {string} [lastUpdateResult] The result of the last integration + * runtime node update. Possible values include: 'Succeed', 'Fail' + * @member {date} [lastStartUpdateTime] The last time for the integration + * runtime node update start. + * @member {date} [lastEndUpdateTime] The last time for the integration + * runtime node update end. + * @member {boolean} [isActiveDispatcher] Indicates whether this node is the + * active dispatcher for integration runtime requests. + * @member {number} [concurrentJobsLimit] Maximum concurrent jobs on the + * integration runtime node. + * @member {number} [maxConcurrentJobs] The maximum concurrent jobs in this + * integration runtime. + */ + constructor() { + } + + /** + * Defines the metadata of SelfHostedIntegrationRuntimeNode + * + * @returns {object} metadata of SelfHostedIntegrationRuntimeNode + * + */ + mapper() { + return { + required: false, + serializedName: 'SelfHostedIntegrationRuntimeNode', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'SelfHostedIntegrationRuntimeNode', + modelProperties: { + nodeName: { + required: false, + readOnly: true, + serializedName: 'nodeName', + type: { + name: 'String' + } + }, + machineName: { + required: false, + readOnly: true, + serializedName: 'machineName', + type: { + name: 'String' + } + }, + hostServiceUri: { + required: false, + readOnly: true, + serializedName: 'hostServiceUri', + type: { + name: 'String' + } + }, + status: { + required: false, + readOnly: true, + serializedName: 'status', + type: { + name: 'String' + } + }, + capabilities: { + required: false, + readOnly: true, + serializedName: 'capabilities', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + versionStatus: { + required: false, + readOnly: true, + serializedName: 'versionStatus', + type: { + name: 'String' + } + }, + version: { + required: false, + readOnly: true, + serializedName: 'version', + type: { + name: 'String' + } + }, + registerTime: { + required: false, + readOnly: true, + serializedName: 'registerTime', + type: { + name: 'DateTime' + } + }, + lastConnectTime: { + required: false, + readOnly: true, + serializedName: 'lastConnectTime', + type: { + name: 'DateTime' + } + }, + expiryTime: { + required: false, + readOnly: true, + serializedName: 'expiryTime', + type: { + name: 'DateTime' + } + }, + lastStartTime: { + required: false, + readOnly: true, + serializedName: 'lastStartTime', + type: { + name: 'DateTime' + } + }, + lastStopTime: { + required: false, + readOnly: true, + serializedName: 'lastStopTime', + type: { + name: 'DateTime' + } + }, + lastUpdateResult: { + required: false, + readOnly: true, + serializedName: 'lastUpdateResult', + type: { + name: 'String' + } + }, + lastStartUpdateTime: { + required: false, + readOnly: true, + serializedName: 'lastStartUpdateTime', + type: { + name: 'DateTime' + } + }, + lastEndUpdateTime: { + required: false, + readOnly: true, + serializedName: 'lastEndUpdateTime', + type: { + name: 'DateTime' + } + }, + isActiveDispatcher: { + required: false, + readOnly: true, + serializedName: 'isActiveDispatcher', + type: { + name: 'Boolean' + } + }, + concurrentJobsLimit: { + required: false, + readOnly: true, + serializedName: 'concurrentJobsLimit', + type: { + name: 'Number' + } + }, + maxConcurrentJobs: { + required: false, + readOnly: true, + serializedName: 'maxConcurrentJobs', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = SelfHostedIntegrationRuntimeNode; diff --git a/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeStatus.js b/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeStatus.js new file mode 100644 index 0000000000..558acd3d64 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/selfHostedIntegrationRuntimeStatus.js @@ -0,0 +1,247 @@ +/* + * 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'); + +/** + * Self-hosted integration runtime status. + * + * @extends models['IntegrationRuntimeStatus'] + */ +class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatus'] { + /** + * Create a SelfHostedIntegrationRuntimeStatus. + * @member {date} [createTime] The time at which the integration runtime was + * created, in ISO8601 format. + * @member {string} [taskQueueId] The task queue id of the integration + * runtime. + * @member {string} [internalChannelEncryption] It is used to set the + * encryption mode for node-node communication channel (when more than 2 + * self-hosted integration runtime nodes exist). Possible values include: + * 'NotSet', 'SslEncrypted', 'NotEncrypted' + * @member {string} [version] Version of the integration runtime. + * @member {array} [nodes] The list of nodes for this integration runtime. + * @member {date} [scheduledUpdateDate] The date at which the integration + * runtime will be scheduled to update, in ISO8601 format. + * @member {string} [updateDelayOffset] The time in the date scheduled by + * service to update the integration runtime, e.g., PT03H is 3 hours + * @member {string} [localTimeZoneOffset] The local time zone offset in + * hours. + * @member {object} [capabilities] Object with additional information about + * integration runtime capabilities. + * @member {array} [serviceUrls] The URLs for the services used in + * integration runtime backend service. + * @member {string} [autoUpdate] Whether Self-hosted integration runtime auto + * update has been turned on. Possible values include: 'On', 'Off' + * @member {string} [versionStatus] Status of the integration runtime + * version. + * @member {array} [links] The list of linked integration runtimes that are + * created to share with this integration runtime. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SelfHostedIntegrationRuntimeStatus + * + * @returns {object} metadata of SelfHostedIntegrationRuntimeStatus + * + */ + mapper() { + return { + required: false, + serializedName: 'SelfHosted', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'IntegrationRuntimeStatus', + className: 'SelfHostedIntegrationRuntimeStatus', + modelProperties: { + dataFactoryName: { + required: false, + readOnly: true, + serializedName: 'dataFactoryName', + type: { + name: 'String' + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'state', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + createTime: { + required: false, + readOnly: true, + serializedName: 'typeProperties.createTime', + type: { + name: 'DateTime' + } + }, + taskQueueId: { + required: false, + readOnly: true, + serializedName: 'typeProperties.taskQueueId', + type: { + name: 'String' + } + }, + internalChannelEncryption: { + required: false, + readOnly: true, + serializedName: 'typeProperties.internalChannelEncryption', + type: { + name: 'String' + } + }, + version: { + required: false, + readOnly: true, + serializedName: 'typeProperties.version', + type: { + name: 'String' + } + }, + nodes: { + required: false, + serializedName: 'typeProperties.nodes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'SelfHostedIntegrationRuntimeNodeElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'SelfHostedIntegrationRuntimeNode' + } + } + } + }, + scheduledUpdateDate: { + required: false, + readOnly: true, + serializedName: 'typeProperties.scheduledUpdateDate', + type: { + name: 'DateTime' + } + }, + updateDelayOffset: { + required: false, + readOnly: true, + serializedName: 'typeProperties.updateDelayOffset', + type: { + name: 'String' + } + }, + localTimeZoneOffset: { + required: false, + readOnly: true, + serializedName: 'typeProperties.localTimeZoneOffset', + type: { + name: 'String' + } + }, + capabilities: { + required: false, + readOnly: true, + serializedName: 'typeProperties.capabilities', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + serviceUrls: { + required: false, + readOnly: true, + serializedName: 'typeProperties.serviceUrls', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + autoUpdate: { + required: false, + readOnly: true, + serializedName: 'typeProperties.autoUpdate', + type: { + name: 'String' + } + }, + versionStatus: { + required: false, + readOnly: true, + serializedName: 'typeProperties.versionStatus', + type: { + name: 'String' + } + }, + links: { + required: false, + serializedName: 'typeProperties.links', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedIntegrationRuntimeElementType', + type: { + name: 'Composite', + className: 'LinkedIntegrationRuntime' + } + } + } + } + } + } + }; + } +} + +module.exports = SelfHostedIntegrationRuntimeStatus; diff --git a/lib/services/datafactoryManagement/lib/lib/models/serviceNowLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/serviceNowLinkedService.js new file mode 100644 index 0000000000..8dea5adcfb --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/serviceNowLinkedService.js @@ -0,0 +1,211 @@ +/* + * 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'); + +/** + * ServiceNow server linked service. + * + * @extends models['LinkedService'] + */ +class ServiceNowLinkedService extends models['LinkedService'] { + /** + * Create a ServiceNowLinkedService. + * @member {object} endpoint The endpoint of the ServiceNow server. (i.e. + * ServiceNowData.com) + * @member {string} authenticationType The authentication type to use. + * Possible values include: 'Basic', 'OAuth2' + * @member {object} [username] The user name used to connect to the + * ServiceNow server for Basic and OAuth2 authentication. + * @member {object} [password] The password corresponding to the user name + * for Basic and OAuth2 authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [clientId] The client id for OAuth2 authentication. + * @member {object} [clientSecret] The client secret for OAuth2 + * authentication. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ServiceNowLinkedService + * + * @returns {object} metadata of ServiceNowLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'ServiceNow', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'ServiceNowLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + endpoint: { + required: true, + serializedName: 'typeProperties.endpoint', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + clientId: { + required: false, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ServiceNowLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/serviceNowObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/serviceNowObjectDataset.js new file mode 100644 index 0000000000..500f47fd33 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/serviceNowObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * ServiceNow server dataset. + * + * @extends models['Dataset'] + */ +class ServiceNowObjectDataset extends models['Dataset'] { + /** + * Create a ServiceNowObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ServiceNowObjectDataset + * + * @returns {object} metadata of ServiceNowObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'ServiceNowObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'ServiceNowObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = ServiceNowObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/serviceNowSource.js b/lib/services/datafactoryManagement/lib/lib/models/serviceNowSource.js new file mode 100644 index 0000000000..1c57739010 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/serviceNowSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity ServiceNow server source. + * + * @extends models['CopySource'] + */ +class ServiceNowSource extends models['CopySource'] { + /** + * Create a ServiceNowSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ServiceNowSource + * + * @returns {object} metadata of ServiceNowSource + * + */ + mapper() { + return { + required: false, + serializedName: 'ServiceNowSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'ServiceNowSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ServiceNowSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sftpServerLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sftpServerLinkedService.js new file mode 100644 index 0000000000..3c705ccf50 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sftpServerLinkedService.js @@ -0,0 +1,235 @@ +/* + * 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'); + +/** + * A linked service for an SSH File Transfer Protocol (SFTP) server. + * + * @extends models['LinkedService'] + */ +class SftpServerLinkedService extends models['LinkedService'] { + /** + * Create a SftpServerLinkedService. + * @member {object} host The SFTP server host name. Type: string (or + * Expression with resultType string). + * @member {object} [port] The TCP port number that the SFTP server uses to + * listen for client connections. Default value is 22. Type: integer (or + * Expression with resultType integer), minimum: 0. + * @member {string} [authenticationType] The authentication type to be used + * to connect to the FTP server. Possible values include: 'Basic', + * 'SshPublicKey' + * @member {object} [userName] The username used to log on to the SFTP + * server. Type: string (or Expression with resultType string). + * @member {object} [password] Password to logon the SFTP server for Basic + * authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + * @member {object} [privateKeyPath] The SSH private key file path for + * SshPublicKey authentication. Only valid for on-premises copy. For + * on-premises copy with SshPublicKey authentication, either PrivateKeyPath + * or PrivateKeyContent should be specified. SSH private key should be + * OpenSSH format. Type: string (or Expression with resultType string). + * @member {object} [privateKeyContent] Base64 encoded SSH private key + * content for SshPublicKey authentication. For on-premises copy with + * SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent + * should be specified. SSH private key should be OpenSSH format. + * @member {string} [privateKeyContent.type] Polymorphic Discriminator + * @member {object} [passPhrase] The password to decrypt the SSH private key + * if the SSH private key is encrypted. + * @member {string} [passPhrase.type] Polymorphic Discriminator + * @member {object} [skipHostKeyValidation] If true, skip the SSH host key + * validation. Default value is false. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [hostKeyFingerprint] The host key finger-print of the + * SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint + * should be specified. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SftpServerLinkedService + * + * @returns {object} metadata of SftpServerLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Sftp', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SftpServerLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: false, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + }, + privateKeyPath: { + required: false, + serializedName: 'typeProperties.privateKeyPath', + type: { + name: 'Object' + } + }, + privateKeyContent: { + required: false, + serializedName: 'typeProperties.privateKeyContent', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + passPhrase: { + required: false, + serializedName: 'typeProperties.passPhrase', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + skipHostKeyValidation: { + required: false, + serializedName: 'typeProperties.skipHostKeyValidation', + type: { + name: 'Object' + } + }, + hostKeyFingerprint: { + required: false, + serializedName: 'typeProperties.hostKeyFingerprint', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SftpServerLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/shopifyLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/shopifyLinkedService.js new file mode 100644 index 0000000000..f8156cac8c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/shopifyLinkedService.js @@ -0,0 +1,169 @@ +/* + * 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'); + +/** + * Shopify Serivce linked service. + * + * @extends models['LinkedService'] + */ +class ShopifyLinkedService extends models['LinkedService'] { + /** + * Create a ShopifyLinkedService. + * @member {object} host The endpoint of the Shopify server. (i.e. + * mystore.myshopify.com) + * @member {object} [accessToken] The API access token that can be used to + * access Shopify’s data. The token won't expire if it is offline mode. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ShopifyLinkedService + * + * @returns {object} metadata of ShopifyLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Shopify', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'ShopifyLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + accessToken: { + required: false, + serializedName: 'typeProperties.accessToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ShopifyLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/shopifyObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/shopifyObjectDataset.js new file mode 100644 index 0000000000..3a37565016 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/shopifyObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Shopify Serivce dataset. + * + * @extends models['Dataset'] + */ +class ShopifyObjectDataset extends models['Dataset'] { + /** + * Create a ShopifyObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ShopifyObjectDataset + * + * @returns {object} metadata of ShopifyObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'ShopifyObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'ShopifyObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = ShopifyObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/shopifySource.js b/lib/services/datafactoryManagement/lib/lib/models/shopifySource.js new file mode 100644 index 0000000000..f44e8bc57d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/shopifySource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Shopify Serivce source. + * + * @extends models['CopySource'] + */ +class ShopifySource extends models['CopySource'] { + /** + * Create a ShopifySource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ShopifySource + * + * @returns {object} metadata of ShopifySource + * + */ + mapper() { + return { + required: false, + serializedName: 'ShopifySource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'ShopifySource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ShopifySource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sparkLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sparkLinkedService.js new file mode 100644 index 0000000000..e5c4fc6e03 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sparkLinkedService.js @@ -0,0 +1,244 @@ +/* + * 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'); + +/** + * Spark Server linked service. + * + * @extends models['LinkedService'] + */ +class SparkLinkedService extends models['LinkedService'] { + /** + * Create a SparkLinkedService. + * @member {object} host IP address or host name of the Spark server + * @member {object} port The TCP port that the Spark server uses to listen + * for client connections. + * @member {string} [serverType] The type of Spark server. Possible values + * include: 'SharkServer', 'SharkServer2', 'SparkThriftServer' + * @member {string} [thriftTransportProtocol] The transport protocol to use + * in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP ' + * @member {string} authenticationType The authentication method used to + * access the Spark server. Possible values include: 'Anonymous', 'Username', + * 'UsernameAndPassword', 'WindowsAzureHDInsightService' + * @member {object} [username] The user name that you use to access Spark + * Server. + * @member {object} [password] The password corresponding to the user name + * that you provided in the Username field + * @member {string} [password.type] Polymorphic Discriminator + * @member {object} [httpPath] The partial URL corresponding to the Spark + * server. + * @member {object} [enableSsl] Specifies whether the connections to the + * server are encrypted using SSL. The default value is false. + * @member {object} [trustedCertPath] The full path of the .pem file + * containing trusted CA certificates for verifying the server when + * connecting over SSL. This property can only be set when using SSL on + * self-hosted IR. The default value is the cacerts.pem file installed with + * the IR. + * @member {object} [useSystemTrustStore] Specifies whether to use a CA + * certificate from the system trust store or from a specified PEM file. The + * default value is false. + * @member {object} [allowHostNameCNMismatch] Specifies whether to require a + * CA-issued SSL certificate name to match the host name of the server when + * connecting over SSL. The default value is false. + * @member {object} [allowSelfSignedServerCert] Specifies whether to allow + * self-signed certificates from the server. The default value is false. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SparkLinkedService + * + * @returns {object} metadata of SparkLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Spark', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SparkLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + port: { + required: true, + serializedName: 'typeProperties.port', + type: { + name: 'Object' + } + }, + serverType: { + required: false, + serializedName: 'typeProperties.serverType', + type: { + name: 'String' + } + }, + thriftTransportProtocol: { + required: false, + serializedName: 'typeProperties.thriftTransportProtocol', + type: { + name: 'String' + } + }, + authenticationType: { + required: true, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + httpPath: { + required: false, + serializedName: 'typeProperties.httpPath', + type: { + name: 'Object' + } + }, + enableSsl: { + required: false, + serializedName: 'typeProperties.enableSsl', + type: { + name: 'Object' + } + }, + trustedCertPath: { + required: false, + serializedName: 'typeProperties.trustedCertPath', + type: { + name: 'Object' + } + }, + useSystemTrustStore: { + required: false, + serializedName: 'typeProperties.useSystemTrustStore', + type: { + name: 'Object' + } + }, + allowHostNameCNMismatch: { + required: false, + serializedName: 'typeProperties.allowHostNameCNMismatch', + type: { + name: 'Object' + } + }, + allowSelfSignedServerCert: { + required: false, + serializedName: 'typeProperties.allowSelfSignedServerCert', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SparkLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sparkObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/sparkObjectDataset.js new file mode 100644 index 0000000000..d003139a20 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sparkObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Spark Server dataset. + * + * @extends models['Dataset'] + */ +class SparkObjectDataset extends models['Dataset'] { + /** + * Create a SparkObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SparkObjectDataset + * + * @returns {object} metadata of SparkObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SparkObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SparkObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = SparkObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sparkSource.js b/lib/services/datafactoryManagement/lib/lib/models/sparkSource.js new file mode 100644 index 0000000000..13b2ab636a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sparkSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Spark Server source. + * + * @extends models['CopySource'] + */ +class SparkSource extends models['CopySource'] { + /** + * Create a SparkSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SparkSource + * + * @returns {object} metadata of SparkSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SparkSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SparkSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SparkSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sqlDWSink.js b/lib/services/datafactoryManagement/lib/lib/models/sqlDWSink.js new file mode 100644 index 0000000000..de761daab0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sqlDWSink.js @@ -0,0 +1,142 @@ +/* + * 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'); + +/** + * A copy activity SQL Data Warehouse sink. + * + * @extends models['CopySink'] + */ +class SqlDWSink extends models['CopySink'] { + /** + * Create a SqlDWSink. + * @member {object} [preCopyScript] SQL pre-copy script. Type: string (or + * Expression with resultType string). + * @member {object} [allowPolyBase] Indicates to use PolyBase to copy data + * into SQL Data Warehouse when applicable. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [polyBaseSettings] Specifies PolyBase-related settings + * when allowPolyBase is true. + * @member {string} [polyBaseSettings.rejectType] Reject type. Possible + * values include: 'value', 'percentage' + * @member {object} [polyBaseSettings.rejectValue] Specifies the value or the + * percentage of rows that can be rejected before the query fails. Type: + * number (or Expression with resultType number), minimum: 0. + * @member {object} [polyBaseSettings.rejectSampleValue] Determines the + * number of rows to attempt to retrieve before the PolyBase recalculates the + * percentage of rejected rows. Type: integer (or Expression with resultType + * integer), minimum: 0. + * @member {object} [polyBaseSettings.useTypeDefault] Specifies how to handle + * missing values in delimited text files when PolyBase retrieves data from + * the text file. Type: boolean (or Expression with resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SqlDWSink + * + * @returns {object} metadata of SqlDWSink + * + */ + mapper() { + return { + required: false, + serializedName: 'SqlDWSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'SqlDWSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + preCopyScript: { + required: false, + serializedName: 'preCopyScript', + type: { + name: 'Object' + } + }, + allowPolyBase: { + required: false, + serializedName: 'allowPolyBase', + type: { + name: 'Object' + } + }, + polyBaseSettings: { + required: false, + serializedName: 'polyBaseSettings', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'PolybaseSettings' + } + } + } + } + }; + } +} + +module.exports = SqlDWSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sqlDWSource.js b/lib/services/datafactoryManagement/lib/lib/models/sqlDWSource.js new file mode 100644 index 0000000000..97aef33b9a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sqlDWSource.js @@ -0,0 +1,106 @@ +/* + * 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'); + +/** + * A copy activity SQL Data Warehouse source. + * + * @extends models['CopySource'] + */ +class SqlDWSource extends models['CopySource'] { + /** + * Create a SqlDWSource. + * @member {object} [sqlReaderQuery] SQL Data Warehouse reader query. Type: + * string (or Expression with resultType string). + * @member {object} [sqlReaderStoredProcedureName] Name of the stored + * procedure for a SQL Data Warehouse source. This cannot be used at the same + * time as SqlReaderQuery. Type: string (or Expression with resultType + * string). + * @member {object} [storedProcedureParameters] Value and type setting for + * stored procedure parameters. Example: "{Parameter1: {value: "1", type: + * "int"}}". Type: object (or Expression with resultType object), itemType: + * StoredProcedureParameter. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SqlDWSource + * + * @returns {object} metadata of SqlDWSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SqlDWSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SqlDWSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + sqlReaderQuery: { + required: false, + serializedName: 'sqlReaderQuery', + type: { + name: 'Object' + } + }, + sqlReaderStoredProcedureName: { + required: false, + serializedName: 'sqlReaderStoredProcedureName', + type: { + name: 'Object' + } + }, + storedProcedureParameters: { + required: false, + serializedName: 'storedProcedureParameters', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SqlDWSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sqlServerLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sqlServerLinkedService.js new file mode 100644 index 0000000000..04c09187e8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sqlServerLinkedService.js @@ -0,0 +1,155 @@ +/* + * 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'); + +/** + * SQL Server linked service. + * + * @extends models['LinkedService'] + */ +class SqlServerLinkedService extends models['LinkedService'] { + /** + * Create a SqlServerLinkedService. + * @member {object} connectionString The connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @member {object} [userName] The on-premises Windows authentication user + * name. Type: string (or Expression with resultType string). + * @member {object} [password] The on-premises Windows authentication + * password. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SqlServerLinkedService + * + * @returns {object} metadata of SqlServerLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SqlServer', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SqlServerLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: true, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SqlServerLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sqlServerStoredProcedureActivity.js b/lib/services/datafactoryManagement/lib/lib/models/sqlServerStoredProcedureActivity.js new file mode 100644 index 0000000000..fb1026ca4c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sqlServerStoredProcedureActivity.js @@ -0,0 +1,157 @@ +/* + * 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'); + +/** + * SQL stored procedure activity type. + * + * @extends models['ExecutionActivity'] + */ +class SqlServerStoredProcedureActivity extends models['ExecutionActivity'] { + /** + * Create a SqlServerStoredProcedureActivity. + * @member {object} storedProcedureName Stored procedure name. Type: string + * (or Expression with resultType string). + * @member {object} [storedProcedureParameters] Value and type setting for + * stored procedure parameters. Example: "{Parameter1: {value: "1", type: + * "int"}}". + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SqlServerStoredProcedureActivity + * + * @returns {object} metadata of SqlServerStoredProcedureActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'SqlServerStoredProcedure', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'SqlServerStoredProcedureActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + storedProcedureName: { + required: true, + serializedName: 'typeProperties.storedProcedureName', + type: { + name: 'Object' + } + }, + storedProcedureParameters: { + required: false, + serializedName: 'typeProperties.storedProcedureParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StoredProcedureParameterElementType', + type: { + name: 'Composite', + className: 'StoredProcedureParameter' + } + } + } + } + } + } + }; + } +} + +module.exports = SqlServerStoredProcedureActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sqlServerTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/sqlServerTableDataset.js new file mode 100644 index 0000000000..1da4f37442 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sqlServerTableDataset.js @@ -0,0 +1,122 @@ +/* + * 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'); + +/** + * The on-premises SQL Server dataset. + * + * @extends models['Dataset'] + */ +class SqlServerTableDataset extends models['Dataset'] { + /** + * Create a SqlServerTableDataset. + * @member {object} tableName The table name of the SQL Server dataset. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SqlServerTableDataset + * + * @returns {object} metadata of SqlServerTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SqlServerTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SqlServerTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + tableName: { + required: true, + serializedName: 'typeProperties.tableName', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SqlServerTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sqlSink.js b/lib/services/datafactoryManagement/lib/lib/models/sqlSink.js new file mode 100644 index 0000000000..c4b1e68e30 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sqlSink.js @@ -0,0 +1,133 @@ +/* + * 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'); + +/** + * A copy activity SQL sink. + * + * @extends models['CopySink'] + */ +class SqlSink extends models['CopySink'] { + /** + * Create a SqlSink. + * @member {object} [sqlWriterStoredProcedureName] SQL writer stored + * procedure name. Type: string (or Expression with resultType string). + * @member {object} [sqlWriterTableType] SQL writer table type. Type: string + * (or Expression with resultType string). + * @member {object} [preCopyScript] SQL pre-copy script. Type: string (or + * Expression with resultType string). + * @member {object} [storedProcedureParameters] SQL stored procedure + * parameters. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SqlSink + * + * @returns {object} metadata of SqlSink + * + */ + mapper() { + return { + required: false, + serializedName: 'SqlSink', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySink', + className: 'SqlSink', + modelProperties: { + writeBatchSize: { + required: false, + serializedName: 'writeBatchSize', + type: { + name: 'Object' + } + }, + writeBatchTimeout: { + required: false, + serializedName: 'writeBatchTimeout', + type: { + name: 'Object' + } + }, + sinkRetryCount: { + required: false, + serializedName: 'sinkRetryCount', + type: { + name: 'Object' + } + }, + sinkRetryWait: { + required: false, + serializedName: 'sinkRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + sqlWriterStoredProcedureName: { + required: false, + serializedName: 'sqlWriterStoredProcedureName', + type: { + name: 'Object' + } + }, + sqlWriterTableType: { + required: false, + serializedName: 'sqlWriterTableType', + type: { + name: 'Object' + } + }, + preCopyScript: { + required: false, + serializedName: 'preCopyScript', + type: { + name: 'Object' + } + }, + storedProcedureParameters: { + required: false, + serializedName: 'storedProcedureParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StoredProcedureParameterElementType', + type: { + name: 'Composite', + className: 'StoredProcedureParameter' + } + } + } + } + } + } + }; + } +} + +module.exports = SqlSink; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sqlSource.js b/lib/services/datafactoryManagement/lib/lib/models/sqlSource.js new file mode 100644 index 0000000000..6ce8bb1f6e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sqlSource.js @@ -0,0 +1,112 @@ +/* + * 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'); + +/** + * A copy activity SQL source. + * + * @extends models['CopySource'] + */ +class SqlSource extends models['CopySource'] { + /** + * Create a SqlSource. + * @member {object} [sqlReaderQuery] SQL reader query. Type: string (or + * Expression with resultType string). + * @member {object} [sqlReaderStoredProcedureName] Name of the stored + * procedure for a SQL Database source. This cannot be used at the same time + * as SqlReaderQuery. Type: string (or Expression with resultType string). + * @member {object} [storedProcedureParameters] Value and type setting for + * stored procedure parameters. Example: "{Parameter1: {value: "1", type: + * "int"}}". + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SqlSource + * + * @returns {object} metadata of SqlSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SqlSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SqlSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + sqlReaderQuery: { + required: false, + serializedName: 'sqlReaderQuery', + type: { + name: 'Object' + } + }, + sqlReaderStoredProcedureName: { + required: false, + serializedName: 'sqlReaderStoredProcedureName', + type: { + name: 'Object' + } + }, + storedProcedureParameters: { + required: false, + serializedName: 'storedProcedureParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StoredProcedureParameterElementType', + type: { + name: 'Composite', + className: 'StoredProcedureParameter' + } + } + } + } + } + } + }; + } +} + +module.exports = SqlSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/squareLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/squareLinkedService.js new file mode 100644 index 0000000000..35c9de330d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/squareLinkedService.js @@ -0,0 +1,187 @@ +/* + * 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'); + +/** + * Square Serivce linked service. + * + * @extends models['LinkedService'] + */ +class SquareLinkedService extends models['LinkedService'] { + /** + * Create a SquareLinkedService. + * @member {object} host The URL of the Square instance. (i.e. + * mystore.mysquare.com) + * @member {object} clientId The client ID associated with your Square + * application. + * @member {object} [clientSecret] The client secret associated with your + * Square application. + * @member {string} [clientSecret.type] Polymorphic Discriminator + * @member {object} redirectUri The redirect URL assigned in the Square + * application dashboard. (i.e. http://localhost:2500) + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SquareLinkedService + * + * @returns {object} metadata of SquareLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Square', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SquareLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + clientSecret: { + required: false, + serializedName: 'typeProperties.clientSecret', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + redirectUri: { + required: true, + serializedName: 'typeProperties.redirectUri', + type: { + name: 'Object' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SquareLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/squareObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/squareObjectDataset.js new file mode 100644 index 0000000000..ded0362a73 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/squareObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Square Serivce dataset. + * + * @extends models['Dataset'] + */ +class SquareObjectDataset extends models['Dataset'] { + /** + * Create a SquareObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SquareObjectDataset + * + * @returns {object} metadata of SquareObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SquareObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SquareObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = SquareObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/squareSource.js b/lib/services/datafactoryManagement/lib/lib/models/squareSource.js new file mode 100644 index 0000000000..b5286b6d34 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/squareSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Square Serivce source. + * + * @extends models['CopySource'] + */ +class SquareSource extends models['CopySource'] { + /** + * Create a SquareSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SquareSource + * + * @returns {object} metadata of SquareSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SquareSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SquareSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SquareSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/stagingSettings.js b/lib/services/datafactoryManagement/lib/lib/models/stagingSettings.js new file mode 100644 index 0000000000..ea31675ede --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/stagingSettings.js @@ -0,0 +1,91 @@ +/* + * 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'); + +/** + * Staging settings. + * + */ +class StagingSettings { + /** + * Create a StagingSettings. + * @member {object} linkedServiceName Staging linked service reference. + * @member {string} [linkedServiceName.referenceName] Reference LinkedService + * name. + * @member {object} [linkedServiceName.parameters] Arguments for + * LinkedService. + * @member {object} [path] The path to storage for storing the interim data. + * Type: string (or Expression with resultType string). + * @member {object} [enableCompression] Specifies whether to use compression + * when copying data via an interim staging. Default value is false. Type: + * boolean (or Expression with resultType boolean). + */ + constructor() { + } + + /** + * Defines the metadata of StagingSettings + * + * @returns {object} metadata of StagingSettings + * + */ + mapper() { + return { + required: false, + serializedName: 'StagingSettings', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'StagingSettings', + modelProperties: { + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + path: { + required: false, + serializedName: 'path', + type: { + name: 'Object' + } + }, + enableCompression: { + required: false, + serializedName: 'enableCompression', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = StagingSettings; diff --git a/lib/services/datafactoryManagement/lib/lib/models/storedProcedureParameter.js b/lib/services/datafactoryManagement/lib/lib/models/storedProcedureParameter.js new file mode 100644 index 0000000000..513e31d092 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/storedProcedureParameter.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'; + +/** + * SQL stored procedure parameter. + * + */ +class StoredProcedureParameter { + /** + * Create a StoredProcedureParameter. + * @member {object} value Stored procedure parameter value. Type: string (or + * Expression with resultType string). + * @member {string} [type] Stored procedure parameter type. Possible values + * include: 'String', 'Int', 'Decimal', 'Guid', 'Boolean', 'Date' + */ + constructor() { + } + + /** + * Defines the metadata of StoredProcedureParameter + * + * @returns {object} metadata of StoredProcedureParameter + * + */ + mapper() { + return { + required: false, + serializedName: 'StoredProcedureParameter', + type: { + name: 'Composite', + className: 'StoredProcedureParameter', + modelProperties: { + value: { + required: true, + serializedName: 'value', + type: { + name: 'Object' + } + }, + type: { + required: false, + serializedName: 'type', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = StoredProcedureParameter; diff --git a/lib/services/datafactoryManagement/lib/lib/models/subResource.js b/lib/services/datafactoryManagement/lib/lib/models/subResource.js new file mode 100644 index 0000000000..c2aa120c1a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/subResource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * Azure Data Factory nested resource, which belongs to a factory. + * + * @extends models['BaseResource'] + */ +class SubResource extends models['BaseResource'] { + /** + * Create a SubResource. + * @member {string} [id] The resource identifier. + * @member {string} [name] The resource name. + * @member {string} [type] The resource type. + * @member {string} [etag] Etag identifies change in the resource. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SubResource + * + * @returns {object} metadata of SubResource + * + */ + mapper() { + return { + required: false, + serializedName: 'SubResource', + type: { + name: 'Composite', + className: 'SubResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SubResource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/sybaseLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/sybaseLinkedService.js new file mode 100644 index 0000000000..2328f3c040 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/sybaseLinkedService.js @@ -0,0 +1,175 @@ +/* + * 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'); + +/** + * Linked service for Sybase data source. + * + * @extends models['LinkedService'] + */ +class SybaseLinkedService extends models['LinkedService'] { + /** + * Create a SybaseLinkedService. + * @member {object} server Server name for connection. Type: string (or + * Expression with resultType string). + * @member {object} database Database name for connection. Type: string (or + * Expression with resultType string). + * @member {object} [schema] Schema name for connection. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] AuthenticationType to be used for + * connection. Possible values include: 'Basic', 'Windows' + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SybaseLinkedService + * + * @returns {object} metadata of SybaseLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Sybase', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SybaseLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + database: { + required: true, + serializedName: 'typeProperties.database', + type: { + name: 'Object' + } + }, + schema: { + required: false, + serializedName: 'typeProperties.schema', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SybaseLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/tabularTranslator.js b/lib/services/datafactoryManagement/lib/lib/models/tabularTranslator.js new file mode 100644 index 0000000000..f04240d241 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/tabularTranslator.js @@ -0,0 +1,70 @@ +/* + * 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'); + +/** + * A copy activity tabular translator. + * + * @extends models['CopyTranslator'] + */ +class TabularTranslator extends models['CopyTranslator'] { + /** + * Create a TabularTranslator. + * @member {object} [columnMappings] Column mappings. Type: string (or + * Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TabularTranslator + * + * @returns {object} metadata of TabularTranslator + * + */ + mapper() { + return { + required: false, + serializedName: 'TabularTranslator', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopyTranslator', + className: 'TabularTranslator', + modelProperties: { + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + columnMappings: { + required: false, + serializedName: 'columnMappings', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = TabularTranslator; diff --git a/lib/services/datafactoryManagement/lib/lib/models/teradataLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/teradataLinkedService.js new file mode 100644 index 0000000000..cbf57161a4 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/teradataLinkedService.js @@ -0,0 +1,157 @@ +/* + * 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'); + +/** + * Linked service for Teradata data source. + * + * @extends models['LinkedService'] + */ +class TeradataLinkedService extends models['LinkedService'] { + /** + * Create a TeradataLinkedService. + * @member {object} server Server name for connection. Type: string (or + * Expression with resultType string). + * @member {string} [authenticationType] AuthenticationType to be used for + * connection. Possible values include: 'Basic', 'Windows' + * @member {object} [username] Username for authentication. Type: string (or + * Expression with resultType string). + * @member {object} [password] Password for authentication. + * @member {string} [password.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TeradataLinkedService + * + * @returns {object} metadata of TeradataLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Teradata', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'TeradataLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + authenticationType: { + required: false, + serializedName: 'typeProperties.authenticationType', + type: { + name: 'String' + } + }, + username: { + required: false, + serializedName: 'typeProperties.username', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = TeradataLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/textFormat.js b/lib/services/datafactoryManagement/lib/lib/models/textFormat.js new file mode 100644 index 0000000000..4d04418829 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/textFormat.js @@ -0,0 +1,164 @@ +/* + * 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'); + +/** + * The data stored in text format. + * + * @extends models['DatasetStorageFormat'] + */ +class TextFormat extends models['DatasetStorageFormat'] { + /** + * Create a TextFormat. + * @member {object} [columnDelimiter] The column delimiter. Type: string (or + * Expression with resultType string). + * @member {object} [rowDelimiter] The row delimiter. Type: string (or + * Expression with resultType string). + * @member {object} [escapeChar] The escape character. Type: string (or + * Expression with resultType string). + * @member {object} [quoteChar] The quote character. Type: string (or + * Expression with resultType string). + * @member {object} [nullValue] The null value string. Type: string (or + * Expression with resultType string). + * @member {object} [encodingName] The code page name of the preferred + * encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes + * another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in + * the following link to set supported values: + * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string + * (or Expression with resultType string). + * @member {object} [treatEmptyAsNull] Treat empty column values in the text + * file as null. The default value is true. Type: boolean (or Expression with + * resultType boolean). + * @member {object} [skipLineCount] The number of lines/rows to be skipped + * when parsing text files. The default value is 0. Type: integer (or + * Expression with resultType integer). + * @member {object} [firstRowAsHeader] When used as input, treat the first + * row of data as headers. When used as output,write the headers into the + * output as the first row of data. The default value is false. Type: boolean + * (or Expression with resultType boolean). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TextFormat + * + * @returns {object} metadata of TextFormat + * + */ + mapper() { + return { + required: false, + serializedName: 'TextFormat', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'DatasetStorageFormat', + className: 'TextFormat', + modelProperties: { + serializer: { + required: false, + serializedName: 'serializer', + type: { + name: 'Object' + } + }, + deserializer: { + required: false, + serializedName: 'deserializer', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + columnDelimiter: { + required: false, + serializedName: 'columnDelimiter', + type: { + name: 'Object' + } + }, + rowDelimiter: { + required: false, + serializedName: 'rowDelimiter', + type: { + name: 'Object' + } + }, + escapeChar: { + required: false, + serializedName: 'escapeChar', + type: { + name: 'Object' + } + }, + quoteChar: { + required: false, + serializedName: 'quoteChar', + type: { + name: 'Object' + } + }, + nullValue: { + required: false, + serializedName: 'nullValue', + type: { + name: 'Object' + } + }, + encodingName: { + required: false, + serializedName: 'encodingName', + type: { + name: 'Object' + } + }, + treatEmptyAsNull: { + required: false, + serializedName: 'treatEmptyAsNull', + type: { + name: 'Object' + } + }, + skipLineCount: { + required: false, + serializedName: 'skipLineCount', + type: { + name: 'Object' + } + }, + firstRowAsHeader: { + required: false, + serializedName: 'firstRowAsHeader', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = TextFormat; diff --git a/lib/services/datafactoryManagement/lib/lib/models/trigger.js b/lib/services/datafactoryManagement/lib/lib/models/trigger.js new file mode 100644 index 0000000000..2e67b58d0d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/trigger.js @@ -0,0 +1,90 @@ +/* + * 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'; + +/** + * Azure data factory nested object which contains information about creating + * pipeline run + * + */ +class Trigger { + /** + * Create a Trigger. + * @member {string} [description] Trigger description. + * @member {string} [runtimeState] Indicates if trigger is running or not. + * Updated when Start/Stop APIs are called on the Trigger. Possible values + * include: 'Started', 'Stopped', 'Disabled' + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of Trigger + * + * @returns {object} metadata of Trigger + * + */ + mapper() { + return { + required: false, + serializedName: 'Trigger', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', + className: 'Trigger', + 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' + } + } + } + } + }; + } +} + +module.exports = Trigger; diff --git a/lib/services/datafactoryManagement/lib/lib/models/triggerListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/triggerListResponse.js new file mode 100644 index 0000000000..40afc24add --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/triggerListResponse.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * A list of trigger resources. + */ +class TriggerListResponse extends Array { + /** + * Create a TriggerListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TriggerListResponse + * + * @returns {object} metadata of TriggerListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'TriggerListResponse', + type: { + name: 'Composite', + className: 'TriggerListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'TriggerResourceElementType', + type: { + name: 'Composite', + className: 'TriggerResource' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = TriggerListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/triggerPipelineReference.js b/lib/services/datafactoryManagement/lib/lib/models/triggerPipelineReference.js new file mode 100644 index 0000000000..6b84ae8172 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/triggerPipelineReference.js @@ -0,0 +1,73 @@ +/* + * 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'); + +/** + * Pipeline that needs to be triggered with the given parameters. + * + */ +class TriggerPipelineReference { + /** + * Create a TriggerPipelineReference. + * @member {object} [pipelineReference] Pipeline reference. + * @member {string} [pipelineReference.referenceName] Reference pipeline + * name. + * @member {string} [pipelineReference.name] Reference name. + * @member {object} [parameters] Pipeline parameters. + */ + constructor() { + } + + /** + * Defines the metadata of TriggerPipelineReference + * + * @returns {object} metadata of TriggerPipelineReference + * + */ + mapper() { + return { + required: false, + serializedName: 'TriggerPipelineReference', + type: { + name: 'Composite', + className: 'TriggerPipelineReference', + modelProperties: { + pipelineReference: { + required: false, + serializedName: 'pipelineReference', + type: { + name: 'Composite', + className: 'PipelineReference' + } + }, + parameters: { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + } + } + } + }; + } +} + +module.exports = TriggerPipelineReference; diff --git a/lib/services/datafactoryManagement/lib/lib/models/triggerResource.js b/lib/services/datafactoryManagement/lib/lib/models/triggerResource.js new file mode 100644 index 0000000000..3bc301bee9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/triggerResource.js @@ -0,0 +1,111 @@ +/* + * 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 resource type. + * + * @extends models['SubResource'] + */ +class TriggerResource extends models['SubResource'] { + /** + * Create a TriggerResource. + * @member {object} properties Properties of the trigger. + * @member {string} [properties.description] Trigger description. + * @member {string} [properties.runtimeState] Indicates if trigger is running + * or not. Updated when Start/Stop APIs are called on the Trigger. Possible + * values include: 'Started', 'Stopped', 'Disabled' + * @member {string} [properties.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TriggerResource + * + * @returns {object} metadata of TriggerResource + * + */ + mapper() { + return { + required: false, + serializedName: 'TriggerResource', + type: { + name: 'Composite', + className: 'TriggerResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + }, + properties: { + required: true, + serializedName: 'properties', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', + className: 'Trigger' + } + } + } + } + }; + } +} + +module.exports = TriggerResource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/triggerRun.js b/lib/services/datafactoryManagement/lib/lib/models/triggerRun.js new file mode 100644 index 0000000000..6bd623442b --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/triggerRun.js @@ -0,0 +1,145 @@ +/* + * 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'; + +/** + * Trigger runs. + * + */ +class TriggerRun { + /** + * Create a TriggerRun. + * @member {string} [triggerRunId] Trigger run id. + * @member {string} [triggerName] Trigger name. + * @member {string} [triggerType] Trigger type. + * @member {date} [triggerRunTimestamp] Trigger run start time. + * @member {string} [status] Trigger run status. Possible values include: + * 'Succeeded', 'Failed', 'Inprogress' + * @member {string} [message] Trigger error message. + * @member {object} [properties] List of property name and value related to + * trigger run. Name, value pair depends on type of trigger. + * @member {object} [triggeredPipelines] List of pipeline name and run Id + * triggered by the trigger run. + */ + constructor() { + } + + /** + * Defines the metadata of TriggerRun + * + * @returns {object} metadata of TriggerRun + * + */ + mapper() { + return { + required: false, + serializedName: 'TriggerRun', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'TriggerRun', + modelProperties: { + triggerRunId: { + required: false, + readOnly: true, + serializedName: 'triggerRunId', + type: { + name: 'String' + } + }, + triggerName: { + required: false, + readOnly: true, + serializedName: 'triggerName', + type: { + name: 'String' + } + }, + triggerType: { + required: false, + readOnly: true, + serializedName: 'triggerType', + type: { + name: 'String' + } + }, + triggerRunTimestamp: { + required: false, + readOnly: true, + serializedName: 'triggerRunTimestamp', + type: { + name: 'DateTime' + } + }, + status: { + required: false, + readOnly: true, + serializedName: 'status', + type: { + name: 'String' + } + }, + message: { + required: false, + readOnly: true, + serializedName: 'message', + type: { + name: 'String' + } + }, + properties: { + required: false, + readOnly: true, + serializedName: 'properties', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + triggeredPipelines: { + required: false, + readOnly: true, + serializedName: 'triggeredPipelines', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = TriggerRun; diff --git a/lib/services/datafactoryManagement/lib/lib/models/triggerRunListResponse.js b/lib/services/datafactoryManagement/lib/lib/models/triggerRunListResponse.js new file mode 100644 index 0000000000..2958d06148 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/triggerRunListResponse.js @@ -0,0 +1,80 @@ +/* + * 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'; + +/** + * A list of trigger runs. + */ +class TriggerRunListResponse extends Array { + /** + * Create a TriggerRunListResponse. + * @member {string} [nextLink] The link to the next page of results, if any + * remaining results exist. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TriggerRunListResponse + * + * @returns {object} metadata of TriggerRunListResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'TriggerRunListResponse', + type: { + name: 'Composite', + className: 'TriggerRunListResponse', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'TriggerRunElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'TriggerRun' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = TriggerRunListResponse; diff --git a/lib/services/datafactoryManagement/lib/lib/models/tumblingWindowTrigger.js b/lib/services/datafactoryManagement/lib/lib/models/tumblingWindowTrigger.js new file mode 100644 index 0000000000..306cbcf77e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/tumblingWindowTrigger.js @@ -0,0 +1,171 @@ +/* + * 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 schedules pipeline runs for all fixed time interval windows + * from a start time without gaps and also supports backfill scenarios (when + * start time is in the past). + * + * @extends models['Trigger'] + */ +class TumblingWindowTrigger extends models['Trigger'] { + /** + * Create a TumblingWindowTrigger. + * @member {object} pipelineProperty Pipeline for which runs are created when + * an event is fired for trigger window that is ready. + * @member {object} [pipelineProperty.pipelineReference] Pipeline reference. + * @member {string} [pipelineProperty.pipelineReference.referenceName] + * Reference pipeline name. + * @member {string} [pipelineProperty.pipelineReference.name] Reference name. + * @member {object} [pipelineProperty.parameters] Pipeline parameters. + * @member {string} frequency The frequency of the time windows. Possible + * values include: 'Minute', 'Hour' + * @member {number} interval The interval of the time windows. The minimum + * interval allowed is 15 Minutes. + * @member {date} startTime The start time for the time period for the + * trigger during which events are fired for windows that are ready. Only UTC + * time is currently supported. + * @member {date} [endTime] The end time for the time period for the trigger + * during which events are fired for windows that are ready. Only UTC time is + * currently supported. + * @member {object} [delay] Specifies how long the trigger waits past due + * time before triggering new run. It doesn't alter window start and end + * time. The default is 0. Type: string (or Expression with resultType + * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {number} maxConcurrency The max number of parallel time windows + * (ready for execution) for which a new run is triggered. + * @member {object} [retryPolicy] Retry policy that will be applied for + * failed pipeline runs. + * @member {object} [retryPolicy.count] Maximum ordinary retry attempts. + * Default is 0. Type: integer (or Expression with resultType integer), + * minimum: 0. + * @member {number} [retryPolicy.intervalInSeconds] Interval between retries + * in seconds. Default is 30. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TumblingWindowTrigger + * + * @returns {object} metadata of TumblingWindowTrigger + * + */ + mapper() { + return { + required: false, + serializedName: 'TumblingWindowTrigger', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Trigger', + className: 'TumblingWindowTrigger', + 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' + } + }, + pipelineProperty: { + required: true, + serializedName: 'pipeline', + defaultValue: {}, + type: { + name: 'Composite', + className: 'TriggerPipelineReference' + } + }, + frequency: { + required: true, + serializedName: 'typeProperties.frequency', + type: { + name: 'String' + } + }, + interval: { + required: true, + serializedName: 'typeProperties.interval', + type: { + name: 'Number' + } + }, + startTime: { + required: true, + serializedName: 'typeProperties.startTime', + type: { + name: 'DateTime' + } + }, + endTime: { + required: false, + serializedName: 'typeProperties.endTime', + type: { + name: 'DateTime' + } + }, + delay: { + required: false, + serializedName: 'typeProperties.delay', + type: { + name: 'Object' + } + }, + maxConcurrency: { + required: true, + serializedName: 'typeProperties.maxConcurrency', + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + }, + retryPolicy: { + required: false, + serializedName: 'typeProperties.retryPolicy', + type: { + name: 'Composite', + className: 'RetryPolicy' + } + } + } + } + }; + } +} + +module.exports = TumblingWindowTrigger; diff --git a/lib/services/datafactoryManagement/lib/lib/models/untilActivity.js b/lib/services/datafactoryManagement/lib/lib/models/untilActivity.js new file mode 100644 index 0000000000..a67e99583c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/untilActivity.js @@ -0,0 +1,161 @@ +/* + * 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'); + +/** + * This activity executes inner activities until the specified boolean + * expression results to true or timeout is reached, whichever is earlier. + * + * @extends models['ControlActivity'] + */ +class UntilActivity extends models['ControlActivity'] { + /** + * Create a UntilActivity. + * @member {object} expression An expression that would evaluate to Boolean. + * The loop will continue until this expression evaluates to true + * @member {string} [expression.value] Expression value. + * @member {object} [timeout] Specifies the timeout for the activity to run. + * If there is no value specified, it takes the value of TimeSpan.FromDays(7) + * which is 1 week as default. Type: string (or Expression with resultType + * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @member {array} activities List of activities to execute. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of UntilActivity + * + * @returns {object} metadata of UntilActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Until', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'UntilActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + expression: { + required: true, + serializedName: 'typeProperties.expression', + defaultValue: {}, + type: { + name: 'Composite', + className: 'Expression' + } + }, + timeout: { + required: false, + serializedName: 'typeProperties.timeout', + type: { + name: 'Object' + } + }, + activities: { + required: true, + serializedName: 'typeProperties.activities', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'Activity' + } + } + } + } + } + } + }; + } +} + +module.exports = UntilActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeNodeRequest.js b/lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeNodeRequest.js new file mode 100644 index 0000000000..93fc260ce9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeNodeRequest.js @@ -0,0 +1,57 @@ +/* + * 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'; + +/** + * Update integration runtime node request. + * + */ +class UpdateIntegrationRuntimeNodeRequest { + /** + * Create a UpdateIntegrationRuntimeNodeRequest. + * @member {number} [concurrentJobsLimit] The number of concurrent jobs + * permitted to run on the integration runtime node. Values between 1 and + * maxConcurrentJobs(inclusive) are allowed. + */ + constructor() { + } + + /** + * Defines the metadata of UpdateIntegrationRuntimeNodeRequest + * + * @returns {object} metadata of UpdateIntegrationRuntimeNodeRequest + * + */ + mapper() { + return { + required: false, + serializedName: 'UpdateIntegrationRuntimeNodeRequest', + type: { + name: 'Composite', + className: 'UpdateIntegrationRuntimeNodeRequest', + modelProperties: { + concurrentJobsLimit: { + required: false, + serializedName: 'concurrentJobsLimit', + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = UpdateIntegrationRuntimeNodeRequest; diff --git a/lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeRequest.js b/lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeRequest.js new file mode 100644 index 0000000000..79e67a30a8 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/updateIntegrationRuntimeRequest.js @@ -0,0 +1,65 @@ +/* + * 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'; + +/** + * Update integration runtime request. + * + */ +class UpdateIntegrationRuntimeRequest { + /** + * Create a UpdateIntegrationRuntimeRequest. + * @member {string} [autoUpdate] Enables or disables the auto-update feature + * of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * @member {string} [updateDelayOffset] The time offset (in hours) in the + * day, e.g., PT03H is 3 hours. The integration runtime auto update will + * happen on that time. + */ + constructor() { + } + + /** + * Defines the metadata of UpdateIntegrationRuntimeRequest + * + * @returns {object} metadata of UpdateIntegrationRuntimeRequest + * + */ + mapper() { + return { + required: false, + serializedName: 'UpdateIntegrationRuntimeRequest', + type: { + name: 'Composite', + className: 'UpdateIntegrationRuntimeRequest', + modelProperties: { + autoUpdate: { + required: false, + serializedName: 'autoUpdate', + type: { + name: 'String' + } + }, + updateDelayOffset: { + required: false, + serializedName: 'updateDelayOffset', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = UpdateIntegrationRuntimeRequest; diff --git a/lib/services/datafactoryManagement/lib/lib/models/verticaLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/verticaLinkedService.js new file mode 100644 index 0000000000..e806eb9f98 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/verticaLinkedService.js @@ -0,0 +1,130 @@ +/* + * 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'); + +/** + * Vertica linked service. + * + * @extends models['LinkedService'] + */ +class VerticaLinkedService extends models['LinkedService'] { + /** + * Create a VerticaLinkedService. + * @member {object} [connectionString] An ODBC connection string. + * @member {string} [connectionString.type] Polymorphic Discriminator + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VerticaLinkedService + * + * @returns {object} metadata of VerticaLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Vertica', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'VerticaLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + connectionString: { + required: false, + serializedName: 'typeProperties.connectionString', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = VerticaLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/verticaSource.js b/lib/services/datafactoryManagement/lib/lib/models/verticaSource.js new file mode 100644 index 0000000000..919aa3a877 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/verticaSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Vertica source. + * + * @extends models['CopySource'] + */ +class VerticaSource extends models['CopySource'] { + /** + * Create a VerticaSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VerticaSource + * + * @returns {object} metadata of VerticaSource + * + */ + mapper() { + return { + required: false, + serializedName: 'VerticaSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'VerticaSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = VerticaSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/verticaTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/verticaTableDataset.js new file mode 100644 index 0000000000..3b7bfeec60 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/verticaTableDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Vertica dataset. + * + * @extends models['Dataset'] + */ +class VerticaTableDataset extends models['Dataset'] { + /** + * Create a VerticaTableDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VerticaTableDataset + * + * @returns {object} metadata of VerticaTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'VerticaTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'VerticaTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = VerticaTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/waitActivity.js b/lib/services/datafactoryManagement/lib/lib/models/waitActivity.js new file mode 100644 index 0000000000..264f89cc3e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/waitActivity.js @@ -0,0 +1,110 @@ +/* + * 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'); + +/** + * This activity suspends pipeline execution for the specified interval. + * + * @extends models['ControlActivity'] + */ +class WaitActivity extends models['ControlActivity'] { + /** + * Create a WaitActivity. + * @member {number} waitTimeInSeconds Duration in seconds. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WaitActivity + * + * @returns {object} metadata of WaitActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Wait', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'WaitActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + waitTimeInSeconds: { + required: true, + serializedName: 'typeProperties.waitTimeInSeconds', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = WaitActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webActivity.js b/lib/services/datafactoryManagement/lib/lib/models/webActivity.js new file mode 100644 index 0000000000..7c1728673c --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webActivity.js @@ -0,0 +1,224 @@ +/* + * 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'); + +/** + * Web activity. + * + * @extends models['ExecutionActivity'] + */ +class WebActivity extends models['ExecutionActivity'] { + /** + * Create a WebActivity. + * @member {string} method Rest API method for target endpoint. Possible + * values include: 'GET', 'POST', 'PUT', 'DELETE' + * @member {object} url Web activity target endpoint and path. Type: string + * (or Expression with resultType string). + * @member {object} [headers] Represents the headers that will be sent to the + * request. For example, to set the language and type on a request: "headers" + * : { "Accept-Language": "en-us", "Content-Type": "application/json" }. + * Type: string (or Expression with resultType string). + * @member {object} [body] Represents the payload that will be sent to the + * endpoint. Required for POST/PUT method, not allowed for GET method Type: + * string (or Expression with resultType string). + * @member {object} [authentication] Authentication method used for calling + * the endpoint. + * @member {string} [authentication.type] Web activity authentication + * (Basic/ClientCertificate/MSI) + * @member {object} [authentication.pfx] Base64-encoded contents of a PFX + * file. + * @member {string} [authentication.pfx.value] Value of secure string. + * @member {string} [authentication.username] Web activity authentication + * user name for basic authentication. + * @member {object} [authentication.password] Password for the PFX file or + * basic authentication. + * @member {string} [authentication.password.value] Value of secure string. + * @member {string} [authentication.resource] Resource for which Azure Auth + * token will be requested when using MSI Authentication. + * @member {array} [datasets] List of datasets passed to web endpoint. + * @member {array} [linkedServices] List of linked services passed to web + * endpoint. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebActivity + * + * @returns {object} metadata of WebActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'WebActivity', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'WebActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + linkedServiceName: { + required: false, + serializedName: 'linkedServiceName', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + policy: { + required: false, + serializedName: 'policy', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityPolicy' + } + }, + method: { + required: true, + serializedName: 'typeProperties.method', + type: { + name: 'String' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'Object' + } + }, + headers: { + required: false, + serializedName: 'typeProperties.headers', + type: { + name: 'Object' + } + }, + body: { + required: false, + serializedName: 'typeProperties.body', + type: { + name: 'Object' + } + }, + authentication: { + required: false, + serializedName: 'typeProperties.authentication', + type: { + name: 'Composite', + className: 'WebActivityAuthentication' + } + }, + datasets: { + required: false, + serializedName: 'typeProperties.datasets', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'DatasetReferenceElementType', + type: { + name: 'Composite', + className: 'DatasetReference' + } + } + } + }, + linkedServices: { + required: false, + serializedName: 'typeProperties.linkedServices', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LinkedServiceReferenceElementType', + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + } + } + } + } + } + }; + } +} + +module.exports = WebActivity; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webActivityAuthentication.js b/lib/services/datafactoryManagement/lib/lib/models/webActivityAuthentication.js new file mode 100644 index 0000000000..58b641b21e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webActivityAuthentication.js @@ -0,0 +1,104 @@ +/* + * 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'); + +/** + * Web activity authentication properties. + * + */ +class WebActivityAuthentication { + /** + * Create a WebActivityAuthentication. + * @member {string} type Web activity authentication + * (Basic/ClientCertificate/MSI) + * @member {object} [pfx] Base64-encoded contents of a PFX file. + * @member {string} [pfx.value] Value of secure string. + * @member {string} [username] Web activity authentication user name for + * basic authentication. + * @member {object} [password] Password for the PFX file or basic + * authentication. + * @member {string} [password.value] Value of secure string. + * @member {string} [resource] Resource for which Azure Auth token will be + * requested when using MSI Authentication. + */ + constructor() { + } + + /** + * Defines the metadata of WebActivityAuthentication + * + * @returns {object} metadata of WebActivityAuthentication + * + */ + mapper() { + return { + required: false, + serializedName: 'WebActivityAuthentication', + type: { + name: 'Composite', + className: 'WebActivityAuthentication', + modelProperties: { + type: { + required: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + pfx: { + required: false, + serializedName: 'pfx', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + }, + username: { + required: false, + serializedName: 'username', + type: { + name: 'String' + } + }, + password: { + required: false, + serializedName: 'password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + }, + resource: { + required: false, + serializedName: 'resource', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = WebActivityAuthentication; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webAnonymousAuthentication.js b/lib/services/datafactoryManagement/lib/lib/models/webAnonymousAuthentication.js new file mode 100644 index 0000000000..1844680bfa --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webAnonymousAuthentication.js @@ -0,0 +1,69 @@ +/* + * 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'); + +/** + * A WebLinkedService that uses anonymous authentication to communicate with an + * HTTP endpoint. + * + * @extends models['WebLinkedServiceTypeProperties'] + */ +class WebAnonymousAuthentication extends models['WebLinkedServiceTypeProperties'] { + /** + * Create a WebAnonymousAuthentication. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebAnonymousAuthentication + * + * @returns {object} metadata of WebAnonymousAuthentication + * + */ + mapper() { + return { + required: false, + serializedName: 'Anonymous', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', + className: 'WebAnonymousAuthentication', + modelProperties: { + url: { + required: true, + serializedName: 'url', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = WebAnonymousAuthentication; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webBasicAuthentication.js b/lib/services/datafactoryManagement/lib/lib/models/webBasicAuthentication.js new file mode 100644 index 0000000000..cf7cee3e0d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webBasicAuthentication.js @@ -0,0 +1,93 @@ +/* + * 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'); + +/** + * A WebLinkedService that uses basic authentication to communicate with an + * HTTP endpoint. + * + * @extends models['WebLinkedServiceTypeProperties'] + */ +class WebBasicAuthentication extends models['WebLinkedServiceTypeProperties'] { + /** + * Create a WebBasicAuthentication. + * @member {object} username User name for Basic authentication. Type: string + * (or Expression with resultType string). + * @member {object} password The password for Basic authentication. + * @member {string} [password.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebBasicAuthentication + * + * @returns {object} metadata of WebBasicAuthentication + * + */ + mapper() { + return { + required: false, + serializedName: 'Basic', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', + className: 'WebBasicAuthentication', + modelProperties: { + url: { + required: true, + serializedName: 'url', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + username: { + required: true, + serializedName: 'username', + type: { + name: 'Object' + } + }, + password: { + required: true, + serializedName: 'password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + } + } + } + }; + } +} + +module.exports = WebBasicAuthentication; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webClientCertificateAuthentication.js b/lib/services/datafactoryManagement/lib/lib/models/webClientCertificateAuthentication.js new file mode 100644 index 0000000000..ec0223fd03 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webClientCertificateAuthentication.js @@ -0,0 +1,101 @@ +/* + * 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'); + +/** + * A WebLinkedService that uses client certificate based authentication to + * communicate with an HTTP endpoint. This scheme follows mutual + * authentication; the server must also provide valid credentials to the + * client. + * + * @extends models['WebLinkedServiceTypeProperties'] + */ +class WebClientCertificateAuthentication extends models['WebLinkedServiceTypeProperties'] { + /** + * Create a WebClientCertificateAuthentication. + * @member {object} pfx Base64-encoded contents of a PFX file. + * @member {string} [pfx.type] Polymorphic Discriminator + * @member {object} password Password for the PFX file. + * @member {string} [password.type] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebClientCertificateAuthentication + * + * @returns {object} metadata of WebClientCertificateAuthentication + * + */ + mapper() { + return { + required: false, + serializedName: 'ClientCertificate', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', + className: 'WebClientCertificateAuthentication', + modelProperties: { + url: { + required: true, + serializedName: 'url', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + pfx: { + required: true, + serializedName: 'pfx', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + password: { + required: true, + serializedName: 'password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + } + } + } + }; + } +} + +module.exports = WebClientCertificateAuthentication; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/webLinkedService.js new file mode 100644 index 0000000000..d98aa7028e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webLinkedService.js @@ -0,0 +1,124 @@ +/* + * 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'); + +/** + * Web linked service. + * + * @extends models['LinkedService'] + */ +class WebLinkedService extends models['LinkedService'] { + /** + * Create a WebLinkedService. + * @member {object} typeProperties Web linked service properties. + * @member {object} [typeProperties.url] The URL of the web service endpoint, + * e.g. http://www.microsoft.com . Type: string (or Expression with + * resultType string). + * @member {string} [typeProperties.authenticationType] Polymorphic + * Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebLinkedService + * + * @returns {object} metadata of WebLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Web', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'WebLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + typeProperties: { + required: true, + serializedName: 'typeProperties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', + className: 'WebLinkedServiceTypeProperties' + } + } + } + } + }; + } +} + +module.exports = WebLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webLinkedServiceTypeProperties.js b/lib/services/datafactoryManagement/lib/lib/models/webLinkedServiceTypeProperties.js new file mode 100644 index 0000000000..47b3e5580f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webLinkedServiceTypeProperties.js @@ -0,0 +1,69 @@ +/* + * 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'; + +/** + * Base definition of WebLinkedServiceTypeProperties, this typeProperties is + * polymorphic based on authenticationType, so not flattened in SDK models. + * + */ +class WebLinkedServiceTypeProperties { + /** + * Create a WebLinkedServiceTypeProperties. + * @member {object} url The URL of the web service endpoint, e.g. + * http://www.microsoft.com . Type: string (or Expression with resultType + * string). + * @member {string} authenticationType Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of WebLinkedServiceTypeProperties + * + * @returns {object} metadata of WebLinkedServiceTypeProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'WebLinkedServiceTypeProperties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'authenticationType', + clientName: 'authenticationType' + }, + uberParent: 'WebLinkedServiceTypeProperties', + className: 'WebLinkedServiceTypeProperties', + modelProperties: { + url: { + required: true, + serializedName: 'url', + type: { + name: 'Object' + } + }, + authenticationType: { + required: true, + serializedName: 'authenticationType', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = WebLinkedServiceTypeProperties; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webSource.js b/lib/services/datafactoryManagement/lib/lib/models/webSource.js new file mode 100644 index 0000000000..b2e34c1b4a --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webSource.js @@ -0,0 +1,75 @@ +/* + * 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'); + +/** + * A copy activity source for web page table. + * + * @extends models['CopySource'] + */ +class WebSource extends models['CopySource'] { + /** + * Create a WebSource. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebSource + * + * @returns {object} metadata of WebSource + * + */ + mapper() { + return { + required: false, + serializedName: 'WebSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'WebSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = WebSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/webTableDataset.js b/lib/services/datafactoryManagement/lib/lib/models/webTableDataset.js new file mode 100644 index 0000000000..765ebdb777 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/webTableDataset.js @@ -0,0 +1,131 @@ +/* + * 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'); + +/** + * The dataset points to a HTML table in the web page. + * + * @extends models['Dataset'] + */ +class WebTableDataset extends models['Dataset'] { + /** + * Create a WebTableDataset. + * @member {object} index The zero-based index of the table in the web page. + * Type: integer (or Expression with resultType integer), minimum: 0. + * @member {object} [path] The relative URL to the web page from the linked + * service URL. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebTableDataset + * + * @returns {object} metadata of WebTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'WebTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'WebTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + }, + index: { + required: true, + serializedName: 'typeProperties.index', + type: { + name: 'Object' + } + }, + path: { + required: false, + serializedName: 'typeProperties.path', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = WebTableDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/xeroLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/xeroLinkedService.js new file mode 100644 index 0000000000..0a14519d85 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/xeroLinkedService.js @@ -0,0 +1,186 @@ +/* + * 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'); + +/** + * Xero Serivce linked service. + * + * @extends models['LinkedService'] + */ +class XeroLinkedService extends models['LinkedService'] { + /** + * Create a XeroLinkedService. + * @member {object} host The endpoint of the Xero server. (i.e. api.xero.com) + * @member {object} [consumerKey] The consumer key associated with the Xero + * application. + * @member {string} [consumerKey.type] Polymorphic Discriminator + * @member {object} [privateKey] The private key from the .pem file that was + * generated for your Xero private application. You must include all the text + * from the .pem file, including the Unix line endings( + * ). + * @member {string} [privateKey.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of XeroLinkedService + * + * @returns {object} metadata of XeroLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Xero', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'XeroLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + host: { + required: true, + serializedName: 'typeProperties.host', + type: { + name: 'Object' + } + }, + consumerKey: { + required: false, + serializedName: 'typeProperties.consumerKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + privateKey: { + required: false, + serializedName: 'typeProperties.privateKey', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = XeroLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/xeroObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/xeroObjectDataset.js new file mode 100644 index 0000000000..8fb0f05467 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/xeroObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Xero Serivce dataset. + * + * @extends models['Dataset'] + */ +class XeroObjectDataset extends models['Dataset'] { + /** + * Create a XeroObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of XeroObjectDataset + * + * @returns {object} metadata of XeroObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'XeroObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'XeroObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = XeroObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/xeroSource.js b/lib/services/datafactoryManagement/lib/lib/models/xeroSource.js new file mode 100644 index 0000000000..7967e58eaa --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/xeroSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Xero Serivce source. + * + * @extends models['CopySource'] + */ +class XeroSource extends models['CopySource'] { + /** + * Create a XeroSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of XeroSource + * + * @returns {object} metadata of XeroSource + * + */ + mapper() { + return { + required: false, + serializedName: 'XeroSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'XeroSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = XeroSource; diff --git a/lib/services/datafactoryManagement/lib/lib/models/zohoLinkedService.js b/lib/services/datafactoryManagement/lib/lib/models/zohoLinkedService.js new file mode 100644 index 0000000000..c41cbb75d1 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/zohoLinkedService.js @@ -0,0 +1,168 @@ +/* + * 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'); + +/** + * Zoho server linked service. + * + * @extends models['LinkedService'] + */ +class ZohoLinkedService extends models['LinkedService'] { + /** + * Create a ZohoLinkedService. + * @member {object} endpoint The endpoint of the Zoho server. (i.e. + * crm.zoho.com/crm/private) + * @member {object} [accessToken] The access token for Zoho authentication. + * @member {string} [accessToken.type] Polymorphic Discriminator + * @member {object} [useEncryptedEndpoints] Specifies whether the data source + * endpoints are encrypted using HTTPS. The default value is true. + * @member {object} [useHostVerification] Specifies whether to require the + * host name in the server's certificate to match the host name of the server + * when connecting over SSL. The default value is true. + * @member {object} [usePeerVerification] Specifies whether to verify the + * identity of the server when connecting over SSL. The default value is + * true. + * @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). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ZohoLinkedService + * + * @returns {object} metadata of ZohoLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Zoho', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'ZohoLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + 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' + } + }, + endpoint: { + required: true, + serializedName: 'typeProperties.endpoint', + type: { + name: 'Object' + } + }, + accessToken: { + required: false, + serializedName: 'typeProperties.accessToken', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + useEncryptedEndpoints: { + required: false, + serializedName: 'typeProperties.useEncryptedEndpoints', + type: { + name: 'Object' + } + }, + useHostVerification: { + required: false, + serializedName: 'typeProperties.useHostVerification', + type: { + name: 'Object' + } + }, + usePeerVerification: { + required: false, + serializedName: 'typeProperties.usePeerVerification', + type: { + name: 'Object' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ZohoLinkedService; diff --git a/lib/services/datafactoryManagement/lib/lib/models/zohoObjectDataset.js b/lib/services/datafactoryManagement/lib/lib/models/zohoObjectDataset.js new file mode 100644 index 0000000000..7103c85ee6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/zohoObjectDataset.js @@ -0,0 +1,113 @@ +/* + * 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'); + +/** + * Zoho server dataset. + * + * @extends models['Dataset'] + */ +class ZohoObjectDataset extends models['Dataset'] { + /** + * Create a ZohoObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ZohoObjectDataset + * + * @returns {object} metadata of ZohoObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'ZohoObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'ZohoObjectDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + linkedServiceName: { + required: true, + serializedName: 'linkedServiceName', + defaultValue: {}, + type: { + name: 'Composite', + className: 'LinkedServiceReference' + } + }, + 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' + } + } + } + } + }; + } +} + +module.exports = ZohoObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/lib/models/zohoSource.js b/lib/services/datafactoryManagement/lib/lib/models/zohoSource.js new file mode 100644 index 0000000000..b38d724450 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/models/zohoSource.js @@ -0,0 +1,84 @@ +/* + * 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'); + +/** + * A copy activity Zoho server source. + * + * @extends models['CopySource'] + */ +class ZohoSource extends models['CopySource'] { + /** + * Create a ZohoSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ZohoSource + * + * @returns {object} metadata of ZohoSource + * + */ + mapper() { + return { + required: false, + serializedName: 'ZohoSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'ZohoSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + query: { + required: false, + serializedName: 'query', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = ZohoSource; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/activityRuns.js b/lib/services/datafactoryManagement/lib/lib/operations/activityRuns.js new file mode 100644 index 0000000000..dbf55899f2 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/activityRuns.js @@ -0,0 +1,592 @@ +/* + * 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; + +/** + * List activity runs based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @param {date} startTime The start time of activity runs in ISO8601 format. + * + * @param {date} endTime The end time of activity runs in ISO8601 format. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.status] The status of the pipeline run. + * + * @param {string} [options.activityName] The name of the activity. + * + * @param {string} [options.linkedServiceName] The linked service name. + * + * @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 ActivityRunsListResponse} 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 _listByPipelineRun(resourceGroupName, factoryName, runId, startTime, endTime, 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.'); + } + let status = (options && options.status !== undefined) ? options.status : undefined; + let activityName = (options && options.activityName !== undefined) ? options.activityName : undefined; + let linkedServiceName = (options && options.linkedServiceName !== undefined) ? options.linkedServiceName : undefined; + // 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 (runId === null || runId === undefined || typeof runId.valueOf() !== 'string') { + throw new Error('runId 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(!startTime || !(startTime instanceof Date || + (typeof startTime.valueOf() === 'string' && !isNaN(Date.parse(startTime))))) { + throw new Error('startTime cannot be null or undefined and it must be of type date.'); + } + if(!endTime || !(endTime instanceof Date || + (typeof endTime.valueOf() === 'string' && !isNaN(Date.parse(endTime))))) { + throw new Error('endTime cannot be null or undefined and it must be of type date.'); + } + if (status !== null && status !== undefined && typeof status.valueOf() !== 'string') { + throw new Error('status must be of type string.'); + } + if (activityName !== null && activityName !== undefined && typeof activityName.valueOf() !== 'string') { + throw new Error('activityName must be of type string.'); + } + if (linkedServiceName !== null && linkedServiceName !== undefined && typeof linkedServiceName.valueOf() !== 'string') { + throw new Error('linkedServiceName must be of type string.'); + } + if (linkedServiceName !== null && linkedServiceName !== undefined) { + if (linkedServiceName.length > 260) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MaxLength": 260'); + } + if (linkedServiceName.length < 1) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MinLength": 1'); + } + if (linkedServiceName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/'); + } + } + 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}/pipelineruns/{runId}/activityruns'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{runId}', encodeURIComponent(runId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + queryParameters.push('startTime=' + encodeURIComponent(client.serializeObject(startTime))); + queryParameters.push('endTime=' + encodeURIComponent(client.serializeObject(endTime))); + if (status !== null && status !== undefined) { + queryParameters.push('status=' + encodeURIComponent(status)); + } + if (activityName !== null && activityName !== undefined) { + queryParameters.push('activityName=' + encodeURIComponent(activityName)); + } + if (linkedServiceName !== null && linkedServiceName !== undefined) { + queryParameters.push('linkedServiceName=' + encodeURIComponent(linkedServiceName)); + } + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['ActivityRunsListResponse']().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); + }); +} + +/** + * List activity runs based on input filter conditions. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 ActivityRunsListResponse} 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 _listByPipelineRunNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['ActivityRunsListResponse']().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 ActivityRuns. */ +class ActivityRuns { + /** + * Create a ActivityRuns. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listByPipelineRun = _listByPipelineRun; + this._listByPipelineRunNext = _listByPipelineRunNext; + } + + /** + * List activity runs based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @param {date} startTime The start time of activity runs in ISO8601 format. + * + * @param {date} endTime The end time of activity runs in ISO8601 format. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.status] The status of the pipeline run. + * + * @param {string} [options.activityName] The name of the activity. + * + * @param {string} [options.linkedServiceName] The linked service name. + * + * @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. + */ + listByPipelineRunWithHttpOperationResponse(resourceGroupName, factoryName, runId, startTime, endTime, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByPipelineRun(resourceGroupName, factoryName, runId, startTime, endTime, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * List activity runs based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @param {date} startTime The start time of activity runs in ISO8601 format. + * + * @param {date} endTime The end time of activity runs in ISO8601 format. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.status] The status of the pipeline run. + * + * @param {string} [options.activityName] The name of the activity. + * + * @param {string} [options.linkedServiceName] The linked service name. + * + * @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 {ActivityRunsListResponse} - 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 ActivityRunsListResponse} 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. + */ + listByPipelineRun(resourceGroupName, factoryName, runId, startTime, endTime, 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._listByPipelineRun(resourceGroupName, factoryName, runId, startTime, endTime, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByPipelineRun(resourceGroupName, factoryName, runId, startTime, endTime, options, optionalCallback); + } + } + + /** + * List activity runs based on input filter conditions. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByPipelineRunNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByPipelineRunNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * List activity runs based on input filter conditions. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {ActivityRunsListResponse} - 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 ActivityRunsListResponse} 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. + */ + listByPipelineRunNext(nextPageLink, 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._listByPipelineRunNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByPipelineRunNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = ActivityRuns; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/datasets.js b/lib/services/datafactoryManagement/lib/lib/operations/datasets.js new file mode 100644 index 0000000000..73631c23a9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/datasets.js @@ -0,0 +1,1457 @@ +/* + * 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; + +/** + * Lists datasets. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 DatasetListResponse} 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 _listByFactory(resourceGroupName, factoryName, 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 (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}/datasets'; + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['DatasetListResponse']().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); + }); +} + +/** + * Creates or updates a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @param {object} dataset Dataset resource definition. + * + * @param {object} dataset.properties Dataset properties. + * + * @param {string} [dataset.properties.description] Dataset description. + * + * @param {object} [dataset.properties.structure] Columns that define the + * structure of the dataset. Type: array (or Expression with resultType array), + * itemType: DatasetDataElement. + * + * @param {object} dataset.properties.linkedServiceName Linked service + * reference. + * + * @param {string} dataset.properties.linkedServiceName.referenceName Reference + * LinkedService name. + * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * + * @param {object} [dataset.properties.parameters] Parameters for dataset. + * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * + * @param {string} dataset.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the dataset entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 DatasetResource} 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 _createOrUpdate(resourceGroupName, factoryName, datasetName, dataset, 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.'); + } + let ifMatch = (options && options.ifMatch !== undefined) ? options.ifMatch : undefined; + if (dataset === null || dataset === undefined) + { + dataset = {}; + } + // 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 (datasetName === null || datasetName === undefined || typeof datasetName.valueOf() !== 'string') { + throw new Error('datasetName cannot be null or undefined and it must be of type string.'); + } + if (datasetName !== null && datasetName !== undefined) { + if (datasetName.length > 260) + { + throw new Error('"datasetName" should satisfy the constraint - "MaxLength": 260'); + } + if (datasetName.length < 1) + { + throw new Error('"datasetName" should satisfy the constraint - "MinLength": 1'); + } + if (datasetName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"datasetName" should satisfy the constraint - "Pattern": /^[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 (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { + throw new Error('ifMatch must be of type string.'); + } + if (dataset === null || dataset === undefined) { + throw new Error('dataset 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}/datasets/{datasetName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{datasetName}', encodeURIComponent(datasetName)); + 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 = 'PUT'; + 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 (ifMatch !== undefined && ifMatch !== null) { + httpRequest.headers['If-Match'] = ifMatch; + } + 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 (dataset !== null && dataset !== undefined) { + let requestModelMapper = new client.models['DatasetResource']().mapper(); + requestModel = client.serialize(requestModelMapper, dataset, 'dataset'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(dataset, 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['DatasetResource']().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); + }); +} + +/** + * Gets a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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 DatasetResource} 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 _get(resourceGroupName, factoryName, datasetName, 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 (datasetName === null || datasetName === undefined || typeof datasetName.valueOf() !== 'string') { + throw new Error('datasetName cannot be null or undefined and it must be of type string.'); + } + if (datasetName !== null && datasetName !== undefined) { + if (datasetName.length > 260) + { + throw new Error('"datasetName" should satisfy the constraint - "MaxLength": 260'); + } + if (datasetName.length < 1) + { + throw new Error('"datasetName" should satisfy the constraint - "MinLength": 1'); + } + if (datasetName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"datasetName" should satisfy the constraint - "Pattern": /^[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 (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}/datasets/{datasetName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{datasetName}', encodeURIComponent(datasetName)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['DatasetResource']().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); + }); +} + +/** + * Deletes a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, datasetName, 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 (datasetName === null || datasetName === undefined || typeof datasetName.valueOf() !== 'string') { + throw new Error('datasetName cannot be null or undefined and it must be of type string.'); + } + if (datasetName !== null && datasetName !== undefined) { + if (datasetName.length > 260) + { + throw new Error('"datasetName" should satisfy the constraint - "MaxLength": 260'); + } + if (datasetName.length < 1) + { + throw new Error('"datasetName" should satisfy the constraint - "MinLength": 1'); + } + if (datasetName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"datasetName" should satisfy the constraint - "Pattern": /^[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 (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}/datasets/{datasetName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{datasetName}', encodeURIComponent(datasetName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Lists datasets. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 DatasetListResponse} 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 _listByFactoryNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['DatasetListResponse']().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 Datasets. */ +class Datasets { + /** + * Create a Datasets. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listByFactory = _listByFactory; + this._createOrUpdate = _createOrUpdate; + this._get = _get; + this._deleteMethod = _deleteMethod; + this._listByFactoryNext = _listByFactoryNext; + } + + /** + * Lists datasets. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName, factoryName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists datasets. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {DatasetListResponse} - 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 DatasetListResponse} 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. + */ + listByFactory(resourceGroupName, factoryName, 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._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactory(resourceGroupName, factoryName, options, optionalCallback); + } + } + + /** + * Creates or updates a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @param {object} dataset Dataset resource definition. + * + * @param {object} dataset.properties Dataset properties. + * + * @param {string} [dataset.properties.description] Dataset description. + * + * @param {object} [dataset.properties.structure] Columns that define the + * structure of the dataset. Type: array (or Expression with resultType array), + * itemType: DatasetDataElement. + * + * @param {object} dataset.properties.linkedServiceName Linked service + * reference. + * + * @param {string} dataset.properties.linkedServiceName.referenceName Reference + * LinkedService name. + * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * + * @param {object} [dataset.properties.parameters] Parameters for dataset. + * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * + * @param {string} dataset.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the dataset entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, factoryName, datasetName, dataset, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, factoryName, datasetName, dataset, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @param {object} dataset Dataset resource definition. + * + * @param {object} dataset.properties Dataset properties. + * + * @param {string} [dataset.properties.description] Dataset description. + * + * @param {object} [dataset.properties.structure] Columns that define the + * structure of the dataset. Type: array (or Expression with resultType array), + * itemType: DatasetDataElement. + * + * @param {object} dataset.properties.linkedServiceName Linked service + * reference. + * + * @param {string} dataset.properties.linkedServiceName.referenceName Reference + * LinkedService name. + * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * + * @param {object} [dataset.properties.parameters] Parameters for dataset. + * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * + * @param {string} dataset.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the dataset entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 {DatasetResource} - 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 DatasetResource} 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. + */ + createOrUpdate(resourceGroupName, factoryName, datasetName, dataset, 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._createOrUpdate(resourceGroupName, factoryName, datasetName, dataset, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, factoryName, datasetName, dataset, options, optionalCallback); + } + } + + /** + * Gets a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName, factoryName, datasetName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, factoryName, datasetName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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 {DatasetResource} - 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 DatasetResource} 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. + */ + get(resourceGroupName, factoryName, datasetName, 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._get(resourceGroupName, factoryName, datasetName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, factoryName, datasetName, options, optionalCallback); + } + } + + /** + * Deletes a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, datasetName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, datasetName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, datasetName, 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._deleteMethod(resourceGroupName, factoryName, datasetName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, datasetName, options, optionalCallback); + } + } + + /** + * Lists datasets. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists datasets. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {DatasetListResponse} - 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 DatasetListResponse} 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. + */ + listByFactoryNext(nextPageLink, 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._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactoryNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = Datasets; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/factories.js b/lib/services/datafactoryManagement/lib/lib/operations/factories.js new file mode 100644 index 0000000000..89e120e913 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/factories.js @@ -0,0 +1,2272 @@ +/* + * 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; + +/** + * Lists factories under the specified subscription. + * + * @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 FactoryListResponse} 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 _list(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 (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 (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/factories'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['FactoryListResponse']().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. + * + * @param {string} resourceGroupName The resource group name. + * + * @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 FactoryListResponse} 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 _listByResourceGroup(resourceGroupName, 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 (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 (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'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['FactoryListResponse']().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); + }); +} + +/** + * Creates or updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factory Factory resource definition. + * + * @param {object} [factory.identity] Managed service identity of the factory. + * + * @param {string} [factory.location] The resource location. + * + * @param {object} [factory.tags] The resource tags. + * + * @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 _createOrUpdate(resourceGroupName, factoryName, factory, 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.'); + } + if (factory === null || factory === undefined) + { + factory = {}; + } + // 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 (factory === null || factory === undefined) { + throw new Error('factory 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}'; + 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 = 'PUT'; + 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 (factory !== null && factory !== undefined) { + let requestModelMapper = new client.models['Factory']().mapper(); + requestModel = client.serialize(requestModelMapper, factory, 'factory'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(factory, 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); + }); +} + +/** + * Updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryUpdateParameters The parameters for updating a + * factory. + * + * @param {object} [factoryUpdateParameters.tags] The resource tags. + * + * @param {object} [factoryUpdateParameters.identity] Managed service identity + * of the factory. + * + * @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, factoryUpdateParameters, 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.'); + } + if (factoryUpdateParameters === null || factoryUpdateParameters === undefined) + { + factoryUpdateParameters = {}; + } + // 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 (factoryUpdateParameters === null || factoryUpdateParameters === undefined) { + throw new Error('factoryUpdateParameters 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}'; + 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 = 'PATCH'; + 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 (factoryUpdateParameters !== null && factoryUpdateParameters !== undefined) { + let requestModelMapper = new client.models['FactoryUpdateParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, factoryUpdateParameters, 'factoryUpdateParameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(factoryUpdateParameters, 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); + }); +} + +/** + * Gets a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 _get(resourceGroupName, factoryName, 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 (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}'; + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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); + }); +} + +/** + * Deletes a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, 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 (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}'; + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Cancel a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _cancelPipelineRun(resourceGroupName, factoryName, runId, 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 (runId === null || runId === undefined || typeof runId.valueOf() !== 'string') { + throw new Error('runId 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 (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}/cancelpipelinerun/{runId}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{runId}', encodeURIComponent(runId)); + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Lists factories under the specified subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 FactoryListResponse} 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 _listNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['FactoryListResponse']().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. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 FactoryListResponse} 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 _listByResourceGroupNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['FactoryListResponse']().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 Factories. */ +class Factories { + /** + * Create a Factories. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._listByResourceGroup = _listByResourceGroup; + this._createOrUpdate = _createOrUpdate; + this._update = _update; + this._get = _get; + this._deleteMethod = _deleteMethod; + this._cancelPipelineRun = _cancelPipelineRun; + this._listNext = _listNext; + this._listByResourceGroupNext = _listByResourceGroupNext; + } + + /** + * Lists factories under the specified subscription. + * + * @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. + */ + listWithHttpOperationResponse(options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists factories under the specified subscription. + * + * @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 {FactoryListResponse} - 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 FactoryListResponse} 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. + */ + list(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._list(options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(options, optionalCallback); + } + } + + /** + * Lists factories. + * + * @param {string} resourceGroupName The resource group name. + * + * @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. + */ + listByResourceGroupWithHttpOperationResponse(resourceGroupName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists factories. + * + * @param {string} resourceGroupName The resource group name. + * + * @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 {FactoryListResponse} - 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 FactoryListResponse} 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. + */ + listByResourceGroup(resourceGroupName, 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._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByResourceGroup(resourceGroupName, options, optionalCallback); + } + } + + /** + * Creates or updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factory Factory resource definition. + * + * @param {object} [factory.identity] Managed service identity of the factory. + * + * @param {string} [factory.location] The resource location. + * + * @param {object} [factory.tags] The resource tags. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, factoryName, factory, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, factoryName, factory, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factory Factory resource definition. + * + * @param {object} [factory.identity] Managed service identity of the factory. + * + * @param {string} [factory.location] The resource location. + * + * @param {object} [factory.tags] The resource tags. + * + * @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. + */ + createOrUpdate(resourceGroupName, factoryName, factory, 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._createOrUpdate(resourceGroupName, factoryName, factory, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, factoryName, factory, options, optionalCallback); + } + } + + /** + * Updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryUpdateParameters The parameters for updating a + * factory. + * + * @param {object} [factoryUpdateParameters.tags] The resource tags. + * + * @param {object} [factoryUpdateParameters.identity] Managed service identity + * of the factory. + * + * @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, factoryUpdateParameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, factoryName, factoryUpdateParameters, 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. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryUpdateParameters The parameters for updating a + * factory. + * + * @param {object} [factoryUpdateParameters.tags] The resource tags. + * + * @param {object} [factoryUpdateParameters.identity] Managed service identity + * of the factory. + * + * @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, factoryUpdateParameters, 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, factoryUpdateParameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, factoryName, factoryUpdateParameters, options, optionalCallback); + } + } + + /** + * Gets a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName, factoryName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, factoryName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + get(resourceGroupName, factoryName, 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._get(resourceGroupName, factoryName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, factoryName, options, optionalCallback); + } + } + + /** + * Deletes a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, 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._deleteMethod(resourceGroupName, factoryName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, options, optionalCallback); + } + } + + /** + * Cancel a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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. + */ + cancelPipelineRunWithHttpOperationResponse(resourceGroupName, factoryName, runId, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._cancelPipelineRun(resourceGroupName, factoryName, runId, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Cancel a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + cancelPipelineRun(resourceGroupName, factoryName, runId, 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._cancelPipelineRun(resourceGroupName, factoryName, runId, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._cancelPipelineRun(resourceGroupName, factoryName, runId, options, optionalCallback); + } + } + + /** + * Lists factories under the specified subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists factories under the specified subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {FactoryListResponse} - 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 FactoryListResponse} 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. + */ + listNext(nextPageLink, 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._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + + /** + * Lists factories. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByResourceGroupNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByResourceGroupNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists factories. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {FactoryListResponse} - 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 FactoryListResponse} 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. + */ + listByResourceGroupNext(nextPageLink, 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._listByResourceGroupNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByResourceGroupNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = Factories; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/lib/operations/index.d.ts new file mode 100644 index 0000000000..3a65b8a064 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/index.d.ts @@ -0,0 +1,4279 @@ +/* + * 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. +*/ + +import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; +import * as models from '../models'; + + +/** + * @class + * Operations + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface Operations { + + + /** + * Lists the available Azure Data Factory API operations. + * + * @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. + */ + listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists the available Azure Data Factory API operations. + * + * @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 {OperationListResponse} - 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. + * + * {OperationListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link OperationListResponse} 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. + */ + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Factories + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface Factories { + + + /** + * Lists factories under the specified subscription. + * + * @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. + */ + listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists factories under the specified subscription. + * + * @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 {FactoryListResponse} - 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. + * + * {FactoryListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link FactoryListResponse} 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. + */ + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists factories. + * + * @param {string} resourceGroupName The resource group name. + * + * @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. + */ + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists factories. + * + * @param {string} resourceGroupName The resource group name. + * + * @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 {FactoryListResponse} - 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. + * + * {FactoryListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link FactoryListResponse} 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. + */ + listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factory Factory resource definition. + * + * @param {object} [factory.identity] Managed service identity of the factory. + * + * @param {string} [factory.location] The resource location. + * + * @param {object} [factory.tags] The resource tags. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, factory: models.Factory, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factory Factory resource definition. + * + * @param {object} [factory.identity] Managed service identity of the factory. + * + * @param {string} [factory.location] The resource location. + * + * @param {object} [factory.tags] The resource tags. + * + * @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. + */ + createOrUpdate(resourceGroupName: string, factoryName: string, factory: models.Factory, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, factoryName: string, factory: models.Factory, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, factoryName: string, factory: models.Factory, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryUpdateParameters The parameters for updating a + * factory. + * + * @param {object} [factoryUpdateParameters.tags] The resource tags. + * + * @param {object} [factoryUpdateParameters.identity] Managed service identity + * of the factory. + * + * @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. + */ + updateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, factoryUpdateParameters: models.FactoryUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryUpdateParameters The parameters for updating a + * factory. + * + * @param {object} [factoryUpdateParameters.tags] The resource tags. + * + * @param {object} [factoryUpdateParameters.identity] Managed service identity + * of the factory. + * + * @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. + */ + update(resourceGroupName: string, factoryName: string, factoryUpdateParameters: models.FactoryUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, factoryName: string, factoryUpdateParameters: models.FactoryUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, factoryName: string, factoryUpdateParameters: models.FactoryUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + get(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, factoryName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, factoryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes a factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Cancel a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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. + */ + cancelPipelineRunWithHttpOperationResponse(resourceGroupName: string, factoryName: string, runId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Cancel a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + cancelPipelineRun(resourceGroupName: string, factoryName: string, runId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + cancelPipelineRun(resourceGroupName: string, factoryName: string, runId: string, callback: ServiceCallback): void; + cancelPipelineRun(resourceGroupName: string, factoryName: string, runId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists factories under the specified subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists factories under the specified subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {FactoryListResponse} - 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. + * + * {FactoryListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link FactoryListResponse} 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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists factories. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists factories. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {FactoryListResponse} - 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. + * + * {FactoryListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link FactoryListResponse} 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. + */ + listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * IntegrationRuntimes + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface IntegrationRuntimes { + + + /** + * Lists integration runtimes. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists integration runtimes. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {IntegrationRuntimeListResponse} - 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. + * + * {IntegrationRuntimeListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeListResponse} 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. + */ + listByFactory(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactory(resourceGroupName: string, factoryName: string, callback: ServiceCallback): void; + listByFactory(resourceGroupName: string, factoryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} integrationRuntime Integration runtime resource definition. + * + * @param {object} integrationRuntime.properties Integration runtime + * properties. + * + * @param {string} [integrationRuntime.properties.description] Integration + * runtime description. + * + * @param {string} integrationRuntime.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the integration runtime entity. + * Should only be specified for update, for which it should match existing + * entity or can be * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, integrationRuntime: models.IntegrationRuntimeResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} integrationRuntime Integration runtime resource definition. + * + * @param {object} integrationRuntime.properties Integration runtime + * properties. + * + * @param {string} [integrationRuntime.properties.description] Integration + * runtime description. + * + * @param {string} integrationRuntime.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the integration runtime entity. + * Should only be specified for update, for which it should match existing + * entity or can be * for unconditional update. + * + * @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 {IntegrationRuntimeResource} - 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. + * + * {IntegrationRuntimeResource} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeResource} 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. + */ + createOrUpdate(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, integrationRuntime: models.IntegrationRuntimeResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, integrationRuntime: models.IntegrationRuntimeResource, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, integrationRuntime: models.IntegrationRuntimeResource, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeResource} - 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. + * + * {IntegrationRuntimeResource} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeResource} 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. + */ + get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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. + */ + updateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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 {IntegrationRuntimeStatusResponse} - 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. + * + * {IntegrationRuntimeStatusResponse} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeStatusResponse} 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. + */ + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, callback: ServiceCallback): void; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: models.UpdateIntegrationRuntimeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets detailed status information for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getStatusWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets detailed status information for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeStatusResponse} - 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. + * + * {IntegrationRuntimeStatusResponse} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeStatusResponse} 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. + */ + getStatus(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getStatus(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + getStatus(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets the on-premises integration runtime connection information for + * encrypting the on-premises data source credentials. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getConnectionInfoWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the on-premises integration runtime connection information for + * encrypting the on-premises data source credentials. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeConnectionInfo} - 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. + * + * {IntegrationRuntimeConnectionInfo} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeConnectionInfo} 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. + */ + getConnectionInfo(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getConnectionInfo(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + getConnectionInfo(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} regenerateKeyParameters The parameters for regenerating + * integration runtime authentication key. + * + * @param {string} [regenerateKeyParameters.keyName] The name of the + * authentication key to regenerate. Possible values include: 'authKey1', + * 'authKey2' + * + * @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. + */ + regenerateAuthKeyWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, regenerateKeyParameters: models.IntegrationRuntimeRegenerateKeyParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} regenerateKeyParameters The parameters for regenerating + * integration runtime authentication key. + * + * @param {string} [regenerateKeyParameters.keyName] The name of the + * authentication key to regenerate. Possible values include: 'authKey1', + * 'authKey2' + * + * @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 {IntegrationRuntimeAuthKeys} - 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. + * + * {IntegrationRuntimeAuthKeys} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeAuthKeys} 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. + */ + regenerateAuthKey(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, regenerateKeyParameters: models.IntegrationRuntimeRegenerateKeyParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + regenerateAuthKey(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, regenerateKeyParameters: models.IntegrationRuntimeRegenerateKeyParameters, callback: ServiceCallback): void; + regenerateAuthKey(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, regenerateKeyParameters: models.IntegrationRuntimeRegenerateKeyParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + listAuthKeysWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeAuthKeys} - 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. + * + * {IntegrationRuntimeAuthKeys} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeAuthKeys} 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. + */ + listAuthKeys(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAuthKeys(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + listAuthKeys(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + startWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeStatusResponse} - 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. + * + * {IntegrationRuntimeStatusResponse} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeStatusResponse} 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. + */ + start(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + start(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + start(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + stopWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + stop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + stop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + stop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Remove a node from integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} removeNodeParameters The name of the node to be removed from + * an integration runtime. + * + * @param {string} [removeNodeParameters.nodeName] The name of the node to be + * removed. + * + * @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. + */ + removeNodeWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, removeNodeParameters: models.IntegrationRuntimeRemoveNodeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Remove a node from integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} removeNodeParameters The name of the node to be removed from + * an integration runtime. + * + * @param {string} [removeNodeParameters.nodeName] The name of the node to be + * removed. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + removeNode(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, removeNodeParameters: models.IntegrationRuntimeRemoveNodeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + removeNode(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, removeNodeParameters: models.IntegrationRuntimeRemoveNodeRequest, callback: ServiceCallback): void; + removeNode(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, removeNodeParameters: models.IntegrationRuntimeRemoveNodeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + syncCredentialsWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + syncCredentials(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + syncCredentials(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + syncCredentials(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get the integration runtime monitoring data, which includes the monitor data + * for all the nodes under this integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getMonitoringDataWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get the integration runtime monitoring data, which includes the monitor data + * for all the nodes under this integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeMonitoringData} - 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. + * + * {IntegrationRuntimeMonitoringData} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeMonitoringData} 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. + */ + getMonitoringData(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getMonitoringData(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + getMonitoringData(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + upgradeWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + upgrade(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + upgrade(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + upgrade(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + beginStartWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeStatusResponse} - 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. + * + * {IntegrationRuntimeStatusResponse} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeStatusResponse} 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. + */ + beginStart(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginStart(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + beginStart(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + beginStopWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + beginStop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginStop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, callback: ServiceCallback): void; + beginStop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists integration runtimes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists integration runtimes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {IntegrationRuntimeListResponse} - 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. + * + * {IntegrationRuntimeListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeListResponse} 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. + */ + listByFactoryNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactoryNext(nextPageLink: string, callback: ServiceCallback): void; + listByFactoryNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * IntegrationRuntimeNodes + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface IntegrationRuntimeNodes { + + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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. + */ + updateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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 {SelfHostedIntegrationRuntimeNode} - 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. + * + * {SelfHostedIntegrationRuntimeNode} [result] - The deserialized result object if an error did not occur. + * See {@link SelfHostedIntegrationRuntimeNode} 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. + */ + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, callback: ServiceCallback): void; + update(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: models.UpdateIntegrationRuntimeNodeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + getIpAddressWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {IntegrationRuntimeNodeIpAddress} - 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. + * + * {IntegrationRuntimeNodeIpAddress} [result] - The deserialized result object if an error did not occur. + * See {@link IntegrationRuntimeNodeIpAddress} 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. + */ + getIpAddress(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getIpAddress(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, callback: ServiceCallback): void; + getIpAddress(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * LinkedServices + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface LinkedServices { + + + /** + * Lists linked services. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists linked services. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {LinkedServiceListResponse} - 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. + * + * {LinkedServiceListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link LinkedServiceListResponse} 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. + */ + listByFactory(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactory(resourceGroupName: string, factoryName: string, callback: ServiceCallback): void; + listByFactory(resourceGroupName: string, factoryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @param {object} linkedService Linked service resource definition. + * + * @param {object} linkedService.properties Properties of linked service. + * + * @param {object} [linkedService.properties.connectVia] The integration + * runtime reference. + * + * @param {string} linkedService.properties.connectVia.referenceName Reference + * integration runtime name. + * + * @param {object} [linkedService.properties.connectVia.parameters] Arguments + * for integration runtime. + * + * @param {string} [linkedService.properties.description] Linked service + * description. + * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * + * @param {string} linkedService.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the linkedService entity. Should + * only be specified for update, for which it should match existing entity or + * can be * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, linkedServiceName: string, linkedService: models.LinkedServiceResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @param {object} linkedService Linked service resource definition. + * + * @param {object} linkedService.properties Properties of linked service. + * + * @param {object} [linkedService.properties.connectVia] The integration + * runtime reference. + * + * @param {string} linkedService.properties.connectVia.referenceName Reference + * integration runtime name. + * + * @param {object} [linkedService.properties.connectVia.parameters] Arguments + * for integration runtime. + * + * @param {string} [linkedService.properties.description] Linked service + * description. + * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * + * @param {string} linkedService.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the linkedService entity. Should + * only be specified for update, for which it should match existing entity or + * can be * for unconditional update. + * + * @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 {LinkedServiceResource} - 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. + * + * {LinkedServiceResource} [result] - The deserialized result object if an error did not occur. + * See {@link LinkedServiceResource} 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. + */ + createOrUpdate(resourceGroupName: string, factoryName: string, linkedServiceName: string, linkedService: models.LinkedServiceResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, factoryName: string, linkedServiceName: string, linkedService: models.LinkedServiceResource, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, factoryName: string, linkedServiceName: string, linkedService: models.LinkedServiceResource, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, linkedServiceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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 {LinkedServiceResource} - 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. + * + * {LinkedServiceResource} [result] - The deserialized result object if an error did not occur. + * See {@link LinkedServiceResource} 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. + */ + get(resourceGroupName: string, factoryName: string, linkedServiceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, factoryName: string, linkedServiceName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, factoryName: string, linkedServiceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, linkedServiceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, linkedServiceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, linkedServiceName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, linkedServiceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists linked services. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists linked services. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {LinkedServiceListResponse} - 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. + * + * {LinkedServiceListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link LinkedServiceListResponse} 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. + */ + listByFactoryNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactoryNext(nextPageLink: string, callback: ServiceCallback): void; + listByFactoryNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Datasets + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface Datasets { + + + /** + * Lists datasets. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists datasets. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {DatasetListResponse} - 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. + * + * {DatasetListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link DatasetListResponse} 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. + */ + listByFactory(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactory(resourceGroupName: string, factoryName: string, callback: ServiceCallback): void; + listByFactory(resourceGroupName: string, factoryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @param {object} dataset Dataset resource definition. + * + * @param {object} dataset.properties Dataset properties. + * + * @param {string} [dataset.properties.description] Dataset description. + * + * @param {object} [dataset.properties.structure] Columns that define the + * structure of the dataset. Type: array (or Expression with resultType array), + * itemType: DatasetDataElement. + * + * @param {object} dataset.properties.linkedServiceName Linked service + * reference. + * + * @param {string} dataset.properties.linkedServiceName.referenceName Reference + * LinkedService name. + * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * + * @param {object} [dataset.properties.parameters] Parameters for dataset. + * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * + * @param {string} dataset.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the dataset entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, datasetName: string, dataset: models.DatasetResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @param {object} dataset Dataset resource definition. + * + * @param {object} dataset.properties Dataset properties. + * + * @param {string} [dataset.properties.description] Dataset description. + * + * @param {object} [dataset.properties.structure] Columns that define the + * structure of the dataset. Type: array (or Expression with resultType array), + * itemType: DatasetDataElement. + * + * @param {object} dataset.properties.linkedServiceName Linked service + * reference. + * + * @param {string} dataset.properties.linkedServiceName.referenceName Reference + * LinkedService name. + * + * @param {object} [dataset.properties.linkedServiceName.parameters] Arguments + * for LinkedService. + * + * @param {object} [dataset.properties.parameters] Parameters for dataset. + * + * @param {array} [dataset.properties.annotations] List of tags that can be + * used for describing the Dataset. + * + * @param {string} dataset.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the dataset entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 {DatasetResource} - 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. + * + * {DatasetResource} [result] - The deserialized result object if an error did not occur. + * See {@link DatasetResource} 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. + */ + createOrUpdate(resourceGroupName: string, factoryName: string, datasetName: string, dataset: models.DatasetResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, factoryName: string, datasetName: string, dataset: models.DatasetResource, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, factoryName: string, datasetName: string, dataset: models.DatasetResource, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, datasetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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 {DatasetResource} - 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. + * + * {DatasetResource} [result] - The deserialized result object if an error did not occur. + * See {@link DatasetResource} 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. + */ + get(resourceGroupName: string, factoryName: string, datasetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, factoryName: string, datasetName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, factoryName: string, datasetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, datasetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes a dataset. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} datasetName The dataset name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, datasetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, datasetName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, datasetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists datasets. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists datasets. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {DatasetListResponse} - 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. + * + * {DatasetListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link DatasetListResponse} 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. + */ + listByFactoryNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactoryNext(nextPageLink: string, callback: ServiceCallback): void; + listByFactoryNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Pipelines + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface Pipelines { + + + /** + * Lists pipelines. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists pipelines. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {PipelineListResponse} - 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. + * + * {PipelineListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link PipelineListResponse} 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. + */ + listByFactory(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactory(resourceGroupName: string, factoryName: string, callback: ServiceCallback): void; + listByFactory(resourceGroupName: string, factoryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} pipelineParameter Pipeline resource definition. + * + * @param {string} [pipelineParameter.description] The description of the + * pipeline. + * + * @param {array} [pipelineParameter.activities] List of activities in + * pipeline. + * + * @param {object} [pipelineParameter.parameters] List of parameters for + * pipeline. + * + * @param {number} [pipelineParameter.concurrency] The max number of concurrent + * runs for the pipeline. + * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, pipelineName: string, pipelineParameter: models.PipelineResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} pipelineParameter Pipeline resource definition. + * + * @param {string} [pipelineParameter.description] The description of the + * pipeline. + * + * @param {array} [pipelineParameter.activities] List of activities in + * pipeline. + * + * @param {object} [pipelineParameter.parameters] List of parameters for + * pipeline. + * + * @param {number} [pipelineParameter.concurrency] The max number of concurrent + * runs for the pipeline. + * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 {PipelineResource} - 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. + * + * {PipelineResource} [result] - The deserialized result object if an error did not occur. + * See {@link PipelineResource} 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. + */ + createOrUpdate(resourceGroupName: string, factoryName: string, pipelineName: string, pipelineParameter: models.PipelineResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, factoryName: string, pipelineName: string, pipelineParameter: models.PipelineResource, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, factoryName: string, pipelineName: string, pipelineParameter: models.PipelineResource, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, pipelineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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 {PipelineResource} - 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. + * + * {PipelineResource} [result] - The deserialized result object if an error did not occur. + * See {@link PipelineResource} 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. + */ + get(resourceGroupName: string, factoryName: string, pipelineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, factoryName: string, pipelineName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, factoryName: string, pipelineName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, pipelineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, pipelineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, pipelineName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, pipelineName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates a run of a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] Parameters of the pipeline run. + * + * @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. + */ + createRunWithHttpOperationResponse(resourceGroupName: string, factoryName: string, pipelineName: string, options?: { parameters? : { [propertyName: string]: any }, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates a run of a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] Parameters of the pipeline run. + * + * @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 {CreateRunResponse} - 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. + * + * {CreateRunResponse} [result] - The deserialized result object if an error did not occur. + * See {@link CreateRunResponse} 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. + */ + createRun(resourceGroupName: string, factoryName: string, pipelineName: string, options?: { parameters? : { [propertyName: string]: any }, customHeaders? : { [headerName: string]: string; } }): Promise; + createRun(resourceGroupName: string, factoryName: string, pipelineName: string, callback: ServiceCallback): void; + createRun(resourceGroupName: string, factoryName: string, pipelineName: string, options: { parameters? : { [propertyName: string]: any }, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists pipelines. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists pipelines. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {PipelineListResponse} - 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. + * + * {PipelineListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link PipelineListResponse} 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. + */ + listByFactoryNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactoryNext(nextPageLink: string, callback: ServiceCallback): void; + listByFactoryNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * PipelineRuns + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface PipelineRuns { + + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} filterParameters Parameters to filter the pipeline run. + * + * @param {string} [filterParameters.continuationToken] The continuation token + * for getting the next page of results. Null for first page. + * + * @param {date} filterParameters.lastUpdatedAfter The time at or after which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {date} filterParameters.lastUpdatedBefore The time at or before which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {array} [filterParameters.filters] List of filters. + * + * @param {array} [filterParameters.orderBy] List of OrderBy option. + * + * @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. + */ + queryByFactoryWithHttpOperationResponse(resourceGroupName: string, factoryName: string, filterParameters: models.PipelineRunFilterParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} filterParameters Parameters to filter the pipeline run. + * + * @param {string} [filterParameters.continuationToken] The continuation token + * for getting the next page of results. Null for first page. + * + * @param {date} filterParameters.lastUpdatedAfter The time at or after which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {date} filterParameters.lastUpdatedBefore The time at or before which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {array} [filterParameters.filters] List of filters. + * + * @param {array} [filterParameters.orderBy] List of OrderBy option. + * + * @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 {PipelineRunQueryResponse} - 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. + * + * {PipelineRunQueryResponse} [result] - The deserialized result object if an error did not occur. + * See {@link PipelineRunQueryResponse} 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. + */ + queryByFactory(resourceGroupName: string, factoryName: string, filterParameters: models.PipelineRunFilterParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + queryByFactory(resourceGroupName: string, factoryName: string, filterParameters: models.PipelineRunFilterParameters, callback: ServiceCallback): void; + queryByFactory(resourceGroupName: string, factoryName: string, filterParameters: models.PipelineRunFilterParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, runId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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 {PipelineRun} - 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. + * + * {PipelineRun} [result] - The deserialized result object if an error did not occur. + * See {@link PipelineRun} 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. + */ + get(resourceGroupName: string, factoryName: string, runId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, factoryName: string, runId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, factoryName: string, runId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ActivityRuns + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface ActivityRuns { + + + /** + * List activity runs based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @param {date} startTime The start time of activity runs in ISO8601 format. + * + * @param {date} endTime The end time of activity runs in ISO8601 format. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.status] The status of the pipeline run. + * + * @param {string} [options.activityName] The name of the activity. + * + * @param {string} [options.linkedServiceName] The linked service name. + * + * @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. + */ + listByPipelineRunWithHttpOperationResponse(resourceGroupName: string, factoryName: string, runId: string, startTime: Date|string, endTime: Date|string, options?: { status? : string, activityName? : string, linkedServiceName? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * List activity runs based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @param {date} startTime The start time of activity runs in ISO8601 format. + * + * @param {date} endTime The end time of activity runs in ISO8601 format. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.status] The status of the pipeline run. + * + * @param {string} [options.activityName] The name of the activity. + * + * @param {string} [options.linkedServiceName] The linked service name. + * + * @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 {ActivityRunsListResponse} - 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. + * + * {ActivityRunsListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link ActivityRunsListResponse} 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. + */ + listByPipelineRun(resourceGroupName: string, factoryName: string, runId: string, startTime: Date|string, endTime: Date|string, options?: { status? : string, activityName? : string, linkedServiceName? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByPipelineRun(resourceGroupName: string, factoryName: string, runId: string, startTime: Date|string, endTime: Date|string, callback: ServiceCallback): void; + listByPipelineRun(resourceGroupName: string, factoryName: string, runId: string, startTime: Date|string, endTime: Date|string, options: { status? : string, activityName? : string, linkedServiceName? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * List activity runs based on input filter conditions. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByPipelineRunNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * List activity runs based on input filter conditions. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {ActivityRunsListResponse} - 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. + * + * {ActivityRunsListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link ActivityRunsListResponse} 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. + */ + listByPipelineRunNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByPipelineRunNext(nextPageLink: string, callback: ServiceCallback): void; + listByPipelineRunNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Triggers + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface Triggers { + + + /** + * Lists triggers. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists triggers. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {TriggerListResponse} - 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. + * + * {TriggerListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link TriggerListResponse} 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. + */ + listByFactory(resourceGroupName: string, factoryName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactory(resourceGroupName: string, factoryName: string, callback: ServiceCallback): void; + listByFactory(resourceGroupName: string, factoryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {object} trigger Trigger resource definition. + * + * @param {object} trigger.properties Properties of the trigger. + * + * @param {string} [trigger.properties.description] Trigger description. + * + * @param {string} trigger.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the trigger entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, trigger: models.TriggerResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {object} trigger Trigger resource definition. + * + * @param {object} trigger.properties Properties of the trigger. + * + * @param {string} [trigger.properties.description] Trigger description. + * + * @param {string} trigger.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the trigger entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 {TriggerResource} - 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. + * + * {TriggerResource} [result] - The deserialized result object if an error did not occur. + * See {@link TriggerResource} 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. + */ + createOrUpdate(resourceGroupName: string, factoryName: string, triggerName: string, trigger: models.TriggerResource, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, factoryName: string, triggerName: string, trigger: models.TriggerResource, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, factoryName: string, triggerName: string, trigger: models.TriggerResource, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {TriggerResource} - 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. + * + * {TriggerResource} [result] - The deserialized result object if an error did not occur. + * See {@link TriggerResource} 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. + */ + get(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, factoryName: string, triggerName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, factoryName: string, triggerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + deleteMethod(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, factoryName: string, triggerName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, factoryName: string, triggerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + startWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + start(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + start(resourceGroupName: string, factoryName: string, triggerName: string, callback: ServiceCallback): void; + start(resourceGroupName: string, factoryName: string, triggerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + stopWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + stop(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + stop(resourceGroupName: string, factoryName: string, triggerName: string, callback: ServiceCallback): void; + stop(resourceGroupName: string, factoryName: string, triggerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * List trigger runs. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {date} startTime Start time for trigger runs. + * + * @param {date} endTime End time for trigger runs. + * + * @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. + */ + listRunsWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, startTime: Date|string, endTime: Date|string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * List trigger runs. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {date} startTime Start time for trigger runs. + * + * @param {date} endTime End time for trigger runs. + * + * @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 {TriggerRunListResponse} - 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. + * + * {TriggerRunListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link TriggerRunListResponse} 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. + */ + listRuns(resourceGroupName: string, factoryName: string, triggerName: string, startTime: Date|string, endTime: Date|string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listRuns(resourceGroupName: string, factoryName: string, triggerName: string, startTime: Date|string, endTime: Date|string, callback: ServiceCallback): void; + listRuns(resourceGroupName: string, factoryName: string, triggerName: string, startTime: Date|string, endTime: Date|string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + beginStartWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + beginStart(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginStart(resourceGroupName: string, factoryName: string, triggerName: string, callback: ServiceCallback): void; + beginStart(resourceGroupName: string, factoryName: string, triggerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + beginStopWithHttpOperationResponse(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + beginStop(resourceGroupName: string, factoryName: string, triggerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginStop(resourceGroupName: string, factoryName: string, triggerName: string, callback: ServiceCallback): void; + beginStop(resourceGroupName: string, factoryName: string, triggerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists triggers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists triggers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {TriggerListResponse} - 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. + * + * {TriggerListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link TriggerListResponse} 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. + */ + listByFactoryNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByFactoryNext(nextPageLink: string, callback: ServiceCallback): void; + listByFactoryNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * List trigger runs. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listRunsNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * List trigger runs. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {TriggerRunListResponse} - 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. + * + * {TriggerRunListResponse} [result] - The deserialized result object if an error did not occur. + * See {@link TriggerRunListResponse} 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. + */ + listRunsNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listRunsNext(nextPageLink: string, callback: ServiceCallback): void; + listRunsNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} diff --git a/lib/services/datafactoryManagement/lib/lib/operations/index.js b/lib/services/datafactoryManagement/lib/lib/operations/index.js new file mode 100644 index 0000000000..5bcd72b28f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/index.js @@ -0,0 +1,26 @@ +/* + * 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. + */ + +/* jshint latedef:false */ +/* jshint forin:false */ +/* jshint noempty:false */ + +'use strict'; + +exports.Operations = require('./operations'); +exports.Factories = require('./factories'); +exports.IntegrationRuntimes = require('./integrationRuntimes'); +exports.IntegrationRuntimeNodes = require('./integrationRuntimeNodes'); +exports.LinkedServices = require('./linkedServices'); +exports.Datasets = require('./datasets'); +exports.Pipelines = require('./pipelines'); +exports.PipelineRuns = require('./pipelineRuns'); +exports.ActivityRuns = require('./activityRuns'); +exports.Triggers = require('./triggers'); diff --git a/lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimeNodes.js b/lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimeNodes.js new file mode 100644 index 0000000000..eac59d3ca7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimeNodes.js @@ -0,0 +1,979 @@ +/* + * 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; + +/** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (nodeName === null || nodeName === undefined || typeof nodeName.valueOf() !== 'string') { + throw new Error('nodeName cannot be null or undefined and it must be of type string.'); + } + if (nodeName !== null && nodeName !== undefined) { + if (nodeName.length > 150) + { + throw new Error('"nodeName" should satisfy the constraint - "MaxLength": 150'); + } + if (nodeName.length < 1) + { + throw new Error('"nodeName" should satisfy the constraint - "MinLength": 1'); + } + if (nodeName.match(/^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/) === null) + { + throw new Error('"nodeName" should satisfy the constraint - "Pattern": /^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/'); + } + } + 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 (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}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + requestUrl = requestUrl.replace('{nodeName}', encodeURIComponent(nodeName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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 SelfHostedIntegrationRuntimeNode} 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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (nodeName === null || nodeName === undefined || typeof nodeName.valueOf() !== 'string') { + throw new Error('nodeName cannot be null or undefined and it must be of type string.'); + } + if (nodeName !== null && nodeName !== undefined) { + if (nodeName.length > 150) + { + throw new Error('"nodeName" should satisfy the constraint - "MaxLength": 150'); + } + if (nodeName.length < 1) + { + throw new Error('"nodeName" should satisfy the constraint - "MinLength": 1'); + } + if (nodeName.match(/^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/) === null) + { + throw new Error('"nodeName" should satisfy the constraint - "Pattern": /^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/'); + } + } + 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 (updateIntegrationRuntimeNodeRequest === null || updateIntegrationRuntimeNodeRequest === undefined) { + throw new Error('updateIntegrationRuntimeNodeRequest 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}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + requestUrl = requestUrl.replace('{nodeName}', encodeURIComponent(nodeName)); + 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 = 'PATCH'; + 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 (updateIntegrationRuntimeNodeRequest !== null && updateIntegrationRuntimeNodeRequest !== undefined) { + let requestModelMapper = new client.models['UpdateIntegrationRuntimeNodeRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, updateIntegrationRuntimeNodeRequest, 'updateIntegrationRuntimeNodeRequest'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(updateIntegrationRuntimeNodeRequest, 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['SelfHostedIntegrationRuntimeNode']().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); + }); +} + +/** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 IntegrationRuntimeNodeIpAddress} 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 _getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (nodeName === null || nodeName === undefined || typeof nodeName.valueOf() !== 'string') { + throw new Error('nodeName cannot be null or undefined and it must be of type string.'); + } + if (nodeName !== null && nodeName !== undefined) { + if (nodeName.length > 150) + { + throw new Error('"nodeName" should satisfy the constraint - "MaxLength": 150'); + } + if (nodeName.length < 1) + { + throw new Error('"nodeName" should satisfy the constraint - "MinLength": 1'); + } + if (nodeName.match(/^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/) === null) + { + throw new Error('"nodeName" should satisfy the constraint - "Pattern": /^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$/'); + } + } + 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 (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}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + requestUrl = requestUrl.replace('{nodeName}', encodeURIComponent(nodeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeNodeIpAddress']().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 IntegrationRuntimeNodes. */ +class IntegrationRuntimeNodes { + /** + * Create a IntegrationRuntimeNodes. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._deleteMethod = _deleteMethod; + this._update = _update; + this._getIpAddress = _getIpAddress; + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, optionalCallback); + } + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, 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 self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @param {object} updateIntegrationRuntimeNodeRequest The parameters for + * updating an integration runtime node. + * + * @param {number} [updateIntegrationRuntimeNodeRequest.concurrentJobsLimit] + * The number of concurrent jobs permitted to run on the integration runtime + * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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 {SelfHostedIntegrationRuntimeNode} - 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 SelfHostedIntegrationRuntimeNode} 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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, 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, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options, optionalCallback); + } + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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. + */ + getIpAddressWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {string} nodeName The integration runtime node name. + * + * @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 {IntegrationRuntimeNodeIpAddress} - 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 IntegrationRuntimeNodeIpAddress} 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. + */ + getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, 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._getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName, options, optionalCallback); + } + } + +} + +module.exports = IntegrationRuntimeNodes; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimes.js b/lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimes.js new file mode 100644 index 0000000000..fa6dc63e2f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/integrationRuntimes.js @@ -0,0 +1,4958 @@ +/* + * 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; + +/** + * Lists integration runtimes. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 IntegrationRuntimeListResponse} 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 _listByFactory(resourceGroupName, factoryName, 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 (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}/integrationRuntimes'; + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeListResponse']().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); + }); +} + +/** + * Creates or updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} integrationRuntime Integration runtime resource definition. + * + * @param {object} integrationRuntime.properties Integration runtime + * properties. + * + * @param {string} [integrationRuntime.properties.description] Integration + * runtime description. + * + * @param {string} integrationRuntime.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the integration runtime entity. + * Should only be specified for update, for which it should match existing + * entity or can be * for unconditional update. + * + * @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 IntegrationRuntimeResource} 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 _createOrUpdate(resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, 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.'); + } + let ifMatch = (options && options.ifMatch !== undefined) ? options.ifMatch : undefined; + // 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { + throw new Error('ifMatch must be of type string.'); + } + if (integrationRuntime === null || integrationRuntime === undefined) { + throw new Error('integrationRuntime 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}/integrationRuntimes/{integrationRuntimeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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 = 'PUT'; + 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 (ifMatch !== undefined && ifMatch !== null) { + httpRequest.headers['If-Match'] = ifMatch; + } + 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 (integrationRuntime !== null && integrationRuntime !== undefined) { + let requestModelMapper = new client.models['IntegrationRuntimeResource']().mapper(); + requestModel = client.serialize(requestModelMapper, integrationRuntime, 'integrationRuntime'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(integrationRuntime, 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['IntegrationRuntimeResource']().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); + }); +} + +/** + * Gets an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 IntegrationRuntimeResource} 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 _get(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeResource']().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); + }); +} + +/** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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 IntegrationRuntimeStatusResponse} 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, integrationRuntimeName, updateIntegrationRuntimeRequest, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (updateIntegrationRuntimeRequest === null || updateIntegrationRuntimeRequest === undefined) { + throw new Error('updateIntegrationRuntimeRequest 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}/integrationRuntimes/{integrationRuntimeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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 = 'PATCH'; + 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 (updateIntegrationRuntimeRequest !== null && updateIntegrationRuntimeRequest !== undefined) { + let requestModelMapper = new client.models['UpdateIntegrationRuntimeRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, updateIntegrationRuntimeRequest, 'updateIntegrationRuntimeRequest'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(updateIntegrationRuntimeRequest, 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['IntegrationRuntimeStatusResponse']().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); + }); +} + +/** + * Deletes an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets detailed status information for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 IntegrationRuntimeStatusResponse} 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 _getStatus(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/getStatus'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeStatusResponse']().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); + }); +} + +/** + * Gets the on-premises integration runtime connection information for + * encrypting the on-premises data source credentials. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 IntegrationRuntimeConnectionInfo} 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 _getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeConnectionInfo']().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); + }); +} + +/** + * Regenerates the authentication key for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} regenerateKeyParameters The parameters for regenerating + * integration runtime authentication key. + * + * @param {string} [regenerateKeyParameters.keyName] The name of the + * authentication key to regenerate. Possible values include: 'authKey1', + * 'authKey2' + * + * @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 IntegrationRuntimeAuthKeys} 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 _regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (regenerateKeyParameters === null || regenerateKeyParameters === undefined) { + throw new Error('regenerateKeyParameters 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}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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 (regenerateKeyParameters !== null && regenerateKeyParameters !== undefined) { + let requestModelMapper = new client.models['IntegrationRuntimeRegenerateKeyParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, regenerateKeyParameters, 'regenerateKeyParameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(regenerateKeyParameters, 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['IntegrationRuntimeAuthKeys']().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); + }); +} + +/** + * Retrieves the authentication keys for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 IntegrationRuntimeAuthKeys} 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 _listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeAuthKeys']().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); + }); +} + + +/** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 IntegrationRuntimeStatusResponse} 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 _start(resourceGroupName, factoryName, integrationRuntimeName, 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.'); + } + + // Send request + this.beginStart(resourceGroupName, factoryName, integrationRuntimeName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['IntegrationRuntimeStatusResponse']().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); + }); + }); +} + + +/** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _stop(resourceGroupName, factoryName, integrationRuntimeName, 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.'); + } + + // Send request + this.beginStop(resourceGroupName, factoryName, integrationRuntimeName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + +/** + * Remove a node from integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} removeNodeParameters The name of the node to be removed from + * an integration runtime. + * + * @param {string} [removeNodeParameters.nodeName] The name of the node to be + * removed. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _removeNode(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (removeNodeParameters === null || removeNodeParameters === undefined) { + throw new Error('removeNodeParameters 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}/integrationRuntimes/{integrationRuntimeName}/removeNode'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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 (removeNodeParameters !== null && removeNodeParameters !== undefined) { + let requestModelMapper = new client.models['IntegrationRuntimeRemoveNodeRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, removeNodeParameters, 'removeNodeParameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(removeNodeParameters, 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 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _syncCredentials(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/syncCredentials'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Get the integration runtime monitoring data, which includes the monitor data + * for all the nodes under this integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 IntegrationRuntimeMonitoringData} 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 _getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/monitoringData'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeMonitoringData']().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); + }); +} + +/** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _upgrade(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/upgrade'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 IntegrationRuntimeStatusResponse} 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 _beginStart(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/start'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202) { + 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['IntegrationRuntimeStatusResponse']().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); + }); +} + +/** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _beginStop(resourceGroupName, factoryName, integrationRuntimeName, 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 (integrationRuntimeName === null || integrationRuntimeName === undefined || typeof integrationRuntimeName.valueOf() !== 'string') { + throw new Error('integrationRuntimeName cannot be null or undefined and it must be of type string.'); + } + if (integrationRuntimeName !== null && integrationRuntimeName !== undefined) { + if (integrationRuntimeName.length > 63) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MaxLength": 63'); + } + if (integrationRuntimeName.length < 3) + { + throw new Error('"integrationRuntimeName" should satisfy the constraint - "MinLength": 3'); + } + if (integrationRuntimeName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"integrationRuntimeName" 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 (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}/integrationRuntimes/{integrationRuntimeName}/stop'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{integrationRuntimeName}', encodeURIComponent(integrationRuntimeName)); + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Lists integration runtimes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 IntegrationRuntimeListResponse} 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 _listByFactoryNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['IntegrationRuntimeListResponse']().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 IntegrationRuntimes. */ +class IntegrationRuntimes { + /** + * Create a IntegrationRuntimes. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listByFactory = _listByFactory; + this._createOrUpdate = _createOrUpdate; + this._get = _get; + this._update = _update; + this._deleteMethod = _deleteMethod; + this._getStatus = _getStatus; + this._getConnectionInfo = _getConnectionInfo; + this._regenerateAuthKey = _regenerateAuthKey; + this._listAuthKeys = _listAuthKeys; + this._start = _start; + this._stop = _stop; + this._removeNode = _removeNode; + this._syncCredentials = _syncCredentials; + this._getMonitoringData = _getMonitoringData; + this._upgrade = _upgrade; + this._beginStart = _beginStart; + this._beginStop = _beginStop; + this._listByFactoryNext = _listByFactoryNext; + } + + /** + * Lists integration runtimes. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName, factoryName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists integration runtimes. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {IntegrationRuntimeListResponse} - 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 IntegrationRuntimeListResponse} 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. + */ + listByFactory(resourceGroupName, factoryName, 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._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactory(resourceGroupName, factoryName, options, optionalCallback); + } + } + + /** + * Creates or updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} integrationRuntime Integration runtime resource definition. + * + * @param {object} integrationRuntime.properties Integration runtime + * properties. + * + * @param {string} [integrationRuntime.properties.description] Integration + * runtime description. + * + * @param {string} integrationRuntime.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the integration runtime entity. + * Should only be specified for update, for which it should match existing + * entity or can be * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} integrationRuntime Integration runtime resource definition. + * + * @param {object} integrationRuntime.properties Integration runtime + * properties. + * + * @param {string} [integrationRuntime.properties.description] Integration + * runtime description. + * + * @param {string} integrationRuntime.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the integration runtime entity. + * Should only be specified for update, for which it should match existing + * entity or can be * for unconditional update. + * + * @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 {IntegrationRuntimeResource} - 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 IntegrationRuntimeResource} 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. + */ + createOrUpdate(resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, 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._createOrUpdate(resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, options, optionalCallback); + } + } + + /** + * Gets an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeResource} - 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 IntegrationRuntimeResource} 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. + */ + get(resourceGroupName, factoryName, integrationRuntimeName, 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._get(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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, integrationRuntimeName, updateIntegrationRuntimeRequest, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} updateIntegrationRuntimeRequest The parameters for updating + * an integration runtime. + * + * @param {string} [updateIntegrationRuntimeRequest.autoUpdate] Enables or + * disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: + * 'On', 'Off' + * + * @param {string} [updateIntegrationRuntimeRequest.updateDelayOffset] The time + * offset (in hours) in the day, e.g., PT03H is 3 hours. The integration + * runtime auto update will happen on that time. + * + * @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 {IntegrationRuntimeStatusResponse} - 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 IntegrationRuntimeStatusResponse} 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, integrationRuntimeName, updateIntegrationRuntimeRequest, 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, integrationRuntimeName, updateIntegrationRuntimeRequest, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest, options, optionalCallback); + } + } + + /** + * Deletes an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, 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._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Gets detailed status information for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getStatusWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getStatus(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets detailed status information for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeStatusResponse} - 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 IntegrationRuntimeStatusResponse} 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. + */ + getStatus(resourceGroupName, factoryName, integrationRuntimeName, 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._getStatus(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getStatus(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Gets the on-premises integration runtime connection information for + * encrypting the on-premises data source credentials. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getConnectionInfoWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the on-premises integration runtime connection information for + * encrypting the on-premises data source credentials. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeConnectionInfo} - 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 IntegrationRuntimeConnectionInfo} 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. + */ + getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeName, 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._getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} regenerateKeyParameters The parameters for regenerating + * integration runtime authentication key. + * + * @param {string} [regenerateKeyParameters.keyName] The name of the + * authentication key to regenerate. Possible values include: 'authKey1', + * 'authKey2' + * + * @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. + */ + regenerateAuthKeyWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} regenerateKeyParameters The parameters for regenerating + * integration runtime authentication key. + * + * @param {string} [regenerateKeyParameters.keyName] The name of the + * authentication key to regenerate. Possible values include: 'authKey1', + * 'authKey2' + * + * @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 {IntegrationRuntimeAuthKeys} - 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 IntegrationRuntimeAuthKeys} 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. + */ + regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, 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._regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, options, optionalCallback); + } + } + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + listAuthKeysWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeAuthKeys} - 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 IntegrationRuntimeAuthKeys} 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. + */ + listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName, 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._listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + startWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._start(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeStatusResponse} - 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 IntegrationRuntimeStatusResponse} 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. + */ + start(resourceGroupName, factoryName, integrationRuntimeName, 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._start(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._start(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + stopWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._stop(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + stop(resourceGroupName, factoryName, integrationRuntimeName, 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._stop(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._stop(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Remove a node from integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} removeNodeParameters The name of the node to be removed from + * an integration runtime. + * + * @param {string} [removeNodeParameters.nodeName] The name of the node to be + * removed. + * + * @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. + */ + removeNodeWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._removeNode(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Remove a node from integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @param {object} removeNodeParameters The name of the node to be removed from + * an integration runtime. + * + * @param {string} [removeNodeParameters.nodeName] The name of the node to be + * removed. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + removeNode(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters, 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._removeNode(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._removeNode(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters, options, optionalCallback); + } + } + + /** + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + syncCredentialsWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._syncCredentials(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Force the integration runtime to synchronize credentials across integration + * runtime nodes, and this will override the credentials across all worker + * nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + syncCredentials(resourceGroupName, factoryName, integrationRuntimeName, 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._syncCredentials(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._syncCredentials(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Get the integration runtime monitoring data, which includes the monitor data + * for all the nodes under this integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + getMonitoringDataWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get the integration runtime monitoring data, which includes the monitor data + * for all the nodes under this integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeMonitoringData} - 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 IntegrationRuntimeMonitoringData} 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. + */ + getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName, 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._getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + upgradeWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._upgrade(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + upgrade(resourceGroupName, factoryName, integrationRuntimeName, 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._upgrade(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._upgrade(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + beginStartWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginStart(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {IntegrationRuntimeStatusResponse} - 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 IntegrationRuntimeStatusResponse} 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. + */ + beginStart(resourceGroupName, factoryName, integrationRuntimeName, 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._beginStart(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginStart(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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. + */ + beginStopWithHttpOperationResponse(resourceGroupName, factoryName, integrationRuntimeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginStop(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} integrationRuntimeName The integration runtime name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginStop(resourceGroupName, factoryName, integrationRuntimeName, 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._beginStop(resourceGroupName, factoryName, integrationRuntimeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginStop(resourceGroupName, factoryName, integrationRuntimeName, options, optionalCallback); + } + } + + /** + * Lists integration runtimes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists integration runtimes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {IntegrationRuntimeListResponse} - 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 IntegrationRuntimeListResponse} 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. + */ + listByFactoryNext(nextPageLink, 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._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactoryNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = IntegrationRuntimes; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/linkedServices.js b/lib/services/datafactoryManagement/lib/lib/operations/linkedServices.js new file mode 100644 index 0000000000..1b8352ebc0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/linkedServices.js @@ -0,0 +1,1455 @@ +/* + * 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; + +/** + * Lists linked services. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 LinkedServiceListResponse} 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 _listByFactory(resourceGroupName, factoryName, 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 (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}/linkedservices'; + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['LinkedServiceListResponse']().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); + }); +} + +/** + * Creates or updates a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @param {object} linkedService Linked service resource definition. + * + * @param {object} linkedService.properties Properties of linked service. + * + * @param {object} [linkedService.properties.connectVia] The integration + * runtime reference. + * + * @param {string} linkedService.properties.connectVia.referenceName Reference + * integration runtime name. + * + * @param {object} [linkedService.properties.connectVia.parameters] Arguments + * for integration runtime. + * + * @param {string} [linkedService.properties.description] Linked service + * description. + * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * + * @param {string} linkedService.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the linkedService entity. Should + * only be specified for update, for which it should match existing entity or + * can be * for unconditional update. + * + * @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 LinkedServiceResource} 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 _createOrUpdate(resourceGroupName, factoryName, linkedServiceName, linkedService, 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.'); + } + let ifMatch = (options && options.ifMatch !== undefined) ? options.ifMatch : undefined; + if (linkedService === null || linkedService === undefined) + { + linkedService = {}; + } + // 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 (linkedServiceName === null || linkedServiceName === undefined || typeof linkedServiceName.valueOf() !== 'string') { + throw new Error('linkedServiceName cannot be null or undefined and it must be of type string.'); + } + if (linkedServiceName !== null && linkedServiceName !== undefined) { + if (linkedServiceName.length > 260) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MaxLength": 260'); + } + if (linkedServiceName.length < 1) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MinLength": 1'); + } + if (linkedServiceName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "Pattern": /^[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 (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { + throw new Error('ifMatch must be of type string.'); + } + if (linkedService === null || linkedService === undefined) { + throw new Error('linkedService 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}/linkedservices/{linkedServiceName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{linkedServiceName}', encodeURIComponent(linkedServiceName)); + 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 = 'PUT'; + 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 (ifMatch !== undefined && ifMatch !== null) { + httpRequest.headers['If-Match'] = ifMatch; + } + 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 (linkedService !== null && linkedService !== undefined) { + let requestModelMapper = new client.models['LinkedServiceResource']().mapper(); + requestModel = client.serialize(requestModelMapper, linkedService, 'linkedService'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(linkedService, 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['LinkedServiceResource']().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); + }); +} + +/** + * Gets a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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 LinkedServiceResource} 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 _get(resourceGroupName, factoryName, linkedServiceName, 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 (linkedServiceName === null || linkedServiceName === undefined || typeof linkedServiceName.valueOf() !== 'string') { + throw new Error('linkedServiceName cannot be null or undefined and it must be of type string.'); + } + if (linkedServiceName !== null && linkedServiceName !== undefined) { + if (linkedServiceName.length > 260) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MaxLength": 260'); + } + if (linkedServiceName.length < 1) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MinLength": 1'); + } + if (linkedServiceName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "Pattern": /^[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 (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}/linkedservices/{linkedServiceName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{linkedServiceName}', encodeURIComponent(linkedServiceName)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['LinkedServiceResource']().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); + }); +} + +/** + * Deletes a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, linkedServiceName, 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 (linkedServiceName === null || linkedServiceName === undefined || typeof linkedServiceName.valueOf() !== 'string') { + throw new Error('linkedServiceName cannot be null or undefined and it must be of type string.'); + } + if (linkedServiceName !== null && linkedServiceName !== undefined) { + if (linkedServiceName.length > 260) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MaxLength": 260'); + } + if (linkedServiceName.length < 1) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "MinLength": 1'); + } + if (linkedServiceName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"linkedServiceName" should satisfy the constraint - "Pattern": /^[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 (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}/linkedservices/{linkedServiceName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{linkedServiceName}', encodeURIComponent(linkedServiceName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Lists linked services. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 LinkedServiceListResponse} 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 _listByFactoryNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['LinkedServiceListResponse']().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 LinkedServices. */ +class LinkedServices { + /** + * Create a LinkedServices. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listByFactory = _listByFactory; + this._createOrUpdate = _createOrUpdate; + this._get = _get; + this._deleteMethod = _deleteMethod; + this._listByFactoryNext = _listByFactoryNext; + } + + /** + * Lists linked services. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName, factoryName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists linked services. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {LinkedServiceListResponse} - 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 LinkedServiceListResponse} 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. + */ + listByFactory(resourceGroupName, factoryName, 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._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactory(resourceGroupName, factoryName, options, optionalCallback); + } + } + + /** + * Creates or updates a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @param {object} linkedService Linked service resource definition. + * + * @param {object} linkedService.properties Properties of linked service. + * + * @param {object} [linkedService.properties.connectVia] The integration + * runtime reference. + * + * @param {string} linkedService.properties.connectVia.referenceName Reference + * integration runtime name. + * + * @param {object} [linkedService.properties.connectVia.parameters] Arguments + * for integration runtime. + * + * @param {string} [linkedService.properties.description] Linked service + * description. + * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * + * @param {string} linkedService.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the linkedService entity. Should + * only be specified for update, for which it should match existing entity or + * can be * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, factoryName, linkedServiceName, linkedService, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, factoryName, linkedServiceName, linkedService, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @param {object} linkedService Linked service resource definition. + * + * @param {object} linkedService.properties Properties of linked service. + * + * @param {object} [linkedService.properties.connectVia] The integration + * runtime reference. + * + * @param {string} linkedService.properties.connectVia.referenceName Reference + * integration runtime name. + * + * @param {object} [linkedService.properties.connectVia.parameters] Arguments + * for integration runtime. + * + * @param {string} [linkedService.properties.description] Linked service + * description. + * + * @param {object} [linkedService.properties.parameters] Parameters for linked + * service. + * + * @param {array} [linkedService.properties.annotations] List of tags that can + * be used for describing the Dataset. + * + * @param {string} linkedService.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the linkedService entity. Should + * only be specified for update, for which it should match existing entity or + * can be * for unconditional update. + * + * @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 {LinkedServiceResource} - 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 LinkedServiceResource} 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. + */ + createOrUpdate(resourceGroupName, factoryName, linkedServiceName, linkedService, 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._createOrUpdate(resourceGroupName, factoryName, linkedServiceName, linkedService, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, factoryName, linkedServiceName, linkedService, options, optionalCallback); + } + } + + /** + * Gets a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName, factoryName, linkedServiceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, factoryName, linkedServiceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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 {LinkedServiceResource} - 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 LinkedServiceResource} 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. + */ + get(resourceGroupName, factoryName, linkedServiceName, 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._get(resourceGroupName, factoryName, linkedServiceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, factoryName, linkedServiceName, options, optionalCallback); + } + } + + /** + * Deletes a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, linkedServiceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, linkedServiceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes a linked service. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} linkedServiceName The linked service name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, linkedServiceName, 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._deleteMethod(resourceGroupName, factoryName, linkedServiceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, linkedServiceName, options, optionalCallback); + } + } + + /** + * Lists linked services. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists linked services. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {LinkedServiceListResponse} - 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 LinkedServiceListResponse} 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. + */ + listByFactoryNext(nextPageLink, 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._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactoryNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = LinkedServices; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/operations.js b/lib/services/datafactoryManagement/lib/lib/operations/operations.js new file mode 100644 index 0000000000..1b7ea4a0a2 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/operations.js @@ -0,0 +1,238 @@ +/* + * 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; + +/** + * Lists the available Azure Data Factory API operations. + * + * @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 OperationListResponse} 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 _list(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.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 (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('/') ? '' : '/') + 'providers/Microsoft.DataFactory/operations'; + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['OperationListResponse']().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 Operations. */ +class Operations { + /** + * Create a Operations. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @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. + */ + listWithHttpOperationResponse(options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @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 {OperationListResponse} - 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 OperationListResponse} 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. + */ + list(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._list(options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(options, optionalCallback); + } + } + +} + +module.exports = Operations; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/pipelineRuns.js b/lib/services/datafactoryManagement/lib/lib/operations/pipelineRuns.js new file mode 100644 index 0000000000..90b94fb5a1 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/pipelineRuns.js @@ -0,0 +1,625 @@ +/* + * 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; + +/** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} filterParameters Parameters to filter the pipeline run. + * + * @param {string} [filterParameters.continuationToken] The continuation token + * for getting the next page of results. Null for first page. + * + * @param {date} filterParameters.lastUpdatedAfter The time at or after which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {date} filterParameters.lastUpdatedBefore The time at or before which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {array} [filterParameters.filters] List of filters. + * + * @param {array} [filterParameters.orderBy] List of OrderBy option. + * + * @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 PipelineRunQueryResponse} 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 _queryByFactory(resourceGroupName, factoryName, filterParameters, 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 (filterParameters === null || filterParameters === undefined) { + throw new Error('filterParameters 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}/pipelineruns'; + 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 (filterParameters !== null && filterParameters !== undefined) { + let requestModelMapper = new client.models['PipelineRunFilterParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, filterParameters, 'filterParameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(filterParameters, 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['PipelineRunQueryResponse']().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); + }); +} + +/** + * Get a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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 PipelineRun} 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 _get(resourceGroupName, factoryName, runId, 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 (runId === null || runId === undefined || typeof runId.valueOf() !== 'string') { + throw new Error('runId 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 (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}/pipelineruns/{runId}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{runId}', encodeURIComponent(runId)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['PipelineRun']().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 PipelineRuns. */ +class PipelineRuns { + /** + * Create a PipelineRuns. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._queryByFactory = _queryByFactory; + this._get = _get; + } + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} filterParameters Parameters to filter the pipeline run. + * + * @param {string} [filterParameters.continuationToken] The continuation token + * for getting the next page of results. Null for first page. + * + * @param {date} filterParameters.lastUpdatedAfter The time at or after which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {date} filterParameters.lastUpdatedBefore The time at or before which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {array} [filterParameters.filters] List of filters. + * + * @param {array} [filterParameters.orderBy] List of OrderBy option. + * + * @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. + */ + queryByFactoryWithHttpOperationResponse(resourceGroupName, factoryName, filterParameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._queryByFactory(resourceGroupName, factoryName, filterParameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} filterParameters Parameters to filter the pipeline run. + * + * @param {string} [filterParameters.continuationToken] The continuation token + * for getting the next page of results. Null for first page. + * + * @param {date} filterParameters.lastUpdatedAfter The time at or after which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {date} filterParameters.lastUpdatedBefore The time at or before which + * the pipeline run event was updated in 'ISO 8601' format. + * + * @param {array} [filterParameters.filters] List of filters. + * + * @param {array} [filterParameters.orderBy] List of OrderBy option. + * + * @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 {PipelineRunQueryResponse} - 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 PipelineRunQueryResponse} 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. + */ + queryByFactory(resourceGroupName, factoryName, filterParameters, 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._queryByFactory(resourceGroupName, factoryName, filterParameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._queryByFactory(resourceGroupName, factoryName, filterParameters, options, optionalCallback); + } + } + + /** + * Get a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName, factoryName, runId, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, factoryName, runId, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get a pipeline run by its run ID. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} runId The pipeline run identifier. + * + * @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 {PipelineRun} - 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 PipelineRun} 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. + */ + get(resourceGroupName, factoryName, runId, 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._get(resourceGroupName, factoryName, runId, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, factoryName, runId, options, optionalCallback); + } + } + +} + +module.exports = PipelineRuns; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/pipelines.js b/lib/services/datafactoryManagement/lib/lib/operations/pipelines.js new file mode 100644 index 0000000000..8d0f77e7ed --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/pipelines.js @@ -0,0 +1,1752 @@ +/* + * 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; + +/** + * Lists pipelines. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 PipelineListResponse} 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 _listByFactory(resourceGroupName, factoryName, 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 (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}/pipelines'; + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['PipelineListResponse']().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); + }); +} + +/** + * Creates or updates a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} pipelineParameter Pipeline resource definition. + * + * @param {string} [pipelineParameter.description] The description of the + * pipeline. + * + * @param {array} [pipelineParameter.activities] List of activities in + * pipeline. + * + * @param {object} [pipelineParameter.parameters] List of parameters for + * pipeline. + * + * @param {number} [pipelineParameter.concurrency] The max number of concurrent + * runs for the pipeline. + * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 PipelineResource} 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 _createOrUpdate(resourceGroupName, factoryName, pipelineName, pipelineParameter, 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.'); + } + let ifMatch = (options && options.ifMatch !== undefined) ? options.ifMatch : undefined; + // 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 (pipelineName === null || pipelineName === undefined || typeof pipelineName.valueOf() !== 'string') { + throw new Error('pipelineName cannot be null or undefined and it must be of type string.'); + } + if (pipelineName !== null && pipelineName !== undefined) { + if (pipelineName.length > 260) + { + throw new Error('"pipelineName" should satisfy the constraint - "MaxLength": 260'); + } + if (pipelineName.length < 1) + { + throw new Error('"pipelineName" should satisfy the constraint - "MinLength": 1'); + } + if (pipelineName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"pipelineName" should satisfy the constraint - "Pattern": /^[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 (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { + throw new Error('ifMatch must be of type string.'); + } + if (pipelineParameter === null || pipelineParameter === undefined) { + throw new Error('pipelineParameter 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}/pipelines/{pipelineName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{pipelineName}', encodeURIComponent(pipelineName)); + 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 = 'PUT'; + 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 (ifMatch !== undefined && ifMatch !== null) { + httpRequest.headers['If-Match'] = ifMatch; + } + 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 (pipelineParameter !== null && pipelineParameter !== undefined) { + let requestModelMapper = new client.models['PipelineResource']().mapper(); + requestModel = client.serialize(requestModelMapper, pipelineParameter, 'pipelineParameter'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(pipelineParameter, 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['PipelineResource']().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); + }); +} + +/** + * Gets a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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 PipelineResource} 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 _get(resourceGroupName, factoryName, pipelineName, 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 (pipelineName === null || pipelineName === undefined || typeof pipelineName.valueOf() !== 'string') { + throw new Error('pipelineName cannot be null or undefined and it must be of type string.'); + } + if (pipelineName !== null && pipelineName !== undefined) { + if (pipelineName.length > 260) + { + throw new Error('"pipelineName" should satisfy the constraint - "MaxLength": 260'); + } + if (pipelineName.length < 1) + { + throw new Error('"pipelineName" should satisfy the constraint - "MinLength": 1'); + } + if (pipelineName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"pipelineName" should satisfy the constraint - "Pattern": /^[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 (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}/pipelines/{pipelineName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{pipelineName}', encodeURIComponent(pipelineName)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['PipelineResource']().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); + }); +} + +/** + * Deletes a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, pipelineName, 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 (pipelineName === null || pipelineName === undefined || typeof pipelineName.valueOf() !== 'string') { + throw new Error('pipelineName cannot be null or undefined and it must be of type string.'); + } + if (pipelineName !== null && pipelineName !== undefined) { + if (pipelineName.length > 260) + { + throw new Error('"pipelineName" should satisfy the constraint - "MaxLength": 260'); + } + if (pipelineName.length < 1) + { + throw new Error('"pipelineName" should satisfy the constraint - "MinLength": 1'); + } + if (pipelineName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"pipelineName" should satisfy the constraint - "Pattern": /^[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 (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}/pipelines/{pipelineName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{pipelineName}', encodeURIComponent(pipelineName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Creates a run of a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] Parameters of the pipeline run. + * + * @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 CreateRunResponse} 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 _createRun(resourceGroupName, factoryName, pipelineName, 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.'); + } + let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; + // 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 (pipelineName === null || pipelineName === undefined || typeof pipelineName.valueOf() !== 'string') { + throw new Error('pipelineName cannot be null or undefined and it must be of type string.'); + } + if (pipelineName !== null && pipelineName !== undefined) { + if (pipelineName.length > 260) + { + throw new Error('"pipelineName" should satisfy the constraint - "MaxLength": 260'); + } + if (pipelineName.length < 1) + { + throw new Error('"pipelineName" should satisfy the constraint - "MinLength": 1'); + } + if (pipelineName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"pipelineName" should satisfy the constraint - "Pattern": /^[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 (parameters && typeof parameters === 'object') { + for(let valueElement in parameters) { + if (parameters[valueElement] !== null && parameters[valueElement] !== undefined && typeof parameters[valueElement] !== 'object') { + throw new Error('parameters[valueElement] must be of type object.'); + } + } + } + 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}/pipelines/{pipelineName}/createRun'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{pipelineName}', encodeURIComponent(pipelineName)); + 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 (parameters !== null && parameters !== undefined) { + let requestModelMapper = { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }; + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, 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 !== 202) { + 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 === 202) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['CreateRunResponse']().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 pipelines. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 PipelineListResponse} 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 _listByFactoryNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['PipelineListResponse']().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 Pipelines. */ +class Pipelines { + /** + * Create a Pipelines. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listByFactory = _listByFactory; + this._createOrUpdate = _createOrUpdate; + this._get = _get; + this._deleteMethod = _deleteMethod; + this._createRun = _createRun; + this._listByFactoryNext = _listByFactoryNext; + } + + /** + * Lists pipelines. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName, factoryName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists pipelines. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {PipelineListResponse} - 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 PipelineListResponse} 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. + */ + listByFactory(resourceGroupName, factoryName, 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._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactory(resourceGroupName, factoryName, options, optionalCallback); + } + } + + /** + * Creates or updates a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} pipelineParameter Pipeline resource definition. + * + * @param {string} [pipelineParameter.description] The description of the + * pipeline. + * + * @param {array} [pipelineParameter.activities] List of activities in + * pipeline. + * + * @param {object} [pipelineParameter.parameters] List of parameters for + * pipeline. + * + * @param {number} [pipelineParameter.concurrency] The max number of concurrent + * runs for the pipeline. + * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, factoryName, pipelineName, pipelineParameter, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, factoryName, pipelineName, pipelineParameter, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} pipelineParameter Pipeline resource definition. + * + * @param {string} [pipelineParameter.description] The description of the + * pipeline. + * + * @param {array} [pipelineParameter.activities] List of activities in + * pipeline. + * + * @param {object} [pipelineParameter.parameters] List of parameters for + * pipeline. + * + * @param {number} [pipelineParameter.concurrency] The max number of concurrent + * runs for the pipeline. + * + * @param {array} [pipelineParameter.annotations] List of tags that can be used + * for describing the Pipeline. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the pipeline entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 {PipelineResource} - 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 PipelineResource} 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. + */ + createOrUpdate(resourceGroupName, factoryName, pipelineName, pipelineParameter, 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._createOrUpdate(resourceGroupName, factoryName, pipelineName, pipelineParameter, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, factoryName, pipelineName, pipelineParameter, options, optionalCallback); + } + } + + /** + * Gets a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName, factoryName, pipelineName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, factoryName, pipelineName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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 {PipelineResource} - 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 PipelineResource} 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. + */ + get(resourceGroupName, factoryName, pipelineName, 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._get(resourceGroupName, factoryName, pipelineName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, factoryName, pipelineName, options, optionalCallback); + } + } + + /** + * Deletes a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, pipelineName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, pipelineName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, pipelineName, 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._deleteMethod(resourceGroupName, factoryName, pipelineName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, pipelineName, options, optionalCallback); + } + } + + /** + * Creates a run of a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] Parameters of the pipeline run. + * + * @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. + */ + createRunWithHttpOperationResponse(resourceGroupName, factoryName, pipelineName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createRun(resourceGroupName, factoryName, pipelineName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates a run of a pipeline. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} pipelineName The pipeline name. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] Parameters of the pipeline run. + * + * @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 {CreateRunResponse} - 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 CreateRunResponse} 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. + */ + createRun(resourceGroupName, factoryName, pipelineName, 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._createRun(resourceGroupName, factoryName, pipelineName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createRun(resourceGroupName, factoryName, pipelineName, options, optionalCallback); + } + } + + /** + * Lists pipelines. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists pipelines. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {PipelineListResponse} - 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 PipelineListResponse} 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. + */ + listByFactoryNext(nextPageLink, 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._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactoryNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = Pipelines; diff --git a/lib/services/datafactoryManagement/lib/lib/operations/triggers.js b/lib/services/datafactoryManagement/lib/lib/operations/triggers.js new file mode 100644 index 0000000000..5a782f1ca1 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/lib/operations/triggers.js @@ -0,0 +1,2765 @@ +/* + * 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; + +/** + * Lists triggers. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 TriggerListResponse} 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 _listByFactory(resourceGroupName, factoryName, 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 (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}/triggers'; + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['TriggerListResponse']().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); + }); +} + +/** + * Creates or updates a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {object} trigger Trigger resource definition. + * + * @param {object} trigger.properties Properties of the trigger. + * + * @param {string} [trigger.properties.description] Trigger description. + * + * @param {string} trigger.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the trigger entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 TriggerResource} 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 _createOrUpdate(resourceGroupName, factoryName, triggerName, trigger, 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.'); + } + let ifMatch = (options && options.ifMatch !== undefined) ? options.ifMatch : undefined; + // 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 (triggerName === null || triggerName === undefined || typeof triggerName.valueOf() !== 'string') { + throw new Error('triggerName cannot be null or undefined and it must be of type string.'); + } + if (triggerName !== null && triggerName !== undefined) { + if (triggerName.length > 260) + { + throw new Error('"triggerName" should satisfy the constraint - "MaxLength": 260'); + } + if (triggerName.length < 1) + { + throw new Error('"triggerName" should satisfy the constraint - "MinLength": 1'); + } + if (triggerName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"triggerName" should satisfy the constraint - "Pattern": /^[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 (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { + throw new Error('ifMatch must be of type string.'); + } + if (trigger === null || trigger === undefined) { + throw new Error('trigger 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}/triggers/{triggerName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{triggerName}', encodeURIComponent(triggerName)); + 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 = 'PUT'; + 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 (ifMatch !== undefined && ifMatch !== null) { + httpRequest.headers['If-Match'] = ifMatch; + } + 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 (trigger !== null && trigger !== undefined) { + let requestModelMapper = new client.models['TriggerResource']().mapper(); + requestModel = client.serialize(requestModelMapper, trigger, 'trigger'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(trigger, 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['TriggerResource']().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); + }); +} + +/** + * Gets a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 TriggerResource} 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 _get(resourceGroupName, factoryName, triggerName, 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 (triggerName === null || triggerName === undefined || typeof triggerName.valueOf() !== 'string') { + throw new Error('triggerName cannot be null or undefined and it must be of type string.'); + } + if (triggerName !== null && triggerName !== undefined) { + if (triggerName.length > 260) + { + throw new Error('"triggerName" should satisfy the constraint - "MaxLength": 260'); + } + if (triggerName.length < 1) + { + throw new Error('"triggerName" should satisfy the constraint - "MinLength": 1'); + } + if (triggerName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"triggerName" should satisfy the constraint - "Pattern": /^[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 (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}/triggers/{triggerName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{triggerName}', encodeURIComponent(triggerName)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['TriggerResource']().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); + }); +} + +/** + * Deletes a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, factoryName, triggerName, 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 (triggerName === null || triggerName === undefined || typeof triggerName.valueOf() !== 'string') { + throw new Error('triggerName cannot be null or undefined and it must be of type string.'); + } + if (triggerName !== null && triggerName !== undefined) { + if (triggerName.length > 260) + { + throw new Error('"triggerName" should satisfy the constraint - "MaxLength": 260'); + } + if (triggerName.length < 1) + { + throw new Error('"triggerName" should satisfy the constraint - "MinLength": 1'); + } + if (triggerName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"triggerName" should satisfy the constraint - "Pattern": /^[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 (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}/triggers/{triggerName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{triggerName}', encodeURIComponent(triggerName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 204) { + 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; + + return callback(null, result, httpRequest, response); + }); +} + + +/** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _start(resourceGroupName, factoryName, triggerName, 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.'); + } + + // Send request + this.beginStart(resourceGroupName, factoryName, triggerName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + + +/** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _stop(resourceGroupName, factoryName, triggerName, 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.'); + } + + // Send request + this.beginStop(resourceGroupName, factoryName, triggerName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + +/** + * List trigger runs. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {date} startTime Start time for trigger runs. + * + * @param {date} endTime End time for trigger runs. + * + * @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 TriggerRunListResponse} 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 _listRuns(resourceGroupName, factoryName, triggerName, startTime, endTime, 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 (triggerName === null || triggerName === undefined || typeof triggerName.valueOf() !== 'string') { + throw new Error('triggerName cannot be null or undefined and it must be of type string.'); + } + if (triggerName !== null && triggerName !== undefined) { + if (triggerName.length > 260) + { + throw new Error('"triggerName" should satisfy the constraint - "MaxLength": 260'); + } + if (triggerName.length < 1) + { + throw new Error('"triggerName" should satisfy the constraint - "MinLength": 1'); + } + if (triggerName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"triggerName" should satisfy the constraint - "Pattern": /^[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(!startTime || !(startTime instanceof Date || + (typeof startTime.valueOf() === 'string' && !isNaN(Date.parse(startTime))))) { + throw new Error('startTime cannot be null or undefined and it must be of type date.'); + } + if(!endTime || !(endTime instanceof Date || + (typeof endTime.valueOf() === 'string' && !isNaN(Date.parse(endTime))))) { + throw new Error('endTime cannot be null or undefined and it must be of type date.'); + } + 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}/triggers/{triggerName}/triggerruns'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{triggerName}', encodeURIComponent(triggerName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + queryParameters.push('startTime=' + encodeURIComponent(client.serializeObject(startTime))); + queryParameters.push('endTime=' + encodeURIComponent(client.serializeObject(endTime))); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['TriggerRunListResponse']().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); + }); +} + +/** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _beginStart(resourceGroupName, factoryName, triggerName, 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 (triggerName === null || triggerName === undefined || typeof triggerName.valueOf() !== 'string') { + throw new Error('triggerName cannot be null or undefined and it must be of type string.'); + } + if (triggerName !== null && triggerName !== undefined) { + if (triggerName.length > 260) + { + throw new Error('"triggerName" should satisfy the constraint - "MaxLength": 260'); + } + if (triggerName.length < 1) + { + throw new Error('"triggerName" should satisfy the constraint - "MinLength": 1'); + } + if (triggerName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"triggerName" should satisfy the constraint - "Pattern": /^[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 (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}/triggers/{triggerName}/start'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{triggerName}', encodeURIComponent(triggerName)); + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _beginStop(resourceGroupName, factoryName, triggerName, 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 (triggerName === null || triggerName === undefined || typeof triggerName.valueOf() !== 'string') { + throw new Error('triggerName cannot be null or undefined and it must be of type string.'); + } + if (triggerName !== null && triggerName !== undefined) { + if (triggerName.length > 260) + { + throw new Error('"triggerName" should satisfy the constraint - "MaxLength": 260'); + } + if (triggerName.length < 1) + { + throw new Error('"triggerName" should satisfy the constraint - "MinLength": 1'); + } + if (triggerName.match(/^[A-Za-z0-9_][^<>*#.%&:\\+?\/]*$/) === null) + { + throw new Error('"triggerName" should satisfy the constraint - "Pattern": /^[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 (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}/triggers/{triggerName}/stop'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + requestUrl = requestUrl.replace('{triggerName}', encodeURIComponent(triggerName)); + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Lists triggers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 TriggerListResponse} 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 _listByFactoryNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['TriggerListResponse']().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); + }); +} + +/** + * List trigger runs. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 TriggerRunListResponse} 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 _listRunsNext(nextPageLink, 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 (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['TriggerRunListResponse']().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 Triggers. */ +class Triggers { + /** + * Create a Triggers. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listByFactory = _listByFactory; + this._createOrUpdate = _createOrUpdate; + this._get = _get; + this._deleteMethod = _deleteMethod; + this._start = _start; + this._stop = _stop; + this._listRuns = _listRuns; + this._beginStart = _beginStart; + this._beginStop = _beginStop; + this._listByFactoryNext = _listByFactoryNext; + this._listRunsNext = _listRunsNext; + } + + /** + * Lists triggers. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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. + */ + listByFactoryWithHttpOperationResponse(resourceGroupName, factoryName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists triggers. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @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 {TriggerListResponse} - 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 TriggerListResponse} 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. + */ + listByFactory(resourceGroupName, factoryName, 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._listByFactory(resourceGroupName, factoryName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactory(resourceGroupName, factoryName, options, optionalCallback); + } + } + + /** + * Creates or updates a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {object} trigger Trigger resource definition. + * + * @param {object} trigger.properties Properties of the trigger. + * + * @param {string} [trigger.properties.description] Trigger description. + * + * @param {string} trigger.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the trigger entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, trigger, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, factoryName, triggerName, trigger, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {object} trigger Trigger resource definition. + * + * @param {object} trigger.properties Properties of the trigger. + * + * @param {string} [trigger.properties.description] Trigger description. + * + * @param {string} trigger.properties.type Polymorphic Discriminator + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.ifMatch] ETag of the trigger entity. Should only + * be specified for update, for which it should match existing entity or can be + * * for unconditional update. + * + * @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 {TriggerResource} - 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 TriggerResource} 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. + */ + createOrUpdate(resourceGroupName, factoryName, triggerName, trigger, 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._createOrUpdate(resourceGroupName, factoryName, triggerName, trigger, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, factoryName, triggerName, trigger, options, optionalCallback); + } + } + + /** + * Gets a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + getWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {TriggerResource} - 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 TriggerResource} 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. + */ + get(resourceGroupName, factoryName, triggerName, 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._get(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, factoryName, triggerName, options, optionalCallback); + } + } + + /** + * Deletes a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, factoryName, triggerName, 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._deleteMethod(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, factoryName, triggerName, options, optionalCallback); + } + } + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + startWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._start(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + start(resourceGroupName, factoryName, triggerName, 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._start(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._start(resourceGroupName, factoryName, triggerName, options, optionalCallback); + } + } + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + stopWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._stop(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + stop(resourceGroupName, factoryName, triggerName, 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._stop(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._stop(resourceGroupName, factoryName, triggerName, options, optionalCallback); + } + } + + /** + * List trigger runs. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {date} startTime Start time for trigger runs. + * + * @param {date} endTime End time for trigger runs. + * + * @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. + */ + listRunsWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, startTime, endTime, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listRuns(resourceGroupName, factoryName, triggerName, startTime, endTime, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * List trigger runs. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @param {date} startTime Start time for trigger runs. + * + * @param {date} endTime End time for trigger runs. + * + * @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 {TriggerRunListResponse} - 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 TriggerRunListResponse} 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. + */ + listRuns(resourceGroupName, factoryName, triggerName, startTime, endTime, 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._listRuns(resourceGroupName, factoryName, triggerName, startTime, endTime, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listRuns(resourceGroupName, factoryName, triggerName, startTime, endTime, options, optionalCallback); + } + } + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + beginStartWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginStart(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Starts a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginStart(resourceGroupName, factoryName, triggerName, 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._beginStart(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginStart(resourceGroupName, factoryName, triggerName, options, optionalCallback); + } + } + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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. + */ + beginStopWithHttpOperationResponse(resourceGroupName, factoryName, triggerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginStop(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Stops a trigger. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {string} triggerName The trigger name. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginStop(resourceGroupName, factoryName, triggerName, 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._beginStop(resourceGroupName, factoryName, triggerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginStop(resourceGroupName, factoryName, triggerName, options, optionalCallback); + } + } + + /** + * Lists triggers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByFactoryNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists triggers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {TriggerListResponse} - 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 TriggerListResponse} 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. + */ + listByFactoryNext(nextPageLink, 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._listByFactoryNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByFactoryNext(nextPageLink, options, optionalCallback); + } + } + + /** + * List trigger runs. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listRunsNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listRunsNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * List trigger runs. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {TriggerRunListResponse} - 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 TriggerRunListResponse} 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. + */ + listRunsNext(nextPageLink, 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._listRunsNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listRunsNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = Triggers; diff --git a/lib/services/datafactoryManagement/lib/package.json b/lib/services/datafactoryManagement/lib/package.json new file mode 100644 index 0000000000..81723fe119 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/package.json @@ -0,0 +1,22 @@ +{ + "name": "azure-arm-datafactory", + "author": "Microsoft Corporation", + "description": "DataFactoryManagementClient Library with typescript type definitions for node", + "version": "", + "dependencies": { + "ms-rest": "^2.3.2", + "ms-rest-azure": "^2.5.5" + }, + "keywords": [ "node", "azure" ], + "license": "MIT", + "main": "./lib/dataFactoryManagementClient.js", + "types": "./lib/dataFactoryManagementClient.d.ts", + "homepage": "http://github.com/azure/azure-sdk-for-node", + "repository": { + "type": "git", + "url": "https://github.com/azure/azure-sdk-for-node.git" + }, + "bugs": { + "url": "http://github.com/Azure/azure-sdk-for-node/issues" + } +}