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..795a381322 100644 --- a/lib/services/datafactoryManagement/lib/models/db2LinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/db2LinkedService.js @@ -31,7 +31,7 @@ class Db2LinkedService 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 Db2LinkedService extends models['LinkedService'] { serializedName: 'Db2', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'Db2LinkedService', modelProperties: { connectVia: { @@ -69,9 +74,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' } @@ -116,7 +151,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..fcbd7088a8 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,82 @@ export interface OperationListResponse { nextLink?: string; } +/** + * @class + * Initializes a new instance of the ResponsysLinkedService class. + * @constructor + * Responsys linked service. + * + * @member {object} endpoint The endpoint of the Responsys server. + * @member {object} clientId The client ID associated with the Responsys + * application. Type: string (or Expression with resultType string). + * @member {object} [clientSecret] The client secret associated with the + * Responsys 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 ResponsysLinkedService extends LinkedService { + endpoint: any; + clientId: any; + clientSecret?: SecretBase; + useEncryptedEndpoints?: any; + useHostVerification?: any; + usePeerVerification?: any; + encryptedCredential?: any; +} + +/** + * @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 +1068,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 +1086,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 +1113,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 +1130,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 +1145,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 +1170,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 +1184,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 +1205,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 +2046,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 +2074,8 @@ export interface GoogleBigQueryLinkedService extends LinkedService { requestGoogleDriveScope?: any; authenticationType: string; refreshToken?: SecretBase; + clientId?: SecretBase; + clientSecret?: SecretBase; email?: any; keyFilePath?: any; trustedCertPath?: any; @@ -1969,7 +2255,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 +2264,7 @@ export interface SapHanaLinkedService extends LinkedService { server: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -1999,7 +2285,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 +2295,7 @@ export interface SapBWLinkedService extends LinkedService { systemNumber: any; clientId: any; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2030,7 +2316,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 +2329,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 +2345,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 +2370,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 +2386,7 @@ export interface FtpServerLinkedService extends LinkedService { port?: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; enableSsl?: any; enableServerCertificateValidation?: any; @@ -2122,7 +2408,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 +2430,7 @@ export interface HttpLinkedService extends LinkedService { url: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; embeddedCertData?: any; certThumbprint?: any; encryptedCredential?: any; @@ -2160,14 +2446,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 +2480,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 +2493,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 +2510,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 +2558,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 +2567,7 @@ export interface AmazonS3LinkedService extends LinkedService { export interface SapCloudForCustomerLinkedService extends LinkedService { url: any; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2304,7 +2615,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 +2633,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 +2657,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 +2678,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 +2701,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 +2711,7 @@ export interface CassandraLinkedService extends LinkedService { authenticationType?: any; port?: any; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2423,13 +2742,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 +2761,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 +2809,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 +2818,7 @@ export interface ODataLinkedService extends LinkedService { url: any; authenticationType?: string; userName?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2521,14 +2840,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 +2858,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 +2892,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 +2902,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 +2911,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; } @@ -2615,7 +2934,7 @@ export interface AzureMLLinkedService 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). @@ -2625,7 +2944,7 @@ export interface TeradataLinkedService extends LinkedService { schema?: any; authenticationType?: string; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2646,7 +2965,7 @@ export interface TeradataLinkedService 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). @@ -2657,7 +2976,7 @@ export interface Db2LinkedService extends LinkedService { schema?: any; authenticationType?: string; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2678,7 +2997,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 +3008,7 @@ export interface SybaseLinkedService extends LinkedService { schema?: any; authenticationType?: string; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2708,7 +3027,7 @@ export interface SybaseLinkedService 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). @@ -2718,7 +3037,7 @@ export interface PostgreSqlLinkedService extends LinkedService { database: any; schema?: any; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2737,7 +3056,7 @@ export interface PostgreSqlLinkedService 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). @@ -2747,7 +3066,7 @@ export interface MySqlLinkedService extends LinkedService { database: any; schema?: any; username?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2758,13 +3077,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 +3094,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 +3115,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 +3123,7 @@ export interface OracleLinkedService extends LinkedService { export interface FileServerLinkedService extends LinkedService { host: any; userId?: any; - password?: SecureString; + password?: SecretBase; encryptedCredential?: any; } @@ -2819,15 +3138,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 +3157,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 +3178,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 +3200,7 @@ export interface DynamicsLinkedService extends LinkedService { deploymentType: any; hostName?: any; port?: any; + serviceUri?: any; organizationName?: any; authenticationType: any; username: any; @@ -2889,13 +3215,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 +3248,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 +3257,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 +3278,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 +3306,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 +3329,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 +3358,60 @@ 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 ResponsysObjectDataset class. + * @constructor + * Responsys dataset. + * + */ +export interface ResponsysObjectDataset extends Dataset { +} + +/** + * @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 +3682,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 +3754,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 +3951,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 +4300,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 +4314,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 +4326,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 +4354,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 +4381,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 +4406,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 +4439,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 +4452,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 +4468,7 @@ export interface ScheduleTriggerRecurrence { * occurrences. */ export interface ScheduleTrigger extends MultiplePipelineTrigger { - recurrence?: ScheduleTriggerRecurrence; + recurrence: ScheduleTriggerRecurrence; } /** @@ -4056,11 +4484,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 +4508,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 +4518,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 +4555,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 +4595,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 +4621,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 +4676,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 +4685,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 +4703,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 +4716,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 +4724,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 +4754,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 +4783,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 +4807,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 +4819,58 @@ export interface AmazonRedshiftSource extends CopySource { redshiftUnloadSettings?: RedshiftUnloadSettings; } +/** + * @class + * Initializes a new instance of the ResponsysSource class. + * @constructor + * A copy activity Responsys source. + * + * @member {object} [query] A query to retrieve data from source. Type: string + * (or Expression with resultType string). + */ +export interface ResponsysSource extends CopySource { + query?: any; +} + +/** + * @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 +5433,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 +5467,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 +5624,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 +5644,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 +5701,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 +5742,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 +5781,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 +5812,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 +5841,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 +5871,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 +5887,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 +5898,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 +5915,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 +5959,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 +6084,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 +6277,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 +6330,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 +6390,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 +6448,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 +6530,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 +6563,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 +6579,8 @@ export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeSt readonly capabilities?: { [propertyName: string]: string }; readonly serviceUrls?: string[]; readonly autoUpdate?: string; + readonly versionStatus?: string; + links?: LinkedIntegrationRuntime[]; } /** @@ -5920,6 +6594,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 +6602,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 +6626,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 +6649,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 +6676,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 +6686,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 +6775,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 +6802,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 +6841,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 +6876,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 +6927,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 +6948,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 +6991,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 +7022,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 +7085,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..83986bec0d 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,13 @@ exports.OperationMetricSpecification = require('./operationMetricSpecification') exports.OperationServiceSpecification = require('./operationServiceSpecification'); exports.Operation = require('./operation'); exports.OperationListResponse = require('./operationListResponse'); +exports.ResponsysLinkedService = require('./responsysLinkedService'); +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 +108,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 +140,10 @@ exports.AzureSqlDatabaseLinkedService = require('./azureSqlDatabaseLinkedService exports.SqlServerLinkedService = require('./sqlServerLinkedService'); exports.AzureSqlDWLinkedService = require('./azureSqlDWLinkedService'); exports.AzureStorageLinkedService = require('./azureStorageLinkedService'); +exports.ResponsysObjectDataset = require('./responsysObjectDataset'); +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 +185,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 +214,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 +225,10 @@ exports.WebActivity = require('./webActivity'); exports.RedshiftUnloadSettings = require('./redshiftUnloadSettings'); exports.CopySource = require('./copySource'); exports.AmazonRedshiftSource = require('./amazonRedshiftSource'); +exports.ResponsysSource = require('./responsysSource'); +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 +268,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 +280,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 +309,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 +357,13 @@ exports.discriminators = { 'Dataset' : exports.Dataset, 'Activity' : exports.Activity, 'Trigger' : exports.Trigger, + 'LinkedService.Responsys' : exports.ResponsysLinkedService, + '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 +399,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 +431,10 @@ exports.discriminators = { 'LinkedService.SqlServer' : exports.SqlServerLinkedService, 'LinkedService.AzureSqlDW' : exports.AzureSqlDWLinkedService, 'LinkedService.AzureStorage' : exports.AzureStorageLinkedService, + 'Dataset.ResponsysObject' : exports.ResponsysObjectDataset, + '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 +476,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 +499,17 @@ 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.ResponsysSource' : exports.ResponsysSource, + '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 +547,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 +559,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 +584,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 +593,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..e903497fca 100644 --- a/lib/services/datafactoryManagement/lib/models/mySqlLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/mySqlLinkedService.js @@ -29,7 +29,7 @@ class MySqlLinkedService 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 MySqlLinkedService extends models['LinkedService'] { serializedName: 'MySql', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'MySqlLinkedService', modelProperties: { connectVia: { @@ -67,9 +72,39 @@ class MySqlLinkedService 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 MySqlLinkedService 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/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..3861cbb581 100644 --- a/lib/services/datafactoryManagement/lib/models/postgreSqlLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/postgreSqlLinkedService.js @@ -29,7 +29,7 @@ class PostgreSqlLinkedService 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 PostgreSqlLinkedService extends models['LinkedService'] { serializedName: 'PostgreSql', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'PostgreSqlLinkedService', modelProperties: { connectVia: { @@ -67,9 +72,39 @@ class PostgreSqlLinkedService 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 PostgreSqlLinkedService 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/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/responsysLinkedService.js b/lib/services/datafactoryManagement/lib/models/responsysLinkedService.js new file mode 100644 index 0000000000..20ed7ca768 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/responsysLinkedService.js @@ -0,0 +1,180 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Responsys linked service. + * + * @extends models['LinkedService'] + */ +class ResponsysLinkedService extends models['LinkedService'] { + /** + * Create a ResponsysLinkedService. + * @member {object} endpoint The endpoint of the Responsys server. + * @member {object} clientId The client ID associated with the Responsys + * application. Type: string (or Expression with resultType string). + * @member {object} [clientSecret] The client secret associated with the + * Responsys 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 ResponsysLinkedService + * + * @returns {object} metadata of ResponsysLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'Responsys', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'ResponsysLinkedService', + 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 = ResponsysLinkedService; diff --git a/lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js b/lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js new file mode 100644 index 0000000000..e270bd8968 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/responsysObjectDataset.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'); + +/** + * Responsys dataset. + * + * @extends models['Dataset'] + */ +class ResponsysObjectDataset extends models['Dataset'] { + /** + * Create a ResponsysObjectDataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ResponsysObjectDataset + * + * @returns {object} metadata of ResponsysObjectDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'ResponsysObject', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'ResponsysObjectDataset', + 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 = ResponsysObjectDataset; diff --git a/lib/services/datafactoryManagement/lib/models/responsysSource.js b/lib/services/datafactoryManagement/lib/models/responsysSource.js new file mode 100644 index 0000000000..a5caeed0f7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/responsysSource.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 Responsys source. + * + * @extends models['CopySource'] + */ +class ResponsysSource extends models['CopySource'] { + /** + * Create a ResponsysSource. + * @member {object} [query] A query to retrieve data from source. Type: + * string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ResponsysSource + * + * @returns {object} metadata of ResponsysSource + * + */ + mapper() { + return { + required: false, + serializedName: 'ResponsysSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'ResponsysSource', + 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 = ResponsysSource; 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..253b87cbe9 100644 --- a/lib/services/datafactoryManagement/lib/models/teradataLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/teradataLinkedService.js @@ -29,7 +29,7 @@ class TeradataLinkedService 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 TeradataLinkedService extends models['LinkedService'] { serializedName: 'Teradata', type: { name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', className: 'TeradataLinkedService', modelProperties: { connectVia: { @@ -67,9 +72,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' } @@ -107,7 +142,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