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

[AutoPR datafactory/resource-manager] Update swagger for DataFactory-SapOpenHub #4633

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 88 additions & 19 deletions lib/services/datafactoryManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
*/
Expand Down
8 changes: 7 additions & 1 deletion lib/services/datafactoryManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Loading