diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java index 78a33ff50284..f478f944db5a 100644 --- a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java @@ -51,6 +51,7 @@ @JsonSubTypes.Type(name = "JsonSource", value = JsonSource.class), @JsonSubTypes.Type(name = "DelimitedTextSource", value = DelimitedTextSource.class), @JsonSubTypes.Type(name = "ParquetSource", value = ParquetSource.class), + @JsonSubTypes.Type(name = "ExcelSource", value = ExcelSource.class), @JsonSubTypes.Type(name = "AvroSource", value = AvroSource.class) }) public class CopySource { diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExcelDataset.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExcelDataset.java new file mode 100644 index 000000000000..72370de48662 --- /dev/null +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExcelDataset.java @@ -0,0 +1,186 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Excel dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = ExcelDataset.class) +@JsonTypeName("Excel") +@JsonFlatten +public class ExcelDataset extends DatasetInner { + /** + * The location of the excel storage. + */ + @JsonProperty(value = "typeProperties.location", required = true) + private DatasetLocation location; + + /** + * The sheet of excel file. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.sheetName", required = true) + private Object sheetName; + + /** + * The partial data of one sheet. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.range") + private Object range; + + /** + * When used as input, treat the first row of data as headers. When used as + * output,write the headers into the output as the first row of data. The + * default value is false. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.firstRowAsHeader") + private Object firstRowAsHeader; + + /** + * The data compression method used for the json dataset. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; + + /** + * The null value string. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.nullValue") + private Object nullValue; + + /** + * Get the location of the excel storage. + * + * @return the location value + */ + public DatasetLocation location() { + return this.location; + } + + /** + * Set the location of the excel storage. + * + * @param location the location value to set + * @return the ExcelDataset object itself. + */ + public ExcelDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } + + /** + * Get the sheet of excel file. Type: string (or Expression with resultType string). + * + * @return the sheetName value + */ + public Object sheetName() { + return this.sheetName; + } + + /** + * Set the sheet of excel file. Type: string (or Expression with resultType string). + * + * @param sheetName the sheetName value to set + * @return the ExcelDataset object itself. + */ + public ExcelDataset withSheetName(Object sheetName) { + this.sheetName = sheetName; + return this; + } + + /** + * Get the partial data of one sheet. Type: string (or Expression with resultType string). + * + * @return the range value + */ + public Object range() { + return this.range; + } + + /** + * Set the partial data of one sheet. Type: string (or Expression with resultType string). + * + * @param range the range value to set + * @return the ExcelDataset object itself. + */ + public ExcelDataset withRange(Object range) { + this.range = range; + return this; + } + + /** + * Get when used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the firstRowAsHeader value + */ + public Object firstRowAsHeader() { + return this.firstRowAsHeader; + } + + /** + * Set when used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param firstRowAsHeader the firstRowAsHeader value to set + * @return the ExcelDataset object itself. + */ + public ExcelDataset withFirstRowAsHeader(Object firstRowAsHeader) { + this.firstRowAsHeader = firstRowAsHeader; + return this; + } + + /** + * Get the data compression method used for the json dataset. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used for the json dataset. + * + * @param compression the compression value to set + * @return the ExcelDataset object itself. + */ + public ExcelDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + + /** + * Get the null value string. Type: string (or Expression with resultType string). + * + * @return the nullValue value + */ + public Object nullValue() { + return this.nullValue; + } + + /** + * Set the null value string. Type: string (or Expression with resultType string). + * + * @param nullValue the nullValue value to set + * @return the ExcelDataset object itself. + */ + public ExcelDataset withNullValue(Object nullValue) { + this.nullValue = nullValue; + return this; + } + +} diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExcelSource.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExcelSource.java new file mode 100644 index 000000000000..dac063d5b209 --- /dev/null +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExcelSource.java @@ -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. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity excel source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = ExcelSource.class) +@JsonTypeName("ExcelSource") +public class ExcelSource extends CopySource { + /** + * Excel store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreReadSettings storeSettings; + + /** + * Specifies the additional columns to be added to source data. Type: array + * of objects (or Expression with resultType array of objects). + */ + @JsonProperty(value = "additionalColumns") + private List additionalColumns; + + /** + * Get excel store settings. + * + * @return the storeSettings value + */ + public StoreReadSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set excel store settings. + * + * @param storeSettings the storeSettings value to set + * @return the ExcelSource object itself. + */ + public ExcelSource withStoreSettings(StoreReadSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + + /** + * Get specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + * + * @return the additionalColumns value + */ + public List additionalColumns() { + return this.additionalColumns; + } + + /** + * Set specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + * + * @param additionalColumns the additionalColumns value to set + * @return the ExcelSource object itself. + */ + public ExcelSource withAdditionalColumns(List additionalColumns) { + this.additionalColumns = additionalColumns; + return this; + } + +} diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java index 2518b10dbc44..5ae3f7700ed2 100644 --- a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java @@ -112,6 +112,7 @@ @JsonSubTypes.Type(name = "Json", value = JsonDataset.class), @JsonSubTypes.Type(name = "DelimitedText", value = DelimitedTextDataset.class), @JsonSubTypes.Type(name = "Parquet", value = ParquetDataset.class), + @JsonSubTypes.Type(name = "Excel", value = ExcelDataset.class), @JsonSubTypes.Type(name = "Avro", value = AvroDataset.class), @JsonSubTypes.Type(name = "AmazonS3Object", value = AmazonS3Dataset.class) })