Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR datafactory/resource-manager] For preview api: Change type of Ssis actitvity's to use exporession #2820

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,31 @@ public class ExecuteSSISPackageActivity extends ExecutionActivity {
private SSISPackageLocation packageLocation;

/**
* Specifies the runtime to execute SSIS package. Possible values include:
* 'x64', 'x86'.
* Specifies the runtime to execute SSIS package. The value should be "x86"
* or "x64". Type: string (or Expression with resultType string).
*/
@JsonProperty(value = "typeProperties.runtime")
private SSISExecutionRuntime runtime;
private Object runtime;

/**
* The logging level of SSIS package execution.
* The logging level of SSIS package execution. Type: string (or Expression
* with resultType string).
*/
@JsonProperty(value = "typeProperties.loggingLevel")
private String loggingLevel;
private Object loggingLevel;

/**
* The environment path to execute the SSIS package.
* The environment path to execute the SSIS package. Type: string (or
* Expression with resultType string).
*/
@JsonProperty(value = "typeProperties.environmentPath")
private String environmentPath;
private Object environmentPath;

/**
* The package execution credential.
*/
@JsonProperty(value = "typeProperties.executionCredential")
private Map<String, SSISExecutionCredential> executionCredential;

/**
* The integration runtime reference.
Expand Down Expand Up @@ -103,65 +111,85 @@ public ExecuteSSISPackageActivity withPackageLocation(SSISPackageLocation packag
}

/**
* Get specifies the runtime to execute SSIS package. Possible values include: 'x64', 'x86'.
* Get specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType string).
*
* @return the runtime value
*/
public SSISExecutionRuntime runtime() {
public Object runtime() {
return this.runtime;
}

/**
* Set specifies the runtime to execute SSIS package. Possible values include: 'x64', 'x86'.
* Set specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType string).
*
* @param runtime the runtime value to set
* @return the ExecuteSSISPackageActivity object itself.
*/
public ExecuteSSISPackageActivity withRuntime(SSISExecutionRuntime runtime) {
public ExecuteSSISPackageActivity withRuntime(Object runtime) {
this.runtime = runtime;
return this;
}

/**
* Get the logging level of SSIS package execution.
* Get the logging level of SSIS package execution. Type: string (or Expression with resultType string).
*
* @return the loggingLevel value
*/
public String loggingLevel() {
public Object loggingLevel() {
return this.loggingLevel;
}

/**
* Set the logging level of SSIS package execution.
* Set the logging level of SSIS package execution. Type: string (or Expression with resultType string).
*
* @param loggingLevel the loggingLevel value to set
* @return the ExecuteSSISPackageActivity object itself.
*/
public ExecuteSSISPackageActivity withLoggingLevel(String loggingLevel) {
public ExecuteSSISPackageActivity withLoggingLevel(Object loggingLevel) {
this.loggingLevel = loggingLevel;
return this;
}

/**
* Get the environment path to execute the SSIS package.
* Get the environment path to execute the SSIS package. Type: string (or Expression with resultType string).
*
* @return the environmentPath value
*/
public String environmentPath() {
public Object environmentPath() {
return this.environmentPath;
}

/**
* Set the environment path to execute the SSIS package.
* Set the environment path to execute the SSIS package. Type: string (or Expression with resultType string).
*
* @param environmentPath the environmentPath value to set
* @return the ExecuteSSISPackageActivity object itself.
*/
public ExecuteSSISPackageActivity withEnvironmentPath(String environmentPath) {
public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) {
this.environmentPath = environmentPath;
return this;
}

/**
* Get the package execution credential.
*
* @return the executionCredential value
*/
public Map<String, SSISExecutionCredential> 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<String, SSISExecutionCredential> executionCredential) {
this.executionCredential = executionCredential;
return this;
}

/**
* Get the integration runtime reference.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,28 @@
*/
public class SSISPackageLocation {
/**
* The SSIS package path.
* The SSIS package path. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "packagePath", required = true)
private String packagePath;
private Object packagePath;

/**
* Get the SSIS package path.
* Get the SSIS package path. Type: string (or Expression with resultType string).
*
* @return the packagePath value
*/
public String packagePath() {
public Object packagePath() {
return this.packagePath;
}

/**
* Set the SSIS package path.
* Set the SSIS package path. Type: string (or Expression with resultType string).
*
* @param packagePath the packagePath value to set
* @return the SSISPackageLocation object itself.
*/
public SSISPackageLocation withPackagePath(String packagePath) {
public SSISPackageLocation withPackagePath(Object packagePath) {
this.packagePath = packagePath;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, SSISExecutionCredential> executionCredential;

/**
* The integration runtime reference.
*/
Expand Down Expand Up @@ -164,6 +170,26 @@ public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) {
return this;
}

/**
* Get the package execution credential.
*
* @return the executionCredential value
*/
public Map<String, SSISExecutionCredential> 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<String, SSISExecutionCredential> executionCredential) {
this.executionCredential = executionCredential;
return this;
}

/**
* Get the integration runtime reference.
*
Expand Down
Loading