Skip to content

Commit

Permalink
Generated from d4f7403bd98ee407ae076d6316ebd044860476e1 (#95)
Browse files Browse the repository at this point in the history
Add json dataset
  • Loading branch information
openapi-sdkautomation[bot] authored Aug 15, 2019
1 parent 3a72798 commit 9e5a680
Show file tree
Hide file tree
Showing 8 changed files with 317 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -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<JsonWriteFilePattern> {
/** 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<JsonWriteFilePattern> values() {
return values(JsonWriteFilePattern.class);
}
}
Original file line number Diff line number Diff line change
@@ -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;
}

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

0 comments on commit 9e5a680

Please sign in to comment.