forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from d4f7403bd98ee407ae076d6316ebd044860476e1 (#95)
Add json dataset
- Loading branch information
1 parent
d787935
commit 3df89cc
Showing
8 changed files
with
317 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
..._01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonDataset.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
73 changes: 73 additions & 0 deletions
73
..._06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSink.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
47 changes: 47 additions & 0 deletions
47
...6_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...ain/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteFilePattern.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...c/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonWriteSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters