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 2e8372af56f7..e27d3f538640 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 @@ -52,13 +52,7 @@ public class ExecuteSSISPackageActivity extends ExecutionActivity { * The package execution credential. */ @JsonProperty(value = "typeProperties.executionCredential") - private Map executionCredential; - - /** - * The package execution credential. - */ - @JsonProperty(value = "typeProperties.executionCredential") - private Map executionCredential; + private SSISExecutionCredential executionCredential; /** * The integration runtime reference. @@ -181,7 +175,7 @@ public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) { * * @return the executionCredential value */ - public Map executionCredential() { + public SSISExecutionCredential executionCredential() { return this.executionCredential; } @@ -191,7 +185,7 @@ public Map executionCredential() { * @param executionCredential the executionCredential value to set * @return the ExecuteSSISPackageActivity object itself. */ - public ExecuteSSISPackageActivity withExecutionCredential(Map executionCredential) { + public ExecuteSSISPackageActivity withExecutionCredential(SSISExecutionCredential executionCredential) { this.executionCredential = executionCredential; return this; } 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 342c6ac02e5d..c415a5ff6a5e 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 @@ -52,7 +52,7 @@ public class ExecuteSSISPackageActivity extends ExecutionActivity { * The package execution credential. */ @JsonProperty(value = "typeProperties.executionCredential") - private Map executionCredential; + private SSISExecutionCredential executionCredential; /** * The integration runtime reference. @@ -175,7 +175,7 @@ public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) { * * @return the executionCredential value */ - public Map executionCredential() { + public SSISExecutionCredential executionCredential() { return this.executionCredential; } @@ -185,7 +185,7 @@ public Map executionCredential() { * @param executionCredential the executionCredential value to set * @return the ExecuteSSISPackageActivity object itself. */ - public ExecuteSSISPackageActivity withExecutionCredential(Map executionCredential) { + public ExecuteSSISPackageActivity withExecutionCredential(SSISExecutionCredential executionCredential) { this.executionCredential = executionCredential; return this; } diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControlRequest.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControlRequest.java new file mode 100644 index 000000000000..298170060ef2 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControlRequest.java @@ -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; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControlResponse.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControlResponse.java new file mode 100644 index 000000000000..2e6165fc4552 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControlResponse.java @@ -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, HasManager { + /** + * @return the featureName value. + */ + String featureName(); + + /** + * @return the value value. + */ + String value(); + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControls.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControls.java new file mode 100644 index 000000000000..b07594a9504e --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/ExposureControls.java @@ -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 { + /** + * 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 getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest); + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManagementClientImpl.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManagementClientImpl.java index 3635e62d44f4..37c40823f034 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManagementClientImpl.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManagementClientImpl.java @@ -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. */ @@ -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); diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManager.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManager.java index ce6363efe19f..f851c1435e1e 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManager.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DataFactoryManager.java @@ -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; @@ -38,6 +39,7 @@ public final class DataFactoryManager extends ManagerCore { private Operations operations; private Factories factories; + private ExposureControls exposureControls; private IntegrationRuntimes integrationRuntimes; private IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas; private IntegrationRuntimeNodes integrationRuntimeNodes; @@ -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. */ diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlResponseImpl.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlResponseImpl.java new file mode 100644 index 000000000000..00de4637c09a --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlResponseImpl.java @@ -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 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(); + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlResponseInner.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlResponseInner.java new file mode 100644 index 000000000000..e18aaaffea9f --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlResponseInner.java @@ -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; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlsImpl.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlsImpl.java new file mode 100644 index 000000000000..55b8b76a67f2 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlsImpl.java @@ -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 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 getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest) { + ExposureControlsInner client = this.inner(); + return client.getFeatureValueAsync(locationId, exposureControlRequest) + .map(new Func1() { + @Override + public ExposureControlResponse call(ExposureControlResponseInner inner) { + return new ExposureControlResponseImpl(inner, manager()); + } + }); + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlsInner.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlsInner.java new file mode 100644 index 000000000000..cc636548135d --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/ExposureControlsInner.java @@ -0,0 +1,150 @@ +/** + * 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 retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.datafactoryv2.v2018_06_01.ExposureControlRequest; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ExposureControls. + */ +public class ExposureControlsInner { + /** The Retrofit service to perform REST calls. */ + private ExposureControlsService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of ExposureControlsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ExposureControlsInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(ExposureControlsService.class); + this.client = client; + } + + /** + * The interface defining all the services for ExposureControls to be + * used by Retrofit to perform actually REST calls. + */ + interface ExposureControlsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactoryv2.v2018_06_01.ExposureControls getFeatureValue" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue") + Observable> getFeatureValue(@Path("subscriptionId") String subscriptionId, @Path("locationId") String locationId, @Query("api-version") String apiVersion, @Body ExposureControlRequest exposureControlRequest, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * 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 + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ExposureControlResponseInner object if successful. + */ + public ExposureControlResponseInner getFeatureValue(String locationId, ExposureControlRequest exposureControlRequest) { + return getFeatureValueWithServiceResponseAsync(locationId, exposureControlRequest).toBlocking().single().body(); + } + + /** + * Get exposure control feature for specific location. + * + * @param locationId The location identifier. + * @param exposureControlRequest The exposure control request. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getFeatureValueWithServiceResponseAsync(locationId, exposureControlRequest), serviceCallback); + } + + /** + * 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 to the ExposureControlResponseInner object + */ + public Observable getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest) { + return getFeatureValueWithServiceResponseAsync(locationId, exposureControlRequest).map(new Func1, ExposureControlResponseInner>() { + @Override + public ExposureControlResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 to the ExposureControlResponseInner object + */ + public Observable> getFeatureValueWithServiceResponseAsync(String locationId, ExposureControlRequest exposureControlRequest) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (locationId == null) { + throw new IllegalArgumentException("Parameter locationId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (exposureControlRequest == null) { + throw new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null."); + } + Validator.validate(exposureControlRequest); + return service.getFeatureValue(this.client.subscriptionId(), locationId, this.client.apiVersion(), exposureControlRequest, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getFeatureValueDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getFeatureValueDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +}