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] Revert DataFactory Validation Activity #2856

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 @@ -52,13 +52,7 @@ public class ExecuteSSISPackageActivity extends ExecutionActivity {
* The package execution credential.
*/
@JsonProperty(value = "typeProperties.executionCredential")
private Map<String, SSISExecutionCredential> executionCredential;

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

/**
* The integration runtime reference.
Expand Down Expand Up @@ -181,7 +175,7 @@ public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) {
*
* @return the executionCredential value
*/
public Map<String, SSISExecutionCredential> executionCredential() {
public SSISExecutionCredential executionCredential() {
return this.executionCredential;
}

Expand All @@ -191,7 +185,7 @@ public Map<String, SSISExecutionCredential> executionCredential() {
* @param executionCredential the executionCredential value to set
* @return the ExecuteSSISPackageActivity object itself.
*/
public ExecuteSSISPackageActivity withExecutionCredential(Map<String, SSISExecutionCredential> executionCredential) {
public ExecuteSSISPackageActivity withExecutionCredential(SSISExecutionCredential executionCredential) {
this.executionCredential = executionCredential;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
@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 @@ -52,7 +52,7 @@ public class ExecuteSSISPackageActivity extends ExecutionActivity {
* The package execution credential.
*/
@JsonProperty(value = "typeProperties.executionCredential")
private Map<String, SSISExecutionCredential> executionCredential;
private SSISExecutionCredential executionCredential;

/**
* The integration runtime reference.
Expand Down Expand Up @@ -175,7 +175,7 @@ public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) {
*
* @return the executionCredential value
*/
public Map<String, SSISExecutionCredential> executionCredential() {
public SSISExecutionCredential executionCredential() {
return this.executionCredential;
}

Expand All @@ -185,7 +185,7 @@ public Map<String, SSISExecutionCredential> executionCredential() {
* @param executionCredential the executionCredential value to set
* @return the ExecuteSSISPackageActivity object itself.
*/
public ExecuteSSISPackageActivity withExecutionCredential(Map<String, SSISExecutionCredential> executionCredential) {
public ExecuteSSISPackageActivity withExecutionCredential(SSISExecutionCredential executionCredential) {
this.executionCredential = executionCredential;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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;

/**
* The exposure control request.
*/
public class ExposureControlRequest {
/**
* The feature name.
*/
@JsonProperty(value = "featureName")
private String featureName;

/**
* The feature type.
*/
@JsonProperty(value = "featureType")
private String featureType;

/**
* Get the feature name.
*
* @return the featureName value
*/
public String featureName() {
return this.featureName;
}

/**
* Set the feature name.
*
* @param featureName the featureName value to set
* @return the ExposureControlRequest object itself.
*/
public ExposureControlRequest withFeatureName(String featureName) {
this.featureName = featureName;
return this;
}

/**
* Get the feature type.
*
* @return the featureType value
*/
public String featureType() {
return this.featureType;
}

/**
* Set the feature type.
*
* @param featureType the featureType value to set
* @return the ExposureControlRequest object itself.
*/
public ExposureControlRequest withFeatureType(String featureType) {
this.featureType = featureType;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* 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.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.DataFactoryManager;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.ExposureControlResponseInner;

/**
* Type representing ExposureControlResponse.
*/
public interface ExposureControlResponse extends HasInner<ExposureControlResponseInner>, HasManager<DataFactoryManager> {
/**
* @return the featureName value.
*/
String featureName();

/**
* @return the value value.
*/
String value();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* 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 rx.Observable;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.ExposureControlsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing ExposureControls.
*/
public interface ExposureControls extends HasInner<ExposureControlsInner> {
/**
* Get exposure control feature for specific location.
*
* @param locationId The location identifier.
* @param exposureControlRequest The exposure control request.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ExposureControlResponse> getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest);

}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ public FactoriesInner factories() {
return this.factories;
}

/**
* The ExposureControlsInner object to access its operations.
*/
private ExposureControlsInner exposureControls;

/**
* Gets the ExposureControlsInner object to access its operations.
* @return the ExposureControlsInner object.
*/
public ExposureControlsInner exposureControls() {
return this.exposureControls;
}

/**
* The IntegrationRuntimesInner object to access its operations.
*/
Expand Down Expand Up @@ -338,6 +351,7 @@ protected void initialize() {
this.generateClientRequestId = true;
this.operations = new OperationsInner(restClient().retrofit(), this);
this.factories = new FactoriesInner(restClient().retrofit(), this);
this.exposureControls = new ExposureControlsInner(restClient().retrofit(), this);
this.integrationRuntimes = new IntegrationRuntimesInner(restClient().retrofit(), this);
this.integrationRuntimeObjectMetadatas = new IntegrationRuntimeObjectMetadatasInner(restClient().retrofit(), this);
this.integrationRuntimeNodes = new IntegrationRuntimeNodesInner(restClient().retrofit(), this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.microsoft.rest.RestClient;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.Operations;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.Factories;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.ExposureControls;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.IntegrationRuntimes;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.IntegrationRuntimeObjectMetadatas;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.IntegrationRuntimeNodes;
Expand All @@ -38,6 +39,7 @@
public final class DataFactoryManager extends ManagerCore<DataFactoryManager, DataFactoryManagementClientImpl> {
private Operations operations;
private Factories factories;
private ExposureControls exposureControls;
private IntegrationRuntimes integrationRuntimes;
private IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas;
private IntegrationRuntimeNodes integrationRuntimeNodes;
Expand Down Expand Up @@ -116,6 +118,16 @@ public Factories factories() {
return this.factories;
}

/**
* @return Entry point to manage ExposureControls.
*/
public ExposureControls exposureControls() {
if (this.exposureControls == null) {
this.exposureControls = new ExposureControlsImpl(this);
}
return this.exposureControls;
}

/**
* @return Entry point to manage IntegrationRuntimes.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
* 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.implementation;

import com.microsoft.azure.management.datafactoryv2.v2018_06_01.ExposureControlResponse;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;

class ExposureControlResponseImpl extends WrapperImpl<ExposureControlResponseInner> implements ExposureControlResponse {
private final DataFactoryManager manager;
ExposureControlResponseImpl(ExposureControlResponseInner inner, DataFactoryManager manager) {
super(inner);
this.manager = manager;
}

@Override
public DataFactoryManager manager() {
return this.manager;
}

@Override
public String featureName() {
return this.inner().featureName();
}

@Override
public String value() {
return this.inner().value();
}

}
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.implementation;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The exposure control response.
*/
public class ExposureControlResponseInner {
/**
* The feature name.
*/
@JsonProperty(value = "featureName", access = JsonProperty.Access.WRITE_ONLY)
private String featureName;

/**
* The feature value.
*/
@JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private String value;

/**
* Get the feature name.
*
* @return the featureName value
*/
public String featureName() {
return this.featureName;
}

/**
* Get the feature value.
*
* @return the value value
*/
public String value() {
return this.value;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* 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.
* abc
*/

package com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation;

import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.ExposureControls;
import rx.functions.Func1;
import rx.Observable;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.ExposureControlResponse;
import com.microsoft.azure.management.datafactoryv2.v2018_06_01.ExposureControlRequest;

class ExposureControlsImpl extends WrapperImpl<ExposureControlsInner> implements ExposureControls {
private final DataFactoryManager manager;

ExposureControlsImpl(DataFactoryManager manager) {
super(manager.inner().exposureControls());
this.manager = manager;
}

public DataFactoryManager manager() {
return this.manager;
}

@Override
public Observable<ExposureControlResponse> getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest) {
ExposureControlsInner client = this.inner();
return client.getFeatureValueAsync(locationId, exposureControlRequest)
.map(new Func1<ExposureControlResponseInner, ExposureControlResponse>() {
@Override
public ExposureControlResponse call(ExposureControlResponseInner inner) {
return new ExposureControlResponseImpl(inner, manager());
}
});
}

}
Loading