diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 557986c333..599405b5e7 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -3478,6 +3478,97 @@ export interface AmazonS3LinkedService extends LinkedService { encryptedCredential?: any; } +/** + * Rest Service linked service. + */ +export interface RestServiceLinkedService extends LinkedService { + /** + * The base URL of the REST service. + */ + url: any; + /** + * Whether to validate server side SSL certificate when connecting to the endpoint.The default + * value is true. Type: boolean (or Expression with resultType boolean). + */ + enableServerCertificateValidation?: any; + /** + * Type of authentication used to connect to the REST service. Possible values include: + * 'Anonymous', 'Basic', 'AadServicePrincipal', 'ManagedServiceIdentity' + */ + authenticationType: string; + /** + * The user name used in Basic authentication type. + */ + userName?: any; + /** + * The password used in Basic authentication type. + */ + password?: SecretBase; + /** + * The application's client ID used in AadServicePrincipal authentication type. + */ + servicePrincipalId?: any; + /** + * The application's key used in AadServicePrincipal authentication type. + */ + servicePrincipalKey?: SecretBase; + /** + * The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication + * type under which your application resides. + */ + tenant?: any; + /** + * The resource you are requesting authorization to use. + */ + aadResourceId?: any; + /** + * The encrypted credential used for authentication. Credentials are encrypted using the + * integration runtime credential manager. Type: string (or Expression with resultType string). + */ + encryptedCredential?: any; +} + +/** + * 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; +} + /** * Linked service for SAP ERP Central Component(SAP ECC). */ @@ -4959,6 +5050,37 @@ export interface WebTableDataset extends Dataset { path?: any; } +/** + * A Rest service dataset. + */ +export interface RestResourceDataset extends Dataset { + /** + * The relative URL to the resource that the RESTful API provides. Type: string (or Expression + * with resultType string). + */ + relativeUrl?: any; + /** + * The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression + * with resultType string). + */ + requestMethod?: any; + /** + * The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression + * with resultType string). + */ + requestBody?: any; + /** + * The additional HTTP headers in the request to the RESTful API. Type: string (or Expression + * with resultType string). + */ + additionalHeaders?: any; + /** + * The pagination rules to compose next page requests. Type: string (or Expression with + * resultType string). + */ + paginationRules?: any; +} + /** * The on-premises SQL Server dataset. */ @@ -4969,6 +5091,28 @@ export interface SqlServerTableDataset extends Dataset { tableName: any; } +/** + * 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; +} + /** * The path of the SAP ECC OData entity. */ @@ -6092,6 +6236,28 @@ export interface SqlSource extends CopySource { storedProcedureParameters?: { [propertyName: string]: StoredProcedureParameter }; } +/** + * A copy activity Rest service source. + */ +export interface RestSource extends CopySource { + /** + * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the + * timeout to read response data. Default value: 00:01:40. Type: string (or Expression with + * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + httpRequestTimeout?: any; + /** + * The time to await before sending next page request. + */ + requestInterval?: any; +} + +/** + * A copy activity source for SAP Business Warehouse Open Hub Destination source. + */ +export interface SapOpenHubSource extends CopySource { +} + /** * A copy activity source for SAP ECC source. */ @@ -6705,6 +6871,11 @@ export interface TabularTranslator extends CopyTranslator { * (or Expression with resultType object). */ schemaMapping?: any; + /** + * The JSON Path of the Nested Array that is going to do cross-apply. Type: object (or Expression + * with resultType object). + */ + collectionReference?: any; } /** diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index 75737408b3..d66010a522 100644 --- a/lib/services/datafactoryManagement/lib/models/index.js +++ b/lib/services/datafactoryManagement/lib/models/index.js @@ -146,6 +146,8 @@ exports.AzureSearchLinkedService = require('./azureSearchLinkedService'); exports.CustomDataSourceLinkedService = require('./customDataSourceLinkedService'); exports.AmazonRedshiftLinkedService = require('./amazonRedshiftLinkedService'); exports.AmazonS3LinkedService = require('./amazonS3LinkedService'); +exports.RestServiceLinkedService = require('./restServiceLinkedService'); +exports.SapOpenHubLinkedService = require('./sapOpenHubLinkedService'); exports.SapEccLinkedService = require('./sapEccLinkedService'); exports.SapCloudForCustomerLinkedService = require('./sapCloudForCustomerLinkedService'); exports.SalesforceLinkedService = require('./salesforceLinkedService'); @@ -224,7 +226,9 @@ exports.TextFormat = require('./textFormat'); exports.HttpDataset = require('./httpDataset'); exports.AzureSearchIndexDataset = require('./azureSearchIndexDataset'); exports.WebTableDataset = require('./webTableDataset'); +exports.RestResourceDataset = require('./restResourceDataset'); exports.SqlServerTableDataset = require('./sqlServerTableDataset'); +exports.SapOpenHubTableDataset = require('./sapOpenHubTableDataset'); exports.SapEccResourceDataset = require('./sapEccResourceDataset'); exports.SapCloudForCustomerResourceDataset = require('./sapCloudForCustomerResourceDataset'); exports.SalesforceObjectDataset = require('./salesforceObjectDataset'); @@ -303,6 +307,8 @@ exports.FileSystemSource = require('./fileSystemSource'); exports.SqlDWSource = require('./sqlDWSource'); exports.StoredProcedureParameter = require('./storedProcedureParameter'); exports.SqlSource = require('./sqlSource'); +exports.RestSource = require('./restSource'); +exports.SapOpenHubSource = require('./sapOpenHubSource'); exports.SapEccSource = require('./sapEccSource'); exports.SapCloudForCustomerSource = require('./sapCloudForCustomerSource'); exports.SalesforceSource = require('./salesforceSource'); @@ -456,6 +462,8 @@ exports.discriminators = { 'LinkedService.CustomDataSource' : exports.CustomDataSourceLinkedService, 'LinkedService.AmazonRedshift' : exports.AmazonRedshiftLinkedService, 'LinkedService.AmazonS3' : exports.AmazonS3LinkedService, + 'LinkedService.RestService' : exports.RestServiceLinkedService, + 'LinkedService.SapOpenHub' : exports.SapOpenHubLinkedService, 'LinkedService.SapEcc' : exports.SapEccLinkedService, 'LinkedService.SapCloudForCustomer' : exports.SapCloudForCustomerLinkedService, 'LinkedService.Salesforce' : exports.SalesforceLinkedService, @@ -534,7 +542,9 @@ exports.discriminators = { 'Dataset.HttpFile' : exports.HttpDataset, 'Dataset.AzureSearchIndex' : exports.AzureSearchIndexDataset, 'Dataset.WebTable' : exports.WebTableDataset, + 'Dataset.RestResource' : exports.RestResourceDataset, 'Dataset.SqlServerTable' : exports.SqlServerTableDataset, + 'Dataset.SapOpenHubTable' : exports.SapOpenHubTableDataset, 'Dataset.SapEccResource' : exports.SapEccResourceDataset, 'Dataset.SapCloudForCustomerResource' : exports.SapCloudForCustomerResourceDataset, 'Dataset.SalesforceObject' : exports.SalesforceObjectDataset, @@ -605,6 +615,8 @@ exports.discriminators = { 'CopySource.FileSystemSource' : exports.FileSystemSource, 'CopySource.SqlDWSource' : exports.SqlDWSource, 'CopySource.SqlSource' : exports.SqlSource, + 'CopySource.RestSource' : exports.RestSource, + 'CopySource.SapOpenHubSource' : exports.SapOpenHubSource, 'CopySource.SapEccSource' : exports.SapEccSource, 'CopySource.SapCloudForCustomerSource' : exports.SapCloudForCustomerSource, 'CopySource.SalesforceSource' : exports.SalesforceSource, diff --git a/lib/services/datafactoryManagement/lib/models/restResourceDataset.js b/lib/services/datafactoryManagement/lib/models/restResourceDataset.js new file mode 100644 index 0000000000..e4e2ce54f9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/restResourceDataset.js @@ -0,0 +1,176 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * A Rest service dataset. + * + * @extends models['Dataset'] + */ +class RestResourceDataset extends models['Dataset'] { + /** + * Create a RestResourceDataset. + * @property {object} [relativeUrl] The relative URL to the resource that the + * RESTful API provides. Type: string (or Expression with resultType string). + * @property {object} [requestMethod] The HTTP method used to call the + * RESTful API. The default is GET. Type: string (or Expression with + * resultType string). + * @property {object} [requestBody] The HTTP request body to the RESTful API + * if requestMethod is POST. Type: string (or Expression with resultType + * string). + * @property {object} [additionalHeaders] The additional HTTP headers in the + * request to the RESTful API. Type: string (or Expression with resultType + * string). + * @property {object} [paginationRules] The pagination rules to compose next + * page requests. Type: string (or Expression with resultType string). + */ + constructor() { + super(); + } + + /** + * Defines the metadata of RestResourceDataset + * + * @returns {object} metadata of RestResourceDataset + * + */ + mapper() { + return { + required: false, + serializedName: 'RestResource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Dataset', + className: 'RestResourceDataset', + 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' + } + }, + relativeUrl: { + required: false, + serializedName: 'typeProperties.relativeUrl', + type: { + name: 'Object' + } + }, + requestMethod: { + required: false, + serializedName: 'typeProperties.requestMethod', + type: { + name: 'Object' + } + }, + requestBody: { + required: false, + serializedName: 'typeProperties.requestBody', + type: { + name: 'Object' + } + }, + additionalHeaders: { + required: false, + serializedName: 'typeProperties.additionalHeaders', + type: { + name: 'Object' + } + }, + paginationRules: { + required: false, + serializedName: 'typeProperties.paginationRules', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = RestResourceDataset; diff --git a/lib/services/datafactoryManagement/lib/models/restServiceLinkedService.js b/lib/services/datafactoryManagement/lib/models/restServiceLinkedService.js index 598eef53a0..275f472991 100644 --- a/lib/services/datafactoryManagement/lib/models/restServiceLinkedService.js +++ b/lib/services/datafactoryManagement/lib/models/restServiceLinkedService.js @@ -20,29 +20,29 @@ const models = require('./index'); class RestServiceLinkedService extends models['LinkedService'] { /** * Create a RestServiceLinkedService. - * @member {object} url The base URL of the REST service. - * @member {object} [enableServerCertificateValidation] Whether to validate + * @property {object} url The base URL of the REST service. + * @property {object} [enableServerCertificateValidation] Whether to validate * server side SSL certificate when connecting to the endpoint.The default * value is true. Type: boolean (or Expression with resultType boolean). - * @member {string} authenticationType Type of authentication used to connect - * to the REST service. Possible values include: 'Anonymous', 'Basic', - * 'AadServicePrincial', 'ManagedServiceIdentity' - * @member {object} [userName] The user name used in Basic authentication + * @property {string} authenticationType Type of authentication used to + * connect to the REST service. Possible values include: 'Anonymous', + * 'Basic', 'AadServicePrincipal', 'ManagedServiceIdentity' + * @property {object} [userName] The user name used in Basic authentication * type. - * @member {object} [password] The password used in Basic authentication + * @property {object} [password] The password used in Basic authentication * type. - * @member {string} [password.type] Polymorphic Discriminator - * @member {object} [servicePrincipalId] The application’s client ID used in + * @property {string} [password.type] Polymorphic Discriminator + * @property {object} [servicePrincipalId] The application's client ID used + * in AadServicePrincipal authentication type. + * @property {object} [servicePrincipalKey] The application's key used in * AadServicePrincipal authentication type. - * @member {object} [servicePrincipalKey] The application’s key used in - * AadServicePrincipal authentication type. - * @member {string} [servicePrincipalKey.type] Polymorphic Discriminator - * @member {object} [tenant] The tenant information (domain name or tenant + * @property {string} [servicePrincipalKey.type] Polymorphic Discriminator + * @property {object} [tenant] The tenant information (domain name or tenant * ID) used in AadServicePrincipal authentication type under which your * application resides. - * @member {object} [aadResourceId] The resource you are requesting + * @property {object} [aadResourceId] The resource you are requesting * authorization to use. - * @member {object} [encryptedCredential] The encrypted credential used for + * @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). */ diff --git a/lib/services/datafactoryManagement/lib/models/restSource.js b/lib/services/datafactoryManagement/lib/models/restSource.js new file mode 100644 index 0000000000..f9a93448e9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/restSource.js @@ -0,0 +1,96 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * A copy activity Rest service source. + * + * @extends models['CopySource'] + */ +class RestSource extends models['CopySource'] { + /** + * Create a RestSource. + * @property {object} [httpRequestTimeout] The timeout (TimeSpan) to get an + * HTTP response. It is the timeout to get a response, not the timeout to + * read response data. Default value: 00:01:40. Type: string (or Expression + * with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @property {object} [requestInterval] The time to await before sending next + * page request. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of RestSource + * + * @returns {object} metadata of RestSource + * + */ + mapper() { + return { + required: false, + serializedName: 'RestSource', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CopySource', + className: 'RestSource', + modelProperties: { + sourceRetryCount: { + required: false, + serializedName: 'sourceRetryCount', + type: { + name: 'Object' + } + }, + sourceRetryWait: { + required: false, + serializedName: 'sourceRetryWait', + type: { + name: 'Object' + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + httpRequestTimeout: { + required: false, + serializedName: 'httpRequestTimeout', + type: { + name: 'Object' + } + }, + requestInterval: { + required: false, + serializedName: 'requestInterval', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = RestSource; 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; diff --git a/lib/services/datafactoryManagement/lib/models/tabularTranslator.js b/lib/services/datafactoryManagement/lib/models/tabularTranslator.js index f9e77380d0..3fea6cf402 100644 --- a/lib/services/datafactoryManagement/lib/models/tabularTranslator.js +++ b/lib/services/datafactoryManagement/lib/models/tabularTranslator.js @@ -27,6 +27,9 @@ class TabularTranslator extends models['CopyTranslator'] { * tabular data and hierarchical data. Example: {"Column1": "$.Column1", * "Column2": "$.Column2.Property1", "Column3": "$.Column2.Property2"}. Type: * object (or Expression with resultType object). + * @property {object} [collectionReference] The JSON Path of the Nested Array + * that is going to do cross-apply. Type: object (or Expression with + * resultType object). */ constructor() { super(); @@ -72,6 +75,13 @@ class TabularTranslator extends models['CopyTranslator'] { type: { name: 'Object' } + }, + collectionReference: { + required: false, + serializedName: 'collectionReference', + type: { + name: 'Object' + } } } }