diff --git a/datafactoryv2/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/datafactoryv2/v2017_09_01_preview/ExecuteSSISPackageActivity.java b/datafactoryv2/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/datafactoryv2/v2017_09_01_preview/ExecuteSSISPackageActivity.java index 114ca9fe72d7..6cdac1857239 100644 --- a/datafactoryv2/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/datafactoryv2/v2017_09_01_preview/ExecuteSSISPackageActivity.java +++ b/datafactoryv2/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/datafactoryv2/v2017_09_01_preview/ExecuteSSISPackageActivity.java @@ -46,6 +46,12 @@ public class ExecuteSSISPackageActivity extends ExecutionActivity { @JsonProperty(value = "typeProperties.environmentPath") private String environmentPath; + /** + * The package execution credential. + */ + @JsonProperty(value = "typeProperties.executionCredential") + private Map executionCredential; + /** * The integration runtime reference. */ @@ -162,6 +168,26 @@ public ExecuteSSISPackageActivity withEnvironmentPath(String environmentPath) { return this; } + /** + * Get the package execution credential. + * + * @return the executionCredential value + */ + public Map executionCredential() { + return this.executionCredential; + } + + /** + * Set the package execution credential. + * + * @param executionCredential the executionCredential value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withExecutionCredential(Map executionCredential) { + this.executionCredential = executionCredential; + return this; + } + /** * Get the integration runtime reference. * diff --git a/datafactoryv2/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/datafactoryv2/v2017_09_01_preview/SSISExecutionCredential.java b/datafactoryv2/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/datafactoryv2/v2017_09_01_preview/SSISExecutionCredential.java new file mode 100644 index 000000000000..96a27b2e8c9d --- /dev/null +++ b/datafactoryv2/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/datafactoryv2/v2017_09_01_preview/SSISExecutionCredential.java @@ -0,0 +1,95 @@ +/** + * 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.v2017_09_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SSIS package execution credential. + */ +public class SSISExecutionCredential { + /** + * Domain for windows authentication. + */ + @JsonProperty(value = "domain", required = true) + private Object domain; + + /** + * UseName for windows authentication. + */ + @JsonProperty(value = "userName", required = true) + private Object userName; + + /** + * Password for windows authentication. + */ + @JsonProperty(value = "password", required = true) + private SecureString password; + + /** + * Get domain for windows authentication. + * + * @return the domain value + */ + public Object domain() { + return this.domain; + } + + /** + * Set domain for windows authentication. + * + * @param domain the domain value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withDomain(Object domain) { + this.domain = domain; + return this; + } + + /** + * Get useName for windows authentication. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set useName for windows authentication. + * + * @param userName the userName value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for windows authentication. + * + * @return the password value + */ + public SecureString password() { + return this.password; + } + + /** + * Set password for windows authentication. + * + * @param password the password value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withPassword(SecureString password) { + this.password = password; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ControlActivity.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ControlActivity.java index 7eaddec8aea2..c6f119cc9040 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ControlActivity.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ControlActivity.java @@ -21,10 +21,12 @@ @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), @JsonSubTypes.Type(name = "IfCondition", value = IfConditionActivity.class), + @JsonSubTypes.Type(name = "WebHook", value = WebHookActivity.class), @JsonSubTypes.Type(name = "ExecutePipeline", value = ExecutePipelineActivity.class) }) public class ControlActivity extends Activity { diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExecuteSSISPackageActivity.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExecuteSSISPackageActivity.java index a4849889cdea..342c6ac02e5d 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExecuteSSISPackageActivity.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExecuteSSISPackageActivity.java @@ -48,6 +48,12 @@ public class ExecuteSSISPackageActivity extends ExecutionActivity { @JsonProperty(value = "typeProperties.environmentPath") private Object environmentPath; + /** + * The package execution credential. + */ + @JsonProperty(value = "typeProperties.executionCredential") + private Map executionCredential; + /** * The integration runtime reference. */ @@ -164,6 +170,26 @@ public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) { return this; } + /** + * Get the package execution credential. + * + * @return the executionCredential value + */ + public Map executionCredential() { + return this.executionCredential; + } + + /** + * Set the package execution credential. + * + * @param executionCredential the executionCredential value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withExecutionCredential(Map executionCredential) { + this.executionCredential = executionCredential; + return this; + } + /** * Get the integration runtime reference. * diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SSISExecutionCredential.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SSISExecutionCredential.java new file mode 100644 index 000000000000..453a9459f026 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SSISExecutionCredential.java @@ -0,0 +1,95 @@ +/** + * 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; + +/** + * SSIS package execution credential. + */ +public class SSISExecutionCredential { + /** + * Domain for windows authentication. + */ + @JsonProperty(value = "domain", required = true) + private Object domain; + + /** + * UseName for windows authentication. + */ + @JsonProperty(value = "userName", required = true) + private Object userName; + + /** + * Password for windows authentication. + */ + @JsonProperty(value = "password", required = true) + private SecureString password; + + /** + * Get domain for windows authentication. + * + * @return the domain value + */ + public Object domain() { + return this.domain; + } + + /** + * Set domain for windows authentication. + * + * @param domain the domain value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withDomain(Object domain) { + this.domain = domain; + return this; + } + + /** + * Get useName for windows authentication. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set useName for windows authentication. + * + * @param userName the userName value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for windows authentication. + * + * @return the password value + */ + public SecureString password() { + return this.password; + } + + /** + * Set password for windows authentication. + * + * @param password the password value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withPassword(SecureString password) { + this.password = password; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ValidationActivity.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ValidationActivity.java new file mode 100644 index 000000000000..b86e551bf9de --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ValidationActivity.java @@ -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; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/WebHookActivity.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/WebHookActivity.java new file mode 100644 index 000000000000..9cdfd3267013 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/WebHookActivity.java @@ -0,0 +1,197 @@ +/** + * 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; + +/** + * WebHook activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("WebHook") +@JsonFlatten +public class WebHookActivity extends ControlActivity { + /** + * Rest API method for target endpoint. + */ + @JsonProperty(value = "typeProperties.method", required = true) + private String method; + + /** + * WebHook activity target endpoint and path. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * Specifies the timeout within which the webhook should be called back. If + * there is no value specified, it takes the value of + * TimeSpan.FromMinutes(10) which is 10 minutes as default. 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; + + /** + * Represents the headers that will be sent to the request. For example, to + * set the language and type on a request: "headers" : { "Accept-Language": + * "en-us", "Content-Type": "application/json" }. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.headers") + private Object headers; + + /** + * Represents the payload that will be sent to the endpoint. Required for + * POST/PUT method, not allowed for GET method Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.body") + private Object body; + + /** + * Authentication method used for calling the endpoint. + */ + @JsonProperty(value = "typeProperties.authentication") + private WebActivityAuthentication authentication; + + /** + * Creates an instance of WebHookActivity class. + * @param url webHook activity target endpoint and path. Type: string (or Expression with resultType string). + */ + public WebHookActivity() { + method = "POST"; + } + + /** + * Get rest API method for target endpoint. + * + * @return the method value + */ + public String method() { + return this.method; + } + + /** + * Set rest API method for target endpoint. + * + * @param method the method value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withMethod(String method) { + this.method = method; + return this; + } + + /** + * Get webHook activity target endpoint and path. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set webHook activity target endpoint and path. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get specifies the timeout within which the webhook should be called back. If there is no value specified, it takes the value of TimeSpan.FromMinutes(10) which is 10 minutes as default. 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 within which the webhook should be called back. If there is no value specified, it takes the value of TimeSpan.FromMinutes(10) which is 10 minutes as default. 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 WebHookActivity object itself. + */ + public WebHookActivity withTimeout(Object timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @return the headers value + */ + public Object headers() { + return this.headers; + } + + /** + * Set represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @param headers the headers value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withHeaders(Object headers) { + this.headers = headers; + return this; + } + + /** + * Get represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @return the body value + */ + public Object body() { + return this.body; + } + + /** + * Set represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @param body the body value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withBody(Object body) { + this.body = body; + return this; + } + + /** + * Get authentication method used for calling the endpoint. + * + * @return the authentication value + */ + public WebActivityAuthentication authentication() { + return this.authentication; + } + + /** + * Set authentication method used for calling the endpoint. + * + * @param authentication the authentication value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withAuthentication(WebActivityAuthentication authentication) { + this.authentication = authentication; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/WebHookActivityMethod.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/WebHookActivityMethod.java new file mode 100644 index 000000000000..a3a7c15a294c --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/WebHookActivityMethod.java @@ -0,0 +1,38 @@ +/** + * 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 java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for WebHookActivityMethod. + */ +public final class WebHookActivityMethod extends ExpandableStringEnum { + /** Static value POST for WebHookActivityMethod. */ + public static final WebHookActivityMethod POST = fromString("POST"); + + /** + * Creates or finds a WebHookActivityMethod from its string representation. + * @param name a name to look for + * @return the corresponding WebHookActivityMethod + */ + @JsonCreator + public static WebHookActivityMethod fromString(String name) { + return fromString(name, WebHookActivityMethod.class); + } + + /** + * @return known WebHookActivityMethod values + */ + public static Collection values() { + return values(WebHookActivityMethod.class); + } +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java index eb9c97ee64bd..85025cc57414 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java @@ -99,6 +99,14 @@ public class DatasetInner { @JsonProperty(value = "structure") private Object structure; + /** + * Columns that define the physical type schema of the dataset. Type: array + * (or Expression with resultType array), itemType: + * DatasetSchemaDataElement. + */ + @JsonProperty(value = "schema") + private Object schema; + /** * Linked service reference. */ @@ -184,6 +192,26 @@ public DatasetInner withStructure(Object structure) { return this; } + /** + * Get columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + * + * @param schema the schema value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withSchema(Object schema) { + this.schema = schema; + return this; + } + /** * Get linked service reference. *