From 5d99cd70e3157507c91eedadf087f97e05328564 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sat, 22 Dec 2018 10:02:05 +0000 Subject: [PATCH 1/4] Generated from f81ef7f40910a3ecb87c8b6cce9aa7bb919344fd Add exposure control APIs. --- .../lib/dataFactoryManagementClient.d.ts | 1 + .../lib/dataFactoryManagementClient.js | 1 + .../lib/models/exposureControlRequest.js | 60 ++ .../lib/models/exposureControlResponse.js | 60 ++ .../lib/models/index.d.ts | 28 + .../datafactoryManagement/lib/models/index.js | 2 + .../lib/operations/exposureControl.js | 585 ++++++++++++++++++ .../lib/operations/index.d.ts | 149 +++++ .../lib/operations/index.js | 1 + 9 files changed, 887 insertions(+) create mode 100644 lib/services/datafactoryManagement/lib/models/exposureControlRequest.js create mode 100644 lib/services/datafactoryManagement/lib/models/exposureControlResponse.js create mode 100644 lib/services/datafactoryManagement/lib/operations/exposureControl.js diff --git a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts index 47c001b466..66b2f03941 100644 --- a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts +++ b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.d.ts @@ -58,6 +58,7 @@ export default class DataFactoryManagementClient extends AzureServiceClient { // Operation groups operations: operations.Operations; factories: operations.Factories; + exposureControl: operations.ExposureControl; integrationRuntimes: operations.IntegrationRuntimes; integrationRuntimeObjectMetadata: operations.IntegrationRuntimeObjectMetadata; integrationRuntimeNodes: operations.IntegrationRuntimeNodes; diff --git a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js index 07a3c7e228..58cfcb48c2 100644 --- a/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js +++ b/lib/services/datafactoryManagement/lib/dataFactoryManagementClient.js @@ -74,6 +74,7 @@ class DataFactoryManagementClient extends ServiceClient { } this.operations = new operations.Operations(this); this.factories = new operations.Factories(this); + this.exposureControl = new operations.ExposureControl(this); this.integrationRuntimes = new operations.IntegrationRuntimes(this); this.integrationRuntimeObjectMetadata = new operations.IntegrationRuntimeObjectMetadata(this); this.integrationRuntimeNodes = new operations.IntegrationRuntimeNodes(this); diff --git a/lib/services/datafactoryManagement/lib/models/exposureControlRequest.js b/lib/services/datafactoryManagement/lib/models/exposureControlRequest.js new file mode 100644 index 0000000000..c322977b08 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/exposureControlRequest.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 exposure control request. + * + */ +class ExposureControlRequest { + /** + * Create a ExposureControlRequest. + * @property {string} [featureName] The feature name. + * @property {string} [featureType] The feature type. + */ + constructor() { + } + + /** + * Defines the metadata of ExposureControlRequest + * + * @returns {object} metadata of ExposureControlRequest + * + */ + mapper() { + return { + required: false, + serializedName: 'ExposureControlRequest', + type: { + name: 'Composite', + className: 'ExposureControlRequest', + modelProperties: { + featureName: { + required: false, + serializedName: 'featureName', + type: { + name: 'String' + } + }, + featureType: { + required: false, + serializedName: 'featureType', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ExposureControlRequest; diff --git a/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js b/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js new file mode 100644 index 0000000000..63b1f4d136 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 exposure control response. + * + */ +class ExposureControlResponse { + /** + * Create a ExposureControlResponse. + * @property {string} [featureName] The feature name. + * @property {string} [value] The feature value. + */ + constructor() { + } + + /** + * Defines the metadata of ExposureControlResponse + * + * @returns {object} metadata of ExposureControlResponse + * + */ + mapper() { + return { + required: false, + serializedName: 'ExposureControlResponse', + type: { + name: 'Composite', + className: 'ExposureControlResponse', + modelProperties: { + featureName: { + required: false, + serializedName: 'featureName', + type: { + name: 'String' + } + }, + value: { + required: false, + serializedName: 'value', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ExposureControlResponse; diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 74aaa2b909..7ca625a480 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -1338,6 +1338,34 @@ export interface SsisObjectMetadataStatusResponse { error?: string; } +/** + * The exposure control request. + */ +export interface ExposureControlRequest { + /** + * The feature name. + */ + featureName?: string; + /** + * The feature type. + */ + featureType?: string; +} + +/** + * The exposure control response. + */ +export interface ExposureControlResponse { + /** + * The feature name. + */ + featureName?: string; + /** + * The feature value. + */ + value?: string; +} + /** * Referenced dependency. */ diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index 4791d5793b..436149de20 100644 --- a/lib/services/datafactoryManagement/lib/models/index.js +++ b/lib/services/datafactoryManagement/lib/models/index.js @@ -86,6 +86,8 @@ exports.OperationServiceSpecification = require('./operationServiceSpecification exports.Operation = require('./operation'); exports.GetSsisObjectMetadataRequest = require('./getSsisObjectMetadataRequest'); exports.SsisObjectMetadataStatusResponse = require('./ssisObjectMetadataStatusResponse'); +exports.ExposureControlRequest = require('./exposureControlRequest'); +exports.ExposureControlResponse = require('./exposureControlResponse'); exports.DependencyReference = require('./dependencyReference'); exports.SelfDependencyTumblingWindowTriggerReference = require('./selfDependencyTumblingWindowTriggerReference'); exports.TriggerReference = require('./triggerReference'); diff --git a/lib/services/datafactoryManagement/lib/operations/exposureControl.js b/lib/services/datafactoryManagement/lib/operations/exposureControl.js new file mode 100644 index 0000000000..328739521d --- /dev/null +++ b/lib/services/datafactoryManagement/lib/operations/exposureControl.js @@ -0,0 +1,585 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code 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; + +/** + * Get exposure control feature for specific location. + * + * @param {string} locationId The location identifier. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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 ExposureControlResponse} 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 _getFeature(locationId, exposureControlRequest, 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 (locationId === null || locationId === undefined || typeof locationId.valueOf() !== 'string') { + throw new Error('locationId cannot be null or undefined and it must be of type string.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (exposureControlRequest === null || exposureControlRequest === undefined) { + throw new Error('exposureControlRequest 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}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{locationId}', encodeURIComponent(locationId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (exposureControlRequest !== null && exposureControlRequest !== undefined) { + let requestModelMapper = new client.models['ExposureControlRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, exposureControlRequest, 'exposureControlRequest'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(exposureControlRequest, 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) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().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['ExposureControlResponse']().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 exposure control feature for specific data factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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 ExposureControlResponse} 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 _getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); + } + } + if (factoryName === null || factoryName === undefined || typeof factoryName.valueOf() !== 'string') { + throw new Error('factoryName cannot be null or undefined and it must be of type string.'); + } + if (factoryName !== null && factoryName !== undefined) { + if (factoryName.length > 63) + { + throw new Error('"factoryName" should satisfy the constraint - "MaxLength": 63'); + } + if (factoryName.length < 3) + { + throw new Error('"factoryName" should satisfy the constraint - "MinLength": 3'); + } + if (factoryName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"factoryName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (exposureControlRequest === null || exposureControlRequest === undefined) { + throw new Error('exposureControlRequest 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}/getFeatureValue'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (exposureControlRequest !== null && exposureControlRequest !== undefined) { + let requestModelMapper = new client.models['ExposureControlRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, exposureControlRequest, 'exposureControlRequest'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(exposureControlRequest, 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) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().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['ExposureControlResponse']().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 ExposureControl. */ +class ExposureControl { + /** + * Create a ExposureControl. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._getFeature = _getFeature; + this._getFeatureForSubscription = _getFeatureForSubscription; + } + + /** + * Get exposure control feature for specific location. + * + * @param {string} locationId The location identifier. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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. + */ + getFeatureWithHttpOperationResponse(locationId, exposureControlRequest, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getFeature(locationId, exposureControlRequest, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get exposure control feature for specific location. + * + * @param {string} locationId The location identifier. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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 {ExposureControlResponse} - 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 ExposureControlResponse} 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. + */ + getFeature(locationId, exposureControlRequest, 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._getFeature(locationId, exposureControlRequest, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getFeature(locationId, exposureControlRequest, options, optionalCallback); + } + } + + /** + * Get exposure control feature for specific data factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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. + */ + getFeatureForSubscriptionWithHttpOperationResponse(resourceGroupName, factoryName, exposureControlRequest, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get exposure control feature for specific data factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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 {ExposureControlResponse} - 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 ExposureControlResponse} 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. + */ + getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, 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._getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, optionalCallback); + } + } + +} + +module.exports = ExposureControl; diff --git a/lib/services/datafactoryManagement/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/operations/index.d.ts index cd0f1400cc..6ccc838e0d 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -959,6 +959,155 @@ export interface Factories { listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } +/** + * @class + * ExposureControl + * __NOTE__: An instance of this class is automatically created for an + * instance of the DataFactoryManagementClient. + */ +export interface ExposureControl { + + + /** + * Get exposure control feature for specific location. + * + * @param {string} locationId The location identifier. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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. + */ + getFeatureWithHttpOperationResponse(locationId: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get exposure control feature for specific location. + * + * @param {string} locationId The location identifier. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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 {ExposureControlResponse} - 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. + * + * {ExposureControlResponse} [result] - The deserialized result object if an error did not occur. + * See {@link ExposureControlResponse} 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. + */ + getFeature(locationId: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getFeature(locationId: string, exposureControlRequest: models.ExposureControlRequest, callback: ServiceCallback): void; + getFeature(locationId: string, exposureControlRequest: models.ExposureControlRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get exposure control feature for specific data factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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. + */ + getFeatureForSubscriptionWithHttpOperationResponse(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get exposure control feature for specific data factory. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} exposureControlRequest The exposure control request. + * + * @param {string} [exposureControlRequest.featureName] The feature name. + * + * @param {string} [exposureControlRequest.featureType] The feature type. + * + * @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 {ExposureControlResponse} - 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. + * + * {ExposureControlResponse} [result] - The deserialized result object if an error did not occur. + * See {@link ExposureControlResponse} 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. + */ + getFeatureForSubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getFeatureForSubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, callback: ServiceCallback): void; + getFeatureForSubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + /** * @class * IntegrationRuntimes diff --git a/lib/services/datafactoryManagement/lib/operations/index.js b/lib/services/datafactoryManagement/lib/operations/index.js index 58b7e02414..862eb91a7a 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.js +++ b/lib/services/datafactoryManagement/lib/operations/index.js @@ -16,6 +16,7 @@ exports.Operations = require('./operations'); exports.Factories = require('./factories'); +exports.ExposureControl = require('./exposureControl'); exports.IntegrationRuntimes = require('./integrationRuntimes'); exports.IntegrationRuntimeObjectMetadata = require('./integrationRuntimeObjectMetadata'); exports.IntegrationRuntimeNodes = require('./integrationRuntimeNodes'); From 1b01b6c584eb034bfb5d7fedc9a247991d3fb336 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 27 Dec 2018 02:50:02 +0000 Subject: [PATCH 2/4] Generated from 741fceb5f54f36ac55da1e93567549588c5cdb69 Resolve reivew comments --- .../lib/models/exposureControlResponse.js | 2 ++ .../datafactoryManagement/lib/models/index.d.ts | 4 ++-- .../lib/operations/exposureControl.js | 14 +++++++------- .../lib/operations/index.d.ts | 8 ++++---- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js b/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js index 63b1f4d136..98ff340842 100644 --- a/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js +++ b/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js @@ -39,6 +39,7 @@ class ExposureControlResponse { modelProperties: { featureName: { required: false, + readOnly: true, serializedName: 'featureName', type: { name: 'String' @@ -46,6 +47,7 @@ class ExposureControlResponse { }, value: { required: false, + readOnly: true, serializedName: 'value', type: { name: 'String' diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 7ca625a480..3f1a4359f4 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -1359,11 +1359,11 @@ export interface ExposureControlResponse { /** * The feature name. */ - featureName?: string; + readonly featureName?: string; /** * The feature value. */ - value?: string; + readonly value?: string; } /** diff --git a/lib/services/datafactoryManagement/lib/operations/exposureControl.js b/lib/services/datafactoryManagement/lib/operations/exposureControl.js index 328739521d..fd9ed5db18 100644 --- a/lib/services/datafactoryManagement/lib/operations/exposureControl.js +++ b/lib/services/datafactoryManagement/lib/operations/exposureControl.js @@ -209,7 +209,7 @@ function _getFeature(locationId, exposureControlRequest, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, callback) { +function _getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -383,7 +383,7 @@ class ExposureControl { constructor(client) { this.client = client; this._getFeature = _getFeature; - this._getFeatureForSubscription = _getFeatureForSubscription; + this._getFeatureBySubscription = _getFeatureBySubscription; } /** @@ -505,11 +505,11 @@ class ExposureControl { * * @reject {Error} - The error object. */ - getFeatureForSubscriptionWithHttpOperationResponse(resourceGroupName, factoryName, exposureControlRequest, options) { + getFeatureBySubscriptionWithHttpOperationResponse(resourceGroupName, factoryName, exposureControlRequest, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { + self._getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -560,7 +560,7 @@ class ExposureControl { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, optionalCallback) { + getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -569,14 +569,14 @@ class ExposureControl { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { + self._getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._getFeatureForSubscription(resourceGroupName, factoryName, exposureControlRequest, options, optionalCallback); + return self._getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, optionalCallback); } } diff --git a/lib/services/datafactoryManagement/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/operations/index.d.ts index 6ccc838e0d..a73fb45d74 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -1060,7 +1060,7 @@ export interface ExposureControl { * * @reject {Error|ServiceError} - The error object. */ - getFeatureForSubscriptionWithHttpOperationResponse(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getFeatureBySubscriptionWithHttpOperationResponse(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get exposure control feature for specific data factory. @@ -1103,9 +1103,9 @@ export interface ExposureControl { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getFeatureForSubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getFeatureForSubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, callback: ServiceCallback): void; - getFeatureForSubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getFeatureBySubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getFeatureBySubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, callback: ServiceCallback): void; + getFeatureBySubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** From bd1b785f4c2f2e90e9b5b112e203fe6c4f5f8730 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 8 Jan 2019 01:28:07 +0000 Subject: [PATCH 3/4] Generated from 0c64157708f71a189f8e9726dff0959e63440ed0 Delete API ExposureControl_GetFeatureBySubscription --- .../datafactoryManagement/LICENSE.txt | 2 +- .../lib/models/executeSSISPackageActivity.js | 22 +- .../lib/models/index.d.ts | 19 +- .../lib/models/sSISPackageLocation.js | 5 +- .../lib/operations/exposureControl.js | 311 +----------------- .../lib/operations/index.d.ts | 80 +---- 6 files changed, 38 insertions(+), 401 deletions(-) diff --git a/lib/services/datafactoryManagement/LICENSE.txt b/lib/services/datafactoryManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/datafactoryManagement/LICENSE.txt +++ b/lib/services/datafactoryManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js index c1ae10472f..37f7211be2 100644 --- a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js +++ b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js @@ -21,13 +21,15 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { /** * Create a ExecuteSSISPackageActivity. * @property {object} packageLocation SSIS package location. - * @property {string} [packageLocation.packagePath] The SSIS package path. - * @property {string} [runtime] Specifies the runtime to execute SSIS - * package. Possible values include: 'x64', 'x86' - * @property {string} [loggingLevel] The logging level of SSIS package - * execution. - * @property {string} [environmentPath] The environment path to execute the - * SSIS package. + * @property {object} [packageLocation.packagePath] The SSIS package path. + * Type: string (or Expression with resultType string). + * @property {object} [runtime] Specifies the runtime to execute SSIS + * package. The value should be "x86" or "x64". Type: string (or Expression + * with resultType string). + * @property {object} [loggingLevel] The logging level of SSIS package + * execution. Type: string (or Expression with resultType string). + * @property {object} [environmentPath] The environment path to execute the + * SSIS package. Type: string (or Expression with resultType string). * @property {object} connectVia The integration runtime reference. * @property {string} [connectVia.referenceName] Reference integration * runtime name. @@ -171,21 +173,21 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { required: false, serializedName: 'typeProperties.runtime', type: { - name: 'String' + name: 'Object' } }, loggingLevel: { required: false, serializedName: 'typeProperties.loggingLevel', type: { - name: 'String' + name: 'Object' } }, environmentPath: { required: false, serializedName: 'typeProperties.environmentPath', type: { - name: 'String' + name: 'Object' } }, connectVia: { diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 3f1a4359f4..4240f01f35 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -6300,9 +6300,9 @@ export interface SSISExecutionParameter { */ export interface SSISPackageLocation { /** - * The SSIS package path. + * The SSIS package path. Type: string (or Expression with resultType string). */ - packagePath: string; + packagePath: any; } /** @@ -6314,17 +6314,20 @@ export interface ExecuteSSISPackageActivity extends ExecutionActivity { */ packageLocation: SSISPackageLocation; /** - * Specifies the runtime to execute SSIS package. Possible values include: 'x64', 'x86' + * Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: + * string (or Expression with resultType string). */ - runtime?: string; + runtime?: any; /** - * The logging level of SSIS package execution. + * The logging level of SSIS package execution. Type: string (or Expression with resultType + * string). */ - loggingLevel?: string; + loggingLevel?: any; /** - * The environment path to execute the SSIS package. + * The environment path to execute the SSIS package. Type: string (or Expression with resultType + * string). */ - environmentPath?: string; + environmentPath?: any; /** * The integration runtime reference. */ diff --git a/lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js b/lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js index 03d330ff6b..fa4e5f9b02 100644 --- a/lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js +++ b/lib/services/datafactoryManagement/lib/models/sSISPackageLocation.js @@ -17,7 +17,8 @@ class SSISPackageLocation { /** * Create a SSISPackageLocation. - * @property {string} packagePath The SSIS package path. + * @property {object} packagePath The SSIS package path. Type: string (or + * Expression with resultType string). */ constructor() { } @@ -40,7 +41,7 @@ class SSISPackageLocation { required: true, serializedName: 'packagePath', type: { - name: 'String' + name: 'Object' } } } diff --git a/lib/services/datafactoryManagement/lib/operations/exposureControl.js b/lib/services/datafactoryManagement/lib/operations/exposureControl.js index fd9ed5db18..ecb22e7eac 100644 --- a/lib/services/datafactoryManagement/lib/operations/exposureControl.js +++ b/lib/services/datafactoryManagement/lib/operations/exposureControl.js @@ -44,7 +44,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _getFeature(locationId, exposureControlRequest, options, callback) { +function _getFeatureValue(locationId, exposureControlRequest, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -177,203 +177,6 @@ function _getFeature(locationId, exposureControlRequest, options, callback) { }); } -/** - * Get exposure control feature for specific data factory. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} factoryName The factory name. - * - * @param {object} exposureControlRequest The exposure control request. - * - * @param {string} [exposureControlRequest.featureName] The feature name. - * - * @param {string} [exposureControlRequest.featureType] The feature type. - * - * @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 ExposureControlResponse} 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 _getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - // Validate - try { - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } - if (factoryName === null || factoryName === undefined || typeof factoryName.valueOf() !== 'string') { - throw new Error('factoryName cannot be null or undefined and it must be of type string.'); - } - if (factoryName !== null && factoryName !== undefined) { - if (factoryName.length > 63) - { - throw new Error('"factoryName" should satisfy the constraint - "MaxLength": 63'); - } - if (factoryName.length < 3) - { - throw new Error('"factoryName" should satisfy the constraint - "MinLength": 3'); - } - if (factoryName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) - { - throw new Error('"factoryName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); - } - } - if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { - throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); - } - if (exposureControlRequest === null || exposureControlRequest === undefined) { - throw new Error('exposureControlRequest 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}/getFeatureValue'; - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'POST'; - httpRequest.url = requestUrl; - httpRequest.headers = {}; - // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (exposureControlRequest !== null && exposureControlRequest !== undefined) { - let requestModelMapper = new client.models['ExposureControlRequest']().mapper(); - requestModel = client.serialize(requestModelMapper, exposureControlRequest, 'exposureControlRequest'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(exposureControlRequest, 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) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['CloudError']().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['ExposureControlResponse']().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 ExposureControl. */ class ExposureControl { /** @@ -382,8 +185,7 @@ class ExposureControl { */ constructor(client) { this.client = client; - this._getFeature = _getFeature; - this._getFeatureBySubscription = _getFeatureBySubscription; + this._getFeatureValue = _getFeatureValue; } /** @@ -408,11 +210,11 @@ class ExposureControl { * * @reject {Error} - The error object. */ - getFeatureWithHttpOperationResponse(locationId, exposureControlRequest, options) { + getFeatureValueWithHttpOperationResponse(locationId, exposureControlRequest, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._getFeature(locationId, exposureControlRequest, options, (err, result, request, response) => { + self._getFeatureValue(locationId, exposureControlRequest, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -461,106 +263,7 @@ class ExposureControl { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - getFeature(locationId, exposureControlRequest, 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._getFeature(locationId, exposureControlRequest, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._getFeature(locationId, exposureControlRequest, options, optionalCallback); - } - } - - /** - * Get exposure control feature for specific data factory. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} factoryName The factory name. - * - * @param {object} exposureControlRequest The exposure control request. - * - * @param {string} [exposureControlRequest.featureName] The feature name. - * - * @param {string} [exposureControlRequest.featureType] The feature type. - * - * @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. - */ - getFeatureBySubscriptionWithHttpOperationResponse(resourceGroupName, factoryName, exposureControlRequest, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * Get exposure control feature for specific data factory. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} factoryName The factory name. - * - * @param {object} exposureControlRequest The exposure control request. - * - * @param {string} [exposureControlRequest.featureName] The feature name. - * - * @param {string} [exposureControlRequest.featureType] The feature type. - * - * @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 {ExposureControlResponse} - 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 ExposureControlResponse} 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. - */ - getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, optionalCallback) { + getFeatureValue(locationId, exposureControlRequest, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -569,14 +272,14 @@ class ExposureControl { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, (err, result, request, response) => { + self._getFeatureValue(locationId, exposureControlRequest, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._getFeatureBySubscription(resourceGroupName, factoryName, exposureControlRequest, options, optionalCallback); + return self._getFeatureValue(locationId, exposureControlRequest, options, optionalCallback); } } diff --git a/lib/services/datafactoryManagement/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/operations/index.d.ts index a73fb45d74..29fd660eb8 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -990,7 +990,7 @@ export interface ExposureControl { * * @reject {Error|ServiceError} - The error object. */ - getFeatureWithHttpOperationResponse(locationId: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getFeatureValueWithHttpOperationResponse(locationId: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get exposure control feature for specific location. @@ -1031,81 +1031,9 @@ export interface ExposureControl { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getFeature(locationId: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getFeature(locationId: string, exposureControlRequest: models.ExposureControlRequest, callback: ServiceCallback): void; - getFeature(locationId: string, exposureControlRequest: models.ExposureControlRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Get exposure control feature for specific data factory. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} factoryName The factory name. - * - * @param {object} exposureControlRequest The exposure control request. - * - * @param {string} [exposureControlRequest.featureName] The feature name. - * - * @param {string} [exposureControlRequest.featureType] The feature type. - * - * @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. - */ - getFeatureBySubscriptionWithHttpOperationResponse(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Get exposure control feature for specific data factory. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} factoryName The factory name. - * - * @param {object} exposureControlRequest The exposure control request. - * - * @param {string} [exposureControlRequest.featureName] The feature name. - * - * @param {string} [exposureControlRequest.featureType] The feature type. - * - * @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 {ExposureControlResponse} - 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. - * - * {ExposureControlResponse} [result] - The deserialized result object if an error did not occur. - * See {@link ExposureControlResponse} 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. - */ - getFeatureBySubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getFeatureBySubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, callback: ServiceCallback): void; - getFeatureBySubscription(resourceGroupName: string, factoryName: string, exposureControlRequest: models.ExposureControlRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getFeatureValue(locationId: string, exposureControlRequest: models.ExposureControlRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getFeatureValue(locationId: string, exposureControlRequest: models.ExposureControlRequest, callback: ServiceCallback): void; + getFeatureValue(locationId: string, exposureControlRequest: models.ExposureControlRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** From 4f217fca56f9313608bbb674270cf95fbfec3dd2 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 15:41:24 +0000 Subject: [PATCH 4/4] Generated from 32f235ca299351d02b27f0546cb1f06d02125b63 Resolve review comments --- .../lib/models/amazonMWSObjectDataset.js | 7 + .../lib/models/amazonS3Dataset.js | 7 + .../lib/models/azureBlobDataset.js | 7 + .../lib/models/azureDataLakeStoreDataset.js | 7 + .../lib/models/azureMySqlTableDataset.js | 7 + .../lib/models/azurePostgreSqlTableDataset.js | 7 + .../lib/models/azureSearchIndexDataset.js | 7 + .../lib/models/azureSqlDWTableDataset.js | 7 + .../lib/models/azureSqlTableDataset.js | 7 + .../lib/models/azureTableDataset.js | 7 + .../lib/models/cassandraTableDataset.js | 7 + .../lib/models/concurObjectDataset.js | 7 + .../lib/models/couchbaseTableDataset.js | 7 + .../lib/models/customDataset.js | 7 + .../lib/models/dataset.js | 10 + .../lib/models/datasetResource.js | 3 + .../lib/models/documentDbCollectionDataset.js | 7 + .../lib/models/drillTableDataset.js | 7 + .../lib/models/dynamicsEntityDataset.js | 7 + .../lib/models/eloquaObjectDataset.js | 7 + .../lib/models/executeSSISPackageActivity.js | 16 ++ .../lib/models/fileShareDataset.js | 7 + .../lib/models/googleBigQueryObjectDataset.js | 7 + .../lib/models/greenplumTableDataset.js | 7 + .../lib/models/hBaseObjectDataset.js | 7 + .../lib/models/hiveObjectDataset.js | 7 + .../lib/models/httpDataset.js | 7 + .../lib/models/hubspotObjectDataset.js | 7 + .../lib/models/impalaObjectDataset.js | 7 + .../lib/models/index.d.ts | 88 ++++++++ .../datafactoryManagement/lib/models/index.js | 5 + .../lib/models/jiraObjectDataset.js | 7 + .../lib/models/magentoObjectDataset.js | 7 + .../lib/models/mariaDBTableDataset.js | 7 + .../lib/models/marketoObjectDataset.js | 7 + .../lib/models/mongoDbCollectionDataset.js | 7 + .../lib/models/netezzaTableDataset.js | 7 + .../lib/models/oDataResourceDataset.js | 7 + .../lib/models/oracleTableDataset.js | 7 + .../lib/models/paypalObjectDataset.js | 7 + .../lib/models/phoenixObjectDataset.js | 7 + .../lib/models/prestoObjectDataset.js | 7 + .../lib/models/quickBooksObjectDataset.js | 7 + .../lib/models/relationalTableDataset.js | 7 + .../lib/models/responsysObjectDataset.js | 7 + .../lib/models/sSISExecutionCredential.js | 75 +++++++ .../salesforceMarketingCloudObjectDataset.js | 7 + .../lib/models/salesforceObjectDataset.js | 7 + .../sapCloudForCustomerResourceDataset.js | 7 + .../lib/models/sapEccResourceDataset.js | 7 + .../lib/models/serviceNowObjectDataset.js | 7 + .../lib/models/shopifyObjectDataset.js | 7 + .../lib/models/sparkObjectDataset.js | 7 + .../lib/models/sqlServerTableDataset.js | 7 + .../lib/models/squareObjectDataset.js | 7 + .../lib/models/validationActivity.js | 163 +++++++++++++++ .../lib/models/verticaTableDataset.js | 7 + .../lib/models/webHookActivity.js | 190 ++++++++++++++++++ .../lib/models/webTableDataset.js | 7 + .../lib/models/xeroObjectDataset.js | 7 + .../lib/models/zohoObjectDataset.js | 7 + .../lib/operations/datasets.js | 12 ++ .../lib/operations/index.d.ts | 8 + 63 files changed, 941 insertions(+) create mode 100644 lib/services/datafactoryManagement/lib/models/sSISExecutionCredential.js create mode 100644 lib/services/datafactoryManagement/lib/models/validationActivity.js create mode 100644 lib/services/datafactoryManagement/lib/models/webHookActivity.js diff --git a/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js b/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js index c0189cf2e0..4c45ccc495 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/amazonMWSObjectDataset.js @@ -60,6 +60,13 @@ class AmazonMWSObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js b/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js index 41fdc0e476..6157521d88 100644 --- a/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js +++ b/lib/services/datafactoryManagement/lib/models/amazonS3Dataset.js @@ -75,6 +75,13 @@ class AmazonS3Dataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js b/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js index a65543fc36..cb598b72cf 100644 --- a/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureBlobDataset.js @@ -73,6 +73,13 @@ class AzureBlobDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js index 0af387c20e..caee94925a 100644 --- a/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureDataLakeStoreDataset.js @@ -71,6 +71,13 @@ class AzureDataLakeStoreDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js index 3ee67a76c8..4169b838ae 100644 --- a/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureMySqlTableDataset.js @@ -60,6 +60,13 @@ class AzureMySqlTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js index ddf5a97b7d..cabc03277e 100644 --- a/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azurePostgreSqlTableDataset.js @@ -60,6 +60,13 @@ class AzurePostgreSqlTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js b/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js index d80e46a97f..a021b622f8 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureSearchIndexDataset.js @@ -60,6 +60,13 @@ class AzureSearchIndexDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js index 4e8c03a32c..84118c61cc 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureSqlDWTableDataset.js @@ -60,6 +60,13 @@ class AzureSqlDWTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js index de3f05edc1..d74c48ecf7 100644 --- a/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureSqlTableDataset.js @@ -60,6 +60,13 @@ class AzureSqlTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/azureTableDataset.js b/lib/services/datafactoryManagement/lib/models/azureTableDataset.js index b305c1eac3..31201fa93d 100644 --- a/lib/services/datafactoryManagement/lib/models/azureTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/azureTableDataset.js @@ -60,6 +60,13 @@ class AzureTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js b/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js index 443688630c..a5299e9b16 100644 --- a/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/cassandraTableDataset.js @@ -62,6 +62,13 @@ class CassandraTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js b/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js index 3495c93548..519120efb8 100644 --- a/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/concurObjectDataset.js @@ -60,6 +60,13 @@ class ConcurObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js b/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js index 9eb10bee0d..b25f876891 100644 --- a/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/couchbaseTableDataset.js @@ -60,6 +60,13 @@ class CouchbaseTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/customDataset.js b/lib/services/datafactoryManagement/lib/models/customDataset.js index 1eed3198e8..8df0d1452b 100644 --- a/lib/services/datafactoryManagement/lib/models/customDataset.js +++ b/lib/services/datafactoryManagement/lib/models/customDataset.js @@ -59,6 +59,13 @@ class CustomDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/dataset.js b/lib/services/datafactoryManagement/lib/models/dataset.js index 6aaa564dec..63b8433fa4 100644 --- a/lib/services/datafactoryManagement/lib/models/dataset.js +++ b/lib/services/datafactoryManagement/lib/models/dataset.js @@ -22,6 +22,9 @@ class Dataset { * @property {object} [structure] Columns that define the structure of the * dataset. Type: array (or Expression with resultType array), itemType: * DatasetDataElement. + * @property {object} [schema] Columns that define the physical type schema + * of the dataset. Type: array (or Expression with resultType array), + * itemType: DatasetSchemaDataElement. * @property {object} linkedServiceName Linked service reference. * @property {string} [linkedServiceName.referenceName] Reference * LinkedService name. @@ -84,6 +87,13 @@ class Dataset { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/datasetResource.js b/lib/services/datafactoryManagement/lib/models/datasetResource.js index f0e4684369..67c2022994 100644 --- a/lib/services/datafactoryManagement/lib/models/datasetResource.js +++ b/lib/services/datafactoryManagement/lib/models/datasetResource.js @@ -25,6 +25,9 @@ class DatasetResource extends models['SubResource'] { * @property {object} [properties.structure] Columns that define the * structure of the dataset. Type: array (or Expression with resultType * array), itemType: DatasetDataElement. + * @property {object} [properties.schema] Columns that define the physical + * type schema of the dataset. Type: array (or Expression with resultType + * array), itemType: DatasetSchemaDataElement. * @property {object} [properties.linkedServiceName] Linked service * reference. * @property {string} [properties.linkedServiceName.referenceName] Reference diff --git a/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js b/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js index 338471e355..1f10c50f41 100644 --- a/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js +++ b/lib/services/datafactoryManagement/lib/models/documentDbCollectionDataset.js @@ -60,6 +60,13 @@ class DocumentDbCollectionDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/drillTableDataset.js b/lib/services/datafactoryManagement/lib/models/drillTableDataset.js index eee329fd41..7e209ef697 100644 --- a/lib/services/datafactoryManagement/lib/models/drillTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/drillTableDataset.js @@ -60,6 +60,13 @@ class DrillTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js b/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js index d25ec57b78..3bd9b8fa89 100644 --- a/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js +++ b/lib/services/datafactoryManagement/lib/models/dynamicsEntityDataset.js @@ -60,6 +60,13 @@ class DynamicsEntityDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js b/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js index 01f7f5dbc6..4182bd0d18 100644 --- a/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/eloquaObjectDataset.js @@ -60,6 +60,13 @@ class EloquaObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js index 37f7211be2..9112696be5 100644 --- a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js +++ b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js @@ -30,6 +30,7 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { * execution. Type: string (or Expression with resultType string). * @property {object} [environmentPath] The environment path to execute the * SSIS package. Type: string (or Expression with resultType string). + * @property {object} [executionCredential] The package execution credential. * @property {object} connectVia The integration runtime reference. * @property {string} [connectVia.referenceName] Reference integration * runtime name. @@ -190,6 +191,21 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { name: 'Object' } }, + executionCredential: { + required: false, + serializedName: 'typeProperties.executionCredential', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'SSISExecutionCredentialElementType', + type: { + name: 'Composite', + className: 'SSISExecutionCredential' + } + } + } + }, connectVia: { required: true, serializedName: 'typeProperties.connectVia', diff --git a/lib/services/datafactoryManagement/lib/models/fileShareDataset.js b/lib/services/datafactoryManagement/lib/models/fileShareDataset.js index 060c68d204..22cdfca20d 100644 --- a/lib/services/datafactoryManagement/lib/models/fileShareDataset.js +++ b/lib/services/datafactoryManagement/lib/models/fileShareDataset.js @@ -74,6 +74,13 @@ class FileShareDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js b/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js index 345f675d5b..1bd3a98919 100644 --- a/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/googleBigQueryObjectDataset.js @@ -60,6 +60,13 @@ class GoogleBigQueryObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js b/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js index de2eacaab4..f1a2d2e206 100644 --- a/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/greenplumTableDataset.js @@ -60,6 +60,13 @@ class GreenplumTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js b/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js index ed9635e7a7..3cc35f2fec 100644 --- a/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/hBaseObjectDataset.js @@ -60,6 +60,13 @@ class HBaseObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js b/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js index 3c853fc33b..04ec0051f0 100644 --- a/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/hiveObjectDataset.js @@ -60,6 +60,13 @@ class HiveObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/httpDataset.js b/lib/services/datafactoryManagement/lib/models/httpDataset.js index 8a7d2483fb..859b6e881e 100644 --- a/lib/services/datafactoryManagement/lib/models/httpDataset.js +++ b/lib/services/datafactoryManagement/lib/models/httpDataset.js @@ -79,6 +79,13 @@ class HttpDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js b/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js index fee7b7ee7a..5a7d4ff7a1 100644 --- a/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/hubspotObjectDataset.js @@ -60,6 +60,13 @@ class HubspotObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js b/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js index 041f0210a6..e8be0ff649 100644 --- a/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/impalaObjectDataset.js @@ -60,6 +60,13 @@ class ImpalaObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 4240f01f35..774efa5d11 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -438,6 +438,11 @@ export interface Dataset { * array), itemType: DatasetDataElement. */ structure?: any; + /** + * Columns that define the physical type schema of the dataset. Type: array (or Expression with + * resultType array), itemType: DatasetSchemaDataElement. + */ + schema?: any; /** * Linked service reference. */ @@ -6295,6 +6300,24 @@ export interface SSISExecutionParameter { value: any; } +/** + * SSIS package execution credential. + */ +export interface SSISExecutionCredential { + /** + * Domain for windows authentication. + */ + domain: any; + /** + * UseName for windows authentication. + */ + userName: any; + /** + * Password for windows authentication. + */ + password: SecureString; +} + /** * SSIS package location. */ @@ -6328,6 +6351,10 @@ export interface ExecuteSSISPackageActivity extends ExecutionActivity { * string). */ environmentPath?: any; + /** + * The package execution credential. + */ + executionCredential?: { [propertyName: string]: SSISExecutionCredential }; /** * The integration runtime reference. */ @@ -7001,6 +7028,34 @@ export interface FilterActivity extends ControlActivity { condition: Expression; } +/** + * This activity blocks execution until a file has been validated to exist, with an optional + * minimum size, or the timeout is reached, whichever is earlier. + */ +export interface ValidationActivity extends ControlActivity { + /** + * Specifies the timeout for the activity to run. If there is no value specified, it takes the + * value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with + * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: + * string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + timeout?: any; + /** + * A delay in seconds between validation attempts. If no value is specified, 10 seconds will be + * used as the default. + */ + sleep?: number; + /** + * Minimum size of a file in byte. If no value is specified, 0 byte will be used as the default. + */ + minimumSize?: number; + /** + * Validation activity dataset reference. + */ + dataset: DatasetReference; +} + /** * This activity executes inner activities until the specified boolean expression results to true * or timeout is reached, whichever is earlier. @@ -7081,6 +7136,39 @@ export interface IfConditionActivity extends ControlActivity { ifFalseActivities?: Activity[]; } +/** + * WebHook activity. + */ +export interface WebHookActivity extends ControlActivity { + /** + * WebHook activity target endpoint and path. Type: string (or Expression with resultType + * string). + */ + url: any; + /** + * Specifies the timeout within which the webhook should be called back. If there is no value + * specified, it takes the value of TimeSpan.FromMinutes(10) which is 10 minutes as default. + * Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + timeout?: any; + /** + * Represents the headers that will be sent to the request. For example, to set the language and + * type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": + * "application/json" }. Type: string (or Expression with resultType string). + */ + headers?: any; + /** + * Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not + * allowed for GET method Type: string (or Expression with resultType string). + */ + body?: any; + /** + * Authentication method used for calling the endpoint. + */ + authentication?: WebActivityAuthentication; +} + /** * Execute pipeline activity. */ diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index 436149de20..b39fcd467a 100644 --- a/lib/services/datafactoryManagement/lib/models/index.js +++ b/lib/services/datafactoryManagement/lib/models/index.js @@ -317,6 +317,7 @@ exports.CustomActivityReferenceObject = require('./customActivityReferenceObject exports.CustomActivity = require('./customActivity'); exports.SSISPropertyOverride = require('./sSISPropertyOverride'); exports.SSISExecutionParameter = require('./sSISExecutionParameter'); +exports.SSISExecutionCredential = require('./sSISExecutionCredential'); exports.SSISPackageLocation = require('./sSISPackageLocation'); exports.ExecuteSSISPackageActivity = require('./executeSSISPackageActivity'); exports.HDInsightSparkActivity = require('./hDInsightSparkActivity'); @@ -349,10 +350,12 @@ exports.ControlActivity = require('./controlActivity'); exports.AppendVariableActivity = require('./appendVariableActivity'); exports.SetVariableActivity = require('./setVariableActivity'); exports.FilterActivity = require('./filterActivity'); +exports.ValidationActivity = require('./validationActivity'); exports.UntilActivity = require('./untilActivity'); exports.WaitActivity = require('./waitActivity'); exports.ForEachActivity = require('./forEachActivity'); exports.IfConditionActivity = require('./ifConditionActivity'); +exports.WebHookActivity = require('./webHookActivity'); exports.ExecutePipelineActivity = require('./executePipelineActivity'); exports.LinkedIntegrationRuntime = require('./linkedIntegrationRuntime'); exports.SelfHostedIntegrationRuntimeNode = require('./selfHostedIntegrationRuntimeNode'); @@ -641,10 +644,12 @@ exports.discriminators = { 'Activity.AppendVariable' : exports.AppendVariableActivity, 'Activity.SetVariable' : exports.SetVariableActivity, 'Activity.Filter' : exports.FilterActivity, + 'Activity.Validation' : exports.ValidationActivity, 'Activity.Until' : exports.UntilActivity, 'Activity.Wait' : exports.WaitActivity, 'Activity.ForEach' : exports.ForEachActivity, 'Activity.IfCondition' : exports.IfConditionActivity, + 'Activity.WebHook' : exports.WebHookActivity, 'Activity.ExecutePipeline' : exports.ExecutePipelineActivity, 'Activity.Container' : exports.ControlActivity, 'IntegrationRuntimeStatus.SelfHosted' : exports.SelfHostedIntegrationRuntimeStatus, diff --git a/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js b/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js index d88e783307..3601d157c9 100644 --- a/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/jiraObjectDataset.js @@ -60,6 +60,13 @@ class JiraObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js index 3d915682a4..206035747a 100644 --- a/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/magentoObjectDataset.js @@ -60,6 +60,13 @@ class MagentoObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js b/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js index 27b8b79538..eec6f6f2f0 100644 --- a/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/mariaDBTableDataset.js @@ -60,6 +60,13 @@ class MariaDBTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js index 2573d5976a..b27da08269 100644 --- a/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/marketoObjectDataset.js @@ -60,6 +60,13 @@ class MarketoObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js b/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js index 5deca5d3e7..b02370a8ba 100644 --- a/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js +++ b/lib/services/datafactoryManagement/lib/models/mongoDbCollectionDataset.js @@ -60,6 +60,13 @@ class MongoDbCollectionDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js b/lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js index 6b8ef3cf36..6f663ffea5 100644 --- a/lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/netezzaTableDataset.js @@ -60,6 +60,13 @@ class NetezzaTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js b/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js index 49c552c285..b05a2b38c7 100644 --- a/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js +++ b/lib/services/datafactoryManagement/lib/models/oDataResourceDataset.js @@ -60,6 +60,13 @@ class ODataResourceDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js b/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js index 7ea98972cf..e024660f8c 100644 --- a/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/oracleTableDataset.js @@ -60,6 +60,13 @@ class OracleTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js b/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js index 500975f7af..04f11860c9 100644 --- a/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/paypalObjectDataset.js @@ -60,6 +60,13 @@ class PaypalObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js b/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js index 4bcae4f6c7..07cc7926b9 100644 --- a/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/phoenixObjectDataset.js @@ -60,6 +60,13 @@ class PhoenixObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js index 76bc6cdb1a..59b7f8291b 100644 --- a/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/prestoObjectDataset.js @@ -60,6 +60,13 @@ class PrestoObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js b/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js index 11e8527dbf..e2e7308c2e 100644 --- a/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/quickBooksObjectDataset.js @@ -60,6 +60,13 @@ class QuickBooksObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js b/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js index c5ac873491..e71cc6a769 100644 --- a/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/relationalTableDataset.js @@ -60,6 +60,13 @@ class RelationalTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js b/lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js index 5f7706c341..9086de73d9 100644 --- a/lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/responsysObjectDataset.js @@ -60,6 +60,13 @@ class ResponsysObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/sSISExecutionCredential.js b/lib/services/datafactoryManagement/lib/models/sSISExecutionCredential.js new file mode 100644 index 0000000000..67eb71c840 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sSISExecutionCredential.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * SSIS package execution credential. + * + */ +class SSISExecutionCredential { + /** + * Create a SSISExecutionCredential. + * @property {object} domain Domain for windows authentication. + * @property {object} userName UseName for windows authentication. + * @property {object} password Password for windows authentication. + * @property {string} [password.value] Value of secure string. + */ + constructor() { + } + + /** + * Defines the metadata of SSISExecutionCredential + * + * @returns {object} metadata of SSISExecutionCredential + * + */ + mapper() { + return { + required: false, + serializedName: 'SSISExecutionCredential', + type: { + name: 'Composite', + className: 'SSISExecutionCredential', + modelProperties: { + domain: { + required: true, + serializedName: 'domain', + type: { + name: 'Object' + } + }, + userName: { + required: true, + serializedName: 'userName', + type: { + name: 'Object' + } + }, + password: { + required: true, + serializedName: 'password', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'SecretBase', + className: 'SecureString' + } + } + } + } + }; + } +} + +module.exports = SSISExecutionCredential; diff --git a/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js index f36d3748cd..6b7b3f8cd8 100644 --- a/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/salesforceMarketingCloudObjectDataset.js @@ -60,6 +60,13 @@ class SalesforceMarketingCloudObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js b/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js index 3a6a16b04e..7c804c25fb 100644 --- a/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/salesforceObjectDataset.js @@ -60,6 +60,13 @@ class SalesforceObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js index 6038f05726..52f79f698c 100644 --- a/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js +++ b/lib/services/datafactoryManagement/lib/models/sapCloudForCustomerResourceDataset.js @@ -60,6 +60,13 @@ class SapCloudForCustomerResourceDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js b/lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js index 7de41f4f97..ecd44af432 100644 --- a/lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js +++ b/lib/services/datafactoryManagement/lib/models/sapEccResourceDataset.js @@ -60,6 +60,13 @@ class SapEccResourceDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js b/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js index 178b7ebc62..d81ee09d26 100644 --- a/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/serviceNowObjectDataset.js @@ -60,6 +60,13 @@ class ServiceNowObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js b/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js index 6984b6bc9b..a90202fc36 100644 --- a/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/shopifyObjectDataset.js @@ -60,6 +60,13 @@ class ShopifyObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js b/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js index 23d9ae386b..8a21f26879 100644 --- a/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/sparkObjectDataset.js @@ -60,6 +60,13 @@ class SparkObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js b/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js index 9959ee2b55..82d10cd390 100644 --- a/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/sqlServerTableDataset.js @@ -60,6 +60,13 @@ class SqlServerTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js b/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js index 8b1f0d88d2..7b209e1e00 100644 --- a/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/squareObjectDataset.js @@ -60,6 +60,13 @@ class SquareObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/validationActivity.js b/lib/services/datafactoryManagement/lib/models/validationActivity.js new file mode 100644 index 0000000000..f37e8cd4f5 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/validationActivity.js @@ -0,0 +1,163 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * This activity blocks execution until a file has been validated to exist, + * with an optional minimum size, or the timeout is reached, whichever is + * earlier. + * + * @extends models['ControlActivity'] + */ +class ValidationActivity extends models['ControlActivity'] { + /** + * Create a ValidationActivity. + * @property {object} [timeout] Specifies the timeout for the activity to + * run. If there is no value specified, it takes the value of + * TimeSpan.FromDays(7) which is 1 week as default. Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @property {number} [sleep] A delay in seconds between validation attempts. + * If no value is specified, 10 seconds will be used as the default. + * @property {number} [minimumSize] Minimum size of a file in byte. If no + * value is specified, 0 byte will be used as the default. + * @property {object} dataset Validation activity dataset reference. + * @property {string} [dataset.referenceName] Reference dataset name. + * @property {object} [dataset.parameters] Arguments for dataset. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ValidationActivity + * + * @returns {object} metadata of ValidationActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'Validation', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'ValidationActivity', + 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' + } + } + } + }, + userProperties: { + required: false, + serializedName: 'userProperties', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'UserPropertyElementType', + type: { + name: 'Composite', + className: 'UserProperty' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + timeout: { + required: false, + serializedName: 'typeProperties.timeout', + type: { + name: 'Object' + } + }, + sleep: { + required: false, + serializedName: 'typeProperties.sleep', + type: { + name: 'Number' + } + }, + minimumSize: { + required: false, + serializedName: 'typeProperties.minimumSize', + type: { + name: 'Number' + } + }, + dataset: { + required: true, + serializedName: 'typeProperties.dataset', + defaultValue: {}, + type: { + name: 'Composite', + className: 'DatasetReference' + } + } + } + } + }; + } +} + +module.exports = ValidationActivity; diff --git a/lib/services/datafactoryManagement/lib/models/verticaTableDataset.js b/lib/services/datafactoryManagement/lib/models/verticaTableDataset.js index 10e47dd79e..4a48e6310e 100644 --- a/lib/services/datafactoryManagement/lib/models/verticaTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/verticaTableDataset.js @@ -60,6 +60,13 @@ class VerticaTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/webHookActivity.js b/lib/services/datafactoryManagement/lib/models/webHookActivity.js new file mode 100644 index 0000000000..2723ec00e6 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/webHookActivity.js @@ -0,0 +1,190 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * WebHook activity. + * + * @extends models['ControlActivity'] + */ +class WebHookActivity extends models['ControlActivity'] { + /** + * Create a WebHookActivity. + * @property {object} url WebHook activity target endpoint and path. Type: + * string (or Expression with resultType string). + * @property {object} [timeout] Specifies the timeout within which the + * webhook should be called back. If there is no value specified, it takes + * the value of TimeSpan.FromMinutes(10) which is 10 minutes as default. + * Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * @property {object} [headers] Represents the headers that will be sent to + * the request. For example, to set the language and type on a request: + * "headers" : { "Accept-Language": "en-us", "Content-Type": + * "application/json" }. Type: string (or Expression with resultType string). + * @property {object} [body] Represents the payload that will be sent to the + * endpoint. Required for POST/PUT method, not allowed for GET method Type: + * string (or Expression with resultType string). + * @property {object} [authentication] Authentication method used for calling + * the endpoint. + * @property {string} [authentication.type] Web activity authentication + * (Basic/ClientCertificate/MSI) + * @property {object} [authentication.pfx] Base64-encoded contents of a PFX + * file. + * @property {string} [authentication.pfx.value] Value of secure string. + * @property {string} [authentication.username] Web activity authentication + * user name for basic authentication. + * @property {object} [authentication.password] Password for the PFX file or + * basic authentication. + * @property {string} [authentication.password.value] Value of secure string. + * @property {string} [authentication.resource] Resource for which Azure Auth + * token will be requested when using MSI Authentication. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WebHookActivity + * + * @returns {object} metadata of WebHookActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'WebHook', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'WebHookActivity', + 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' + } + } + } + }, + userProperties: { + required: false, + serializedName: 'userProperties', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'UserPropertyElementType', + type: { + name: 'Composite', + className: 'UserProperty' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + method: { + required: true, + isConstant: true, + serializedName: 'typeProperties.method', + defaultValue: 'POST', + type: { + name: 'String' + } + }, + url: { + required: true, + serializedName: 'typeProperties.url', + type: { + name: 'Object' + } + }, + timeout: { + required: false, + serializedName: 'typeProperties.timeout', + type: { + name: 'Object' + } + }, + headers: { + required: false, + serializedName: 'typeProperties.headers', + type: { + name: 'Object' + } + }, + body: { + required: false, + serializedName: 'typeProperties.body', + type: { + name: 'Object' + } + }, + authentication: { + required: false, + serializedName: 'typeProperties.authentication', + type: { + name: 'Composite', + className: 'WebActivityAuthentication' + } + } + } + } + }; + } +} + +module.exports = WebHookActivity; diff --git a/lib/services/datafactoryManagement/lib/models/webTableDataset.js b/lib/services/datafactoryManagement/lib/models/webTableDataset.js index 216e1773ae..e25ca1fa4c 100644 --- a/lib/services/datafactoryManagement/lib/models/webTableDataset.js +++ b/lib/services/datafactoryManagement/lib/models/webTableDataset.js @@ -62,6 +62,13 @@ class WebTableDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js b/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js index 9580f737c6..337e12112a 100644 --- a/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/xeroObjectDataset.js @@ -60,6 +60,13 @@ class XeroObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js b/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js index a60a66e2e7..f90ff04cc6 100644 --- a/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js +++ b/lib/services/datafactoryManagement/lib/models/zohoObjectDataset.js @@ -60,6 +60,13 @@ class ZohoObjectDataset extends models['Dataset'] { name: 'Object' } }, + schema: { + required: false, + serializedName: 'schema', + type: { + name: 'Object' + } + }, linkedServiceName: { required: true, serializedName: 'linkedServiceName', diff --git a/lib/services/datafactoryManagement/lib/operations/datasets.js b/lib/services/datafactoryManagement/lib/operations/datasets.js index e8a3aa2fc0..f16f8c93d8 100644 --- a/lib/services/datafactoryManagement/lib/operations/datasets.js +++ b/lib/services/datafactoryManagement/lib/operations/datasets.js @@ -206,6 +206,10 @@ function _listByFactory(resourceGroupName, factoryName, options, callback) { * structure of the dataset. Type: array (or Expression with resultType array), * itemType: DatasetDataElement. * + * @param {object} [dataset.properties.schema] Columns that define the physical + * type schema of the dataset. Type: array (or Expression with resultType + * array), itemType: DatasetSchemaDataElement. + * * @param {object} dataset.properties.linkedServiceName Linked service * reference. * @@ -1070,6 +1074,10 @@ class Datasets { * structure of the dataset. Type: array (or Expression with resultType array), * itemType: DatasetDataElement. * + * @param {object} [dataset.properties.schema] Columns that define the physical + * type schema of the dataset. Type: array (or Expression with resultType + * array), itemType: DatasetSchemaDataElement. + * * @param {object} dataset.properties.linkedServiceName Linked service * reference. * @@ -1140,6 +1148,10 @@ class Datasets { * structure of the dataset. Type: array (or Expression with resultType array), * itemType: DatasetDataElement. * + * @param {object} [dataset.properties.schema] Columns that define the physical + * type schema of the dataset. Type: array (or Expression with resultType + * array), itemType: DatasetSchemaDataElement. + * * @param {object} dataset.properties.linkedServiceName Linked service * reference. * diff --git a/lib/services/datafactoryManagement/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/operations/index.d.ts index 29fd660eb8..a394d6a27e 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -3343,6 +3343,10 @@ export interface Datasets { * structure of the dataset. Type: array (or Expression with resultType array), * itemType: DatasetDataElement. * + * @param {object} [dataset.properties.schema] Columns that define the physical + * type schema of the dataset. Type: array (or Expression with resultType + * array), itemType: DatasetSchemaDataElement. + * * @param {object} dataset.properties.linkedServiceName Linked service * reference. * @@ -3401,6 +3405,10 @@ export interface Datasets { * structure of the dataset. Type: array (or Expression with resultType array), * itemType: DatasetDataElement. * + * @param {object} [dataset.properties.schema] Columns that define the physical + * type schema of the dataset. Type: array (or Expression with resultType + * array), itemType: DatasetSchemaDataElement. + * * @param {object} dataset.properties.linkedServiceName Linked service * reference. *