From b90be7395e927195e057aa1cc6a383d93502a76f Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 28 May 2020 10:43:03 +0000 Subject: [PATCH] Generated from e3745bf4faa2ee06f556e219402b4d139585096b Removed namespaces in xml ReadSettings --- .../datafactory/v2018_06_01/CopySource.java | 1 + .../v2018_06_01/FormatReadSettings.java | 1 + .../datafactory/v2018_06_01/XmlDataset.java | 134 ++++++++++++++++++ .../v2018_06_01/XmlReadSettings.java | 105 ++++++++++++++ .../datafactory/v2018_06_01/XmlSource.java | 101 +++++++++++++ .../implementation/DatasetInner.java | 1 + 6 files changed, 343 insertions(+) create mode 100644 sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlDataset.java create mode 100644 sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlReadSettings.java create mode 100644 sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlSource.java 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 f478f944db5a4..70aa6f0a01f58 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 @@ -48,6 +48,7 @@ @JsonSubTypes.Type(name = "TabularSource", value = TabularSource.class), @JsonSubTypes.Type(name = "BinarySource", value = BinarySource.class), @JsonSubTypes.Type(name = "OrcSource", value = OrcSource.class), + @JsonSubTypes.Type(name = "XmlSource", value = XmlSource.class), @JsonSubTypes.Type(name = "JsonSource", value = JsonSource.class), @JsonSubTypes.Type(name = "DelimitedTextSource", value = DelimitedTextSource.class), @JsonSubTypes.Type(name = "ParquetSource", value = ParquetSource.class), diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.java index 11191b2013007..c71079fac9de1 100644 --- a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.java +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.java @@ -21,6 +21,7 @@ @JsonTypeName("FormatReadSettings") @JsonSubTypes({ @JsonSubTypes.Type(name = "BinaryReadSettings", value = BinaryReadSettings.class), + @JsonSubTypes.Type(name = "XmlReadSettings", value = XmlReadSettings.class), @JsonSubTypes.Type(name = "JsonReadSettings", value = JsonReadSettings.class), @JsonSubTypes.Type(name = "DelimitedTextReadSettings", value = DelimitedTextReadSettings.class) }) diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlDataset.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlDataset.java new file mode 100644 index 0000000000000..443644a109f72 --- /dev/null +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlDataset.java @@ -0,0 +1,134 @@ +/** + * 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; + +/** + * Xml dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = XmlDataset.class) +@JsonTypeName("Xml") +@JsonFlatten +public class XmlDataset extends DatasetInner { + /** + * The location of the json data storage. + */ + @JsonProperty(value = "typeProperties.location", required = true) + private DatasetLocation location; + + /** + * The code page name of the preferred encoding. If not specified, the + * default value is UTF-8, unless BOM denotes another Unicode encoding. + * Refer to the name column of the table in the following link to set + * supported values: + * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encodingName") + private Object encodingName; + + /** + * The null value string. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.nullValue") + private Object nullValue; + + /** + * The data compression method used for the json dataset. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; + + /** + * Get the location of the json data storage. + * + * @return the location value + */ + public DatasetLocation location() { + return this.location; + } + + /** + * Set the location of the json data storage. + * + * @param location the location value to set + * @return the XmlDataset object itself. + */ + public XmlDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } + + /** + * Get the code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). + * + * @return the encodingName value + */ + public Object encodingName() { + return this.encodingName; + } + + /** + * Set the code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). + * + * @param encodingName the encodingName value to set + * @return the XmlDataset object itself. + */ + public XmlDataset withEncodingName(Object encodingName) { + this.encodingName = encodingName; + 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 XmlDataset object itself. + */ + public XmlDataset withNullValue(Object nullValue) { + this.nullValue = nullValue; + 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 XmlDataset object itself. + */ + public XmlDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlReadSettings.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlReadSettings.java new file mode 100644 index 0000000000000..78c4010640ad5 --- /dev/null +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlReadSettings.java @@ -0,0 +1,105 @@ +/** + * 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; + +/** + * Xml read settings. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = XmlReadSettings.class) +@JsonTypeName("XmlReadSettings") +public class XmlReadSettings extends FormatReadSettings { + /** + * Compression settings. + */ + @JsonProperty(value = "compressionProperties") + private CompressionReadSettings compressionProperties; + + /** + * Indicates what validation method is used when reading the xml files. + * Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "validationMode") + private Object validationMode; + + /** + * Namespace uri to prefix mappings to override the prefixes in column + * names when namespace is enabled, if no prefix is defined for a namespace + * uri, the prefix of xml element/attribute name in the xml data file will + * be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object + * (or Expression with resultType object). + */ + @JsonProperty(value = "namespacePrefixes") + private Object namespacePrefixes; + + /** + * Get compression settings. + * + * @return the compressionProperties value + */ + public CompressionReadSettings compressionProperties() { + return this.compressionProperties; + } + + /** + * Set compression settings. + * + * @param compressionProperties the compressionProperties value to set + * @return the XmlReadSettings object itself. + */ + public XmlReadSettings withCompressionProperties(CompressionReadSettings compressionProperties) { + this.compressionProperties = compressionProperties; + return this; + } + + /** + * Get indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). + * + * @return the validationMode value + */ + public Object validationMode() { + return this.validationMode; + } + + /** + * Set indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). + * + * @param validationMode the validationMode value to set + * @return the XmlReadSettings object itself. + */ + public XmlReadSettings withValidationMode(Object validationMode) { + this.validationMode = validationMode; + return this; + } + + /** + * Get namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object). + * + * @return the namespacePrefixes value + */ + public Object namespacePrefixes() { + return this.namespacePrefixes; + } + + /** + * Set namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object). + * + * @param namespacePrefixes the namespacePrefixes value to set + * @return the XmlReadSettings object itself. + */ + public XmlReadSettings withNamespacePrefixes(Object namespacePrefixes) { + this.namespacePrefixes = namespacePrefixes; + return this; + } + +} diff --git a/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlSource.java b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlSource.java new file mode 100644 index 0000000000000..63aea29cb7b9c --- /dev/null +++ b/sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XmlSource.java @@ -0,0 +1,101 @@ +/** + * 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 Xml source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = XmlSource.class) +@JsonTypeName("XmlSource") +public class XmlSource extends CopySource { + /** + * Xml store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreReadSettings storeSettings; + + /** + * Xml format settings. + */ + @JsonProperty(value = "formatSettings") + private XmlReadSettings formatSettings; + + /** + * 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 xml store settings. + * + * @return the storeSettings value + */ + public StoreReadSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set xml store settings. + * + * @param storeSettings the storeSettings value to set + * @return the XmlSource object itself. + */ + public XmlSource withStoreSettings(StoreReadSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + + /** + * Get xml format settings. + * + * @return the formatSettings value + */ + public XmlReadSettings formatSettings() { + return this.formatSettings; + } + + /** + * Set xml format settings. + * + * @param formatSettings the formatSettings value to set + * @return the XmlSource object itself. + */ + public XmlSource withFormatSettings(XmlReadSettings formatSettings) { + this.formatSettings = formatSettings; + 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 XmlSource object itself. + */ + public XmlSource 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 5ae3f7700ed2a..e6a553623dcae 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 @@ -109,6 +109,7 @@ @JsonSubTypes.Type(name = "AzureBlob", value = AzureBlobDataset.class), @JsonSubTypes.Type(name = "Binary", value = BinaryDataset.class), @JsonSubTypes.Type(name = "Orc", value = OrcDataset.class), + @JsonSubTypes.Type(name = "Xml", value = XmlDataset.class), @JsonSubTypes.Type(name = "Json", value = JsonDataset.class), @JsonSubTypes.Type(name = "DelimitedText", value = DelimitedTextDataset.class), @JsonSubTypes.Type(name = "Parquet", value = ParquetDataset.class),