Skip to content

Commit

Permalink
[AutoPR datafactory/resource-manager] data factory validation activity (
Browse files Browse the repository at this point in the history
#2829)

* Generated from a219b9f35a0b1d00fd6d19e5aa345e7db0c2f1bb

validation activity

* Generated from a219b9f35a0b1d00fd6d19e5aa345e7db0c2f1bb

validation activity
  • Loading branch information
AutorestCI authored Jan 15, 2019
1 parent 4922deb commit eb6f712
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@JsonSubTypes.Type(name = "AppendVariable", value = AppendVariableActivity.class),
@JsonSubTypes.Type(name = "SetVariable", value = SetVariableActivity.class),
@JsonSubTypes.Type(name = "Filter", value = FilterActivity.class),
@JsonSubTypes.Type(name = "Validation", value = ValidationActivity.class),
@JsonSubTypes.Type(name = "Until", value = UntilActivity.class),
@JsonSubTypes.Type(name = "Wait", value = WaitActivity.class),
@JsonSubTypes.Type(name = "ForEach", value = ForEachActivity.class),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
/**
* 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;

/**
* This activity blocks execution until a file has been validated to exist,
* with an optional minimum size, or the timeout is reached, whichever is
* earlier.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Validation")
@JsonFlatten
public class ValidationActivity extends ControlActivity {
/**
* Specifies the timeout for the activity to run. If there is no value
* specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as
* default. Type: string (or Expression with resultType string), pattern:
* ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or
* Expression with resultType string), pattern:
* ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
@JsonProperty(value = "typeProperties.timeout")
private Object timeout;

/**
* A delay in seconds between validation attempts. If no value is
* specified, 10 seconds will be used as the default.
*/
@JsonProperty(value = "typeProperties.sleep")
private Integer sleep;

/**
* Minimum size of a file in byte. If no value is specified, 0 byte will be
* used as the default.
*/
@JsonProperty(value = "typeProperties.minimumSize")
private Integer minimumSize;

/**
* Validation activity dataset reference.
*/
@JsonProperty(value = "typeProperties.dataset", required = true)
private DatasetReference dataset;

/**
* Get specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*
* @return the timeout value
*/
public Object timeout() {
return this.timeout;
}

/**
* Set specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*
* @param timeout the timeout value to set
* @return the ValidationActivity object itself.
*/
public ValidationActivity withTimeout(Object timeout) {
this.timeout = timeout;
return this;
}

/**
* Get a delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default.
*
* @return the sleep value
*/
public Integer sleep() {
return this.sleep;
}

/**
* Set a delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default.
*
* @param sleep the sleep value to set
* @return the ValidationActivity object itself.
*/
public ValidationActivity withSleep(Integer sleep) {
this.sleep = sleep;
return this;
}

/**
* Get minimum size of a file in byte. If no value is specified, 0 byte will be used as the default.
*
* @return the minimumSize value
*/
public Integer minimumSize() {
return this.minimumSize;
}

/**
* Set minimum size of a file in byte. If no value is specified, 0 byte will be used as the default.
*
* @param minimumSize the minimumSize value to set
* @return the ValidationActivity object itself.
*/
public ValidationActivity withMinimumSize(Integer minimumSize) {
this.minimumSize = minimumSize;
return this;
}

/**
* Get validation activity dataset reference.
*
* @return the dataset value
*/
public DatasetReference dataset() {
return this.dataset;
}

/**
* Set validation activity dataset reference.
*
* @param dataset the dataset value to set
* @return the ValidationActivity object itself.
*/
public ValidationActivity withDataset(DatasetReference dataset) {
this.dataset = dataset;
return this;
}

}

0 comments on commit eb6f712

Please sign in to comment.