diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 557986c333..86d60f8980 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -1643,6 +1643,47 @@ export interface ScheduleTrigger extends MultiplePipelineTrigger { recurrence: ScheduleTriggerRecurrence; } +/** + * SAP Business Warehouse Open Hub Destination Linked Service. + */ +export interface SapOpenHubLinkedService extends LinkedService { + /** + * Host name of the SAP BW instance where the open hub destination is located. Type: string (or + * Expression with resultType string). + */ + server: any; + /** + * System number of the BW system where the open hub destination is located. (Usually a two-digit + * decimal number represented as a string.) Type: string (or Expression with resultType string). + */ + systemNumber: any; + /** + * Client ID of the client on the BW system where the open hub destination is located. (Usually a + * three-digit decimal number represented as a string) Type: string (or Expression with + * resultType string). + */ + clientId: any; + /** + * Language of the BW system where the open hub destination is located. The default value is EN. + * Type: string (or Expression with resultType string). + */ + language?: any; + /** + * Username to access the SAP BW server where the open hub destination is located. Type: string + * (or Expression with resultType string). + */ + userName?: any; + /** + * Password to access the SAP BW server where the open hub destination is located. + */ + password?: SecretBase; + /** + * The encrypted credential used for authentication. Credentials are encrypted using the + * integration runtime credential manager. Type: string (or Expression with resultType string). + */ + encryptedCredential?: any; +} + /** * Azure Function linked service. */ @@ -4421,6 +4462,28 @@ export interface AzureStorageLinkedService extends LinkedService { encryptedCredential?: string; } +/** + * Sap Business Warehouse Open Hub Destination Table properties. + */ +export interface SapOpenHubTableDataset extends Dataset { + /** + * The name of the Open Hub Destination with destination type as Database Table. Type: string (or + * Expression with resultType string). + */ + openHubDestinationName: any; + /** + * Whether to exclude the records of the last request. The default value is true. Type: boolean + * (or Expression with resultType boolean). + */ + excludeLastRequest?: any; + /** + * The ID of request for delta loading. Once it is set, only data with requestId larger than the + * value of this property will be retrieved. The default value is 0. Type: integer (or Expression + * with resultType integer ). + */ + baseRequestId?: any; +} + /** * Responsys dataset. */ @@ -5546,25 +5609,6 @@ export interface WebActivity extends ExecutionActivity { linkedServices?: LinkedServiceReference[]; } -/** - * The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with - * unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then - * copied into the targeted sink from the interim S3. - */ -export interface RedshiftUnloadSettings { - /** - * The name of the Amazon S3 linked service which will be used for the unload operation when - * copying from the Amazon Redshift source. - */ - s3LinkedServiceName: LinkedServiceReference; - /** - * The bucket of the interim Amazon S3 which will be used to store the unloaded data from Amazon - * Redshift source. The bucket must be in the same region as the Amazon Redshift source. Type: - * string (or Expression with resultType string). - */ - bucketName: any; -} - /** * A copy activity source. */ @@ -5588,6 +5632,31 @@ export interface CopySource { [additionalPropertyName: string]: any; } +/** + * A copy activity source for SAP Business Warehouse Open Hub Destination source. + */ +export interface SapOpenHubSource extends CopySource { +} + +/** + * The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with + * unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then + * copied into the targeted sink from the interim S3. + */ +export interface RedshiftUnloadSettings { + /** + * The name of the Amazon S3 linked service which will be used for the unload operation when + * copying from the Amazon Redshift source. + */ + s3LinkedServiceName: LinkedServiceReference; + /** + * The bucket of the interim Amazon S3 which will be used to store the unloaded data from Amazon + * Redshift source. The bucket must be in the same region as the Amazon Redshift source. Type: + * string (or Expression with resultType string). + */ + bucketName: any; +} + /** * A copy activity source for Amazon Redshift Source. */ diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index 75737408b3..fe99239ca2 100644 --- a/lib/services/datafactoryManagement/lib/models/index.js +++ b/lib/services/datafactoryManagement/lib/models/index.js @@ -102,6 +102,7 @@ exports.RecurrenceScheduleOccurrence = require('./recurrenceScheduleOccurrence') exports.RecurrenceSchedule = require('./recurrenceSchedule'); exports.ScheduleTriggerRecurrence = require('./scheduleTriggerRecurrence'); exports.ScheduleTrigger = require('./scheduleTrigger'); +exports.SapOpenHubLinkedService = require('./sapOpenHubLinkedService'); exports.AzureFunctionLinkedService = require('./azureFunctionLinkedService'); exports.ResponsysLinkedService = require('./responsysLinkedService'); exports.AzureDatabricksLinkedService = require('./azureDatabricksLinkedService'); @@ -180,6 +181,7 @@ exports.AzureSqlDWLinkedService = require('./azureSqlDWLinkedService'); exports.AzureTableStorageLinkedService = require('./azureTableStorageLinkedService'); exports.AzureBlobStorageLinkedService = require('./azureBlobStorageLinkedService'); exports.AzureStorageLinkedService = require('./azureStorageLinkedService'); +exports.SapOpenHubTableDataset = require('./sapOpenHubTableDataset'); exports.ResponsysObjectDataset = require('./responsysObjectDataset'); exports.SalesforceMarketingCloudObjectDataset = require('./salesforceMarketingCloudObjectDataset'); exports.VerticaTableDataset = require('./verticaTableDataset'); @@ -257,8 +259,9 @@ exports.AzureMLBatchExecutionActivity = require('./azureMLBatchExecutionActivity exports.GetMetadataActivity = require('./getMetadataActivity'); exports.WebActivityAuthentication = require('./webActivityAuthentication'); exports.WebActivity = require('./webActivity'); -exports.RedshiftUnloadSettings = require('./redshiftUnloadSettings'); exports.CopySource = require('./copySource'); +exports.SapOpenHubSource = require('./sapOpenHubSource'); +exports.RedshiftUnloadSettings = require('./redshiftUnloadSettings'); exports.AmazonRedshiftSource = require('./amazonRedshiftSource'); exports.ResponsysSource = require('./responsysSource'); exports.SalesforceMarketingCloudSource = require('./salesforceMarketingCloudSource'); @@ -413,6 +416,7 @@ exports.discriminators = { 'Trigger.BlobTrigger' : exports.BlobTrigger, 'Trigger.ScheduleTrigger' : exports.ScheduleTrigger, 'Trigger.MultiplePipelineTrigger' : exports.MultiplePipelineTrigger, + 'LinkedService.SapOpenHub' : exports.SapOpenHubLinkedService, 'LinkedService.AzureFunction' : exports.AzureFunctionLinkedService, 'LinkedService.Responsys' : exports.ResponsysLinkedService, 'LinkedService.AzureDatabricks' : exports.AzureDatabricksLinkedService, @@ -490,6 +494,7 @@ exports.discriminators = { 'LinkedService.AzureTableStorage' : exports.AzureTableStorageLinkedService, 'LinkedService.AzureBlobStorage' : exports.AzureBlobStorageLinkedService, 'LinkedService.AzureStorage' : exports.AzureStorageLinkedService, + 'Dataset.SapOpenHubTable' : exports.SapOpenHubTableDataset, 'Dataset.ResponsysObject' : exports.ResponsysObjectDataset, 'Dataset.SalesforceMarketingCloudObject' : exports.SalesforceMarketingCloudObjectDataset, 'Dataset.VerticaTable' : exports.VerticaTableDataset, @@ -563,6 +568,7 @@ exports.discriminators = { 'Activity.AzureMLBatchExecution' : exports.AzureMLBatchExecutionActivity, 'Activity.GetMetadata' : exports.GetMetadataActivity, 'Activity.WebActivity' : exports.WebActivity, + 'CopySource.SapOpenHubSource' : exports.SapOpenHubSource, 'CopySource.AmazonRedshiftSource' : exports.AmazonRedshiftSource, 'CopySource.ResponsysSource' : exports.ResponsysSource, 'CopySource.SalesforceMarketingCloudSource' : exports.SalesforceMarketingCloudSource, diff --git a/lib/services/datafactoryManagement/lib/models/sapOpenHubLinkedService.js b/lib/services/datafactoryManagement/lib/models/sapOpenHubLinkedService.js new file mode 100644 index 0000000000..27f7232c85 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sapOpenHubLinkedService.js @@ -0,0 +1,183 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * SAP Business Warehouse Open Hub Destination Linked Service. + * + * @extends models['LinkedService'] + */ +class SapOpenHubLinkedService extends models['LinkedService'] { + /** + * Create a SapOpenHubLinkedService. + * @property {object} server Host name of the SAP BW instance where the open + * hub destination is located. Type: string (or Expression with resultType + * string). + * @property {object} systemNumber System number of the BW system where the + * open hub destination is located. (Usually a two-digit decimal number + * represented as a string.) Type: string (or Expression with resultType + * string). + * @property {object} clientId Client ID of the client on the BW system where + * the open hub destination is located. (Usually a three-digit decimal number + * represented as a string) Type: string (or Expression with resultType + * string). + * @property {object} [language] Language of the BW system where the open hub + * destination is located. The default value is EN. Type: string (or + * Expression with resultType string). + * @property {object} [userName] Username to access the SAP BW server where + * the open hub destination is located. Type: string (or Expression with + * resultType string). + * @property {object} [password] Password to access the SAP BW server where + * the open hub destination is located. + * @property {string} [password.type] Polymorphic Discriminator + * @property {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 SapOpenHubLinkedService + * + * @returns {object} metadata of SapOpenHubLinkedService + * + */ + mapper() { + return { + required: false, + serializedName: 'SapOpenHub', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'LinkedService', + className: 'SapOpenHubLinkedService', + modelProperties: { + connectVia: { + required: false, + serializedName: 'connectVia', + type: { + name: 'Composite', + className: 'IntegrationRuntimeReference' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ParameterSpecificationElementType', + type: { + name: 'Composite', + className: 'ParameterSpecification' + } + } + } + }, + annotations: { + required: false, + serializedName: 'annotations', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + server: { + required: true, + serializedName: 'typeProperties.server', + type: { + name: 'Object' + } + }, + systemNumber: { + required: true, + serializedName: 'typeProperties.systemNumber', + type: { + name: 'Object' + } + }, + clientId: { + required: true, + serializedName: 'typeProperties.clientId', + type: { + name: 'Object' + } + }, + language: { + required: false, + serializedName: 'typeProperties.language', + type: { + name: 'Object' + } + }, + userName: { + required: false, + serializedName: 'typeProperties.userName', + type: { + name: 'Object' + } + }, + password: { + required: false, + serializedName: 'typeProperties.password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecretBase' + } + }, + encryptedCredential: { + required: false, + serializedName: 'typeProperties.encryptedCredential', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SapOpenHubLinkedService; diff --git a/lib/services/datafactoryManagement/lib/models/sapOpenHubSource.js b/lib/services/datafactoryManagement/lib/models/sapOpenHubSource.js new file mode 100644 index 0000000000..09a60b5d66 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sapOpenHubSource.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'); + +/** + * A copy activity source for SAP Business Warehouse Open Hub Destination + * source. + * + * @extends models['CopySource'] + */ +class SapOpenHubSource extends models['CopySource'] { + /** + * Create a SapOpenHubSource. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapOpenHubSource + * + * @returns {object} metadata of SapOpenHubSource + * + */ + mapper() { + return { + required: false, + serializedName: 'SapOpenHubSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'SapOpenHubSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SapOpenHubSource; diff --git a/lib/services/datafactoryManagement/lib/models/sapOpenHubTableDataset.js b/lib/services/datafactoryManagement/lib/models/sapOpenHubTableDataset.js new file mode 100644 index 0000000000..6363ffaf3f --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sapOpenHubTableDataset.js @@ -0,0 +1,159 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Sap Business Warehouse Open Hub Destination Table properties. + * + * @extends models['Dataset'] + */ +class SapOpenHubTableDataset extends models['Dataset'] { + /** + * Create a SapOpenHubTableDataset. + * @property {object} openHubDestinationName The name of the Open Hub + * Destination with destination type as Database Table. Type: string (or + * Expression with resultType string). + * @property {object} [excludeLastRequest] Whether to exclude the records of + * the last request. The default value is true. Type: boolean (or Expression + * with resultType boolean). + * @property {object} [baseRequestId] The ID of request for delta loading. + * Once it is set, only data with requestId larger than the value of this + * property will be retrieved. The default value is 0. Type: integer (or + * Expression with resultType integer ). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SapOpenHubTableDataset + * + * @returns {object} metadata of SapOpenHubTableDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'SapOpenHubTable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'SapOpenHubTableDataset', + modelProperties: { + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + structure: { + required: false, + serializedName: 'structure', + type: { + name: 'Object' + } + }, + schema: { + required: false, + serializedName: 'schema', + 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' + } + } + } + }, + folder: { + required: false, + serializedName: 'folder', + type: { + name: 'Composite', + className: 'DatasetFolder' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + openHubDestinationName: { + required: true, + serializedName: 'typeProperties.openHubDestinationName', + type: { + name: 'Object' + } + }, + excludeLastRequest: { + required: false, + serializedName: 'typeProperties.excludeLastRequest', + type: { + name: 'Object' + } + }, + baseRequestId: { + required: false, + serializedName: 'typeProperties.baseRequestId', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SapOpenHubTableDataset;