Skip to content

Commit

Permalink
Generated from ea9d8ea18d34bc580930e38bd11e0c472ddbf1ef
Browse files Browse the repository at this point in the history
Fixed prettier check issues
  • Loading branch information
SDK Automation committed May 28, 2020
1 parent 6393e8d commit efa121c
Show file tree
Hide file tree
Showing 6 changed files with 370 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/**
* 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;

/**
* Indicates whether namespace is enabled when parsing the xml files. Type:
* boolean (or Expression with resultType boolean).
*/
@JsonProperty(value = "namespaces")
private Object namespaces;

/**
* 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 indicates whether namespace is enabled when parsing the xml files. Type: boolean (or Expression with resultType boolean).
*
* @return the namespaces value
*/
public Object namespaces() {
return this.namespaces;
}

/**
* Set indicates whether namespace is enabled when parsing the xml files. Type: boolean (or Expression with resultType boolean).
*
* @param namespaces the namespaces value to set
* @return the XmlReadSettings object itself.
*/
public XmlReadSettings withNamespaces(Object namespaces) {
this.namespaces = namespaces;
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;
}

}
Original file line number Diff line number Diff line change
@@ -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> 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> 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> additionalColumns) {
this.additionalColumns = additionalColumns;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit efa121c

Please sign in to comment.