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/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 9112696be5..ad07c82752 100644 --- a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js +++ b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js @@ -31,6 +31,14 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { * @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} [executionCredential.domain] Domain for windows + * authentication. + * @property {object} [executionCredential.userName] UseName for windows + * authentication. + * @property {object} [executionCredential.password] Password for windows + * authentication. + * @property {string} [executionCredential.password.value] Value of secure + * string. * @property {object} connectVia The integration runtime reference. * @property {string} [connectVia.referenceName] Reference integration * runtime name. @@ -195,15 +203,8 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { required: false, serializedName: 'typeProperties.executionCredential', type: { - name: 'Dictionary', - value: { - required: false, - serializedName: 'SSISExecutionCredentialElementType', - type: { - name: 'Composite', - className: 'SSISExecutionCredential' - } - } + name: 'Composite', + className: 'SSISExecutionCredential' } }, connectVia: { 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..98ff340842 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/exposureControlResponse.js @@ -0,0 +1,62 @@ +/* + * 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, + readOnly: true, + serializedName: 'featureName', + type: { + name: 'String' + } + }, + value: { + required: false, + readOnly: true, + serializedName: 'value', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ExposureControlResponse; 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 58a2060580..6cc7f6e13c 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. */ @@ -1338,6 +1343,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. + */ + readonly featureName?: string; + /** + * The feature value. + */ + readonly value?: string; +} + /** * Referenced dependency. */ @@ -6321,7 +6354,7 @@ export interface ExecuteSSISPackageActivity extends ExecutionActivity { /** * The package execution credential. */ - executionCredential?: { [propertyName: string]: SSISExecutionCredential }; + executionCredential?: SSISExecutionCredential; /** * The integration runtime reference. */ @@ -6995,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. diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index 3d71da9278..b39fcd467a 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'); @@ -348,6 +350,7 @@ 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'); @@ -641,6 +644,7 @@ 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, 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/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/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/exposureControl.js b/lib/services/datafactoryManagement/lib/operations/exposureControl.js new file mode 100644 index 0000000000..ecb22e7eac --- /dev/null +++ b/lib/services/datafactoryManagement/lib/operations/exposureControl.js @@ -0,0 +1,288 @@ +/* + * 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 _getFeatureValue(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); + }); +} + +/** Class representing a ExposureControl. */ +class ExposureControl { + /** + * Create a ExposureControl. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._getFeatureValue = _getFeatureValue; + } + + /** + * 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. + */ + getFeatureValueWithHttpOperationResponse(locationId, exposureControlRequest, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getFeatureValue(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. + */ + getFeatureValue(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._getFeatureValue(locationId, exposureControlRequest, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getFeatureValue(locationId, 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..a394d6a27e 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -959,6 +959,83 @@ 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. + */ + getFeatureValueWithHttpOperationResponse(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. + */ + 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; +} + /** * @class * IntegrationRuntimes @@ -3266,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. * @@ -3324,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. * 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');