Skip to content

Commit

Permalink
[AutoPR datafactory/resource-manager] [DataFactory]Add Binary Dataset…
Browse files Browse the repository at this point in the history
… in swagger (#4439)

* Generated from d580034b3ab9269cae3f9755862608763f7e8f5a

add type for binary type properties

* Generated from d580034b3ab9269cae3f9755862608763f7e8f5a

add type for binary type properties
  • Loading branch information
AutorestCI authored Jul 18, 2019
1 parent 8111656 commit 8fd5a0b
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/**
* 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.datafactoryv2.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.datafactoryv2.v2018_06_01.implementation.DatasetInner;

/**
* Binary dataset.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Binary")
@JsonFlatten
public class BinaryDataset extends DatasetInner {
/**
* The location of the Binary storage.
*/
@JsonProperty(value = "typeProperties.location", required = true)
private DatasetLocation location;

/**
* The data compression method used for the binary dataset.
*/
@JsonProperty(value = "typeProperties.compression")
private DatasetCompression compression;

/**
* Get the location of the Binary storage.
*
* @return the location value
*/
public DatasetLocation location() {
return this.location;
}

/**
* Set the location of the Binary storage.
*
* @param location the location value to set
* @return the BinaryDataset object itself.
*/
public BinaryDataset withLocation(DatasetLocation location) {
this.location = location;
return this;
}

/**
* Get the data compression method used for the binary dataset.
*
* @return the compression value
*/
public DatasetCompression compression() {
return this.compression;
}

/**
* Set the data compression method used for the binary dataset.
*
* @param compression the compression value to set
* @return the BinaryDataset object itself.
*/
public BinaryDataset withCompression(DatasetCompression compression) {
this.compression = compression;
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.datafactoryv2.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* A copy activity Binary sink.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("BinarySink")
public class BinarySink extends CopySink {
/**
* Binary store settings.
*/
@JsonProperty(value = "storeSettings")
private StoreReadSettings storeSettings;

/**
* Get binary store settings.
*
* @return the storeSettings value
*/
public StoreReadSettings storeSettings() {
return this.storeSettings;
}

/**
* Set binary store settings.
*
* @param storeSettings the storeSettings value to set
* @return the BinarySink object itself.
*/
public BinarySink withStoreSettings(StoreReadSettings storeSettings) {
this.storeSettings = storeSettings;
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.datafactoryv2.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* A copy activity Binary source.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("BinarySource")
public class BinarySource extends CopySource {
/**
* Binary store settings.
*/
@JsonProperty(value = "storeSettings")
private StoreReadSettings storeSettings;

/**
* Get binary store settings.
*
* @return the storeSettings value
*/
public StoreReadSettings storeSettings() {
return this.storeSettings;
}

/**
* Set binary store settings.
*
* @param storeSettings the storeSettings value to set
* @return the BinarySource object itself.
*/
public BinarySource withStoreSettings(StoreReadSettings storeSettings) {
this.storeSettings = storeSettings;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
@JsonSubTypes.Type(name = "DocumentDbCollectionSink", value = DocumentDbCollectionSink.class),
@JsonSubTypes.Type(name = "FileSystemSink", value = FileSystemSink.class),
@JsonSubTypes.Type(name = "BlobSink", value = BlobSink.class),
@JsonSubTypes.Type(name = "BinarySink", value = BinarySink.class),
@JsonSubTypes.Type(name = "ParquetSink", value = ParquetSink.class),
@JsonSubTypes.Type(name = "AzureTableSink", value = AzureTableSink.class),
@JsonSubTypes.Type(name = "AzureQueueSink", value = AzureQueueSink.class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
@JsonSubTypes.Type(name = "DocumentDbCollectionSource", value = DocumentDbCollectionSource.class),
@JsonSubTypes.Type(name = "BlobSource", value = BlobSource.class),
@JsonSubTypes.Type(name = "AzureTableSource", value = AzureTableSource.class),
@JsonSubTypes.Type(name = "BinarySource", value = BinarySource.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 @@ -96,6 +96,7 @@
@JsonSubTypes.Type(name = "AzureSqlTable", value = AzureSqlTableDataset.class),
@JsonSubTypes.Type(name = "AzureTable", value = AzureTableDataset.class),
@JsonSubTypes.Type(name = "AzureBlob", value = AzureBlobDataset.class),
@JsonSubTypes.Type(name = "Binary", value = BinaryDataset.class),
@JsonSubTypes.Type(name = "DelimitedText", value = DelimitedTextDataset.class),
@JsonSubTypes.Type(name = "Parquet", value = ParquetDataset.class),
@JsonSubTypes.Type(name = "AmazonS3Object", value = AmazonS3Dataset.class)
Expand Down

0 comments on commit 8fd5a0b

Please sign in to comment.