From 3df89cce261d96c278e40a8d7404860b78aae7af Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2019 02:22:59 +0000 Subject: [PATCH] Generated from d4f7403bd98ee407ae076d6316ebd044860476e1 (#95) Add json dataset --- .../datafactory/v2018_06_01/CopySink.java | 1 + .../datafactory/v2018_06_01/CopySource.java | 1 + .../datafactory/v2018_06_01/JsonDataset.java | 107 ++++++++++++++++++ .../datafactory/v2018_06_01/JsonSink.java | 73 ++++++++++++ .../datafactory/v2018_06_01/JsonSource.java | 47 ++++++++ .../v2018_06_01/JsonWriteFilePattern.java | 41 +++++++ .../v2018_06_01/JsonWriteSettings.java | 46 ++++++++ .../implementation/DatasetInner.java | 1 + 8 files changed, 317 insertions(+) create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteFilePattern.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteSettings.java diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.java index fe39316aec0fd..489084b439970 100644 --- a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.java +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.java @@ -50,6 +50,7 @@ @JsonSubTypes.Type(name = "SapCloudForCustomerSink", value = SapCloudForCustomerSink.class), @JsonSubTypes.Type(name = "AzureMySqlSink", value = AzureMySqlSink.class), @JsonSubTypes.Type(name = "AzurePostgreSqlSink", value = AzurePostgreSqlSink.class), + @JsonSubTypes.Type(name = "JsonSink", value = JsonSink.class), @JsonSubTypes.Type(name = "DelimitedTextSink", value = DelimitedTextSink.class) }) public class CopySink { diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java index f46451e5ab22d..dd37332b1986a 100644 --- a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java @@ -100,6 +100,7 @@ @JsonSubTypes.Type(name = "BlobSource", value = BlobSource.class), @JsonSubTypes.Type(name = "AzureTableSource", value = AzureTableSource.class), @JsonSubTypes.Type(name = "BinarySource", value = BinarySource.class), + @JsonSubTypes.Type(name = "JsonSource", value = JsonSource.class), @JsonSubTypes.Type(name = "DelimitedTextSource", value = DelimitedTextSource.class), @JsonSubTypes.Type(name = "ParquetSource", value = ParquetSource.class), @JsonSubTypes.Type(name = "AvroSource", value = AvroSource.class) diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonDataset.java new file mode 100644 index 0000000000000..e623004acc5f5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonDataset.java @@ -0,0 +1,107 @@ +/** + * 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; + +/** + * Json dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Json") +@JsonFlatten +public class JsonDataset 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 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 JsonDataset object itself. + */ + public JsonDataset 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 JsonDataset object itself. + */ + public JsonDataset withEncodingName(Object encodingName) { + this.encodingName = encodingName; + 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 JsonDataset object itself. + */ + public JsonDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSink.java new file mode 100644 index 0000000000000..bb817afd3dd19 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSink.java @@ -0,0 +1,73 @@ +/** + * 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; + +/** + * A copy activity Json sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("JsonSink") +public class JsonSink extends CopySink { + /** + * Json store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreWriteSettings storeSettings; + + /** + * Json format settings. + */ + @JsonProperty(value = "formatSettings") + private JsonWriteSettings formatSettings; + + /** + * Get json store settings. + * + * @return the storeSettings value + */ + public StoreWriteSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set json store settings. + * + * @param storeSettings the storeSettings value to set + * @return the JsonSink object itself. + */ + public JsonSink withStoreSettings(StoreWriteSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + + /** + * Get json format settings. + * + * @return the formatSettings value + */ + public JsonWriteSettings formatSettings() { + return this.formatSettings; + } + + /** + * Set json format settings. + * + * @param formatSettings the formatSettings value to set + * @return the JsonSink object itself. + */ + public JsonSink withFormatSettings(JsonWriteSettings formatSettings) { + this.formatSettings = formatSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSource.java new file mode 100644 index 0000000000000..e12046b227bef --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSource.java @@ -0,0 +1,47 @@ +/** + * 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; + +/** + * A copy activity Json source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("JsonSource") +public class JsonSource extends CopySource { + /** + * Json store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreReadSettings storeSettings; + + /** + * Get json store settings. + * + * @return the storeSettings value + */ + public StoreReadSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set json store settings. + * + * @param storeSettings the storeSettings value to set + * @return the JsonSource object itself. + */ + public JsonSource withStoreSettings(StoreReadSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteFilePattern.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteFilePattern.java new file mode 100644 index 0000000000000..9a724751fea96 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteFilePattern.java @@ -0,0 +1,41 @@ +/** + * 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.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for JsonWriteFilePattern. + */ +public final class JsonWriteFilePattern extends ExpandableStringEnum { + /** Static value setOfObjects for JsonWriteFilePattern. */ + public static final JsonWriteFilePattern SET_OF_OBJECTS = fromString("setOfObjects"); + + /** Static value arrayOfObjects for JsonWriteFilePattern. */ + public static final JsonWriteFilePattern ARRAY_OF_OBJECTS = fromString("arrayOfObjects"); + + /** + * Creates or finds a JsonWriteFilePattern from its string representation. + * @param name a name to look for + * @return the corresponding JsonWriteFilePattern + */ + @JsonCreator + public static JsonWriteFilePattern fromString(String name) { + return fromString(name, JsonWriteFilePattern.class); + } + + /** + * @return known JsonWriteFilePattern values + */ + public static Collection values() { + return values(JsonWriteFilePattern.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteSettings.java new file mode 100644 index 0000000000000..d5ffce99c001c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteSettings.java @@ -0,0 +1,46 @@ +/** + * 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; + +/** + * Json write settings. + */ +public class JsonWriteSettings extends FormatWriteSettings { + /** + * File pattern of JSON. This setting controls the way a collection of JSON + * objects will be treated. The default value is 'setOfObjects'. It is + * case-sensitive. Possible values include: 'setOfObjects', + * 'arrayOfObjects'. + */ + @JsonProperty(value = "filePattern") + private JsonWriteFilePattern filePattern; + + /** + * Get file pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. Possible values include: 'setOfObjects', 'arrayOfObjects'. + * + * @return the filePattern value + */ + public JsonWriteFilePattern filePattern() { + return this.filePattern; + } + + /** + * Set file pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. Possible values include: 'setOfObjects', 'arrayOfObjects'. + * + * @param filePattern the filePattern value to set + * @return the JsonWriteSettings object itself. + */ + public JsonWriteSettings withFilePattern(JsonWriteFilePattern filePattern) { + this.filePattern = filePattern; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java index 3b4c46f3a30a2..90fa53883be21 100644 --- a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java @@ -105,6 +105,7 @@ @JsonSubTypes.Type(name = "AzureTable", value = AzureTableDataset.class), @JsonSubTypes.Type(name = "AzureBlob", value = AzureBlobDataset.class), @JsonSubTypes.Type(name = "Binary", value = BinaryDataset.class), + @JsonSubTypes.Type(name = "Json", value = JsonDataset.class), @JsonSubTypes.Type(name = "DelimitedText", value = DelimitedTextDataset.class), @JsonSubTypes.Type(name = "Parquet", value = ParquetDataset.class), @JsonSubTypes.Type(name = "Avro", value = AvroDataset.class),