diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java deleted file mode 100644 index 4c27c599b25f2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java +++ /dev/null @@ -1,482 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory; - -import com.azure.core.credential.TokenCredential; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.HttpPipelinePosition; -import com.azure.core.http.policy.AddDatePolicy; -import com.azure.core.http.policy.HttpLogOptions; -import com.azure.core.http.policy.HttpLoggingPolicy; -import com.azure.core.http.policy.HttpPipelinePolicy; -import com.azure.core.http.policy.HttpPolicyProviders; -import com.azure.core.http.policy.RequestIdPolicy; -import com.azure.core.http.policy.RetryPolicy; -import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.util.Configuration; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient; -import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl; -import com.azure.resourcemanager.datafactory.implementation.DataFactoryManagementClientBuilder; -import com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsImpl; -import com.azure.resourcemanager.datafactory.implementation.DataFlowsImpl; -import com.azure.resourcemanager.datafactory.implementation.DatasetsImpl; -import com.azure.resourcemanager.datafactory.implementation.ExposureControlsImpl; -import com.azure.resourcemanager.datafactory.implementation.FactoriesImpl; -import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeNodesImpl; -import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeObjectMetadatasImpl; -import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimesImpl; -import com.azure.resourcemanager.datafactory.implementation.LinkedServicesImpl; -import com.azure.resourcemanager.datafactory.implementation.ManagedPrivateEndpointsImpl; -import com.azure.resourcemanager.datafactory.implementation.ManagedVirtualNetworksImpl; -import com.azure.resourcemanager.datafactory.implementation.OperationsImpl; -import com.azure.resourcemanager.datafactory.implementation.PipelineRunsImpl; -import com.azure.resourcemanager.datafactory.implementation.PipelinesImpl; -import com.azure.resourcemanager.datafactory.implementation.PrivateEndPointConnectionsImpl; -import com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsImpl; -import com.azure.resourcemanager.datafactory.implementation.PrivateLinkResourcesImpl; -import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl; -import com.azure.resourcemanager.datafactory.implementation.TriggersImpl; -import com.azure.resourcemanager.datafactory.models.ActivityRuns; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessions; -import com.azure.resourcemanager.datafactory.models.DataFlows; -import com.azure.resourcemanager.datafactory.models.Datasets; -import com.azure.resourcemanager.datafactory.models.ExposureControls; -import com.azure.resourcemanager.datafactory.models.Factories; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodes; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeObjectMetadatas; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimes; -import com.azure.resourcemanager.datafactory.models.LinkedServices; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoints; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworks; -import com.azure.resourcemanager.datafactory.models.Operations; -import com.azure.resourcemanager.datafactory.models.PipelineRuns; -import com.azure.resourcemanager.datafactory.models.Pipelines; -import com.azure.resourcemanager.datafactory.models.PrivateEndPointConnections; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionOperations; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResources; -import com.azure.resourcemanager.datafactory.models.TriggerRuns; -import com.azure.resourcemanager.datafactory.models.Triggers; -import java.time.Duration; -import java.time.temporal.ChronoUnit; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.stream.Collectors; - -/** - * Entry point to DataFactoryManager. The Azure Data Factory V2 management API provides a RESTful set of web services - * that interact with Azure Data Factory V2 services. - */ -public final class DataFactoryManager { - private Operations operations; - - private Factories factories; - - private ExposureControls exposureControls; - - private IntegrationRuntimes integrationRuntimes; - - private IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas; - - private IntegrationRuntimeNodes integrationRuntimeNodes; - - private LinkedServices linkedServices; - - private Datasets datasets; - - private Pipelines pipelines; - - private PipelineRuns pipelineRuns; - - private ActivityRuns activityRuns; - - private Triggers triggers; - - private TriggerRuns triggerRuns; - - private DataFlows dataFlows; - - private DataFlowDebugSessions dataFlowDebugSessions; - - private ManagedVirtualNetworks managedVirtualNetworks; - - private ManagedPrivateEndpoints managedPrivateEndpoints; - - private PrivateEndPointConnections privateEndPointConnections; - - private PrivateEndpointConnectionOperations privateEndpointConnectionOperations; - - private PrivateLinkResources privateLinkResources; - - private final DataFactoryManagementClient clientObject; - - private DataFactoryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { - Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); - Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = - new DataFactoryManagementClientBuilder() - .pipeline(httpPipeline) - .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) - .subscriptionId(profile.getSubscriptionId()) - .defaultPollInterval(defaultPollInterval) - .buildClient(); - } - - /** - * Creates an instance of DataFactory service API entry point. - * - * @param credential the credential to use. - * @param profile the Azure profile for client. - * @return the DataFactory service API instance. - */ - public static DataFactoryManager authenticate(TokenCredential credential, AzureProfile profile) { - Objects.requireNonNull(credential, "'credential' cannot be null."); - Objects.requireNonNull(profile, "'profile' cannot be null."); - return configure().authenticate(credential, profile); - } - - /** - * Gets a Configurable instance that can be used to create DataFactoryManager with optional configuration. - * - * @return the Configurable instance allowing configurations. - */ - public static Configurable configure() { - return new DataFactoryManager.Configurable(); - } - - /** The Configurable allowing configurations to be set. */ - public static final class Configurable { - private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); - - private HttpClient httpClient; - private HttpLogOptions httpLogOptions; - private final List policies = new ArrayList<>(); - private final List scopes = new ArrayList<>(); - private RetryPolicy retryPolicy; - private Duration defaultPollInterval; - - private Configurable() { - } - - /** - * Sets the http client. - * - * @param httpClient the HTTP client. - * @return the configurable object itself. - */ - public Configurable withHttpClient(HttpClient httpClient) { - this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null."); - return this; - } - - /** - * Sets the logging options to the HTTP pipeline. - * - * @param httpLogOptions the HTTP log options. - * @return the configurable object itself. - */ - public Configurable withLogOptions(HttpLogOptions httpLogOptions) { - this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null."); - return this; - } - - /** - * Adds the pipeline policy to the HTTP pipeline. - * - * @param policy the HTTP pipeline policy. - * @return the configurable object itself. - */ - public Configurable withPolicy(HttpPipelinePolicy policy) { - this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null.")); - return this; - } - - /** - * Adds the scope to permission sets. - * - * @param scope the scope. - * @return the configurable object itself. - */ - public Configurable withScope(String scope) { - this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null.")); - return this; - } - - /** - * Sets the retry policy to the HTTP pipeline. - * - * @param retryPolicy the HTTP pipeline retry policy. - * @return the configurable object itself. - */ - public Configurable withRetryPolicy(RetryPolicy retryPolicy) { - this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null."); - return this; - } - - /** - * Sets the default poll interval, used when service does not provide "Retry-After" header. - * - * @param defaultPollInterval the default poll interval. - * @return the configurable object itself. - */ - public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = - Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); - if (this.defaultPollInterval.isNegative()) { - throw LOGGER - .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); - } - return this; - } - - /** - * Creates an instance of DataFactory service API entry point. - * - * @param credential the credential to use. - * @param profile the Azure profile for client. - * @return the DataFactory service API instance. - */ - public DataFactoryManager authenticate(TokenCredential credential, AzureProfile profile) { - Objects.requireNonNull(credential, "'credential' cannot be null."); - Objects.requireNonNull(profile, "'profile' cannot be null."); - - StringBuilder userAgentBuilder = new StringBuilder(); - userAgentBuilder - .append("azsdk-java") - .append("-") - .append("com.azure.resourcemanager.datafactory") - .append("/") - .append("1.0.0-beta.13"); - if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { - userAgentBuilder - .append(" (") - .append(Configuration.getGlobalConfiguration().get("java.version")) - .append("; ") - .append(Configuration.getGlobalConfiguration().get("os.name")) - .append("; ") - .append(Configuration.getGlobalConfiguration().get("os.version")) - .append("; auto-generated)"); - } else { - userAgentBuilder.append(" (auto-generated)"); - } - - if (scopes.isEmpty()) { - scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); - } - if (retryPolicy == null) { - retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); - } - List policies = new ArrayList<>(); - policies.add(new UserAgentPolicy(userAgentBuilder.toString())); - policies.add(new RequestIdPolicy()); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) - .collect(Collectors.toList())); - HttpPolicyProviders.addBeforeRetryPolicies(policies); - policies.add(retryPolicy); - policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) - .collect(Collectors.toList())); - HttpPolicyProviders.addAfterRetryPolicies(policies); - policies.add(new HttpLoggingPolicy(httpLogOptions)); - HttpPipeline httpPipeline = - new HttpPipelineBuilder() - .httpClient(httpClient) - .policies(policies.toArray(new HttpPipelinePolicy[0])) - .build(); - return new DataFactoryManager(httpPipeline, profile, defaultPollInterval); - } - } - - /** @return Resource collection API of Operations. */ - public Operations operations() { - if (this.operations == null) { - this.operations = new OperationsImpl(clientObject.getOperations(), this); - } - return operations; - } - - /** @return Resource collection API of Factories. */ - public Factories factories() { - if (this.factories == null) { - this.factories = new FactoriesImpl(clientObject.getFactories(), this); - } - return factories; - } - - /** @return Resource collection API of ExposureControls. */ - public ExposureControls exposureControls() { - if (this.exposureControls == null) { - this.exposureControls = new ExposureControlsImpl(clientObject.getExposureControls(), this); - } - return exposureControls; - } - - /** @return Resource collection API of IntegrationRuntimes. */ - public IntegrationRuntimes integrationRuntimes() { - if (this.integrationRuntimes == null) { - this.integrationRuntimes = new IntegrationRuntimesImpl(clientObject.getIntegrationRuntimes(), this); - } - return integrationRuntimes; - } - - /** @return Resource collection API of IntegrationRuntimeObjectMetadatas. */ - public IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas() { - if (this.integrationRuntimeObjectMetadatas == null) { - this.integrationRuntimeObjectMetadatas = - new IntegrationRuntimeObjectMetadatasImpl(clientObject.getIntegrationRuntimeObjectMetadatas(), this); - } - return integrationRuntimeObjectMetadatas; - } - - /** @return Resource collection API of IntegrationRuntimeNodes. */ - public IntegrationRuntimeNodes integrationRuntimeNodes() { - if (this.integrationRuntimeNodes == null) { - this.integrationRuntimeNodes = - new IntegrationRuntimeNodesImpl(clientObject.getIntegrationRuntimeNodes(), this); - } - return integrationRuntimeNodes; - } - - /** @return Resource collection API of LinkedServices. */ - public LinkedServices linkedServices() { - if (this.linkedServices == null) { - this.linkedServices = new LinkedServicesImpl(clientObject.getLinkedServices(), this); - } - return linkedServices; - } - - /** @return Resource collection API of Datasets. */ - public Datasets datasets() { - if (this.datasets == null) { - this.datasets = new DatasetsImpl(clientObject.getDatasets(), this); - } - return datasets; - } - - /** @return Resource collection API of Pipelines. */ - public Pipelines pipelines() { - if (this.pipelines == null) { - this.pipelines = new PipelinesImpl(clientObject.getPipelines(), this); - } - return pipelines; - } - - /** @return Resource collection API of PipelineRuns. */ - public PipelineRuns pipelineRuns() { - if (this.pipelineRuns == null) { - this.pipelineRuns = new PipelineRunsImpl(clientObject.getPipelineRuns(), this); - } - return pipelineRuns; - } - - /** @return Resource collection API of ActivityRuns. */ - public ActivityRuns activityRuns() { - if (this.activityRuns == null) { - this.activityRuns = new ActivityRunsImpl(clientObject.getActivityRuns(), this); - } - return activityRuns; - } - - /** @return Resource collection API of Triggers. */ - public Triggers triggers() { - if (this.triggers == null) { - this.triggers = new TriggersImpl(clientObject.getTriggers(), this); - } - return triggers; - } - - /** @return Resource collection API of TriggerRuns. */ - public TriggerRuns triggerRuns() { - if (this.triggerRuns == null) { - this.triggerRuns = new TriggerRunsImpl(clientObject.getTriggerRuns(), this); - } - return triggerRuns; - } - - /** @return Resource collection API of DataFlows. */ - public DataFlows dataFlows() { - if (this.dataFlows == null) { - this.dataFlows = new DataFlowsImpl(clientObject.getDataFlows(), this); - } - return dataFlows; - } - - /** @return Resource collection API of DataFlowDebugSessions. */ - public DataFlowDebugSessions dataFlowDebugSessions() { - if (this.dataFlowDebugSessions == null) { - this.dataFlowDebugSessions = new DataFlowDebugSessionsImpl(clientObject.getDataFlowDebugSessions(), this); - } - return dataFlowDebugSessions; - } - - /** @return Resource collection API of ManagedVirtualNetworks. */ - public ManagedVirtualNetworks managedVirtualNetworks() { - if (this.managedVirtualNetworks == null) { - this.managedVirtualNetworks = - new ManagedVirtualNetworksImpl(clientObject.getManagedVirtualNetworks(), this); - } - return managedVirtualNetworks; - } - - /** @return Resource collection API of ManagedPrivateEndpoints. */ - public ManagedPrivateEndpoints managedPrivateEndpoints() { - if (this.managedPrivateEndpoints == null) { - this.managedPrivateEndpoints = - new ManagedPrivateEndpointsImpl(clientObject.getManagedPrivateEndpoints(), this); - } - return managedPrivateEndpoints; - } - - /** @return Resource collection API of PrivateEndPointConnections. */ - public PrivateEndPointConnections privateEndPointConnections() { - if (this.privateEndPointConnections == null) { - this.privateEndPointConnections = - new PrivateEndPointConnectionsImpl(clientObject.getPrivateEndPointConnections(), this); - } - return privateEndPointConnections; - } - - /** @return Resource collection API of PrivateEndpointConnectionOperations. */ - public PrivateEndpointConnectionOperations privateEndpointConnectionOperations() { - if (this.privateEndpointConnectionOperations == null) { - this.privateEndpointConnectionOperations = - new PrivateEndpointConnectionOperationsImpl( - clientObject.getPrivateEndpointConnectionOperations(), this); - } - return privateEndpointConnectionOperations; - } - - /** @return Resource collection API of PrivateLinkResources. */ - public PrivateLinkResources privateLinkResources() { - if (this.privateLinkResources == null) { - this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this); - } - return privateLinkResources; - } - - /** - * @return Wrapped service client DataFactoryManagementClient providing direct access to the underlying - * auto-generated API implementation, based on Azure REST API. - */ - public DataFactoryManagementClient serviceClient() { - return this.clientObject; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ActivityRunsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ActivityRunsClient.java deleted file mode 100644 index 60c1d7b477d77..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ActivityRunsClient.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; - -/** An instance of this class provides access to all the operations defined in ActivityRunsClient. */ -public interface ActivityRunsClient { - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ActivityRunsQueryResponseInner queryByPipelineRun( - String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters); - - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response queryByPipelineRunWithResponse( - String resourceGroupName, - String factoryName, - String runId, - RunFilterParameters filterParameters, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java deleted file mode 100644 index e3bd4205f8456..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.http.HttpPipeline; -import java.time.Duration; - -/** The interface for DataFactoryManagementClient class. */ -public interface DataFactoryManagementClient { - /** - * Gets The subscription identifier. - * - * @return the subscriptionId value. - */ - String getSubscriptionId(); - - /** - * Gets server parameter. - * - * @return the endpoint value. - */ - String getEndpoint(); - - /** - * Gets Api Version. - * - * @return the apiVersion value. - */ - String getApiVersion(); - - /** - * Gets The HTTP pipeline to send requests through. - * - * @return the httpPipeline value. - */ - HttpPipeline getHttpPipeline(); - - /** - * Gets The default poll interval for long-running operation. - * - * @return the defaultPollInterval value. - */ - Duration getDefaultPollInterval(); - - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - OperationsClient getOperations(); - - /** - * Gets the FactoriesClient object to access its operations. - * - * @return the FactoriesClient object. - */ - FactoriesClient getFactories(); - - /** - * Gets the ExposureControlsClient object to access its operations. - * - * @return the ExposureControlsClient object. - */ - ExposureControlsClient getExposureControls(); - - /** - * Gets the IntegrationRuntimesClient object to access its operations. - * - * @return the IntegrationRuntimesClient object. - */ - IntegrationRuntimesClient getIntegrationRuntimes(); - - /** - * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. - * - * @return the IntegrationRuntimeObjectMetadatasClient object. - */ - IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas(); - - /** - * Gets the IntegrationRuntimeNodesClient object to access its operations. - * - * @return the IntegrationRuntimeNodesClient object. - */ - IntegrationRuntimeNodesClient getIntegrationRuntimeNodes(); - - /** - * Gets the LinkedServicesClient object to access its operations. - * - * @return the LinkedServicesClient object. - */ - LinkedServicesClient getLinkedServices(); - - /** - * Gets the DatasetsClient object to access its operations. - * - * @return the DatasetsClient object. - */ - DatasetsClient getDatasets(); - - /** - * Gets the PipelinesClient object to access its operations. - * - * @return the PipelinesClient object. - */ - PipelinesClient getPipelines(); - - /** - * Gets the PipelineRunsClient object to access its operations. - * - * @return the PipelineRunsClient object. - */ - PipelineRunsClient getPipelineRuns(); - - /** - * Gets the ActivityRunsClient object to access its operations. - * - * @return the ActivityRunsClient object. - */ - ActivityRunsClient getActivityRuns(); - - /** - * Gets the TriggersClient object to access its operations. - * - * @return the TriggersClient object. - */ - TriggersClient getTriggers(); - - /** - * Gets the TriggerRunsClient object to access its operations. - * - * @return the TriggerRunsClient object. - */ - TriggerRunsClient getTriggerRuns(); - - /** - * Gets the DataFlowsClient object to access its operations. - * - * @return the DataFlowsClient object. - */ - DataFlowsClient getDataFlows(); - - /** - * Gets the DataFlowDebugSessionsClient object to access its operations. - * - * @return the DataFlowDebugSessionsClient object. - */ - DataFlowDebugSessionsClient getDataFlowDebugSessions(); - - /** - * Gets the ManagedVirtualNetworksClient object to access its operations. - * - * @return the ManagedVirtualNetworksClient object. - */ - ManagedVirtualNetworksClient getManagedVirtualNetworks(); - - /** - * Gets the ManagedPrivateEndpointsClient object to access its operations. - * - * @return the ManagedPrivateEndpointsClient object. - */ - ManagedPrivateEndpointsClient getManagedPrivateEndpoints(); - - /** - * Gets the PrivateEndPointConnectionsClient object to access its operations. - * - * @return the PrivateEndPointConnectionsClient object. - */ - PrivateEndPointConnectionsClient getPrivateEndPointConnections(); - - /** - * Gets the PrivateEndpointConnectionOperationsClient object to access its operations. - * - * @return the PrivateEndpointConnectionOperationsClient object. - */ - PrivateEndpointConnectionOperationsClient getPrivateEndpointConnectionOperations(); - - /** - * Gets the PrivateLinkResourcesClient object to access its operations. - * - * @return the PrivateLinkResourcesClient object. - */ - PrivateLinkResourcesClient getPrivateLinkResources(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java deleted file mode 100644 index 0f4754438cf2a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; - -/** An instance of this class provides access to all the operations defined in DataFlowDebugSessionsClient. */ -public interface DataFlowDebugSessionsClient { - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CreateDataFlowDebugSessionResponseInner> - beginCreate(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request); - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CreateDataFlowDebugSessionResponseInner> - beginCreate( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context); - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CreateDataFlowDebugSessionResponseInner create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request); - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CreateDataFlowDebugSessionResponseInner create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context); - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable queryByFactory(String resourceGroupName, String factoryName); - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable queryByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AddDataFlowToDebugSessionResponseInner addDataFlow( - String resourceGroupName, String factoryName, DataFlowDebugPackage request); - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response addDataFlowWithResponse( - String resourceGroupName, String factoryName, DataFlowDebugPackage request, Context context); - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request); - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request, Context context); - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, - * statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataFlowDebugCommandResponseInner> beginExecuteCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request); - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, - * statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataFlowDebugCommandResponseInner> beginExecuteCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context); - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataFlowDebugCommandResponseInner executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request); - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataFlowDebugCommandResponseInner executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java deleted file mode 100644 index e9ff918a8772b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; - -/** An instance of this class provides access to all the operations defined in DataFlowsClient. */ -public interface DataFlowsClient { - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataFlowResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String dataFlowName, DataFlowResourceInner dataFlow); - - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String dataFlowName, - DataFlowResourceInner dataFlow, - String ifMatch, - Context context); - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataFlowResourceInner get(String resourceGroupName, String factoryName, String dataFlowName); - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch, Context context); - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String dataFlowName); - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, Context context); - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java deleted file mode 100644 index a07fdd93270cb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; - -/** An instance of this class provides access to all the operations defined in DatasetsClient. */ -public interface DatasetsClient { - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatasetResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String datasetName, DatasetResourceInner dataset); - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String datasetName, - DatasetResourceInner dataset, - String ifMatch, - Context context); - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatasetResourceInner get(String resourceGroupName, String factoryName, String datasetName); - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch, Context context); - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String datasetName); - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String datasetName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ExposureControlsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ExposureControlsClient.java deleted file mode 100644 index 99c4259f47924..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ExposureControlsClient.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; - -/** An instance of this class provides access to all the operations defined in ExposureControlsClient. */ -public interface ExposureControlsClient { - /** - * 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ExposureControlResponseInner getFeatureValue(String locationId, ExposureControlRequest exposureControlRequest); - - /** - * Get exposure control feature for specific location. - * - * @param locationId The location identifier. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getFeatureValueWithResponse( - String locationId, ExposureControlRequest exposureControlRequest, Context context); - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ExposureControlResponseInner getFeatureValueByFactory( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest); - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getFeatureValueByFactoryWithResponse( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, Context context); - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ExposureControlBatchResponseInner queryFeatureValuesByFactory( - String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest); - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response queryFeatureValuesByFactoryWithResponse( - String resourceGroupName, - String factoryName, - ExposureControlBatchRequest exposureControlBatchRequest, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java deleted file mode 100644 index 32ad739af713b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java +++ /dev/null @@ -1,278 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; -import com.azure.resourcemanager.datafactory.fluent.models.GitHubAccessTokenResponseInner; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import com.azure.resourcemanager.datafactory.models.FactoryUpdateParameters; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; - -/** An instance of this class provides access to all the operations defined in FactoriesClient. */ -public interface FactoriesClient { - /** - * Lists factories under the specified subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - FactoryInner configureFactoryRepo(String locationId, FactoryRepoUpdate factoryRepoUpdate); - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response configureFactoryRepoWithResponse( - String locationId, FactoryRepoUpdate factoryRepoUpdate, Context context); - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - FactoryInner createOrUpdate(String resourceGroupName, String factoryName, FactoryInner factory); - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch, Context context); - - /** - * Updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factoryUpdateParameters The parameters for updating a factory. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - FactoryInner update(String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters); - - /** - * Updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factoryUpdateParameters The parameters for updating a factory. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters, Context context); - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - FactoryInner getByResourceGroup(String resourceGroupName, String factoryName); - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String factoryName, String ifNoneMatch, Context context); - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName); - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String factoryName, Context context); - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - GitHubAccessTokenResponseInner getGitHubAccessToken( - String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest); - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getGitHubAccessTokenWithResponse( - String resourceGroupName, - String factoryName, - GitHubAccessTokenRequest gitHubAccessTokenRequest, - Context context); - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AccessPolicyResponseInner getDataPlaneAccess(String resourceGroupName, String factoryName, UserAccessPolicy policy); - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getDataPlaneAccessWithResponse( - String resourceGroupName, String factoryName, UserAccessPolicy policy, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeNodesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeNodesClient.java deleted file mode 100644 index 43b59a765f2bf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeNodesClient.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; - -/** An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. */ -public interface IntegrationRuntimeNodesClient { - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SelfHostedIntegrationRuntimeNodeInner get( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); - - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context); - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context); - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SelfHostedIntegrationRuntimeNodeInner update( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context); - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeNodeIpAddressInner getIpAddress( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getIpAddressWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java deleted file mode 100644 index 3e4bb339a7a86..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; - -/** - * An instance of this class provides access to all the operations defined in IntegrationRuntimeObjectMetadatasClient. - */ -public interface IntegrationRuntimeObjectMetadatasClient { - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of the operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of the operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SsisObjectMetadataListResponseInner get( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param getMetadataRequest The parameters for getting a SSIS object metadata. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java deleted file mode 100644 index 5b4b260084519..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java +++ /dev/null @@ -1,670 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest; - -/** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ -public interface IntegrationRuntimesClient { - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime); - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, - Context context); - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner get(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String ifNoneMatch, - Context context); - - /** - * Updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner update( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest); - - /** - * Updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - Context context); - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner getStatus( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getStatusWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeConnectionInfoInner getConnectionInfo( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getConnectionInfoWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeAuthKeysInner regenerateAuthKey( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response regenerateAuthKeyWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context); - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeAuthKeysInner listAuthKeys( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response listAuthKeysWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void syncCredentials(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response syncCredentialsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeMonitoringDataInner getMonitoringData( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getMonitoringDataWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void upgrade(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response upgradeWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void removeLinks( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest); - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response removeLinksWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, - Context context); - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner createLinkedIntegrationRuntime( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest); - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createLinkedIntegrationRuntimeWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/LinkedServicesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/LinkedServicesClient.java deleted file mode 100644 index 0df038b090db2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/LinkedServicesClient.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; - -/** An instance of this class provides access to all the operations defined in LinkedServicesClient. */ -public interface LinkedServicesClient { - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - LinkedServiceResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService); - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService, - String ifMatch, - Context context); - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - LinkedServiceResourceInner get(String resourceGroupName, String factoryName, String linkedServiceName); - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch, Context context); - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String linkedServiceName); - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedPrivateEndpointsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedPrivateEndpointsClient.java deleted file mode 100644 index 757f468e283a7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedPrivateEndpointsClient.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; - -/** An instance of this class provides access to all the operations defined in ManagedPrivateEndpointsClient. */ -public interface ManagedPrivateEndpointsClient { - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName); - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context); - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedPrivateEndpointResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint); - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint, - String ifMatch, - Context context); - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedPrivateEndpointResourceInner get( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName); - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - String ifNoneMatch, - Context context); - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName); - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedVirtualNetworksClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedVirtualNetworksClient.java deleted file mode 100644 index 62314bb02b0ef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedVirtualNetworksClient.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; - -/** An instance of this class provides access to all the operations defined in ManagedVirtualNetworksClient. */ -public interface ManagedVirtualNetworksClient { - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedVirtualNetworkResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork); - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork, - String ifMatch, - Context context); - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedVirtualNetworkResourceInner get( - String resourceGroupName, String factoryName, String managedVirtualNetworkName); - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String ifNoneMatch, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java deleted file mode 100644 index 544dfd34da479..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; - -/** An instance of this class provides access to all the operations defined in OperationsClient. */ -public interface OperationsClient { - /** - * Lists the available Azure Data Factory API operations. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists the available Azure Data Factory API operations. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelineRunsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelineRunsClient.java deleted file mode 100644 index 9a9d6d48ce917..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelineRunsClient.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; - -/** An instance of this class provides access to all the operations defined in PipelineRunsClient. */ -public interface PipelineRunsClient { - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PipelineRunsQueryResponseInner queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters); - - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context); - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PipelineRunInner get(String resourceGroupName, String factoryName, String runId); - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String runId, Context context); - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void cancel(String resourceGroupName, String factoryName, String runId); - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response cancelWithResponse( - String resourceGroupName, String factoryName, String runId, Boolean isRecursive, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelinesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelinesClient.java deleted file mode 100644 index b16fb595119a3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelinesClient.java +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import java.util.Map; - -/** An instance of this class provides access to all the operations defined in PipelinesClient. */ -public interface PipelinesClient { - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PipelineResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline); - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String pipelineName, - PipelineResourceInner pipeline, - String ifMatch, - Context context); - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PipelineResourceInner get(String resourceGroupName, String factoryName, String pipelineName); - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch, Context context); - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String pipelineName); - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String pipelineName, Context context); - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CreateRunResponseInner createRun(String resourceGroupName, String factoryName, String pipelineName); - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified - * run will be used to create a new run. - * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and - * the new run will be grouped under the same groupId. - * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all - * activities will run. - * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The - * property will be used only if startActivityName is not specified. - * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not - * specified. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createRunWithResponse( - String resourceGroupName, - String factoryName, - String pipelineName, - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndPointConnectionsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndPointConnectionsClient.java deleted file mode 100644 index 804a29c92d878..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndPointConnectionsClient.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; - -/** An instance of this class provides access to all the operations defined in PrivateEndPointConnectionsClient. */ -public interface PrivateEndPointConnectionsClient { - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndpointConnectionOperationsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndpointConnectionOperationsClient.java deleted file mode 100644 index f31a79fa4b48d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndpointConnectionOperationsClient.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource; - -/** - * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionOperationsClient. - */ -public interface PrivateEndpointConnectionOperationsClient { - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper); - - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, - String ifMatch, - Context context); - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionResourceInner get( - String resourceGroupName, String factoryName, String privateEndpointConnectionName); - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - String ifNoneMatch, - Context context); - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String privateEndpointConnectionName); - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String privateEndpointConnectionName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateLinkResourcesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateLinkResourcesClient.java deleted file mode 100644 index c38869b212f2d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateLinkResourcesClient.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; - -/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ -public interface PrivateLinkResourcesClient { - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourcesWrapperInner get(String resourceGroupName, String factoryName); - - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggerRunsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggerRunsClient.java deleted file mode 100644 index 9a8ebeb5cfd10..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggerRunsClient.java +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; - -/** An instance of this class provides access to all the operations defined in TriggerRunsClient. */ -public interface TriggerRunsClient { - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void rerun(String resourceGroupName, String factoryName, String triggerName, String runId); - - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response rerunWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context); - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void cancel(String resourceGroupName, String factoryName, String triggerName, String runId); - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response cancelWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context); - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerRunsQueryResponseInner queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters); - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggersClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggersClient.java deleted file mode 100644 index 634c41d2f796a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggersClient.java +++ /dev/null @@ -1,448 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerQueryResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; -import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; - -/** An instance of this class provides access to all the operations defined in TriggersClient. */ -public interface TriggersClient { - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerQueryResponseInner queryByFactory( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters); - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, Context context); - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger); - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String triggerName, - TriggerResourceInner trigger, - String ifMatch, - Context context); - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerResourceInner get(String resourceGroupName, String factoryName, String triggerName); - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, Context context); - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String triggerName); - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, TriggerSubscriptionOperationStatusInner> - beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName); - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, TriggerSubscriptionOperationStatusInner> - beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerSubscriptionOperationStatusInner subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName); - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerSubscriptionOperationStatusInner subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerSubscriptionOperationStatusInner getEventSubscriptionStatus( - String resourceGroupName, String factoryName, String triggerName); - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getEventSubscriptionStatusWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, TriggerSubscriptionOperationStatusInner> - beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName); - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, TriggerSubscriptionOperationStatusInner> - beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerSubscriptionOperationStatusInner unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName); - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - TriggerSubscriptionOperationStatusInner unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStart(String resourceGroupName, String factoryName, String triggerName); - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStart( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void start(String resourceGroupName, String factoryName, String triggerName); - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void start(String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop(String resourceGroupName, String factoryName, String triggerName); - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String resourceGroupName, String factoryName, String triggerName); - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String resourceGroupName, String factoryName, String triggerName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AccessPolicyResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AccessPolicyResponseInner.java deleted file mode 100644 index 96dd66c776227..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AccessPolicyResponseInner.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Get Data Plane read only token response definition. */ -@Fluent -public final class AccessPolicyResponseInner { - /* - * The user access policy. - */ - @JsonProperty(value = "policy") - private UserAccessPolicy policy; - - /* - * Data Plane read only access token. - */ - @JsonProperty(value = "accessToken") - private String accessToken; - - /* - * Data Plane service base URL. - */ - @JsonProperty(value = "dataPlaneUrl") - private String dataPlaneUrl; - - /** - * Get the policy property: The user access policy. - * - * @return the policy value. - */ - public UserAccessPolicy policy() { - return this.policy; - } - - /** - * Set the policy property: The user access policy. - * - * @param policy the policy value to set. - * @return the AccessPolicyResponseInner object itself. - */ - public AccessPolicyResponseInner withPolicy(UserAccessPolicy policy) { - this.policy = policy; - return this; - } - - /** - * Get the accessToken property: Data Plane read only access token. - * - * @return the accessToken value. - */ - public String accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: Data Plane read only access token. - * - * @param accessToken the accessToken value to set. - * @return the AccessPolicyResponseInner object itself. - */ - public AccessPolicyResponseInner withAccessToken(String accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the dataPlaneUrl property: Data Plane service base URL. - * - * @return the dataPlaneUrl value. - */ - public String dataPlaneUrl() { - return this.dataPlaneUrl; - } - - /** - * Set the dataPlaneUrl property: Data Plane service base URL. - * - * @param dataPlaneUrl the dataPlaneUrl value to set. - * @return the AccessPolicyResponseInner object itself. - */ - public AccessPolicyResponseInner withDataPlaneUrl(String dataPlaneUrl) { - this.dataPlaneUrl = dataPlaneUrl; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (policy() != null) { - policy().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ActivityRunsQueryResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ActivityRunsQueryResponseInner.java deleted file mode 100644 index f9ab58c286afc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ActivityRunsQueryResponseInner.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ActivityRun; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list activity runs. */ -@Fluent -public final class ActivityRunsQueryResponseInner { - /* - * List of activity runs. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - */ - @JsonProperty(value = "continuationToken") - private String continuationToken; - - /** - * Get the value property: List of activity runs. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of activity runs. - * - * @param value the value value to set. - * @return the ActivityRunsQueryResponseInner object itself. - */ - public ActivityRunsQueryResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @return the continuationToken value. - */ - public String continuationToken() { - return this.continuationToken; - } - - /** - * Set the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @param continuationToken the continuationToken value to set. - * @return the ActivityRunsQueryResponseInner object itself. - */ - public ActivityRunsQueryResponseInner withContinuationToken(String continuationToken) { - this.continuationToken = continuationToken; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model ActivityRunsQueryResponseInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ActivityRunsQueryResponseInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AddDataFlowToDebugSessionResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AddDataFlowToDebugSessionResponseInner.java deleted file mode 100644 index 8f31653f9d466..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AddDataFlowToDebugSessionResponseInner.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Response body structure for starting data flow debug session. */ -@Fluent -public final class AddDataFlowToDebugSessionResponseInner { - /* - * The ID of data flow debug job version. - */ - @JsonProperty(value = "jobVersion") - private String jobVersion; - - /** - * Get the jobVersion property: The ID of data flow debug job version. - * - * @return the jobVersion value. - */ - public String jobVersion() { - return this.jobVersion; - } - - /** - * Set the jobVersion property: The ID of data flow debug job version. - * - * @param jobVersion the jobVersion value to set. - * @return the AddDataFlowToDebugSessionResponseInner object itself. - */ - public AddDataFlowToDebugSessionResponseInner withJobVersion(String jobVersion) { - this.jobVersion = jobVersion; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java deleted file mode 100644 index d465d059a9aa3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Marketplace Web Service linked service properties. */ -@Fluent -public final class AmazonMwsLinkedServiceTypeProperties { - /* - * The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The Amazon Marketplace ID you want to retrieve data from. To retrieve - * data from multiple Marketplace IDs, separate them with a comma (,). - * (i.e. A2EUQ1WTGCTBG2) - */ - @JsonProperty(value = "marketplaceID", required = true) - private Object marketplaceId; - - /* - * The Amazon seller ID. - */ - @JsonProperty(value = "sellerID", required = true) - private Object sellerId; - - /* - * The Amazon MWS authentication token. - */ - @JsonProperty(value = "mwsAuthToken") - private SecretBase mwsAuthToken; - - /* - * The access key id used to access data. - */ - @JsonProperty(value = "accessKeyId", required = true) - private Object accessKeyId; - - /* - * The secret key used to access data. - */ - @JsonProperty(value = "secretKey") - private SecretBase secretKey; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). - * - * @param endpoint the endpoint value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the marketplaceId property: The Amazon Marketplace ID you want to retrieve data from. To retrieve data from - * multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - * - * @return the marketplaceId value. - */ - public Object marketplaceId() { - return this.marketplaceId; - } - - /** - * Set the marketplaceId property: The Amazon Marketplace ID you want to retrieve data from. To retrieve data from - * multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - * - * @param marketplaceId the marketplaceId value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withMarketplaceId(Object marketplaceId) { - this.marketplaceId = marketplaceId; - return this; - } - - /** - * Get the sellerId property: The Amazon seller ID. - * - * @return the sellerId value. - */ - public Object sellerId() { - return this.sellerId; - } - - /** - * Set the sellerId property: The Amazon seller ID. - * - * @param sellerId the sellerId value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withSellerId(Object sellerId) { - this.sellerId = sellerId; - return this; - } - - /** - * Get the mwsAuthToken property: The Amazon MWS authentication token. - * - * @return the mwsAuthToken value. - */ - public SecretBase mwsAuthToken() { - return this.mwsAuthToken; - } - - /** - * Set the mwsAuthToken property: The Amazon MWS authentication token. - * - * @param mwsAuthToken the mwsAuthToken value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withMwsAuthToken(SecretBase mwsAuthToken) { - this.mwsAuthToken = mwsAuthToken; - return this; - } - - /** - * Get the accessKeyId property: The access key id used to access data. - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key id used to access data. - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretKey property: The secret key used to access data. - * - * @return the secretKey value. - */ - public SecretBase secretKey() { - return this.secretKey; - } - - /** - * Set the secretKey property: The secret key used to access data. - * - * @param secretKey the secretKey value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withSecretKey(SecretBase secretKey) { - this.secretKey = secretKey; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model AmazonMwsLinkedServiceTypeProperties")); - } - if (marketplaceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property marketplaceId in model AmazonMwsLinkedServiceTypeProperties")); - } - if (sellerId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property sellerId in model AmazonMwsLinkedServiceTypeProperties")); - } - if (mwsAuthToken() != null) { - mwsAuthToken().validate(); - } - if (accessKeyId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property accessKeyId in model AmazonMwsLinkedServiceTypeProperties")); - } - if (secretKey() != null) { - secretKey().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonMwsLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java deleted file mode 100644 index 1e3529c46283d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AmazonRdsForOracle database linked service properties. */ -@Fluent -public final class AmazonRdsForLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AmazonRdsForLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AmazonRdsForLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRdsForLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AmazonRdsForLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java deleted file mode 100644 index 41fb3124b2102..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AmazonRdsForOracle dataset properties. */ -@Fluent -public final class AmazonRdsForOracleTableDatasetTypeProperties { - /* - * The schema name of the AmazonRdsForOracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the AmazonRdsForOracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForOracleTableDatasetTypeProperties object itself. - */ - public AmazonRdsForOracleTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AmazonRdsForOracleTableDatasetTypeProperties object itself. - */ - public AmazonRdsForOracleTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java deleted file mode 100644 index bf5cf43a34dd9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Rds for SQL Server linked service properties. */ -@Fluent -public final class AmazonRdsForSqlServerLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The on-premises Windows authentication user name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The on-premises Windows authentication password. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The on-premises Windows authentication password. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The on-premises Windows authentication password. - * - * @param password the password value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " AmazonRdsForSqlServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForSqlServerLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java deleted file mode 100644 index be96c4a43d17c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The Amazon RDS for SQL Server dataset properties. */ -@Fluent -public final class AmazonRdsForSqlServerTableDatasetTypeProperties { - /* - * The schema name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForSqlServerTableDatasetTypeProperties object itself. - */ - public AmazonRdsForSqlServerTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AmazonRdsForSqlServerTableDatasetTypeProperties object itself. - */ - public AmazonRdsForSqlServerTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java deleted file mode 100644 index 6f1ca69a67a47..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Redshift linked service properties. */ -@Fluent -public final class AmazonRedshiftLinkedServiceTypeProperties { - /* - * The name of the Amazon Redshift server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * The username of the Amazon Redshift source. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password of the Amazon Redshift source. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The database name of the Amazon Redshift source. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /* - * The TCP port number that the Amazon Redshift server uses to listen for - * client connections. The default value is 5439. Type: integer (or - * Expression with resultType integer). - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: The name of the Amazon Redshift server. Type: string (or Expression with resultType - * string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: The name of the Amazon Redshift server. Type: string (or Expression with resultType - * string). - * - * @param server the server value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the username property: The username of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password of the Amazon Redshift source. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password of the Amazon Redshift source. - * - * @param password the password value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the database property: The database name of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The database name of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @param database the database value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the port property: The TCP port number that the Amazon Redshift server uses to listen for client connections. - * The default value is 5439. Type: integer (or Expression with resultType integer). - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the Amazon Redshift server uses to listen for client connections. - * The default value is 5439. Type: integer (or Expression with resultType integer). - * - * @param port the port value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model AmazonRedshiftLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (database() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model AmazonRedshiftLinkedServiceTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonRedshiftLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java deleted file mode 100644 index 2a07a308d3d72..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Redshift table dataset properties. */ -@Fluent -public final class AmazonRedshiftTableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The Amazon Redshift table name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The Amazon Redshift schema name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AmazonRedshiftTableDatasetTypeProperties object itself. - */ - public AmazonRedshiftTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The Amazon Redshift table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The Amazon Redshift table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the AmazonRedshiftTableDatasetTypeProperties object itself. - */ - public AmazonRedshiftTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the AmazonRedshiftTableDatasetTypeProperties object itself. - */ - public AmazonRedshiftTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java deleted file mode 100644 index 38ead8bec6113..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon S3 Compatible linked service properties. */ -@Fluent -public final class AmazonS3CompatibleLinkedServiceTypeProperties { - /* - * The access key identifier of the Amazon S3 Compatible Identity and - * Access Management (IAM) user. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the Amazon S3 - * Compatible Connector. This is an optional property; change it only if - * you want to try a different service endpoint or want to switch between - * https and http. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * If true, use S3 path-style access instead of virtual hosted-style - * access. Default value is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "forcePathStyle") - private Object forcePathStyle; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accessKeyId property: The access key identifier of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Amazon S3 Compatible Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Amazon S3 Compatible Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the forcePathStyle property: If true, use S3 path-style access instead of virtual hosted-style access. - * Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the forcePathStyle value. - */ - public Object forcePathStyle() { - return this.forcePathStyle; - } - - /** - * Set the forcePathStyle property: If true, use S3 path-style access instead of virtual hosted-style access. - * Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param forcePathStyle the forcePathStyle value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withForcePathStyle(Object forcePathStyle) { - this.forcePathStyle = forcePathStyle; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java deleted file mode 100644 index 1f987eb16b48c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon S3 dataset properties. */ -@Fluent -public final class AmazonS3DatasetTypeProperties { - /* - * The name of the Amazon S3 bucket. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "bucketName", required = true) - private Object bucketName; - - /* - * The key of the Amazon S3 object. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "key") - private Object key; - - /* - * The prefix filter for the S3 object name. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * The version for the S3 object. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /* - * The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * The format of files. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the Amazon S3 object. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the bucketName property: The name of the Amazon S3 bucket. Type: string (or Expression with resultType - * string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.bucketName; - } - - /** - * Set the bucketName property: The name of the Amazon S3 bucket. Type: string (or Expression with resultType - * string). - * - * @param bucketName the bucketName value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withBucketName(Object bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Get the key property: The key of the Amazon S3 object. Type: string (or Expression with resultType string). - * - * @return the key value. - */ - public Object key() { - return this.key; - } - - /** - * Set the key property: The key of the Amazon S3 object. Type: string (or Expression with resultType string). - * - * @param key the key value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withKey(Object key) { - this.key = key; - return this; - } - - /** - * Get the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @param prefix the prefix value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the version property: The version for the S3 object. Type: string (or Expression with resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: The version for the S3 object. Type: string (or Expression with resultType string). - * - * @param version the version value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withVersion(Object version) { - this.version = version; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of S3 object's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of S3 object's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the format property: The format of files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of files. - * - * @param format the format value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the Amazon S3 object. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the Amazon S3 object. - * - * @param compression the compression value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (bucketName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property bucketName in model AmazonS3DatasetTypeProperties")); - } - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonS3DatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java deleted file mode 100644 index ed9046fbaca97..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java +++ /dev/null @@ -1,205 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon S3 linked service properties. */ -@Fluent -public final class AmazonS3LinkedServiceTypeProperties { - /* - * The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access key identifier of the Amazon S3 Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Amazon S3 Identity and Access Management - * (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the S3 Connector. This - * is an optional property; change it only if you want to try a different - * service endpoint or want to switch between https and http. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * The session token for the S3 temporary security credential. - */ - @JsonProperty(value = "sessionToken") - private SecretBase sessionToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the authenticationType property: The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the accessKeyId property: The access key identifier of the Amazon S3 Identity and Access Management (IAM) - * user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Amazon S3 Identity and Access Management (IAM) - * user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Amazon S3 Identity and Access Management (IAM) - * user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Amazon S3 Identity and Access Management (IAM) - * user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the S3 Connector. This is an - * optional property; change it only if you want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the S3 Connector. This is an - * optional property; change it only if you want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the sessionToken property: The session token for the S3 temporary security credential. - * - * @return the sessionToken value. - */ - public SecretBase sessionToken() { - return this.sessionToken; - } - - /** - * Set the sessionToken property: The session token for the S3 temporary security credential. - * - * @param sessionToken the sessionToken value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withSessionToken(SecretBase sessionToken) { - this.sessionToken = sessionToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - if (sessionToken() != null) { - sessionToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java deleted file mode 100644 index 53824b20decb2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AppendVariable activity properties. */ -@Fluent -public final class AppendVariableActivityTypeProperties { - /* - * Name of the variable whose value needs to be appended to. - */ - @JsonProperty(value = "variableName") - private String variableName; - - /* - * Value to be appended. Could be a static value or Expression - */ - @JsonProperty(value = "value") - private Object value; - - /** - * Get the variableName property: Name of the variable whose value needs to be appended to. - * - * @return the variableName value. - */ - public String variableName() { - return this.variableName; - } - - /** - * Set the variableName property: Name of the variable whose value needs to be appended to. - * - * @param variableName the variableName value to set. - * @return the AppendVariableActivityTypeProperties object itself. - */ - public AppendVariableActivityTypeProperties withVariableName(String variableName) { - this.variableName = variableName; - return this; - } - - /** - * Get the value property: Value to be appended. Could be a static value or Expression. - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: Value to be appended. Could be a static value or Expression. - * - * @param value the value value to set. - * @return the AppendVariableActivityTypeProperties object itself. - */ - public AppendVariableActivityTypeProperties withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java deleted file mode 100644 index e2a9743b0fb61..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Avro dataset properties. */ -@Fluent -public final class AvroDatasetTypeProperties { - /* - * The location of the avro storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data avroCompressionCodec. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "avroCompressionCodec") - private Object avroCompressionCodec; - - /* - * The avroCompressionLevel property. - */ - @JsonProperty(value = "avroCompressionLevel") - private Integer avroCompressionLevel; - - /** - * Get the location property: The location of the avro storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the avro storage. - * - * @param location the location value to set. - * @return the AvroDatasetTypeProperties object itself. - */ - public AvroDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the avroCompressionCodec value. - */ - public Object avroCompressionCodec() { - return this.avroCompressionCodec; - } - - /** - * Set the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @param avroCompressionCodec the avroCompressionCodec value to set. - * @return the AvroDatasetTypeProperties object itself. - */ - public AvroDatasetTypeProperties withAvroCompressionCodec(Object avroCompressionCodec) { - this.avroCompressionCodec = avroCompressionCodec; - return this; - } - - /** - * Get the avroCompressionLevel property: The avroCompressionLevel property. - * - * @return the avroCompressionLevel value. - */ - public Integer avroCompressionLevel() { - return this.avroCompressionLevel; - } - - /** - * Set the avroCompressionLevel property: The avroCompressionLevel property. - * - * @param avroCompressionLevel the avroCompressionLevel value to set. - * @return the AvroDatasetTypeProperties object itself. - */ - public AvroDatasetTypeProperties withAvroCompressionLevel(Integer avroCompressionLevel) { - this.avroCompressionLevel = avroCompressionLevel; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model AvroDatasetTypeProperties")); - } else { - location().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AvroDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java deleted file mode 100644 index 9fe9328acd660..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Installation of Azure PowerShell type properties. */ -@Fluent -public final class AzPowerShellSetupTypeProperties { - /* - * The required version of Azure PowerShell to install. - */ - @JsonProperty(value = "version", required = true) - private String version; - - /** - * Get the version property: The required version of Azure PowerShell to install. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Set the version property: The required version of Azure PowerShell to install. - * - * @param version the version value to set. - * @return the AzPowerShellSetupTypeProperties object itself. - */ - public AzPowerShellSetupTypeProperties withVersion(String version) { - this.version = version; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (version() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property version in model AzPowerShellSetupTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzPowerShellSetupTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java deleted file mode 100644 index d9db05c8dc9db..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Batch linked service properties. */ -@Fluent -public final class AzureBatchLinkedServiceTypeProperties { - /* - * The Azure Batch account name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accountName", required = true) - private Object accountName; - - /* - * The Azure Batch account access key. - */ - @JsonProperty(value = "accessKey") - private SecretBase accessKey; - - /* - * The Azure Batch URI. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "batchUri", required = true) - private Object batchUri; - - /* - * The Azure Batch pool name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "poolName", required = true) - private Object poolName; - - /* - * The Azure Storage linked service reference. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.accountName; - } - - /** - * Set the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withAccountName(Object accountName) { - this.accountName = accountName; - return this; - } - - /** - * Get the accessKey property: The Azure Batch account access key. - * - * @return the accessKey value. - */ - public SecretBase accessKey() { - return this.accessKey; - } - - /** - * Set the accessKey property: The Azure Batch account access key. - * - * @param accessKey the accessKey value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withAccessKey(SecretBase accessKey) { - this.accessKey = accessKey; - return this; - } - - /** - * Get the batchUri property: The Azure Batch URI. Type: string (or Expression with resultType string). - * - * @return the batchUri value. - */ - public Object batchUri() { - return this.batchUri; - } - - /** - * Set the batchUri property: The Azure Batch URI. Type: string (or Expression with resultType string). - * - * @param batchUri the batchUri value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withBatchUri(Object batchUri) { - this.batchUri = batchUri; - return this; - } - - /** - * Get the poolName property: The Azure Batch pool name. Type: string (or Expression with resultType string). - * - * @return the poolName value. - */ - public Object poolName() { - return this.poolName; - } - - /** - * Set the poolName property: The Azure Batch pool name. Type: string (or Expression with resultType string). - * - * @param poolName the poolName value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withPoolName(Object poolName) { - this.poolName = poolName; - return this; - } - - /** - * Get the linkedServiceName property: The Azure Storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: The Azure Storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property accountName in model AzureBatchLinkedServiceTypeProperties")); - } - if (accessKey() != null) { - accessKey().validate(); - } - if (batchUri() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property batchUri in model AzureBatchLinkedServiceTypeProperties")); - } - if (poolName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property poolName in model AzureBatchLinkedServiceTypeProperties")); - } - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model AzureBatchLinkedServiceTypeProperties")); - } else { - linkedServiceName().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureBatchLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java deleted file mode 100644 index 9390fb3e06e2a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Blob dataset properties. */ -@Fluent -public final class AzureBlobDatasetTypeProperties { - /* - * The path of the Azure Blob storage. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The root of blob path. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableRootLocation") - private Object tableRootLocation; - - /* - * The name of the Azure Blob. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * The format of the Azure Blob storage. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the blob storage. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: The path of the Azure Blob storage. Type: string (or Expression with resultType - * string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the Azure Blob storage. Type: string (or Expression with resultType - * string). - * - * @param folderPath the folderPath value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the tableRootLocation property: The root of blob path. Type: string (or Expression with resultType string). - * - * @return the tableRootLocation value. - */ - public Object tableRootLocation() { - return this.tableRootLocation; - } - - /** - * Set the tableRootLocation property: The root of blob path. Type: string (or Expression with resultType string). - * - * @param tableRootLocation the tableRootLocation value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withTableRootLocation(Object tableRootLocation) { - this.tableRootLocation = tableRootLocation; - return this; - } - - /** - * Get the fileName property: The name of the Azure Blob. Type: string (or Expression with resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the Azure Blob. Type: string (or Expression with resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of Azure Blob's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of Azure Blob's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the format property: The format of the Azure Blob storage. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the Azure Blob storage. - * - * @param format the format value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the blob storage. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the blob storage. - * - * @param compression the compression value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java deleted file mode 100644 index 99fc3dd5afde7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Storage Gen2 dataset properties. */ -@Fluent -public final class AzureBlobFSDatasetTypeProperties { - /* - * The path of the Azure Data Lake Storage Gen2 storage. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The name of the Azure Data Lake Storage Gen2. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The format of the Azure Data Lake Storage Gen2 storage. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the blob storage. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression - * with resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression - * with resultType string). - * - * @param folderPath the folderPath value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the fileName property: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with - * resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with - * resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the format property: The format of the Azure Data Lake Storage Gen2 storage. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the Azure Data Lake Storage Gen2 storage. - * - * @param format the format value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the blob storage. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the blob storage. - * - * @param compression the compression value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java deleted file mode 100644 index 5d7d039a1758b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java +++ /dev/null @@ -1,347 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Storage Gen2 linked service properties. */ -@Fluent -public final class AzureBlobFSLinkedServiceTypeProperties { - /* - * Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Account key for the Azure Data Lake Storage Gen2 service. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "accountKey") - private Object accountKey; - - /* - * The ID of the application used to authenticate against the Azure Data - * Lake Storage Gen2 account. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The Key of the application used to authenticate against the Azure Data - * Lake Storage Gen2 account. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private Object servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /** - * Get the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with - * resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with - * resultType string). - * - * @param url the url value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the accountKey property: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - * - * @return the accountKey value. - */ - public Object accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - * - * @param accountKey the accountKey value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withAccountKey(Object accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withServicePrincipalCredential( - SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model AzureBlobFSLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureBlobFSLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java deleted file mode 100644 index 54d37be1de97a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Blob Storage linked service properties. */ -@Fluent -public final class AzureBlobStorageLinkedServiceTypeProperties { - /* - * The connection string. It is mutually exclusive with sasUri, - * serviceEndpoint property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of accountKey in connection string. - */ - @JsonProperty(value = "accountKey") - private AzureKeyVaultSecretReference accountKey; - - /* - * SAS URI of the Azure Blob Storage resource. It is mutually exclusive - * with connectionString, serviceEndpoint property. Type: string, - * SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "sasUri") - private Object sasUri; - - /* - * The Azure key vault secret reference of sasToken in sas uri. - */ - @JsonProperty(value = "sasToken") - private AzureKeyVaultSecretReference sasToken; - - /* - * Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - */ - @JsonProperty(value = "serviceEndpoint") - private String serviceEndpoint; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Data Warehouse. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * Specify the kind of your storage account. Allowed values are: Storage - * (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or - * BlockBlobStorage. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "accountKind") - private String accountKind; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private String encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withAccountKey(AzureKeyVaultSecretReference accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - * connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.sasUri; - } - - /** - * Set the sasUri property: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - * connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withSasUri(Object sasUri) { - this.sasUri = sasUri; - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withSasToken(AzureKeyVaultSecretReference sasToken) { - this.sasToken = sasToken; - return this; - } - - /** - * Get the serviceEndpoint property: Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - * - * @return the serviceEndpoint value. - */ - public String serviceEndpoint() { - return this.serviceEndpoint; - } - - /** - * Set the serviceEndpoint property: Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - * - * @param serviceEndpoint the serviceEndpoint value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withServiceEndpoint(String serviceEndpoint) { - this.serviceEndpoint = serviceEndpoint; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the accountKind property: Specify the kind of your storage account. Allowed values are: Storage (general - * purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with - * resultType string). - * - * @return the accountKind value. - */ - public String accountKind() { - return this.accountKind; - } - - /** - * Set the accountKind property: Specify the kind of your storage account. Allowed values are: Storage (general - * purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with - * resultType string). - * - * @param accountKind the accountKind value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withAccountKind(String accountKind) { - this.accountKind = accountKind; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountKey() != null) { - accountKey().validate(); - } - if (sasToken() != null) { - sasToken().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java deleted file mode 100644 index 9be7c6828a530..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Explorer command activity properties. */ -@Fluent -public final class AzureDataExplorerCommandActivityTypeProperties { - /* - * A control command, according to the Azure Data Explorer command syntax. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "command", required = true) - private Object command; - - /* - * Control command timeout. Type: string (or Expression with resultType - * string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) - */ - @JsonProperty(value = "commandTimeout") - private Object commandTimeout; - - /** - * Get the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @return the command value. - */ - public Object command() { - return this.command; - } - - /** - * Set the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @param command the command value to set. - * @return the AzureDataExplorerCommandActivityTypeProperties object itself. - */ - public AzureDataExplorerCommandActivityTypeProperties withCommand(Object command) { - this.command = command; - return this; - } - - /** - * Get the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @return the commandTimeout value. - */ - public Object commandTimeout() { - return this.commandTimeout; - } - - /** - * Set the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @param commandTimeout the commandTimeout value to set. - * @return the AzureDataExplorerCommandActivityTypeProperties object itself. - */ - public AzureDataExplorerCommandActivityTypeProperties withCommandTimeout(Object commandTimeout) { - this.commandTimeout = commandTimeout; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (command() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property command in model AzureDataExplorerCommandActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerCommandActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java deleted file mode 100644 index 0dfae13b294e7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Explorer (Kusto) dataset properties. */ -@Fluent -public final class AzureDataExplorerDatasetTypeProperties { - /* - * The table name of the Azure Data Explorer database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzureDataExplorerDatasetTypeProperties object itself. - */ - public AzureDataExplorerDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java deleted file mode 100644 index a3ed6683dfe88..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Explorer (Kusto) linked service properties. */ -@Fluent -public final class AzureDataExplorerLinkedServiceTypeProperties { - /* - * The endpoint of Azure Data Explorer (the engine's endpoint). URL will be - * in the format https://..kusto.windows.net. - * Type: string (or Expression with resultType string) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Kusto. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * Database name for connection. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format - * https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType - * string). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format - * https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType - * string). - * - * @param endpoint the endpoint value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Kusto. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Kusto. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model AzureDataExplorerLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (database() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model AzureDataExplorerLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java deleted file mode 100644 index fe66df56c7465..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Analytics linked service properties. */ -@Fluent -public final class AzureDataLakeAnalyticsLinkedServiceTypeProperties { - /* - * The Azure Data Lake Analytics account name. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "accountName", required = true) - private Object accountName; - - /* - * The ID of the application used to authenticate against the Azure Data - * Lake Analytics account. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The Key of the application used to authenticate against the Azure Data - * Lake Analytics account. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant", required = true) - private Object tenant; - - /* - * Data Lake Analytics account subscription ID (if different from Data - * Factory account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "subscriptionId") - private Object subscriptionId; - - /* - * Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "resourceGroupName") - private Object resourceGroupName; - - /* - * Azure Data Lake Analytics URI Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "dataLakeAnalyticsUri") - private Object dataLakeAnalyticsUri; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accountName property: The Azure Data Lake Analytics account name. Type: string (or Expression with - * resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.accountName; - } - - /** - * Set the accountName property: The Azure Data Lake Analytics account name. Type: string (or Expression with - * resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withAccountName(Object accountName) { - this.accountName = accountName; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Analytics account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Analytics account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Analytics account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Analytics account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the subscriptionId property: Data Lake Analytics account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscriptionId property: Data Lake Analytics account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withSubscriptionId(Object subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resourceGroupName property: Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.resourceGroupName; - } - - /** - * Set the resourceGroupName property: Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withResourceGroupName(Object resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - /** - * Get the dataLakeAnalyticsUri property: Azure Data Lake Analytics URI Type: string (or Expression with resultType - * string). - * - * @return the dataLakeAnalyticsUri value. - */ - public Object dataLakeAnalyticsUri() { - return this.dataLakeAnalyticsUri; - } - - /** - * Set the dataLakeAnalyticsUri property: Azure Data Lake Analytics URI Type: string (or Expression with resultType - * string). - * - * @param dataLakeAnalyticsUri the dataLakeAnalyticsUri value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withDataLakeAnalyticsUri(Object dataLakeAnalyticsUri) { - this.dataLakeAnalyticsUri = dataLakeAnalyticsUri; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property accountName in model" - + " AzureDataLakeAnalyticsLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (tenant() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenant in model AzureDataLakeAnalyticsLinkedServiceTypeProperties")); - } - } - - private static final ClientLogger LOGGER = - new ClientLogger(AzureDataLakeAnalyticsLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java deleted file mode 100644 index a97ddc6ab8f8a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Store dataset properties. */ -@Fluent -public final class AzureDataLakeStoreDatasetTypeProperties { - /* - * Path to the folder in the Azure Data Lake Store. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The name of the file in the Azure Data Lake Store. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The format of the Data Lake Store. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the item(s) in the Azure Data Lake - * Store. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: Path to the folder in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: Path to the folder in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @param folderPath the folderPath value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the fileName property: The name of the file in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the file in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the format property: The format of the Data Lake Store. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the Data Lake Store. - * - * @param format the format value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the item(s) in the Azure Data Lake Store. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the item(s) in the Azure Data Lake Store. - * - * @param compression the compression value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java deleted file mode 100644 index bc66142c6ddfd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java +++ /dev/null @@ -1,328 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Store linked service properties. */ -@Fluent -public final class AzureDataLakeStoreLinkedServiceTypeProperties { - /* - * Data Lake Store service URI. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "dataLakeStoreUri", required = true) - private Object dataLakeStoreUri; - - /* - * The ID of the application used to authenticate against the Azure Data - * Lake Store account. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The Key of the application used to authenticate against the Azure Data - * Lake Store account. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * Data Lake Store account name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accountName") - private Object accountName; - - /* - * Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "subscriptionId") - private Object subscriptionId; - - /* - * Data Lake Store account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "resourceGroupName") - private Object resourceGroupName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the dataLakeStoreUri property: Data Lake Store service URI. Type: string (or Expression with resultType - * string). - * - * @return the dataLakeStoreUri value. - */ - public Object dataLakeStoreUri() { - return this.dataLakeStoreUri; - } - - /** - * Set the dataLakeStoreUri property: Data Lake Store service URI. Type: string (or Expression with resultType - * string). - * - * @param dataLakeStoreUri the dataLakeStoreUri value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withDataLakeStoreUri(Object dataLakeStoreUri) { - this.dataLakeStoreUri = dataLakeStoreUri; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Store account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Store account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Store account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Store account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the accountName property: Data Lake Store account name. Type: string (or Expression with resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.accountName; - } - - /** - * Set the accountName property: Data Lake Store account name. Type: string (or Expression with resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withAccountName(Object accountName) { - this.accountName = accountName; - return this; - } - - /** - * Get the subscriptionId property: Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscriptionId property: Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withSubscriptionId(Object subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resourceGroupName property: Data Lake Store account resource group name (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.resourceGroupName; - } - - /** - * Set the resourceGroupName property: Data Lake Store account resource group name (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withResourceGroupName(Object resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataLakeStoreUri() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataLakeStoreUri in model" - + " AzureDataLakeStoreLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeStoreLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java deleted file mode 100644 index 414390a473b5e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Databricks Delta Lake Dataset Properties. */ -@Fluent -public final class AzureDatabricksDeltaLakeDatasetTypeProperties { - /* - * The name of delta table. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The database name of delta table. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database") - private Object database; - - /** - * Get the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the AzureDatabricksDeltaLakeDatasetTypeProperties object itself. - */ - public AzureDatabricksDeltaLakeDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the AzureDatabricksDeltaLakeDatasetTypeProperties object itself. - */ - public AzureDatabricksDeltaLakeDatasetTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java deleted file mode 100644 index b8872eb08a071..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Databricks Delta Lake linked service properties. */ -@Fluent -public final class AzureDatabricksDetltaLakeLinkedServiceTypeProperties { - /* - * .azuredatabricks.net, domain name of your Databricks deployment. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "domain", required = true) - private Object domain; - - /* - * Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: - * string, SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * The id of an existing interactive cluster that will be used for all runs - * of this job. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterId") - private Object clusterId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /* - * Workspace resource id for databricks REST API. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "workspaceResourceId") - private Object workspaceResourceId; - - /** - * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @return the domain value. - */ - public Object domain() { - return this.domain; - } - - /** - * Set the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @param domain the domain value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withDomain(Object domain) { - this.domain = domain; - return this; - } - - /** - * Get the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param accessToken the accessToken value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the clusterId property: The id of an existing interactive cluster that will be used for all runs of this job. - * Type: string (or Expression with resultType string). - * - * @return the clusterId value. - */ - public Object clusterId() { - return this.clusterId; - } - - /** - * Set the clusterId property: The id of an existing interactive cluster that will be used for all runs of this job. - * Type: string (or Expression with resultType string). - * - * @param clusterId the clusterId value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withClusterId(Object clusterId) { - this.clusterId = clusterId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Get the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @return the workspaceResourceId value. - */ - public Object workspaceResourceId() { - return this.workspaceResourceId; - } - - /** - * Set the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @param workspaceResourceId the workspaceResourceId value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withWorkspaceResourceId(Object workspaceResourceId) { - this.workspaceResourceId = workspaceResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (domain() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property domain in model" - + " AzureDatabricksDetltaLakeLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = - new ClientLogger(AzureDatabricksDetltaLakeLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java deleted file mode 100644 index dc26ca0ee3a3e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java +++ /dev/null @@ -1,619 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Azure Databricks linked service properties. */ -@Fluent -public final class AzureDatabricksLinkedServiceTypeProperties { - /* - * .azuredatabricks.net, domain name of your Databricks deployment. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "domain", required = true) - private Object domain; - - /* - * Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Required to specify MSI, if using Workspace resource id for databricks - * REST API. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authentication") - private Object authentication; - - /* - * Workspace resource id for databricks REST API. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "workspaceResourceId") - private Object workspaceResourceId; - - /* - * The id of an existing interactive cluster that will be used for all runs - * of this activity. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "existingClusterId") - private Object existingClusterId; - - /* - * The id of an existing instance pool that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "instancePoolId") - private Object instancePoolId; - - /* - * If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run - * of this activity. Required if instancePoolId is specified. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "newClusterVersion") - private Object newClusterVersion; - - /* - * If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new - * job clusters, this a string-formatted Int32, like '1' means numOfWorker - * is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance - * pools, this is a string-formatted Int32, and can only specify a fixed - * number of worker nodes, such as '2'. Required if newClusterVersion is - * specified. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "newClusterNumOfWorker") - private Object newClusterNumOfWorker; - - /* - * The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If - * instancePoolId is specified, this property is ignored. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "newClusterNodeType") - private Object newClusterNodeType; - - /* - * A set of optional, user-specified Spark configuration key-value pairs. - */ - @JsonProperty(value = "newClusterSparkConf") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map newClusterSparkConf; - - /* - * A set of optional, user-specified Spark environment variables key-value - * pairs. - */ - @JsonProperty(value = "newClusterSparkEnvVars") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map newClusterSparkEnvVars; - - /* - * Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - */ - @JsonProperty(value = "newClusterCustomTags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map newClusterCustomTags; - - /* - * Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "newClusterLogDestination") - private Object newClusterLogDestination; - - /* - * The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "newClusterDriverNodeType") - private Object newClusterDriverNodeType; - - /* - * User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - */ - @JsonProperty(value = "newClusterInitScripts") - private Object newClusterInitScripts; - - /* - * Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks - * (elastic disks are always enabled). Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "newClusterEnableElasticDisk") - private Object newClusterEnableElasticDisk; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The policy id for limiting the ability to configure clusters based on a - * user defined set of rules. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "policyId") - private Object policyId; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @return the domain value. - */ - public Object domain() { - return this.domain; - } - - /** - * Set the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @param domain the domain value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withDomain(Object domain) { - this.domain = domain; - return this; - } - - /** - * Get the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType - * string). - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType - * string). - * - * @param accessToken the accessToken value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the authentication property: Required to specify MSI, if using Workspace resource id for databricks REST API. - * Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Required to specify MSI, if using Workspace resource id for databricks REST API. - * Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withAuthentication(Object authentication) { - this.authentication = authentication; - return this; - } - - /** - * Get the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @return the workspaceResourceId value. - */ - public Object workspaceResourceId() { - return this.workspaceResourceId; - } - - /** - * Set the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @param workspaceResourceId the workspaceResourceId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withWorkspaceResourceId(Object workspaceResourceId) { - this.workspaceResourceId = workspaceResourceId; - return this; - } - - /** - * Get the existingClusterId property: The id of an existing interactive cluster that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - * - * @return the existingClusterId value. - */ - public Object existingClusterId() { - return this.existingClusterId; - } - - /** - * Set the existingClusterId property: The id of an existing interactive cluster that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - * - * @param existingClusterId the existingClusterId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withExistingClusterId(Object existingClusterId) { - this.existingClusterId = existingClusterId; - return this; - } - - /** - * Get the instancePoolId property: The id of an existing instance pool that will be used for all runs of this - * activity. Type: string (or Expression with resultType string). - * - * @return the instancePoolId value. - */ - public Object instancePoolId() { - return this.instancePoolId; - } - - /** - * Set the instancePoolId property: The id of an existing instance pool that will be used for all runs of this - * activity. Type: string (or Expression with resultType string). - * - * @param instancePoolId the instancePoolId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withInstancePoolId(Object instancePoolId) { - this.instancePoolId = instancePoolId; - return this; - } - - /** - * Get the newClusterVersion property: If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run of this activity. Required if - * instancePoolId is specified. Type: string (or Expression with resultType string). - * - * @return the newClusterVersion value. - */ - public Object newClusterVersion() { - return this.newClusterVersion; - } - - /** - * Set the newClusterVersion property: If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run of this activity. Required if - * instancePoolId is specified. Type: string (or Expression with resultType string). - * - * @param newClusterVersion the newClusterVersion value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterVersion(Object newClusterVersion) { - this.newClusterVersion = newClusterVersion; - return this; - } - - /** - * Get the newClusterNumOfWorker property: If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new job clusters, this a string-formatted - * Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, - * this is a string-formatted Int32, and can only specify a fixed number of worker nodes, such as '2'. Required if - * newClusterVersion is specified. Type: string (or Expression with resultType string). - * - * @return the newClusterNumOfWorker value. - */ - public Object newClusterNumOfWorker() { - return this.newClusterNumOfWorker; - } - - /** - * Set the newClusterNumOfWorker property: If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new job clusters, this a string-formatted - * Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, - * this is a string-formatted Int32, and can only specify a fixed number of worker nodes, such as '2'. Required if - * newClusterVersion is specified. Type: string (or Expression with resultType string). - * - * @param newClusterNumOfWorker the newClusterNumOfWorker value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterNumOfWorker(Object newClusterNumOfWorker) { - this.newClusterNumOfWorker = newClusterNumOfWorker; - return this; - } - - /** - * Get the newClusterNodeType property: The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is specified, this property - * is ignored. Type: string (or Expression with resultType string). - * - * @return the newClusterNodeType value. - */ - public Object newClusterNodeType() { - return this.newClusterNodeType; - } - - /** - * Set the newClusterNodeType property: The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is specified, this property - * is ignored. Type: string (or Expression with resultType string). - * - * @param newClusterNodeType the newClusterNodeType value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterNodeType(Object newClusterNodeType) { - this.newClusterNodeType = newClusterNodeType; - return this; - } - - /** - * Get the newClusterSparkConf property: A set of optional, user-specified Spark configuration key-value pairs. - * - * @return the newClusterSparkConf value. - */ - public Map newClusterSparkConf() { - return this.newClusterSparkConf; - } - - /** - * Set the newClusterSparkConf property: A set of optional, user-specified Spark configuration key-value pairs. - * - * @param newClusterSparkConf the newClusterSparkConf value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterSparkConf(Map newClusterSparkConf) { - this.newClusterSparkConf = newClusterSparkConf; - return this; - } - - /** - * Get the newClusterSparkEnvVars property: A set of optional, user-specified Spark environment variables key-value - * pairs. - * - * @return the newClusterSparkEnvVars value. - */ - public Map newClusterSparkEnvVars() { - return this.newClusterSparkEnvVars; - } - - /** - * Set the newClusterSparkEnvVars property: A set of optional, user-specified Spark environment variables key-value - * pairs. - * - * @param newClusterSparkEnvVars the newClusterSparkEnvVars value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterSparkEnvVars( - Map newClusterSparkEnvVars) { - this.newClusterSparkEnvVars = newClusterSparkEnvVars; - return this; - } - - /** - * Get the newClusterCustomTags property: Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - * - * @return the newClusterCustomTags value. - */ - public Map newClusterCustomTags() { - return this.newClusterCustomTags; - } - - /** - * Set the newClusterCustomTags property: Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - * - * @param newClusterCustomTags the newClusterCustomTags value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterCustomTags( - Map newClusterCustomTags) { - this.newClusterCustomTags = newClusterCustomTags; - return this; - } - - /** - * Get the newClusterLogDestination property: Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - * - * @return the newClusterLogDestination value. - */ - public Object newClusterLogDestination() { - return this.newClusterLogDestination; - } - - /** - * Set the newClusterLogDestination property: Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - * - * @param newClusterLogDestination the newClusterLogDestination value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterLogDestination(Object newClusterLogDestination) { - this.newClusterLogDestination = newClusterLogDestination; - return this; - } - - /** - * Get the newClusterDriverNodeType property: The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with resultType string). - * - * @return the newClusterDriverNodeType value. - */ - public Object newClusterDriverNodeType() { - return this.newClusterDriverNodeType; - } - - /** - * Set the newClusterDriverNodeType property: The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with resultType string). - * - * @param newClusterDriverNodeType the newClusterDriverNodeType value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterDriverNodeType(Object newClusterDriverNodeType) { - this.newClusterDriverNodeType = newClusterDriverNodeType; - return this; - } - - /** - * Get the newClusterInitScripts property: User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - * - * @return the newClusterInitScripts value. - */ - public Object newClusterInitScripts() { - return this.newClusterInitScripts; - } - - /** - * Set the newClusterInitScripts property: User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - * - * @param newClusterInitScripts the newClusterInitScripts value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterInitScripts(Object newClusterInitScripts) { - this.newClusterInitScripts = newClusterInitScripts; - return this; - } - - /** - * Get the newClusterEnableElasticDisk property: Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks (elastic disks are always enabled). Type: - * boolean (or Expression with resultType boolean). - * - * @return the newClusterEnableElasticDisk value. - */ - public Object newClusterEnableElasticDisk() { - return this.newClusterEnableElasticDisk; - } - - /** - * Set the newClusterEnableElasticDisk property: Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks (elastic disks are always enabled). Type: - * boolean (or Expression with resultType boolean). - * - * @param newClusterEnableElasticDisk the newClusterEnableElasticDisk value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterEnableElasticDisk( - Object newClusterEnableElasticDisk) { - this.newClusterEnableElasticDisk = newClusterEnableElasticDisk; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the policyId property: The policy id for limiting the ability to configure clusters based on a user defined - * set of rules. Type: string (or Expression with resultType string). - * - * @return the policyId value. - */ - public Object policyId() { - return this.policyId; - } - - /** - * Set the policyId property: The policy id for limiting the ability to configure clusters based on a user defined - * set of rules. Type: string (or Expression with resultType string). - * - * @param policyId the policyId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withPolicyId(Object policyId) { - this.policyId = policyId; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (domain() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property domain in model AzureDatabricksLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDatabricksLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java deleted file mode 100644 index ca8f19d3cca3d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,311 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure File Storage linked service properties. */ -@Fluent -public final class AzureFileStorageLinkedServiceTypeProperties { - /* - * Host name of the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host") - private Object host; - - /* - * User ID to logon the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "userId") - private Object userId; - - /* - * Password to logon the server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The connection string. It is mutually exclusive with sasUri property. - * Type: string, SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of accountKey in connection string. - */ - @JsonProperty(value = "accountKey") - private AzureKeyVaultSecretReference accountKey; - - /* - * SAS URI of the Azure File resource. It is mutually exclusive with - * connectionString property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "sasUri") - private Object sasUri; - - /* - * The Azure key vault secret reference of sasToken in sas uri. - */ - @JsonProperty(value = "sasToken") - private AzureKeyVaultSecretReference sasToken; - - /* - * The azure file share name. It is required when auth with - * accountKey/sasToken. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "fileShare") - private Object fileShare; - - /* - * The azure file share snapshot version. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "snapshot") - private Object snapshot; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @return the userId value. - */ - public Object userId() { - return this.userId; - } - - /** - * Set the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @param userId the userId value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withUserId(Object userId) { - this.userId = userId; - return this; - } - - /** - * Get the password property: Password to logon the server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the server. - * - * @param password the password value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withAccountKey(AzureKeyVaultSecretReference accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure File resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.sasUri; - } - - /** - * Set the sasUri property: SAS URI of the Azure File resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withSasUri(Object sasUri) { - this.sasUri = sasUri; - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withSasToken(AzureKeyVaultSecretReference sasToken) { - this.sasToken = sasToken; - return this; - } - - /** - * Get the fileShare property: The azure file share name. It is required when auth with accountKey/sasToken. Type: - * string (or Expression with resultType string). - * - * @return the fileShare value. - */ - public Object fileShare() { - return this.fileShare; - } - - /** - * Set the fileShare property: The azure file share name. It is required when auth with accountKey/sasToken. Type: - * string (or Expression with resultType string). - * - * @param fileShare the fileShare value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withFileShare(Object fileShare) { - this.fileShare = fileShare; - return this; - } - - /** - * Get the snapshot property: The azure file share snapshot version. Type: string (or Expression with resultType - * string). - * - * @return the snapshot value. - */ - public Object snapshot() { - return this.snapshot; - } - - /** - * Set the snapshot property: The azure file share snapshot version. Type: string (or Expression with resultType - * string). - * - * @param snapshot the snapshot value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withSnapshot(Object snapshot) { - this.snapshot = snapshot; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - if (accountKey() != null) { - accountKey().validate(); - } - if (sasToken() != null) { - sasToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java deleted file mode 100644 index b7e9eddb1165f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Function activity type properties. */ -@Fluent -public final class AzureFunctionActivityTypeProperties { - /* - * Rest API method for target endpoint. - */ - @JsonProperty(value = "method", required = true) - private AzureFunctionActivityMethod method; - - /* - * Name of the Function that the Azure Function Activity will call. Type: - * string (or Expression with resultType string) - */ - @JsonProperty(value = "functionName", required = true) - private Object functionName; - - /* - * 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 = "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 = "body") - private Object body; - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public AzureFunctionActivityMethod method() { - return this.method; - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withMethod(AzureFunctionActivityMethod method) { - this.method = method; - return this; - } - - /** - * Get the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or - * Expression with resultType string). - * - * @return the functionName value. - */ - public Object functionName() { - return this.functionName; - } - - /** - * Set the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or - * Expression with resultType string). - * - * @param functionName the functionName value to set. - * @return the AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withFunctionName(Object functionName) { - this.functionName = functionName; - return this; - } - - /** - * Get the headers property: 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 the headers property: 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 AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withHeaders(Object headers) { - this.headers = headers; - return this; - } - - /** - * Get the body property: 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 the body property: 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 AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withBody(Object body) { - this.body = body; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (method() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property method in model AzureFunctionActivityTypeProperties")); - } - if (functionName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property functionName in model AzureFunctionActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java deleted file mode 100644 index d9daa6899d421..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Function linked service properties. */ -@Fluent -public final class AzureFunctionLinkedServiceTypeProperties { - /* - * The endpoint of the Azure Function App. URL will be in the format - * https://.azurewebsites.net. - */ - @JsonProperty(value = "functionAppUrl", required = true) - private Object functionAppUrl; - - /* - * Function or Host key for Azure Function App. - */ - @JsonProperty(value = "functionKey") - private SecretBase functionKey; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /* - * Allowed token audiences for azure function. - */ - @JsonProperty(value = "resourceId") - private Object resourceId; - - /* - * Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authentication") - private Object authentication; - - /** - * Get the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format - * https://<accountName>.azurewebsites.net. - * - * @return the functionAppUrl value. - */ - public Object functionAppUrl() { - return this.functionAppUrl; - } - - /** - * Set the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format - * https://<accountName>.azurewebsites.net. - * - * @param functionAppUrl the functionAppUrl value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withFunctionAppUrl(Object functionAppUrl) { - this.functionAppUrl = functionAppUrl; - return this; - } - - /** - * Get the functionKey property: Function or Host key for Azure Function App. - * - * @return the functionKey value. - */ - public SecretBase functionKey() { - return this.functionKey; - } - - /** - * Set the functionKey property: Function or Host key for Azure Function App. - * - * @param functionKey the functionKey value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withFunctionKey(SecretBase functionKey) { - this.functionKey = functionKey; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Get the resourceId property: Allowed token audiences for azure function. - * - * @return the resourceId value. - */ - public Object resourceId() { - return this.resourceId; - } - - /** - * Set the resourceId property: Allowed token audiences for azure function. - * - * @param resourceId the resourceId value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withResourceId(Object resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * Get the authentication property: Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withAuthentication(Object authentication) { - this.authentication = authentication; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (functionAppUrl() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property functionAppUrl in model AzureFunctionLinkedServiceTypeProperties")); - } - if (functionKey() != null) { - functionKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java deleted file mode 100644 index 97d2cfaac81fa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Key Vault linked service properties. */ -@Fluent -public final class AzureKeyVaultLinkedServiceTypeProperties { - /* - * The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "baseUrl", required = true) - private Object baseUrl; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the baseUrl property: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string - * (or Expression with resultType string). - * - * @return the baseUrl value. - */ - public Object baseUrl() { - return this.baseUrl; - } - - /** - * Set the baseUrl property: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string - * (or Expression with resultType string). - * - * @param baseUrl the baseUrl value to set. - * @return the AzureKeyVaultLinkedServiceTypeProperties object itself. - */ - public AzureKeyVaultLinkedServiceTypeProperties withBaseUrl(Object baseUrl) { - this.baseUrl = baseUrl; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureKeyVaultLinkedServiceTypeProperties object itself. - */ - public AzureKeyVaultLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (baseUrl() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property baseUrl in model AzureKeyVaultLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureKeyVaultLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java deleted file mode 100644 index d1b81d04fa36d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Azure ML Batch Execution activity properties. */ -@Fluent -public final class AzureMLBatchExecutionActivityTypeProperties { - /* - * Key,Value pairs to be passed to the Azure ML Batch Execution Service - * endpoint. Keys must match the names of web service parameters defined in - * the published Azure ML web service. Values will be passed in the - * GlobalParameters property of the Azure ML batch execution request. - */ - @JsonProperty(value = "globalParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map globalParameters; - - /* - * Key,Value pairs, mapping the names of Azure ML endpoint's Web Service - * Outputs to AzureMLWebServiceFile objects specifying the output Blob - * locations. This information will be passed in the WebServiceOutputs - * property of the Azure ML batch execution request. - */ - @JsonProperty(value = "webServiceOutputs") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map webServiceOutputs; - - /* - * Key,Value pairs, mapping the names of Azure ML endpoint's Web Service - * Inputs to AzureMLWebServiceFile objects specifying the input Blob - * locations.. This information will be passed in the WebServiceInputs - * property of the Azure ML batch execution request. - */ - @JsonProperty(value = "webServiceInputs") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map webServiceInputs; - - /** - * Get the globalParameters property: Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. - * Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be - * passed in the GlobalParameters property of the Azure ML batch execution request. - * - * @return the globalParameters value. - */ - public Map globalParameters() { - return this.globalParameters; - } - - /** - * Set the globalParameters property: Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. - * Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be - * passed in the GlobalParameters property of the Azure ML batch execution request. - * - * @param globalParameters the globalParameters value to set. - * @return the AzureMLBatchExecutionActivityTypeProperties object itself. - */ - public AzureMLBatchExecutionActivityTypeProperties withGlobalParameters(Map globalParameters) { - this.globalParameters = globalParameters; - return this; - } - - /** - * Get the webServiceOutputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs - * to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the - * WebServiceOutputs property of the Azure ML batch execution request. - * - * @return the webServiceOutputs value. - */ - public Map webServiceOutputs() { - return this.webServiceOutputs; - } - - /** - * Set the webServiceOutputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs - * to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the - * WebServiceOutputs property of the Azure ML batch execution request. - * - * @param webServiceOutputs the webServiceOutputs value to set. - * @return the AzureMLBatchExecutionActivityTypeProperties object itself. - */ - public AzureMLBatchExecutionActivityTypeProperties withWebServiceOutputs( - Map webServiceOutputs) { - this.webServiceOutputs = webServiceOutputs; - return this; - } - - /** - * Get the webServiceInputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs - * to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the - * WebServiceInputs property of the Azure ML batch execution request. - * - * @return the webServiceInputs value. - */ - public Map webServiceInputs() { - return this.webServiceInputs; - } - - /** - * Set the webServiceInputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs - * to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the - * WebServiceInputs property of the Azure ML batch execution request. - * - * @param webServiceInputs the webServiceInputs value to set. - * @return the AzureMLBatchExecutionActivityTypeProperties object itself. - */ - public AzureMLBatchExecutionActivityTypeProperties withWebServiceInputs( - Map webServiceInputs) { - this.webServiceInputs = webServiceInputs; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (webServiceOutputs() != null) { - webServiceOutputs() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (webServiceInputs() != null) { - webServiceInputs() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java deleted file mode 100644 index 08b45594af11a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java +++ /dev/null @@ -1,274 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Execute Pipeline activity properties. */ -@Fluent -public final class AzureMLExecutePipelineActivityTypeProperties { - /* - * ID of the published Azure ML pipeline. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "mlPipelineId") - private Object mlPipelineId; - - /* - * ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "mlPipelineEndpointId") - private Object mlPipelineEndpointId; - - /* - * Version of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /* - * Run history experiment name of the pipeline run. This information will - * be passed in the ExperimentName property of the published pipeline - * execution request. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "experimentName") - private Object experimentName; - - /* - * Key,Value pairs to be passed to the published Azure ML pipeline - * endpoint. Keys must match the names of pipeline parameters defined in - * the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution - * request. Type: object with key value pairs (or Expression with - * resultType object). - */ - @JsonProperty(value = "mlPipelineParameters") - private Object mlPipelineParameters; - - /* - * Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the - * published pipeline execution request. Type: object with key value pairs - * (or Expression with resultType object). - */ - @JsonProperty(value = "dataPathAssignments") - private Object dataPathAssignments; - - /* - * The parent Azure ML Service pipeline run id. This information will be - * passed in the ParentRunId property of the published pipeline execution - * request. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "mlParentRunId") - private Object mlParentRunId; - - /* - * Whether to continue execution of other steps in the PipelineRun if a - * step fails. This information will be passed in the continueOnStepFailure - * property of the published pipeline execution request. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "continueOnStepFailure") - private Object continueOnStepFailure; - - /** - * Get the mlPipelineId property: ID of the published Azure ML pipeline. Type: string (or Expression with resultType - * string). - * - * @return the mlPipelineId value. - */ - public Object mlPipelineId() { - return this.mlPipelineId; - } - - /** - * Set the mlPipelineId property: ID of the published Azure ML pipeline. Type: string (or Expression with resultType - * string). - * - * @param mlPipelineId the mlPipelineId value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlPipelineId(Object mlPipelineId) { - this.mlPipelineId = mlPipelineId; - return this; - } - - /** - * Get the mlPipelineEndpointId property: ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - * - * @return the mlPipelineEndpointId value. - */ - public Object mlPipelineEndpointId() { - return this.mlPipelineEndpointId; - } - - /** - * Set the mlPipelineEndpointId property: ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - * - * @param mlPipelineEndpointId the mlPipelineEndpointId value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlPipelineEndpointId(Object mlPipelineEndpointId) { - this.mlPipelineEndpointId = mlPipelineEndpointId; - return this; - } - - /** - * Get the version property: Version of the published Azure ML pipeline endpoint. Type: string (or Expression with - * resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Version of the published Azure ML pipeline endpoint. Type: string (or Expression with - * resultType string). - * - * @param version the version value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withVersion(Object version) { - this.version = version; - return this; - } - - /** - * Get the experimentName property: Run history experiment name of the pipeline run. This information will be passed - * in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with - * resultType string). - * - * @return the experimentName value. - */ - public Object experimentName() { - return this.experimentName; - } - - /** - * Set the experimentName property: Run history experiment name of the pipeline run. This information will be passed - * in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with - * resultType string). - * - * @param experimentName the experimentName value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withExperimentName(Object experimentName) { - this.experimentName = experimentName; - return this; - } - - /** - * Get the mlPipelineParameters property: Key,Value pairs to be passed to the published Azure ML pipeline endpoint. - * Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or - * Expression with resultType object). - * - * @return the mlPipelineParameters value. - */ - public Object mlPipelineParameters() { - return this.mlPipelineParameters; - } - - /** - * Set the mlPipelineParameters property: Key,Value pairs to be passed to the published Azure ML pipeline endpoint. - * Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or - * Expression with resultType object). - * - * @param mlPipelineParameters the mlPipelineParameters value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlPipelineParameters(Object mlPipelineParameters) { - this.mlPipelineParameters = mlPipelineParameters; - return this; - } - - /** - * Get the dataPathAssignments property: Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: - * object with key value pairs (or Expression with resultType object). - * - * @return the dataPathAssignments value. - */ - public Object dataPathAssignments() { - return this.dataPathAssignments; - } - - /** - * Set the dataPathAssignments property: Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: - * object with key value pairs (or Expression with resultType object). - * - * @param dataPathAssignments the dataPathAssignments value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withDataPathAssignments(Object dataPathAssignments) { - this.dataPathAssignments = dataPathAssignments; - return this; - } - - /** - * Get the mlParentRunId property: The parent Azure ML Service pipeline run id. This information will be passed in - * the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType - * string). - * - * @return the mlParentRunId value. - */ - public Object mlParentRunId() { - return this.mlParentRunId; - } - - /** - * Set the mlParentRunId property: The parent Azure ML Service pipeline run id. This information will be passed in - * the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType - * string). - * - * @param mlParentRunId the mlParentRunId value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlParentRunId(Object mlParentRunId) { - this.mlParentRunId = mlParentRunId; - return this; - } - - /** - * Get the continueOnStepFailure property: Whether to continue execution of other steps in the PipelineRun if a step - * fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution - * request. Type: boolean (or Expression with resultType boolean). - * - * @return the continueOnStepFailure value. - */ - public Object continueOnStepFailure() { - return this.continueOnStepFailure; - } - - /** - * Set the continueOnStepFailure property: Whether to continue execution of other steps in the PipelineRun if a step - * fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution - * request. Type: boolean (or Expression with resultType boolean). - * - * @param continueOnStepFailure the continueOnStepFailure value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withContinueOnStepFailure(Object continueOnStepFailure) { - this.continueOnStepFailure = continueOnStepFailure; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java deleted file mode 100644 index 6f67e7cce46b3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Studio Web Service linked service properties. */ -@Fluent -public final class AzureMLLinkedServiceTypeProperties { - /* - * The Batch Execution REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "mlEndpoint", required = true) - private Object mlEndpoint; - - /* - * The API key for accessing the Azure ML model endpoint. - */ - @JsonProperty(value = "apiKey", required = true) - private SecretBase apiKey; - - /* - * The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "updateResourceEndpoint") - private Object updateResourceEndpoint; - - /* - * The ID of the service principal used to authenticate against the - * ARM-based updateResourceEndpoint of an Azure ML Studio web service. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against the - * ARM-based updateResourceEndpoint of an Azure ML Studio web service. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Type of authentication (Required to specify MSI) used to connect to - * AzureML. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authentication") - private Object authentication; - - /** - * Get the mlEndpoint property: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: - * string (or Expression with resultType string). - * - * @return the mlEndpoint value. - */ - public Object mlEndpoint() { - return this.mlEndpoint; - } - - /** - * Set the mlEndpoint property: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: - * string (or Expression with resultType string). - * - * @param mlEndpoint the mlEndpoint value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withMlEndpoint(Object mlEndpoint) { - this.mlEndpoint = mlEndpoint; - return this; - } - - /** - * Get the apiKey property: The API key for accessing the Azure ML model endpoint. - * - * @return the apiKey value. - */ - public SecretBase apiKey() { - return this.apiKey; - } - - /** - * Set the apiKey property: The API key for accessing the Azure ML model endpoint. - * - * @param apiKey the apiKey value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withApiKey(SecretBase apiKey) { - this.apiKey = apiKey; - return this; - } - - /** - * Get the updateResourceEndpoint property: The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - * - * @return the updateResourceEndpoint value. - */ - public Object updateResourceEndpoint() { - return this.updateResourceEndpoint; - } - - /** - * Set the updateResourceEndpoint property: The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - * - * @param updateResourceEndpoint the updateResourceEndpoint value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withUpdateResourceEndpoint(Object updateResourceEndpoint) { - this.updateResourceEndpoint = updateResourceEndpoint; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the authentication property: Type of authentication (Required to specify MSI) used to connect to AzureML. - * Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Type of authentication (Required to specify MSI) used to connect to AzureML. - * Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withAuthentication(Object authentication) { - this.authentication = authentication; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (mlEndpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mlEndpoint in model AzureMLLinkedServiceTypeProperties")); - } - if (apiKey() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property apiKey in model AzureMLLinkedServiceTypeProperties")); - } else { - apiKey().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java deleted file mode 100644 index e62d25318ec5d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Service linked service properties. */ -@Fluent -public final class AzureMLServiceLinkedServiceTypeProperties { - /* - * Azure ML Service workspace subscription ID. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "subscriptionId", required = true) - private Object subscriptionId; - - /* - * Azure ML Service workspace resource group name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "resourceGroupName", required = true) - private Object resourceGroupName; - - /* - * Azure ML Service workspace name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "mlWorkspaceName", required = true) - private Object mlWorkspaceName; - - /* - * The ID of the service principal used to authenticate against the - * endpoint of a published Azure ML Service pipeline. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against the - * endpoint of a published Azure ML Service pipeline. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the subscriptionId property: Azure ML Service workspace subscription ID. Type: string (or Expression with - * resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscriptionId property: Azure ML Service workspace subscription ID. Type: string (or Expression with - * resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withSubscriptionId(Object subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resourceGroupName property: Azure ML Service workspace resource group name. Type: string (or Expression - * with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.resourceGroupName; - } - - /** - * Set the resourceGroupName property: Azure ML Service workspace resource group name. Type: string (or Expression - * with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withResourceGroupName(Object resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - /** - * Get the mlWorkspaceName property: Azure ML Service workspace name. Type: string (or Expression with resultType - * string). - * - * @return the mlWorkspaceName value. - */ - public Object mlWorkspaceName() { - return this.mlWorkspaceName; - } - - /** - * Set the mlWorkspaceName property: Azure ML Service workspace name. Type: string (or Expression with resultType - * string). - * - * @param mlWorkspaceName the mlWorkspaceName value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withMlWorkspaceName(Object mlWorkspaceName) { - this.mlWorkspaceName = mlWorkspaceName; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against the endpoint of - * a published Azure ML Service pipeline. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against the endpoint of - * a published Azure ML Service pipeline. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against the endpoint - * of a published Azure ML Service pipeline. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against the endpoint - * of a published Azure ML Service pipeline. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (subscriptionId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property subscriptionId in model AzureMLServiceLinkedServiceTypeProperties")); - } - if (resourceGroupName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property resourceGroupName in model" - + " AzureMLServiceLinkedServiceTypeProperties")); - } - if (mlWorkspaceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mlWorkspaceName in model" - + " AzureMLServiceLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLServiceLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java deleted file mode 100644 index 8dca7489709cc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Update Resource activity properties. */ -@Fluent -public final class AzureMLUpdateResourceActivityTypeProperties { - /* - * Name of the Trained Model module in the Web Service experiment to be - * updated. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "trainedModelName", required = true) - private Object trainedModelName; - - /* - * Name of Azure Storage linked service holding the .ilearner file that - * will be uploaded by the update operation. - */ - @JsonProperty(value = "trainedModelLinkedServiceName", required = true) - private LinkedServiceReference trainedModelLinkedServiceName; - - /* - * The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "trainedModelFilePath", required = true) - private Object trainedModelFilePath; - - /** - * Get the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated. - * Type: string (or Expression with resultType string). - * - * @return the trainedModelName value. - */ - public Object trainedModelName() { - return this.trainedModelName; - } - - /** - * Set the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated. - * Type: string (or Expression with resultType string). - * - * @param trainedModelName the trainedModelName value to set. - * @return the AzureMLUpdateResourceActivityTypeProperties object itself. - */ - public AzureMLUpdateResourceActivityTypeProperties withTrainedModelName(Object trainedModelName) { - this.trainedModelName = trainedModelName; - return this; - } - - /** - * Get the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file - * that will be uploaded by the update operation. - * - * @return the trainedModelLinkedServiceName value. - */ - public LinkedServiceReference trainedModelLinkedServiceName() { - return this.trainedModelLinkedServiceName; - } - - /** - * Set the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file - * that will be uploaded by the update operation. - * - * @param trainedModelLinkedServiceName the trainedModelLinkedServiceName value to set. - * @return the AzureMLUpdateResourceActivityTypeProperties object itself. - */ - public AzureMLUpdateResourceActivityTypeProperties withTrainedModelLinkedServiceName( - LinkedServiceReference trainedModelLinkedServiceName) { - this.trainedModelLinkedServiceName = trainedModelLinkedServiceName; - return this; - } - - /** - * Get the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType - * string). - * - * @return the trainedModelFilePath value. - */ - public Object trainedModelFilePath() { - return this.trainedModelFilePath; - } - - /** - * Set the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType - * string). - * - * @param trainedModelFilePath the trainedModelFilePath value to set. - * @return the AzureMLUpdateResourceActivityTypeProperties object itself. - */ - public AzureMLUpdateResourceActivityTypeProperties withTrainedModelFilePath(Object trainedModelFilePath) { - this.trainedModelFilePath = trainedModelFilePath; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (trainedModelName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property trainedModelName in model" - + " AzureMLUpdateResourceActivityTypeProperties")); - } - if (trainedModelLinkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property trainedModelLinkedServiceName in model" - + " AzureMLUpdateResourceActivityTypeProperties")); - } else { - trainedModelLinkedServiceName().validate(); - } - if (trainedModelFilePath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property trainedModelFilePath in model" - + " AzureMLUpdateResourceActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLUpdateResourceActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java deleted file mode 100644 index 968518450416c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Database for MariaDB linked service properties. */ -@Fluent -public final class AzureMariaDBLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureMariaDBLinkedServiceTypeProperties object itself. - */ - public AzureMariaDBLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the AzureMariaDBLinkedServiceTypeProperties object itself. - */ - public AzureMariaDBLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMariaDBLinkedServiceTypeProperties object itself. - */ - public AzureMariaDBLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java deleted file mode 100644 index e0e119a570f91..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure MySQL database linked service properties. */ -@Fluent -public final class AzureMySqlLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureMySqlLinkedServiceTypeProperties object itself. - */ - public AzureMySqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureMySqlLinkedServiceTypeProperties object itself. - */ - public AzureMySqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMySqlLinkedServiceTypeProperties object itself. - */ - public AzureMySqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AzureMySqlLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMySqlLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java deleted file mode 100644 index f3d68209853ae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure MySQL database dataset properties. */ -@Fluent -public final class AzureMySqlTableDatasetTypeProperties { - /* - * The Azure MySQL database table name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The name of Azure MySQL database table. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the AzureMySqlTableDatasetTypeProperties object itself. - */ - public AzureMySqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AzureMySqlTableDatasetTypeProperties object itself. - */ - public AzureMySqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java deleted file mode 100644 index 2fd4c1057fb52..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure PostgreSQL linked service properties. */ -@Fluent -public final class AzurePostgreSqlLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. - */ - public AzurePostgreSqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. - */ - public AzurePostgreSqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. - */ - public AzurePostgreSqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java deleted file mode 100644 index cfea48146a604..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure PostgreSQL dataset properties. */ -@Fluent -public final class AzurePostgreSqlTableDatasetTypeProperties { - /* - * The table name of the Azure PostgreSQL database which includes both - * schema and table. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Azure PostgreSQL database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Azure PostgreSQL database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: The table name of the Azure PostgreSQL database which includes both schema and table. - * Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name of the Azure PostgreSQL database which includes both schema and table. - * Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the AzurePostgreSqlTableDatasetTypeProperties object itself. - */ - public AzurePostgreSqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzurePostgreSqlTableDatasetTypeProperties object itself. - */ - public AzurePostgreSqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzurePostgreSqlTableDatasetTypeProperties object itself. - */ - public AzurePostgreSqlTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java deleted file mode 100644 index 677f95fd97c79..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class AzureSearchIndexDatasetTypeProperties { - /* - * The name of the Azure Search Index. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "indexName", required = true) - private Object indexName; - - /** - * Get the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @return the indexName value. - */ - public Object indexName() { - return this.indexName; - } - - /** - * Set the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @param indexName the indexName value to set. - * @return the AzureSearchIndexDatasetTypeProperties object itself. - */ - public AzureSearchIndexDatasetTypeProperties withIndexName(Object indexName) { - this.indexName = indexName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (indexName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property indexName in model AzureSearchIndexDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSearchIndexDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java deleted file mode 100644 index e95c46faa7c8b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Windows Azure Search Service linked service properties. */ -@Fluent -public final class AzureSearchLinkedServiceTypeProperties { - /* - * URL for Azure Search service. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Admin Key for Azure Search service - */ - @JsonProperty(value = "key") - private SecretBase key; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: URL for Azure Search service. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: URL for Azure Search service. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the AzureSearchLinkedServiceTypeProperties object itself. - */ - public AzureSearchLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the key property: Admin Key for Azure Search service. - * - * @return the key value. - */ - public SecretBase key() { - return this.key; - } - - /** - * Set the key property: Admin Key for Azure Search service. - * - * @param key the key value to set. - * @return the AzureSearchLinkedServiceTypeProperties object itself. - */ - public AzureSearchLinkedServiceTypeProperties withKey(SecretBase key) { - this.key = key; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSearchLinkedServiceTypeProperties object itself. - */ - public AzureSearchLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model AzureSearchLinkedServiceTypeProperties")); - } - if (key() != null) { - key().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSearchLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java deleted file mode 100644 index 05304be0adbbc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java +++ /dev/null @@ -1,273 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Data Warehouse linked service properties. */ -@Fluent -public final class AzureSqlDWLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Data Warehouse. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AzureSqlDWLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSqlDWLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java deleted file mode 100644 index 9ce1c4d4688ae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Data Warehouse dataset properties. */ -@Fluent -public final class AzureSqlDWTableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the Azure SQL Data Warehouse. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Azure SQL Data Warehouse. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlDWTableDatasetTypeProperties object itself. - */ - public AzureSqlDWTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzureSqlDWTableDatasetTypeProperties object itself. - */ - public AzureSqlDWTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzureSqlDWTableDatasetTypeProperties object itself. - */ - public AzureSqlDWTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java deleted file mode 100644 index b3102a8427fa7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,304 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Database linked service properties. */ -@Fluent -public final class AzureSqlDatabaseLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Database. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Database. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Database. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " AzureSqlDatabaseLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSqlDatabaseLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java deleted file mode 100644 index caa4eb39c56e8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Managed Instance linked service properties. */ -@Fluent -public final class AzureSqlMILinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AzureSqlMILinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSqlMILinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java deleted file mode 100644 index a09e06bd38c10..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Managed Instance dataset properties. */ -@Fluent -public final class AzureSqlMITableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the Azure SQL Managed Instance. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Azure SQL Managed Instance dataset. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlMITableDatasetTypeProperties object itself. - */ - public AzureSqlMITableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzureSqlMITableDatasetTypeProperties object itself. - */ - public AzureSqlMITableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression - * with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression - * with resultType string). - * - * @param table the table value to set. - * @return the AzureSqlMITableDatasetTypeProperties object itself. - */ - public AzureSqlMITableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java deleted file mode 100644 index 143d1945311d5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL dataset properties. */ -@Fluent -public final class AzureSqlTableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the Azure SQL database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Azure SQL database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlTableDatasetTypeProperties object itself. - */ - public AzureSqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the AzureSqlTableDatasetTypeProperties object itself. - */ - public AzureSqlTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AzureSqlTableDatasetTypeProperties object itself. - */ - public AzureSqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java deleted file mode 100644 index b32d36aac3370..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Storage linked service properties. */ -@Fluent -public final class AzureStorageLinkedServiceTypeProperties { - /* - * The connection string. It is mutually exclusive with sasUri property. - * Type: string, SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of accountKey in connection string. - */ - @JsonProperty(value = "accountKey") - private AzureKeyVaultSecretReference accountKey; - - /* - * SAS URI of the Azure Storage resource. It is mutually exclusive with - * connectionString property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "sasUri") - private Object sasUri; - - /* - * The Azure key vault secret reference of sasToken in sas uri. - */ - @JsonProperty(value = "sasToken") - private AzureKeyVaultSecretReference sasToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private String encryptedCredential; - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withAccountKey(AzureKeyVaultSecretReference accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.sasUri; - } - - /** - * Set the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withSasUri(Object sasUri) { - this.sasUri = sasUri; - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withSasToken(AzureKeyVaultSecretReference sasToken) { - this.sasToken = sasToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountKey() != null) { - accountKey().validate(); - } - if (sasToken() != null) { - sasToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java deleted file mode 100644 index a96c4ef77b36e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Table dataset properties. */ -@Fluent -public final class AzureTableDatasetTypeProperties { - /* - * The table name of the Azure Table storage. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "tableName", required = true) - private Object tableName; - - /** - * Get the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the AzureTableDatasetTypeProperties object itself. - */ - public AzureTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (tableName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tableName in model AzureTableDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureTableDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java deleted file mode 100644 index 58a17e231daef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Binary dataset properties. */ -@Fluent -public final class BinaryDatasetTypeProperties { - /* - * The location of the Binary storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data compression method used for the binary dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the location property: The location of the Binary storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the Binary storage. - * - * @param location the location value to set. - * @return the BinaryDatasetTypeProperties object itself. - */ - public BinaryDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the compression property: The data compression method used for the binary dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the binary dataset. - * - * @param compression the compression value to set. - * @return the BinaryDatasetTypeProperties object itself. - */ - public BinaryDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model BinaryDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(BinaryDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java deleted file mode 100644 index 61b329bcb9cd0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.BlobEventTypes; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Blob Events Trigger properties. */ -@Fluent -public final class BlobEventsTriggerTypeProperties { - /* - * The blob path must begin with the pattern provided for trigger to fire. - * For example, '/records/blobs/december/' will only fire the trigger for - * blobs in the december folder under the records container. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - */ - @JsonProperty(value = "blobPathBeginsWith") - private String blobPathBeginsWith; - - /* - * The blob path must end with the pattern provided for trigger to fire. - * For example, 'december/boxes.csv' will only fire the trigger for blobs - * named boxes in a december folder. At least one of these must be - * provided: blobPathBeginsWith, blobPathEndsWith. - */ - @JsonProperty(value = "blobPathEndsWith") - private String blobPathEndsWith; - - /* - * If set to true, blobs with zero bytes will be ignored. - */ - @JsonProperty(value = "ignoreEmptyBlobs") - private Boolean ignoreEmptyBlobs; - - /* - * The type of events that cause this trigger to fire. - */ - @JsonProperty(value = "events", required = true) - private List events; - - /* - * The ARM resource ID of the Storage Account. - */ - @JsonProperty(value = "scope", required = true) - private String scope; - - /** - * Get the blobPathBeginsWith property: The blob path must begin with the pattern provided for trigger to fire. For - * example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records - * container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @return the blobPathBeginsWith value. - */ - public String blobPathBeginsWith() { - return this.blobPathBeginsWith; - } - - /** - * Set the blobPathBeginsWith property: The blob path must begin with the pattern provided for trigger to fire. For - * example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records - * container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @param blobPathBeginsWith the blobPathBeginsWith value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withBlobPathBeginsWith(String blobPathBeginsWith) { - this.blobPathBeginsWith = blobPathBeginsWith; - return this; - } - - /** - * Get the blobPathEndsWith property: The blob path must end with the pattern provided for trigger to fire. For - * example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @return the blobPathEndsWith value. - */ - public String blobPathEndsWith() { - return this.blobPathEndsWith; - } - - /** - * Set the blobPathEndsWith property: The blob path must end with the pattern provided for trigger to fire. For - * example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @param blobPathEndsWith the blobPathEndsWith value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withBlobPathEndsWith(String blobPathEndsWith) { - this.blobPathEndsWith = blobPathEndsWith; - return this; - } - - /** - * Get the ignoreEmptyBlobs property: If set to true, blobs with zero bytes will be ignored. - * - * @return the ignoreEmptyBlobs value. - */ - public Boolean ignoreEmptyBlobs() { - return this.ignoreEmptyBlobs; - } - - /** - * Set the ignoreEmptyBlobs property: If set to true, blobs with zero bytes will be ignored. - * - * @param ignoreEmptyBlobs the ignoreEmptyBlobs value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withIgnoreEmptyBlobs(Boolean ignoreEmptyBlobs) { - this.ignoreEmptyBlobs = ignoreEmptyBlobs; - return this; - } - - /** - * Get the events property: The type of events that cause this trigger to fire. - * - * @return the events value. - */ - public List events() { - return this.events; - } - - /** - * Set the events property: The type of events that cause this trigger to fire. - * - * @param events the events value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withEvents(List events) { - this.events = events; - return this; - } - - /** - * Get the scope property: The ARM resource ID of the Storage Account. - * - * @return the scope value. - */ - public String scope() { - return this.scope; - } - - /** - * Set the scope property: The ARM resource ID of the Storage Account. - * - * @param scope the scope value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withScope(String scope) { - this.scope = scope; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (events() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property events in model BlobEventsTriggerTypeProperties")); - } - if (scope() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scope in model BlobEventsTriggerTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(BlobEventsTriggerTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java deleted file mode 100644 index 77f67f0a328bd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Blob Trigger properties. */ -@Fluent -public final class BlobTriggerTypeProperties { - /* - * The path of the container/folder that will trigger the pipeline. - */ - @JsonProperty(value = "folderPath", required = true) - private String folderPath; - - /* - * The max number of parallel files to handle when it is triggered. - */ - @JsonProperty(value = "maxConcurrency", required = true) - private int maxConcurrency; - - /* - * The Azure Storage linked service reference. - */ - @JsonProperty(value = "linkedService", required = true) - private LinkedServiceReference linkedService; - - /** - * Get the folderPath property: The path of the container/folder that will trigger the pipeline. - * - * @return the folderPath value. - */ - public String folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the container/folder that will trigger the pipeline. - * - * @param folderPath the folderPath value to set. - * @return the BlobTriggerTypeProperties object itself. - */ - public BlobTriggerTypeProperties withFolderPath(String folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the maxConcurrency property: The max number of parallel files to handle when it is triggered. - * - * @return the maxConcurrency value. - */ - public int maxConcurrency() { - return this.maxConcurrency; - } - - /** - * Set the maxConcurrency property: The max number of parallel files to handle when it is triggered. - * - * @param maxConcurrency the maxConcurrency value to set. - * @return the BlobTriggerTypeProperties object itself. - */ - public BlobTriggerTypeProperties withMaxConcurrency(int maxConcurrency) { - this.maxConcurrency = maxConcurrency; - return this; - } - - /** - * Get the linkedService property: The Azure Storage linked service reference. - * - * @return the linkedService value. - */ - public LinkedServiceReference linkedService() { - return this.linkedService; - } - - /** - * Set the linkedService property: The Azure Storage linked service reference. - * - * @param linkedService the linkedService value to set. - * @return the BlobTriggerTypeProperties object itself. - */ - public BlobTriggerTypeProperties withLinkedService(LinkedServiceReference linkedService) { - this.linkedService = linkedService; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (folderPath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property folderPath in model BlobTriggerTypeProperties")); - } - if (linkedService() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedService in model BlobTriggerTypeProperties")); - } else { - linkedService().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(BlobTriggerTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java deleted file mode 100644 index d841920347740..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Cassandra linked service properties. */ -@Fluent -public final class CassandraLinkedServiceTypeProperties { - /* - * Host name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * AuthenticationType to be used for connection. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The port for the connection. Type: integer (or Expression with - * resultType integer). - */ - @JsonProperty(value = "port") - private Object port; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: Host name for connection. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name for connection. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. Type: string (or Expression - * with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. Type: string (or Expression - * with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the port property: The port for the connection. Type: integer (or Expression with resultType integer). - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port for the connection. Type: integer (or Expression with resultType integer). - * - * @param port the port value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model CassandraLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CassandraLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java deleted file mode 100644 index a9ef4e189d320..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Cassandra dataset properties. */ -@Fluent -public final class CassandraTableDatasetTypeProperties { - /* - * The table name of the Cassandra database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The keyspace of the Cassandra database. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "keyspace") - private Object keyspace; - - /** - * Get the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the CassandraTableDatasetTypeProperties object itself. - */ - public CassandraTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the keyspace value. - */ - public Object keyspace() { - return this.keyspace; - } - - /** - * Set the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param keyspace the keyspace value to set. - * @return the CassandraTableDatasetTypeProperties object itself. - */ - public CassandraTableDatasetTypeProperties withKeyspace(Object keyspace) { - this.keyspace = keyspace; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java deleted file mode 100644 index d1b3ef5df247e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Chaining Trigger properties. */ -@Fluent -public final class ChainingTriggerTypeProperties { - /* - * Upstream Pipelines. - */ - @JsonProperty(value = "dependsOn", required = true) - private List dependsOn; - - /* - * Run Dimension property that needs to be emitted by upstream pipelines. - */ - @JsonProperty(value = "runDimension", required = true) - private String runDimension; - - /** - * Get the dependsOn property: Upstream Pipelines. - * - * @return the dependsOn value. - */ - public List dependsOn() { - return this.dependsOn; - } - - /** - * Set the dependsOn property: Upstream Pipelines. - * - * @param dependsOn the dependsOn value to set. - * @return the ChainingTriggerTypeProperties object itself. - */ - public ChainingTriggerTypeProperties withDependsOn(List dependsOn) { - this.dependsOn = dependsOn; - return this; - } - - /** - * Get the runDimension property: Run Dimension property that needs to be emitted by upstream pipelines. - * - * @return the runDimension value. - */ - public String runDimension() { - return this.runDimension; - } - - /** - * Set the runDimension property: Run Dimension property that needs to be emitted by upstream pipelines. - * - * @param runDimension the runDimension value to set. - * @return the ChainingTriggerTypeProperties object itself. - */ - public ChainingTriggerTypeProperties withRunDimension(String runDimension) { - this.runDimension = runDimension; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dependsOn() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dependsOn in model ChainingTriggerTypeProperties")); - } else { - dependsOn().forEach(e -> e.validate()); - } - if (runDimension() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property runDimension in model ChainingTriggerTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ChainingTriggerTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java deleted file mode 100644 index acd0f3d631eb7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Cmdkey command custom setup type properties. */ -@Fluent -public final class CmdkeySetupTypeProperties { - /* - * The server name of data source access. - */ - @JsonProperty(value = "targetName", required = true) - private Object targetName; - - /* - * The user name of data source access. - */ - @JsonProperty(value = "userName", required = true) - private Object username; - - /* - * The password of data source access. - */ - @JsonProperty(value = "password", required = true) - private SecretBase password; - - /** - * Get the targetName property: The server name of data source access. - * - * @return the targetName value. - */ - public Object targetName() { - return this.targetName; - } - - /** - * Set the targetName property: The server name of data source access. - * - * @param targetName the targetName value to set. - * @return the CmdkeySetupTypeProperties object itself. - */ - public CmdkeySetupTypeProperties withTargetName(Object targetName) { - this.targetName = targetName; - return this; - } - - /** - * Get the username property: The user name of data source access. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name of data source access. - * - * @param username the username value to set. - * @return the CmdkeySetupTypeProperties object itself. - */ - public CmdkeySetupTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password of data source access. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password of data source access. - * - * @param password the password value to set. - * @return the CmdkeySetupTypeProperties object itself. - */ - public CmdkeySetupTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (targetName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property targetName in model CmdkeySetupTypeProperties")); - } - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model CmdkeySetupTypeProperties")); - } - if (password() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property password in model CmdkeySetupTypeProperties")); - } else { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CmdkeySetupTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java deleted file mode 100644 index 79dc6d158335e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Common Data Service for Apps entity dataset properties. */ -@Fluent -public final class CommonDataServiceForAppsEntityDatasetTypeProperties { - /* - * The logical name of the entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "entityName") - private Object entityName; - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.entityName; - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the CommonDataServiceForAppsEntityDatasetTypeProperties object itself. - */ - public CommonDataServiceForAppsEntityDatasetTypeProperties withEntityName(Object entityName) { - this.entityName = entityName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java deleted file mode 100644 index 818c4dd49170b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,423 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Common Data Service for Apps linked service properties. */ -@Fluent -public final class CommonDataServiceForAppsLinkedServiceTypeProperties { - /* - * The deployment type of the Common Data Service for Apps instance. - * 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' - * for Common Data Service for Apps on-premises with Ifd. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "deploymentType", required = true) - private Object deploymentType; - - /* - * The host name of the on-premises Common Data Service for Apps server. - * The property is required for on-prem and not allowed for online. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "hostName") - private Object hostname; - - /* - * The port of on-premises Common Data Service for Apps server. The - * property is required for on-prem and not allowed for online. Default is - * 443. Type: integer (or Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The URL to the Microsoft Common Data Service for Apps server. The - * property is required for on-line and not allowed for on-prem. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUri") - private Object serviceUri; - - /* - * The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are - * more than one Common Data Service for Apps instances associated with the - * user. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "organizationName") - private Object organizationName; - - /* - * The authentication type to connect to Common Data Service for Apps - * server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd - * scenario. 'AADServicePrincipal' for Server-To-Server authentication in - * online scenario. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authenticationType", required = true) - private Object authenticationType; - - /* - * User name to access the Common Data Service for Apps instance. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password to access the Common Data Service for Apps instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private Object servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the deploymentType property: The deployment type of the Common Data Service for Apps instance. 'Online' for - * Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with - * Ifd. Type: string (or Expression with resultType string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.deploymentType; - } - - /** - * Set the deploymentType property: The deployment type of the Common Data Service for Apps instance. 'Online' for - * Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with - * Ifd. Type: string (or Expression with resultType string). - * - * @param deploymentType the deploymentType value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withDeploymentType(Object deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Common Data Service for Apps server. The property is - * required for on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.hostname; - } - - /** - * Set the hostname property: The host name of the on-premises Common Data Service for Apps server. The property is - * required for on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withHostname(Object hostname) { - this.hostname = hostname; - return this; - } - - /** - * Get the port property: The port of on-premises Common Data Service for Apps server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port of on-premises Common Data Service for Apps server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @param port the port value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Common Data Service for Apps server. The property is - * required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.serviceUri; - } - - /** - * Set the serviceUri property: The URL to the Microsoft Common Data Service for Apps server. The property is - * required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServiceUri(Object serviceUri) { - this.serviceUri = serviceUri; - return this; - } - - /** - * Get the organizationName property: The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are more than one Common Data Service for - * Apps instances associated with the user. Type: string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.organizationName; - } - - /** - * Set the organizationName property: The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are more than one Common Data Service for - * Apps instances associated with the user. Type: string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withOrganizationName(Object organizationName) { - this.organizationName = organizationName; - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Common Data Service for Apps server. - * 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for - * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to connect to Common Data Service for Apps server. - * 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for - * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name to access the Common Data Service for Apps instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name to access the Common Data Service for Apps instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the Common Data Service for Apps instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the Common Data Service for Apps instance. - * - * @param password the password value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServicePrincipalCredential( - SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (deploymentType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property deploymentType in model" - + " CommonDataServiceForAppsLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " CommonDataServiceForAppsLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - } - - private static final ClientLogger LOGGER = - new ClientLogger(CommonDataServiceForAppsLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java deleted file mode 100644 index 8afcf932716d4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Concur Service linked service properties. */ -@Fluent -public final class ConcurLinkedServiceTypeProperties { - /* - * Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * Application client_id supplied by Concur App Management. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The user name that you use to access Concur Service. - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * username field. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the clientId property: Application client_id supplied by Concur App Management. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Application client_id supplied by Concur App Management. - * - * @param clientId the clientId value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the username property: The user name that you use to access Concur Service. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Concur Service. - * - * @param username the username value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username field. - * - * @param password the password value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model ConcurLinkedServiceTypeProperties")); - } - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model ConcurLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ConcurLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java deleted file mode 100644 index 2fef6667b34af..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java +++ /dev/null @@ -1,475 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Copy activity properties. */ -@Fluent -public final class CopyActivityTypeProperties { - /* - * Copy activity source. - */ - @JsonProperty(value = "source", required = true) - private CopySource source; - - /* - * Copy activity sink. - */ - @JsonProperty(value = "sink", required = true) - private CopySink sink; - - /* - * Copy activity translator. If not specified, tabular translator is used. - */ - @JsonProperty(value = "translator") - private Object translator; - - /* - * Specifies whether to copy data via an interim staging. Default value is - * false. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableStaging") - private Object enableStaging; - - /* - * Specifies interim staging settings when EnableStaging is true. - */ - @JsonProperty(value = "stagingSettings") - private StagingSettings stagingSettings; - - /* - * Maximum number of concurrent sessions opened on the source or sink to - * avoid overloading the data store. Type: integer (or Expression with - * resultType integer), minimum: 0. - */ - @JsonProperty(value = "parallelCopies") - private Object parallelCopies; - - /* - * Maximum number of data integration units that can be used to perform - * this data movement. Type: integer (or Expression with resultType - * integer), minimum: 0. - */ - @JsonProperty(value = "dataIntegrationUnits") - private Object dataIntegrationUnits; - - /* - * Whether to skip incompatible row. Default value is false. Type: boolean - * (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableSkipIncompatibleRow") - private Object enableSkipIncompatibleRow; - - /* - * Redirect incompatible row settings when EnableSkipIncompatibleRow is - * true. - */ - @JsonProperty(value = "redirectIncompatibleRowSettings") - private RedirectIncompatibleRowSettings redirectIncompatibleRowSettings; - - /* - * (Deprecated. Please use LogSettings) Log storage settings customer need - * to provide when enabling session log. - */ - @JsonProperty(value = "logStorageSettings") - private LogStorageSettings logStorageSettings; - - /* - * Log settings customer needs provide when enabling log. - */ - @JsonProperty(value = "logSettings") - private LogSettings logSettings; - - /* - * Preserve Rules. - */ - @JsonProperty(value = "preserveRules") - private List preserveRules; - - /* - * Preserve rules. - */ - @JsonProperty(value = "preserve") - private List preserve; - - /* - * Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "validateDataConsistency") - private Object validateDataConsistency; - - /* - * Specify the fault tolerance for data consistency. - */ - @JsonProperty(value = "skipErrorFile") - private SkipErrorFile skipErrorFile; - - /** - * Get the source property: Copy activity source. - * - * @return the source value. - */ - public CopySource source() { - return this.source; - } - - /** - * Set the source property: Copy activity source. - * - * @param source the source value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withSource(CopySource source) { - this.source = source; - return this; - } - - /** - * Get the sink property: Copy activity sink. - * - * @return the sink value. - */ - public CopySink sink() { - return this.sink; - } - - /** - * Set the sink property: Copy activity sink. - * - * @param sink the sink value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withSink(CopySink sink) { - this.sink = sink; - return this; - } - - /** - * Get the translator property: Copy activity translator. If not specified, tabular translator is used. - * - * @return the translator value. - */ - public Object translator() { - return this.translator; - } - - /** - * Set the translator property: Copy activity translator. If not specified, tabular translator is used. - * - * @param translator the translator value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withTranslator(Object translator) { - this.translator = translator; - return this; - } - - /** - * Get the enableStaging property: Specifies whether to copy data via an interim staging. Default value is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the enableStaging value. - */ - public Object enableStaging() { - return this.enableStaging; - } - - /** - * Set the enableStaging property: Specifies whether to copy data via an interim staging. Default value is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param enableStaging the enableStaging value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withEnableStaging(Object enableStaging) { - this.enableStaging = enableStaging; - return this; - } - - /** - * Get the stagingSettings property: Specifies interim staging settings when EnableStaging is true. - * - * @return the stagingSettings value. - */ - public StagingSettings stagingSettings() { - return this.stagingSettings; - } - - /** - * Set the stagingSettings property: Specifies interim staging settings when EnableStaging is true. - * - * @param stagingSettings the stagingSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withStagingSettings(StagingSettings stagingSettings) { - this.stagingSettings = stagingSettings; - return this; - } - - /** - * Get the parallelCopies property: Maximum number of concurrent sessions opened on the source or sink to avoid - * overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the parallelCopies value. - */ - public Object parallelCopies() { - return this.parallelCopies; - } - - /** - * Set the parallelCopies property: Maximum number of concurrent sessions opened on the source or sink to avoid - * overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param parallelCopies the parallelCopies value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withParallelCopies(Object parallelCopies) { - this.parallelCopies = parallelCopies; - return this; - } - - /** - * Get the dataIntegrationUnits property: Maximum number of data integration units that can be used to perform this - * data movement. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the dataIntegrationUnits value. - */ - public Object dataIntegrationUnits() { - return this.dataIntegrationUnits; - } - - /** - * Set the dataIntegrationUnits property: Maximum number of data integration units that can be used to perform this - * data movement. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param dataIntegrationUnits the dataIntegrationUnits value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withDataIntegrationUnits(Object dataIntegrationUnits) { - this.dataIntegrationUnits = dataIntegrationUnits; - return this; - } - - /** - * Get the enableSkipIncompatibleRow property: Whether to skip incompatible row. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the enableSkipIncompatibleRow value. - */ - public Object enableSkipIncompatibleRow() { - return this.enableSkipIncompatibleRow; - } - - /** - * Set the enableSkipIncompatibleRow property: Whether to skip incompatible row. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param enableSkipIncompatibleRow the enableSkipIncompatibleRow value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withEnableSkipIncompatibleRow(Object enableSkipIncompatibleRow) { - this.enableSkipIncompatibleRow = enableSkipIncompatibleRow; - return this; - } - - /** - * Get the redirectIncompatibleRowSettings property: Redirect incompatible row settings when - * EnableSkipIncompatibleRow is true. - * - * @return the redirectIncompatibleRowSettings value. - */ - public RedirectIncompatibleRowSettings redirectIncompatibleRowSettings() { - return this.redirectIncompatibleRowSettings; - } - - /** - * Set the redirectIncompatibleRowSettings property: Redirect incompatible row settings when - * EnableSkipIncompatibleRow is true. - * - * @param redirectIncompatibleRowSettings the redirectIncompatibleRowSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withRedirectIncompatibleRowSettings( - RedirectIncompatibleRowSettings redirectIncompatibleRowSettings) { - this.redirectIncompatibleRowSettings = redirectIncompatibleRowSettings; - return this; - } - - /** - * Get the logStorageSettings property: (Deprecated. Please use LogSettings) Log storage settings customer need to - * provide when enabling session log. - * - * @return the logStorageSettings value. - */ - public LogStorageSettings logStorageSettings() { - return this.logStorageSettings; - } - - /** - * Set the logStorageSettings property: (Deprecated. Please use LogSettings) Log storage settings customer need to - * provide when enabling session log. - * - * @param logStorageSettings the logStorageSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withLogStorageSettings(LogStorageSettings logStorageSettings) { - this.logStorageSettings = logStorageSettings; - return this; - } - - /** - * Get the logSettings property: Log settings customer needs provide when enabling log. - * - * @return the logSettings value. - */ - public LogSettings logSettings() { - return this.logSettings; - } - - /** - * Set the logSettings property: Log settings customer needs provide when enabling log. - * - * @param logSettings the logSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withLogSettings(LogSettings logSettings) { - this.logSettings = logSettings; - return this; - } - - /** - * Get the preserveRules property: Preserve Rules. - * - * @return the preserveRules value. - */ - public List preserveRules() { - return this.preserveRules; - } - - /** - * Set the preserveRules property: Preserve Rules. - * - * @param preserveRules the preserveRules value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withPreserveRules(List preserveRules) { - this.preserveRules = preserveRules; - return this; - } - - /** - * Get the preserve property: Preserve rules. - * - * @return the preserve value. - */ - public List preserve() { - return this.preserve; - } - - /** - * Set the preserve property: Preserve rules. - * - * @param preserve the preserve value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withPreserve(List preserve) { - this.preserve = preserve; - return this; - } - - /** - * Get the validateDataConsistency property: Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - * - * @return the validateDataConsistency value. - */ - public Object validateDataConsistency() { - return this.validateDataConsistency; - } - - /** - * Set the validateDataConsistency property: Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - * - * @param validateDataConsistency the validateDataConsistency value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withValidateDataConsistency(Object validateDataConsistency) { - this.validateDataConsistency = validateDataConsistency; - return this; - } - - /** - * Get the skipErrorFile property: Specify the fault tolerance for data consistency. - * - * @return the skipErrorFile value. - */ - public SkipErrorFile skipErrorFile() { - return this.skipErrorFile; - } - - /** - * Set the skipErrorFile property: Specify the fault tolerance for data consistency. - * - * @param skipErrorFile the skipErrorFile value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withSkipErrorFile(SkipErrorFile skipErrorFile) { - this.skipErrorFile = skipErrorFile; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (source() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property source in model CopyActivityTypeProperties")); - } else { - source().validate(); - } - if (sink() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property sink in model CopyActivityTypeProperties")); - } else { - sink().validate(); - } - if (stagingSettings() != null) { - stagingSettings().validate(); - } - if (redirectIncompatibleRowSettings() != null) { - redirectIncompatibleRowSettings().validate(); - } - if (logStorageSettings() != null) { - logStorageSettings().validate(); - } - if (logSettings() != null) { - logSettings().validate(); - } - if (skipErrorFile() != null) { - skipErrorFile().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CopyActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java deleted file mode 100644 index 6ab707ff005a6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java +++ /dev/null @@ -1,395 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.CosmosDbConnectionMode; -import com.azure.resourcemanager.datafactory.models.CosmosDbServicePrincipalCredentialType; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB linked service properties. */ -@Fluent -public final class CosmosDbLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The endpoint of the Azure CosmosDB account. Type: string (or Expression - * with resultType string) - */ - @JsonProperty(value = "accountEndpoint") - private Object accountEndpoint; - - /* - * The name of the database. Type: string (or Expression with resultType - * string) - */ - @JsonProperty(value = "database") - private Object database; - - /* - * The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "accountKey") - private SecretBase accountKey; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The connection mode used to access CosmosDB account. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "connectionMode") - private CosmosDbConnectionMode connectionMode; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with - * resultType string). - * - * @return the accountEndpoint value. - */ - public Object accountEndpoint() { - return this.accountEndpoint; - } - - /** - * Set the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with - * resultType string). - * - * @param accountEndpoint the accountEndpoint value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withAccountEndpoint(Object accountEndpoint) { - this.accountEndpoint = accountEndpoint; - return this; - } - - /** - * Get the database property: The name of the database. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the database. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - * - * @return the accountKey value. - */ - public SecretBase accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - * - * @param accountKey the accountKey value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withAccountKey(SecretBase accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withServicePrincipalCredentialType( - CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression - * with resultType string). - * - * @return the connectionMode value. - */ - public CosmosDbConnectionMode connectionMode() { - return this.connectionMode; - } - - /** - * Set the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression - * with resultType string). - * - * @param connectionMode the connectionMode value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withConnectionMode(CosmosDbConnectionMode connectionMode) { - this.connectionMode = connectionMode; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountKey() != null) { - accountKey().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiCollectionDatasetTypeProperties.java deleted file mode 100644 index d15481ba81a66..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB (MongoDB API) database dataset properties. */ -@Fluent -public final class CosmosDbMongoDbApiCollectionDatasetTypeProperties { - /* - * The collection name of the CosmosDB (MongoDB API) database. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "collection", required = true) - private Object collection; - - /** - * Get the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.collection; - } - - /** - * Set the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @param collection the collection value to set. - * @return the CosmosDbMongoDbApiCollectionDatasetTypeProperties object itself. - */ - public CosmosDbMongoDbApiCollectionDatasetTypeProperties withCollection(Object collection) { - this.collection = collection; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collection() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collection in model" - + " CosmosDbMongoDbApiCollectionDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = - new ClientLogger(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java deleted file mode 100644 index dc90ec138e886..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB (MongoDB API) linked service properties. */ -@Fluent -public final class CosmosDbMongoDbApiLinkedServiceTypeProperties { - /* - * Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "isServerVersionAbove32") - private Object isServerVersionAbove32; - - /* - * The CosmosDB (MongoDB API) connection string. Type: string, SecureString - * or AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The name of the CosmosDB (MongoDB API) database that you want to access. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /** - * Get the isServerVersionAbove32 property: Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the isServerVersionAbove32 value. - */ - public Object isServerVersionAbove32() { - return this.isServerVersionAbove32; - } - - /** - * Set the isServerVersionAbove32 property: Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param isServerVersionAbove32 the isServerVersionAbove32 value to set. - * @return the CosmosDbMongoDbApiLinkedServiceTypeProperties object itself. - */ - public CosmosDbMongoDbApiLinkedServiceTypeProperties withIsServerVersionAbove32(Object isServerVersionAbove32) { - this.isServerVersionAbove32 = isServerVersionAbove32; - return this; - } - - /** - * Get the connectionString property: The CosmosDB (MongoDB API) connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The CosmosDB (MongoDB API) connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CosmosDbMongoDbApiLinkedServiceTypeProperties object itself. - */ - public CosmosDbMongoDbApiLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the database property: The name of the CosmosDB (MongoDB API) database that you want to access. Type: string - * (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the CosmosDB (MongoDB API) database that you want to access. Type: string - * (or Expression with resultType string). - * - * @param database the database value to set. - * @return the CosmosDbMongoDbApiLinkedServiceTypeProperties object itself. - */ - public CosmosDbMongoDbApiLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " CosmosDbMongoDbApiLinkedServiceTypeProperties")); - } - if (database() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model CosmosDbMongoDbApiLinkedServiceTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbSqlApiCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbSqlApiCollectionDatasetTypeProperties.java deleted file mode 100644 index dda4a419cee37..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbSqlApiCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB (SQL API) Collection dataset properties. */ -@Fluent -public final class CosmosDbSqlApiCollectionDatasetTypeProperties { - /* - * CosmosDB (SQL API) collection name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "collectionName", required = true) - private Object collectionName; - - /** - * Get the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.collectionName; - } - - /** - * Set the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the CosmosDbSqlApiCollectionDatasetTypeProperties object itself. - */ - public CosmosDbSqlApiCollectionDatasetTypeProperties withCollectionName(Object collectionName) { - this.collectionName = collectionName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collectionName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collectionName in model" - + " CosmosDbSqlApiCollectionDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CosmosDbSqlApiCollectionDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java deleted file mode 100644 index c6b6af7cb6d28..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Couchbase server linked service properties. */ -@Fluent -public final class CouchbaseLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of credString in connection string. - */ - @JsonProperty(value = "credString") - private AzureKeyVaultSecretReference credString; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CouchbaseLinkedServiceTypeProperties object itself. - */ - public CouchbaseLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the credString property: The Azure key vault secret reference of credString in connection string. - * - * @return the credString value. - */ - public AzureKeyVaultSecretReference credString() { - return this.credString; - } - - /** - * Set the credString property: The Azure key vault secret reference of credString in connection string. - * - * @param credString the credString value to set. - * @return the CouchbaseLinkedServiceTypeProperties object itself. - */ - public CouchbaseLinkedServiceTypeProperties withCredString(AzureKeyVaultSecretReference credString) { - this.credString = credString; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CouchbaseLinkedServiceTypeProperties object itself. - */ - public CouchbaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (credString() != null) { - credString().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CreateDataFlowDebugSessionResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CreateDataFlowDebugSessionResponseInner.java deleted file mode 100644 index 1e6badb82e036..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CreateDataFlowDebugSessionResponseInner.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Response body structure for creating data flow debug session. */ -@Fluent -public final class CreateDataFlowDebugSessionResponseInner { - /* - * The state of the debug session. - */ - @JsonProperty(value = "status") - private String status; - - /* - * The ID of data flow debug session. - */ - @JsonProperty(value = "sessionId") - private String sessionId; - - /** - * Get the status property: The state of the debug session. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Set the status property: The state of the debug session. - * - * @param status the status value to set. - * @return the CreateDataFlowDebugSessionResponseInner object itself. - */ - public CreateDataFlowDebugSessionResponseInner withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the sessionId property: The ID of data flow debug session. - * - * @return the sessionId value. - */ - public String sessionId() { - return this.sessionId; - } - - /** - * Set the sessionId property: The ID of data flow debug session. - * - * @param sessionId the sessionId value to set. - * @return the CreateDataFlowDebugSessionResponseInner object itself. - */ - public CreateDataFlowDebugSessionResponseInner withSessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CreateRunResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CreateRunResponseInner.java deleted file mode 100644 index be1ed426692e7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CreateRunResponseInner.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Response body with a run identifier. */ -@Fluent -public final class CreateRunResponseInner { - /* - * Identifier of a run. - */ - @JsonProperty(value = "runId", required = true) - private String runId; - - /** - * Get the runId property: Identifier of a run. - * - * @return the runId value. - */ - public String runId() { - return this.runId; - } - - /** - * Set the runId property: Identifier of a run. - * - * @param runId the runId value to set. - * @return the CreateRunResponseInner object itself. - */ - public CreateRunResponseInner withRunId(String runId) { - this.runId = runId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (runId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property runId in model CreateRunResponseInner")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CreateRunResponseInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java deleted file mode 100644 index e0ab1e9db245d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java +++ /dev/null @@ -1,236 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Custom activity properties. */ -@Fluent -public final class CustomActivityTypeProperties { - /* - * Command for custom activity Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "command", required = true) - private Object command; - - /* - * Resource linked service reference. - */ - @JsonProperty(value = "resourceLinkedService") - private LinkedServiceReference resourceLinkedService; - - /* - * Folder path for resource files Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * Reference objects - */ - @JsonProperty(value = "referenceObjects") - private CustomActivityReferenceObject referenceObjects; - - /* - * User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full - * responsibility to consume and interpret the content defined. - */ - @JsonProperty(value = "extendedProperties") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map extendedProperties; - - /* - * The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - */ - @JsonProperty(value = "retentionTimeInDays") - private Object retentionTimeInDays; - - /* - * Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - */ - @JsonProperty(value = "autoUserSpecification") - private Object autoUserSpecification; - - /** - * Get the command property: Command for custom activity Type: string (or Expression with resultType string). - * - * @return the command value. - */ - public Object command() { - return this.command; - } - - /** - * Set the command property: Command for custom activity Type: string (or Expression with resultType string). - * - * @param command the command value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withCommand(Object command) { - this.command = command; - return this; - } - - /** - * Get the resourceLinkedService property: Resource linked service reference. - * - * @return the resourceLinkedService value. - */ - public LinkedServiceReference resourceLinkedService() { - return this.resourceLinkedService; - } - - /** - * Set the resourceLinkedService property: Resource linked service reference. - * - * @param resourceLinkedService the resourceLinkedService value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withResourceLinkedService(LinkedServiceReference resourceLinkedService) { - this.resourceLinkedService = resourceLinkedService; - return this; - } - - /** - * Get the folderPath property: Folder path for resource files Type: string (or Expression with resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: Folder path for resource files Type: string (or Expression with resultType string). - * - * @param folderPath the folderPath value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the referenceObjects property: Reference objects. - * - * @return the referenceObjects value. - */ - public CustomActivityReferenceObject referenceObjects() { - return this.referenceObjects; - } - - /** - * Set the referenceObjects property: Reference objects. - * - * @param referenceObjects the referenceObjects value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withReferenceObjects(CustomActivityReferenceObject referenceObjects) { - this.referenceObjects = referenceObjects; - return this; - } - - /** - * Get the extendedProperties property: User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full responsibility to consume and interpret the - * content defined. - * - * @return the extendedProperties value. - */ - public Map extendedProperties() { - return this.extendedProperties; - } - - /** - * Set the extendedProperties property: User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full responsibility to consume and interpret the - * content defined. - * - * @param extendedProperties the extendedProperties value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withExtendedProperties(Map extendedProperties) { - this.extendedProperties = extendedProperties; - return this; - } - - /** - * Get the retentionTimeInDays property: The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - * - * @return the retentionTimeInDays value. - */ - public Object retentionTimeInDays() { - return this.retentionTimeInDays; - } - - /** - * Set the retentionTimeInDays property: The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - * - * @param retentionTimeInDays the retentionTimeInDays value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withRetentionTimeInDays(Object retentionTimeInDays) { - this.retentionTimeInDays = retentionTimeInDays; - return this; - } - - /** - * Get the autoUserSpecification property: Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - * - * @return the autoUserSpecification value. - */ - public Object autoUserSpecification() { - return this.autoUserSpecification; - } - - /** - * Set the autoUserSpecification property: Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - * - * @param autoUserSpecification the autoUserSpecification value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withAutoUserSpecification(Object autoUserSpecification) { - this.autoUserSpecification = autoUserSpecification; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (command() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property command in model CustomActivityTypeProperties")); - } - if (resourceLinkedService() != null) { - resourceLinkedService().validate(); - } - if (referenceObjects() != null) { - referenceObjects().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CustomActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomEventsTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomEventsTriggerTypeProperties.java deleted file mode 100644 index 2a9e42e40f11c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomEventsTriggerTypeProperties.java +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Custom Events Trigger properties. */ -@Fluent -public final class CustomEventsTriggerTypeProperties { - /* - * The event subject must begin with the pattern provided for trigger to - * fire. At least one of these must be provided: subjectBeginsWith, - * subjectEndsWith. - */ - @JsonProperty(value = "subjectBeginsWith") - private String subjectBeginsWith; - - /* - * The event subject must end with the pattern provided for trigger to - * fire. At least one of these must be provided: subjectBeginsWith, - * subjectEndsWith. - */ - @JsonProperty(value = "subjectEndsWith") - private String subjectEndsWith; - - /* - * The list of event types that cause this trigger to fire. - */ - @JsonProperty(value = "events", required = true) - private List events; - - /* - * The ARM resource ID of the Azure Event Grid Topic. - */ - @JsonProperty(value = "scope", required = true) - private String scope; - - /** - * Get the subjectBeginsWith property: The event subject must begin with the pattern provided for trigger to fire. - * At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @return the subjectBeginsWith value. - */ - public String subjectBeginsWith() { - return this.subjectBeginsWith; - } - - /** - * Set the subjectBeginsWith property: The event subject must begin with the pattern provided for trigger to fire. - * At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @param subjectBeginsWith the subjectBeginsWith value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withSubjectBeginsWith(String subjectBeginsWith) { - this.subjectBeginsWith = subjectBeginsWith; - return this; - } - - /** - * Get the subjectEndsWith property: The event subject must end with the pattern provided for trigger to fire. At - * least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @return the subjectEndsWith value. - */ - public String subjectEndsWith() { - return this.subjectEndsWith; - } - - /** - * Set the subjectEndsWith property: The event subject must end with the pattern provided for trigger to fire. At - * least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @param subjectEndsWith the subjectEndsWith value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withSubjectEndsWith(String subjectEndsWith) { - this.subjectEndsWith = subjectEndsWith; - return this; - } - - /** - * Get the events property: The list of event types that cause this trigger to fire. - * - * @return the events value. - */ - public List events() { - return this.events; - } - - /** - * Set the events property: The list of event types that cause this trigger to fire. - * - * @param events the events value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withEvents(List events) { - this.events = events; - return this; - } - - /** - * Get the scope property: The ARM resource ID of the Azure Event Grid Topic. - * - * @return the scope value. - */ - public String scope() { - return this.scope; - } - - /** - * Set the scope property: The ARM resource ID of the Azure Event Grid Topic. - * - * @param scope the scope value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withScope(String scope) { - this.scope = scope; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (events() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property events in model CustomEventsTriggerTypeProperties")); - } - if (scope() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scope in model CustomEventsTriggerTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CustomEventsTriggerTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowDebugCommandResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowDebugCommandResponseInner.java deleted file mode 100644 index ad29875d8fa15..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowDebugCommandResponseInner.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Response body structure of data flow result for data preview, statistics or expression preview. */ -@Fluent -public final class DataFlowDebugCommandResponseInner { - /* - * The run status of data preview, statistics or expression preview. - */ - @JsonProperty(value = "status") - private String status; - - /* - * The result data of data preview, statistics or expression preview. - */ - @JsonProperty(value = "data") - private String data; - - /** - * Get the status property: The run status of data preview, statistics or expression preview. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Set the status property: The run status of data preview, statistics or expression preview. - * - * @param status the status value to set. - * @return the DataFlowDebugCommandResponseInner object itself. - */ - public DataFlowDebugCommandResponseInner withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the data property: The result data of data preview, statistics or expression preview. - * - * @return the data value. - */ - public String data() { - return this.data; - } - - /** - * Set the data property: The result data of data preview, statistics or expression preview. - * - * @param data the data value to set. - * @return the DataFlowDebugCommandResponseInner object itself. - */ - public DataFlowDebugCommandResponseInner withData(String data) { - this.data = data; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowDebugSessionInfoInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowDebugSessionInfoInner.java deleted file mode 100644 index 0e748373353c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowDebugSessionInfoInner.java +++ /dev/null @@ -1,293 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Data flow debug session info. */ -@Fluent -public final class DataFlowDebugSessionInfoInner { - /* - * The name of the data flow. - */ - @JsonProperty(value = "dataFlowName") - private String dataFlowName; - - /* - * Compute type of the cluster. - */ - @JsonProperty(value = "computeType") - private String computeType; - - /* - * Core count of the cluster. - */ - @JsonProperty(value = "coreCount") - private Integer coreCount; - - /* - * Node count of the cluster. (deprecated property) - */ - @JsonProperty(value = "nodeCount") - private Integer nodeCount; - - /* - * Attached integration runtime name of data flow debug session. - */ - @JsonProperty(value = "integrationRuntimeName") - private String integrationRuntimeName; - - /* - * The ID of data flow debug session. - */ - @JsonProperty(value = "sessionId") - private String sessionId; - - /* - * Start time of data flow debug session. - */ - @JsonProperty(value = "startTime") - private String startTime; - - /* - * Compute type of the cluster. - */ - @JsonProperty(value = "timeToLiveInMinutes") - private Integer timeToLiveInMinutes; - - /* - * Last activity time of data flow debug session. - */ - @JsonProperty(value = "lastActivityTime") - private String lastActivityTime; - - /* - * Data flow debug session info. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the dataFlowName property: The name of the data flow. - * - * @return the dataFlowName value. - */ - public String dataFlowName() { - return this.dataFlowName; - } - - /** - * Set the dataFlowName property: The name of the data flow. - * - * @param dataFlowName the dataFlowName value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withDataFlowName(String dataFlowName) { - this.dataFlowName = dataFlowName; - return this; - } - - /** - * Get the computeType property: Compute type of the cluster. - * - * @return the computeType value. - */ - public String computeType() { - return this.computeType; - } - - /** - * Set the computeType property: Compute type of the cluster. - * - * @param computeType the computeType value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withComputeType(String computeType) { - this.computeType = computeType; - return this; - } - - /** - * Get the coreCount property: Core count of the cluster. - * - * @return the coreCount value. - */ - public Integer coreCount() { - return this.coreCount; - } - - /** - * Set the coreCount property: Core count of the cluster. - * - * @param coreCount the coreCount value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withCoreCount(Integer coreCount) { - this.coreCount = coreCount; - return this; - } - - /** - * Get the nodeCount property: Node count of the cluster. (deprecated property). - * - * @return the nodeCount value. - */ - public Integer nodeCount() { - return this.nodeCount; - } - - /** - * Set the nodeCount property: Node count of the cluster. (deprecated property). - * - * @param nodeCount the nodeCount value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withNodeCount(Integer nodeCount) { - this.nodeCount = nodeCount; - return this; - } - - /** - * Get the integrationRuntimeName property: Attached integration runtime name of data flow debug session. - * - * @return the integrationRuntimeName value. - */ - public String integrationRuntimeName() { - return this.integrationRuntimeName; - } - - /** - * Set the integrationRuntimeName property: Attached integration runtime name of data flow debug session. - * - * @param integrationRuntimeName the integrationRuntimeName value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withIntegrationRuntimeName(String integrationRuntimeName) { - this.integrationRuntimeName = integrationRuntimeName; - return this; - } - - /** - * Get the sessionId property: The ID of data flow debug session. - * - * @return the sessionId value. - */ - public String sessionId() { - return this.sessionId; - } - - /** - * Set the sessionId property: The ID of data flow debug session. - * - * @param sessionId the sessionId value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withSessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * Get the startTime property: Start time of data flow debug session. - * - * @return the startTime value. - */ - public String startTime() { - return this.startTime; - } - - /** - * Set the startTime property: Start time of data flow debug session. - * - * @param startTime the startTime value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withStartTime(String startTime) { - this.startTime = startTime; - return this; - } - - /** - * Get the timeToLiveInMinutes property: Compute type of the cluster. - * - * @return the timeToLiveInMinutes value. - */ - public Integer timeToLiveInMinutes() { - return this.timeToLiveInMinutes; - } - - /** - * Set the timeToLiveInMinutes property: Compute type of the cluster. - * - * @param timeToLiveInMinutes the timeToLiveInMinutes value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withTimeToLiveInMinutes(Integer timeToLiveInMinutes) { - this.timeToLiveInMinutes = timeToLiveInMinutes; - return this; - } - - /** - * Get the lastActivityTime property: Last activity time of data flow debug session. - * - * @return the lastActivityTime value. - */ - public String lastActivityTime() { - return this.lastActivityTime; - } - - /** - * Set the lastActivityTime property: Last activity time of data flow debug session. - * - * @param lastActivityTime the lastActivityTime value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withLastActivityTime(String lastActivityTime) { - this.lastActivityTime = lastActivityTime; - return this; - } - - /** - * Get the additionalProperties property: Data flow debug session info. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Data flow debug session info. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DataFlowDebugSessionInfoInner object itself. - */ - public DataFlowDebugSessionInfoInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowResourceInner.java deleted file mode 100644 index 14778a2303b16..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataFlowResourceInner.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Data flow resource type. */ -@Fluent -public final class DataFlowResourceInner extends SubResource { - /* - * Data flow properties. - */ - @JsonProperty(value = "properties", required = true) - private DataFlow properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Data flow properties. - * - * @return the properties value. - */ - public DataFlow properties() { - return this.properties; - } - - /** - * Set the properties property: Data flow properties. - * - * @param properties the properties value to set. - * @return the DataFlowResourceInner object itself. - */ - public DataFlowResourceInner withProperties(DataFlow properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public DataFlowResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model DataFlowResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataFlowResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java deleted file mode 100644 index 19fd3631c2880..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** DataLakeAnalyticsU-SQL activity properties. */ -@Fluent -public final class DataLakeAnalyticsUsqlActivityTypeProperties { - /* - * Case-sensitive path to folder that contains the U-SQL script. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "scriptPath", required = true) - private Object scriptPath; - - /* - * Script linked service reference. - */ - @JsonProperty(value = "scriptLinkedService", required = true) - private LinkedServiceReference scriptLinkedService; - - /* - * The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), - * minimum: 1. - */ - @JsonProperty(value = "degreeOfParallelism") - private Object degreeOfParallelism; - - /* - * Determines which jobs out of all that are queued should be selected to - * run first. The lower the number, the higher the priority. Default value - * is 1000. Type: integer (or Expression with resultType integer), minimum: - * 1. - */ - @JsonProperty(value = "priority") - private Object priority; - - /* - * Parameters for U-SQL job request. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * Runtime version of the U-SQL engine to use. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "runtimeVersion") - private Object runtimeVersion; - - /* - * Compilation mode of U-SQL. Must be one of these values : Semantic, Full - * and SingleBox. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "compilationMode") - private Object compilationMode; - - /** - * Get the scriptPath property: Case-sensitive path to folder that contains the U-SQL script. Type: string (or - * Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.scriptPath; - } - - /** - * Set the scriptPath property: Case-sensitive path to folder that contains the U-SQL script. Type: string (or - * Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withScriptPath(Object scriptPath) { - this.scriptPath = scriptPath; - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.scriptLinkedService; - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withScriptLinkedService( - LinkedServiceReference scriptLinkedService) { - this.scriptLinkedService = scriptLinkedService; - return this; - } - - /** - * Get the degreeOfParallelism property: The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - * - * @return the degreeOfParallelism value. - */ - public Object degreeOfParallelism() { - return this.degreeOfParallelism; - } - - /** - * Set the degreeOfParallelism property: The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - * - * @param degreeOfParallelism the degreeOfParallelism value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withDegreeOfParallelism(Object degreeOfParallelism) { - this.degreeOfParallelism = degreeOfParallelism; - return this; - } - - /** - * Get the priority property: Determines which jobs out of all that are queued should be selected to run first. The - * lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType - * integer), minimum: 1. - * - * @return the priority value. - */ - public Object priority() { - return this.priority; - } - - /** - * Set the priority property: Determines which jobs out of all that are queued should be selected to run first. The - * lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType - * integer), minimum: 1. - * - * @param priority the priority value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withPriority(Object priority) { - this.priority = priority; - return this; - } - - /** - * Get the parameters property: Parameters for U-SQL job request. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters for U-SQL job request. - * - * @param parameters the parameters value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the runtimeVersion property: Runtime version of the U-SQL engine to use. Type: string (or Expression with - * resultType string). - * - * @return the runtimeVersion value. - */ - public Object runtimeVersion() { - return this.runtimeVersion; - } - - /** - * Set the runtimeVersion property: Runtime version of the U-SQL engine to use. Type: string (or Expression with - * resultType string). - * - * @param runtimeVersion the runtimeVersion value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withRuntimeVersion(Object runtimeVersion) { - this.runtimeVersion = runtimeVersion; - return this; - } - - /** - * Get the compilationMode property: Compilation mode of U-SQL. Must be one of these values : Semantic, Full and - * SingleBox. Type: string (or Expression with resultType string). - * - * @return the compilationMode value. - */ - public Object compilationMode() { - return this.compilationMode; - } - - /** - * Set the compilationMode property: Compilation mode of U-SQL. Must be one of these values : Semantic, Full and - * SingleBox. Type: string (or Expression with resultType string). - * - * @param compilationMode the compilationMode value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withCompilationMode(Object compilationMode) { - this.compilationMode = compilationMode; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (scriptPath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scriptPath in model DataLakeAnalyticsUsqlActivityTypeProperties")); - } - if (scriptLinkedService() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scriptLinkedService in model" - + " DataLakeAnalyticsUsqlActivityTypeProperties")); - } else { - scriptLinkedService().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataLakeAnalyticsUsqlActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksNotebookActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksNotebookActivityTypeProperties.java deleted file mode 100644 index f2fb18e8def17..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksNotebookActivityTypeProperties.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Databricks Notebook activity properties. */ -@Fluent -public final class DatabricksNotebookActivityTypeProperties { - /* - * The absolute path of the notebook to be run in the Databricks Workspace. - * This path must begin with a slash. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "notebookPath", required = true) - private Object notebookPath; - - /* - * Base parameters to be used for each run of this job.If the notebook - * takes a parameter that is not specified, the default value from the - * notebook will be used. - */ - @JsonProperty(value = "baseParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map baseParameters; - - /* - * A list of libraries to be installed on the cluster that will execute the - * job. - */ - @JsonProperty(value = "libraries") - private List> libraries; - - /** - * Get the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path - * must begin with a slash. Type: string (or Expression with resultType string). - * - * @return the notebookPath value. - */ - public Object notebookPath() { - return this.notebookPath; - } - - /** - * Set the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path - * must begin with a slash. Type: string (or Expression with resultType string). - * - * @param notebookPath the notebookPath value to set. - * @return the DatabricksNotebookActivityTypeProperties object itself. - */ - public DatabricksNotebookActivityTypeProperties withNotebookPath(Object notebookPath) { - this.notebookPath = notebookPath; - return this; - } - - /** - * Get the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a - * parameter that is not specified, the default value from the notebook will be used. - * - * @return the baseParameters value. - */ - public Map baseParameters() { - return this.baseParameters; - } - - /** - * Set the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a - * parameter that is not specified, the default value from the notebook will be used. - * - * @param baseParameters the baseParameters value to set. - * @return the DatabricksNotebookActivityTypeProperties object itself. - */ - public DatabricksNotebookActivityTypeProperties withBaseParameters(Map baseParameters) { - this.baseParameters = baseParameters; - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.libraries; - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksNotebookActivityTypeProperties object itself. - */ - public DatabricksNotebookActivityTypeProperties withLibraries(List> libraries) { - this.libraries = libraries; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (notebookPath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property notebookPath in model DatabricksNotebookActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabricksNotebookActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkJarActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkJarActivityTypeProperties.java deleted file mode 100644 index d136a18cfac7f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkJarActivityTypeProperties.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Databricks SparkJar activity properties. */ -@Fluent -public final class DatabricksSparkJarActivityTypeProperties { - /* - * The full name of the class containing the main method to be executed. - * This class must be contained in a JAR provided as a library. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "mainClassName", required = true) - private Object mainClassName; - - /* - * Parameters that will be passed to the main method. - */ - @JsonProperty(value = "parameters") - private List parameters; - - /* - * A list of libraries to be installed on the cluster that will execute the - * job. - */ - @JsonProperty(value = "libraries") - private List> libraries; - - /** - * Get the mainClassName property: The full name of the class containing the main method to be executed. This class - * must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). - * - * @return the mainClassName value. - */ - public Object mainClassName() { - return this.mainClassName; - } - - /** - * Set the mainClassName property: The full name of the class containing the main method to be executed. This class - * must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). - * - * @param mainClassName the mainClassName value to set. - * @return the DatabricksSparkJarActivityTypeProperties object itself. - */ - public DatabricksSparkJarActivityTypeProperties withMainClassName(Object mainClassName) { - this.mainClassName = mainClassName; - return this; - } - - /** - * Get the parameters property: Parameters that will be passed to the main method. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters that will be passed to the main method. - * - * @param parameters the parameters value to set. - * @return the DatabricksSparkJarActivityTypeProperties object itself. - */ - public DatabricksSparkJarActivityTypeProperties withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.libraries; - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksSparkJarActivityTypeProperties object itself. - */ - public DatabricksSparkJarActivityTypeProperties withLibraries(List> libraries) { - this.libraries = libraries; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (mainClassName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mainClassName in model DatabricksSparkJarActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabricksSparkJarActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkPythonActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkPythonActivityTypeProperties.java deleted file mode 100644 index 3e454550f47b6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkPythonActivityTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Databricks SparkPython activity properties. */ -@Fluent -public final class DatabricksSparkPythonActivityTypeProperties { - /* - * The URI of the Python file to be executed. DBFS paths are supported. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "pythonFile", required = true) - private Object pythonFile; - - /* - * Command line parameters that will be passed to the Python file. - */ - @JsonProperty(value = "parameters") - private List parameters; - - /* - * A list of libraries to be installed on the cluster that will execute the - * job. - */ - @JsonProperty(value = "libraries") - private List> libraries; - - /** - * Get the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string - * (or Expression with resultType string). - * - * @return the pythonFile value. - */ - public Object pythonFile() { - return this.pythonFile; - } - - /** - * Set the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string - * (or Expression with resultType string). - * - * @param pythonFile the pythonFile value to set. - * @return the DatabricksSparkPythonActivityTypeProperties object itself. - */ - public DatabricksSparkPythonActivityTypeProperties withPythonFile(Object pythonFile) { - this.pythonFile = pythonFile; - return this; - } - - /** - * Get the parameters property: Command line parameters that will be passed to the Python file. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Command line parameters that will be passed to the Python file. - * - * @param parameters the parameters value to set. - * @return the DatabricksSparkPythonActivityTypeProperties object itself. - */ - public DatabricksSparkPythonActivityTypeProperties withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.libraries; - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksSparkPythonActivityTypeProperties object itself. - */ - public DatabricksSparkPythonActivityTypeProperties withLibraries(List> libraries) { - this.libraries = libraries; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pythonFile() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property pythonFile in model DatabricksSparkPythonActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabricksSparkPythonActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatasetResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatasetResourceInner.java deleted file mode 100644 index a922e1ad2eb6e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatasetResourceInner.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dataset resource type. */ -@Fluent -public final class DatasetResourceInner extends SubResource { - /* - * Dataset properties. - */ - @JsonProperty(value = "properties", required = true) - private Dataset properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Dataset properties. - * - * @return the properties value. - */ - public Dataset properties() { - return this.properties; - } - - /** - * Set the properties property: Dataset properties. - * - * @param properties the properties value to set. - * @return the DatasetResourceInner object itself. - */ - public DatasetResourceInner withProperties(Dataset properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public DatasetResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property properties in model DatasetResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatasetResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java deleted file mode 100644 index 0fd78112d5f23..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.Db2AuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** DB2 linked service properties. */ -@Fluent -public final class Db2LinkedServiceTypeProperties { - /* - * The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and - * certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * Server name for connection. It is mutually exclusive with - * connectionString property. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * Database name for connection. It is mutually exclusive with - * connectionString property. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "database") - private Object database; - - /* - * AuthenticationType to be used for connection. It is mutually exclusive - * with connectionString property. - */ - @JsonProperty(value = "authenticationType") - private Db2AuthenticationType authenticationType; - - /* - * Username for authentication. It is mutually exclusive with - * connectionString property. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "packageCollection") - private Object packageCollection; - - /* - * Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "certificateCommonName") - private Object certificateCommonName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. It is - * mutually exclusive with connectionString property. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the server property: Server name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Server name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the database property: Database name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: Database name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with - * connectionString property. - * - * @return the authenticationType value. - */ - public Db2AuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with - * connectionString property. - * - * @param authenticationType the authenticationType value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withAuthenticationType(Db2AuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username for authentication. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the packageCollection property: Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression with resultType string). - * - * @return the packageCollection value. - */ - public Object packageCollection() { - return this.packageCollection; - } - - /** - * Set the packageCollection property: Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression with resultType string). - * - * @param packageCollection the packageCollection value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withPackageCollection(Object packageCollection) { - this.packageCollection = packageCollection; - return this; - } - - /** - * Get the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with resultType string). - * - * @return the certificateCommonName value. - */ - public Object certificateCommonName() { - return this.certificateCommonName; - } - - /** - * Set the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with resultType string). - * - * @param certificateCommonName the certificateCommonName value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withCertificateCommonName(Object certificateCommonName) { - this.certificateCommonName = certificateCommonName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: - * string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: - * string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java deleted file mode 100644 index f42834be43ec6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Db2 table dataset properties. */ -@Fluent -public final class Db2TableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The Db2 schema name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The Db2 table name. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the Db2TableDatasetTypeProperties object itself. - */ - public Db2TableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The Db2 schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The Db2 schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the Db2TableDatasetTypeProperties object itself. - */ - public Db2TableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The Db2 table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The Db2 table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the Db2TableDatasetTypeProperties object itself. - */ - public Db2TableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java deleted file mode 100644 index 5c9cd83e7049f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Delete activity properties. */ -@Fluent -public final class DeleteActivityTypeProperties { - /* - * If true, files or sub-folders under current folder path will be deleted - * recursively. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * The max concurrent connections to connect data source at the same time. - */ - @JsonProperty(value = "maxConcurrentConnections") - private Integer maxConcurrentConnections; - - /* - * Whether to record detailed logs of delete-activity execution. Default - * value is false. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableLogging") - private Object enableLogging; - - /* - * Log storage settings customer need to provide when enableLogging is - * true. - */ - @JsonProperty(value = "logStorageSettings") - private LogStorageSettings logStorageSettings; - - /* - * Delete activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /* - * Delete activity store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /** - * Get the recursive property: If true, files or sub-folders under current folder path will be deleted recursively. - * Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files or sub-folders under current folder path will be deleted recursively. - * Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the maxConcurrentConnections property: The max concurrent connections to connect data source at the same - * time. - * - * @return the maxConcurrentConnections value. - */ - public Integer maxConcurrentConnections() { - return this.maxConcurrentConnections; - } - - /** - * Set the maxConcurrentConnections property: The max concurrent connections to connect data source at the same - * time. - * - * @param maxConcurrentConnections the maxConcurrentConnections value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withMaxConcurrentConnections(Integer maxConcurrentConnections) { - this.maxConcurrentConnections = maxConcurrentConnections; - return this; - } - - /** - * Get the enableLogging property: Whether to record detailed logs of delete-activity execution. Default value is - * false. Type: boolean (or Expression with resultType boolean). - * - * @return the enableLogging value. - */ - public Object enableLogging() { - return this.enableLogging; - } - - /** - * Set the enableLogging property: Whether to record detailed logs of delete-activity execution. Default value is - * false. Type: boolean (or Expression with resultType boolean). - * - * @param enableLogging the enableLogging value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withEnableLogging(Object enableLogging) { - this.enableLogging = enableLogging; - return this; - } - - /** - * Get the logStorageSettings property: Log storage settings customer need to provide when enableLogging is true. - * - * @return the logStorageSettings value. - */ - public LogStorageSettings logStorageSettings() { - return this.logStorageSettings; - } - - /** - * Set the logStorageSettings property: Log storage settings customer need to provide when enableLogging is true. - * - * @param logStorageSettings the logStorageSettings value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withLogStorageSettings(LogStorageSettings logStorageSettings) { - this.logStorageSettings = logStorageSettings; - return this; - } - - /** - * Get the dataset property: Delete activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: Delete activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Get the storeSettings property: Delete activity store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Delete activity store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (logStorageSettings() != null) { - logStorageSettings().validate(); - } - if (dataset() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model DeleteActivityTypeProperties")); - } else { - dataset().validate(); - } - if (storeSettings() != null) { - storeSettings().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DeleteActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java deleted file mode 100644 index b4cdb2ff434c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java +++ /dev/null @@ -1,316 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** DelimitedText dataset properties. */ -@Fluent -public final class DelimitedTextDatasetTypeProperties { - /* - * The location of the delimited text storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The column delimiter. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "columnDelimiter") - private Object columnDelimiter; - - /* - * The row delimiter. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "rowDelimiter") - private Object rowDelimiter; - - /* - * The code page name of the preferred encoding. If miss, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name - * column of the table in the following link to set supported values: - * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * The data compressionCodec. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "compressionCodec") - private Object compressionCodec; - - /* - * The data compression method used for DelimitedText. - */ - @JsonProperty(value = "compressionLevel") - private Object compressionLevel; - - /* - * The quote character. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "quoteChar") - private Object quoteChar; - - /* - * The escape character. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "escapeChar") - private Object escapeChar; - - /* - * When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The - * default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "firstRowAsHeader") - private Object firstRowAsHeader; - - /* - * The null value string. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nullValue") - private Object nullValue; - - /** - * Get the location property: The location of the delimited text storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the delimited text storage. - * - * @param location the location value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @return the columnDelimiter value. - */ - public Object columnDelimiter() { - return this.columnDelimiter; - } - - /** - * Set the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @param columnDelimiter the columnDelimiter value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withColumnDelimiter(Object columnDelimiter) { - this.columnDelimiter = columnDelimiter; - return this; - } - - /** - * Get the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @return the rowDelimiter value. - */ - public Object rowDelimiter() { - return this.rowDelimiter; - } - - /** - * Set the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @param rowDelimiter the rowDelimiter value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withRowDelimiter(Object rowDelimiter) { - this.rowDelimiter = rowDelimiter; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If miss, the default value is UTF-8, - * unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set - * supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - * resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If miss, the default value is UTF-8, - * unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set - * supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - * resultType string). - * - * @param encodingName the encodingName value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the compressionCodec value. - */ - public Object compressionCodec() { - return this.compressionCodec; - } - - /** - * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @param compressionCodec the compressionCodec value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withCompressionCodec(Object compressionCodec) { - this.compressionCodec = compressionCodec; - return this; - } - - /** - * Get the compressionLevel property: The data compression method used for DelimitedText. - * - * @return the compressionLevel value. - */ - public Object compressionLevel() { - return this.compressionLevel; - } - - /** - * Set the compressionLevel property: The data compression method used for DelimitedText. - * - * @param compressionLevel the compressionLevel value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withCompressionLevel(Object compressionLevel) { - this.compressionLevel = compressionLevel; - return this; - } - - /** - * Get the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @return the quoteChar value. - */ - public Object quoteChar() { - return this.quoteChar; - } - - /** - * Set the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @param quoteChar the quoteChar value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withQuoteChar(Object quoteChar) { - this.quoteChar = quoteChar; - return this; - } - - /** - * Get the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @return the escapeChar value. - */ - public Object escapeChar() { - return this.escapeChar; - } - - /** - * Set the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @param escapeChar the escapeChar value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withEscapeChar(Object escapeChar) { - this.escapeChar = escapeChar; - return this; - } - - /** - * Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowAsHeader value. - */ - public Object firstRowAsHeader() { - return this.firstRowAsHeader; - } - - /** - * Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowAsHeader the firstRowAsHeader value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withFirstRowAsHeader(Object firstRowAsHeader) { - this.firstRowAsHeader = firstRowAsHeader; - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.nullValue; - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withNullValue(Object nullValue) { - this.nullValue = nullValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model DelimitedTextDatasetTypeProperties")); - } else { - location().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DelimitedTextDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DocumentDbCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DocumentDbCollectionDatasetTypeProperties.java deleted file mode 100644 index 26dce96416392..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DocumentDbCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** DocumentDB Collection dataset properties. */ -@Fluent -public final class DocumentDbCollectionDatasetTypeProperties { - /* - * Document Database collection name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "collectionName", required = true) - private Object collectionName; - - /** - * Get the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.collectionName; - } - - /** - * Set the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the DocumentDbCollectionDatasetTypeProperties object itself. - */ - public DocumentDbCollectionDatasetTypeProperties withCollectionName(Object collectionName) { - this.collectionName = collectionName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collectionName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collectionName in model DocumentDbCollectionDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DocumentDbCollectionDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java deleted file mode 100644 index 2e0930b7138a3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Drill Dataset Properties. */ -@Fluent -public final class DrillDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Drill. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Drill. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the DrillDatasetTypeProperties object itself. - */ - public DrillDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Drill. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Drill. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the DrillDatasetTypeProperties object itself. - */ - public DrillDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the DrillDatasetTypeProperties object itself. - */ - public DrillDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java deleted file mode 100644 index 6665a14a4e999..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Drill server linked service properties. */ -@Fluent -public final class DrillLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the DrillLinkedServiceTypeProperties object itself. - */ - public DrillLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the DrillLinkedServiceTypeProperties object itself. - */ - public DrillLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DrillLinkedServiceTypeProperties object itself. - */ - public DrillLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXLinkedServiceTypeProperties.java deleted file mode 100644 index 5914b2ffcc7ed..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXLinkedServiceTypeProperties.java +++ /dev/null @@ -1,237 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics AX linked service properties. */ -@Fluent -public final class DynamicsAXLinkedServiceTypeProperties { - /* - * The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData - * endpoint. - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Specify the application's client ID. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId", required = true) - private Object servicePrincipalId; - - /* - * Specify the application's key. Mark this field as a SecureString to - * store it securely in Data Factory, or reference a secret stored in Azure - * Key Vault. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalKey", required = true) - private SecretBase servicePrincipalKey; - - /* - * Specify the tenant information (domain name or tenant ID) under which - * your application resides. Retrieve it by hovering the mouse in the - * top-right corner of the Azure portal. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tenant", required = true) - private Object tenant; - - /* - * Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "aadResourceId", required = true) - private Object aadResourceId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - * - * @param url the url value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the application's key. Mark this field as a SecureString to store - * it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: Specify the application's key. Mark this field as a SecureString to store - * it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the aadResourceId property: Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.aadResourceId; - } - - /** - * Set the aadResourceId property: Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - * - * @param aadResourceId the aadResourceId value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withAadResourceId(Object aadResourceId) { - this.aadResourceId = aadResourceId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model DynamicsAXLinkedServiceTypeProperties")); - } - if (servicePrincipalId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalId in model DynamicsAXLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalKey in model" - + " DynamicsAXLinkedServiceTypeProperties")); - } else { - servicePrincipalKey().validate(); - } - if (tenant() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenant in model DynamicsAXLinkedServiceTypeProperties")); - } - if (aadResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property aadResourceId in model DynamicsAXLinkedServiceTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsAXLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXResourceDatasetTypeProperties.java deleted file mode 100644 index 2e5ebca4b995c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXResourceDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics AX OData resource dataset properties. */ -@Fluent -public final class DynamicsAXResourceDatasetTypeProperties { - /* - * The path of the Dynamics AX OData entity. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "path", required = true) - private Object path; - - /** - * Get the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @param path the path value to set. - * @return the DynamicsAXResourceDatasetTypeProperties object itself. - */ - public DynamicsAXResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (path() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property path in model DynamicsAXResourceDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsAXResourceDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java deleted file mode 100644 index b00ad95514363..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics CRM entity dataset properties. */ -@Fluent -public final class DynamicsCrmEntityDatasetTypeProperties { - /* - * The logical name of the entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "entityName") - private Object entityName; - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.entityName; - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsCrmEntityDatasetTypeProperties object itself. - */ - public DynamicsCrmEntityDatasetTypeProperties withEntityName(Object entityName) { - this.entityName = entityName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java deleted file mode 100644 index 8f1192e08a1a7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java +++ /dev/null @@ -1,418 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics CRM linked service properties. */ -@Fluent -public final class DynamicsCrmLinkedServiceTypeProperties { - /* - * The deployment type of the Dynamics CRM instance. 'Online' for Dynamics - * CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with - * Ifd. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "deploymentType", required = true) - private Object deploymentType; - - /* - * The host name of the on-premises Dynamics CRM server. The property is - * required for on-prem and not allowed for online. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostName") - private Object hostname; - - /* - * The port of on-premises Dynamics CRM server. The property is required - * for on-prem and not allowed for online. Default is 443. Type: integer - * (or Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The URL to the Microsoft Dynamics CRM server. The property is required - * for on-line and not allowed for on-prem. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "serviceUri") - private Object serviceUri; - - /* - * The organization name of the Dynamics CRM instance. The property is - * required for on-prem and required for online when there are more than - * one Dynamics CRM instances associated with the user. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "organizationName") - private Object organizationName; - - /* - * The authentication type to connect to Dynamics CRM server. 'Office365' - * for online scenario, 'Ifd' for on-premises with Ifd scenario, - * 'AADServicePrincipal' for Server-To-Server authentication in online - * scenario. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authenticationType", required = true) - private Object authenticationType; - - /* - * User name to access the Dynamics CRM instance. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password to access the Dynamics CRM instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private Object servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the deploymentType property: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM - * Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType - * string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.deploymentType; - } - - /** - * Set the deploymentType property: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM - * Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType - * string). - * - * @param deploymentType the deploymentType value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withDeploymentType(Object deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Dynamics CRM server. The property is required for - * on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.hostname; - } - - /** - * Set the hostname property: The host name of the on-premises Dynamics CRM server. The property is required for - * on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withHostname(Object hostname) { - this.hostname = hostname; - return this; - } - - /** - * Get the port property: The port of on-premises Dynamics CRM server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port of on-premises Dynamics CRM server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Dynamics CRM server. The property is required for on-line - * and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.serviceUri; - } - - /** - * Set the serviceUri property: The URL to the Microsoft Dynamics CRM server. The property is required for on-line - * and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServiceUri(Object serviceUri) { - this.serviceUri = serviceUri; - return this; - } - - /** - * Get the organizationName property: The organization name of the Dynamics CRM instance. The property is required - * for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. - * Type: string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.organizationName; - } - - /** - * Set the organizationName property: The organization name of the Dynamics CRM instance. The property is required - * for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. - * Type: string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withOrganizationName(Object organizationName) { - this.organizationName = organizationName; - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Dynamics CRM server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to connect to Dynamics CRM server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name to access the Dynamics CRM instance. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name to access the Dynamics CRM instance. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the Dynamics CRM instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the Dynamics CRM instance. - * - * @param password the password value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServicePrincipalCredential( - SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (deploymentType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property deploymentType in model DynamicsCrmLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " DynamicsCrmLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsCrmLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java deleted file mode 100644 index a773ea4d5bb0f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics entity dataset properties. */ -@Fluent -public final class DynamicsEntityDatasetTypeProperties { - /* - * The logical name of the entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "entityName") - private Object entityName; - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.entityName; - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsEntityDatasetTypeProperties object itself. - */ - public DynamicsEntityDatasetTypeProperties withEntityName(Object entityName) { - this.entityName = entityName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java deleted file mode 100644 index 98c008a179987..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics linked service properties. */ -@Fluent -public final class DynamicsLinkedServiceTypeProperties { - /* - * The deployment type of the Dynamics instance. 'Online' for Dynamics - * Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "deploymentType", required = true) - private Object deploymentType; - - /* - * The host name of the on-premises Dynamics server. The property is - * required for on-prem and not allowed for online. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostName") - private Object hostname; - - /* - * The port of on-premises Dynamics server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or - * Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The URL to the Microsoft Dynamics server. The property is required for - * on-line and not allowed for on-prem. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "serviceUri") - private Object serviceUri; - - /* - * The organization name of the Dynamics instance. The property is required - * for on-prem and required for online when there are more than one - * Dynamics instances associated with the user. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "organizationName") - private Object organizationName; - - /* - * The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, - * 'AADServicePrincipal' for Server-To-Server authentication in online - * scenario. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authenticationType", required = true) - private Object authenticationType; - - /* - * User name to access the Dynamics instance. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password to access the Dynamics instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private Object servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the deploymentType property: The deployment type of the Dynamics instance. 'Online' for Dynamics Online and - * 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.deploymentType; - } - - /** - * Set the deploymentType property: The deployment type of the Dynamics instance. 'Online' for Dynamics Online and - * 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). - * - * @param deploymentType the deploymentType value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withDeploymentType(Object deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Dynamics server. The property is required for on-prem - * and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.hostname; - } - - /** - * Set the hostname property: The host name of the on-premises Dynamics server. The property is required for on-prem - * and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withHostname(Object hostname) { - this.hostname = hostname; - return this; - } - - /** - * Get the port property: The port of on-premises Dynamics server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port of on-premises Dynamics server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Dynamics server. The property is required for on-line and - * not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.serviceUri; - } - - /** - * Set the serviceUri property: The URL to the Microsoft Dynamics server. The property is required for on-line and - * not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServiceUri(Object serviceUri) { - this.serviceUri = serviceUri; - return this; - } - - /** - * Get the organizationName property: The organization name of the Dynamics instance. The property is required for - * on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: - * string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.organizationName; - } - - /** - * Set the organizationName property: The organization name of the Dynamics instance. The property is required for - * on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: - * string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withOrganizationName(Object organizationName) { - this.organizationName = organizationName; - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name to access the Dynamics instance. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name to access the Dynamics instance. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the Dynamics instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the Dynamics instance. - * - * @param password the password value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (deploymentType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property deploymentType in model DynamicsLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model DynamicsLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java deleted file mode 100644 index 44253aecf1c65..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Eloqua server linked service properties. */ -@Fluent -public final class EloquaLinkedServiceTypeProperties { - /* - * The endpoint of the Eloqua server. (i.e. eloqua.example.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The site name and user name of your Eloqua account in the form: - * sitename/username. (i.e. Eloqua/Alice) - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Eloqua server. (i.e. eloqua.example.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Eloqua server. (i.e. eloqua.example.com). - * - * @param endpoint the endpoint value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the username property: The site name and user name of your Eloqua account in the form: sitename/username. - * (i.e. Eloqua/Alice). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The site name and user name of your Eloqua account in the form: sitename/username. - * (i.e. Eloqua/Alice). - * - * @param username the username value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model EloquaLinkedServiceTypeProperties")); - } - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model EloquaLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EloquaLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EnvironmentVariableSetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EnvironmentVariableSetupTypeProperties.java deleted file mode 100644 index 7544fef015790..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EnvironmentVariableSetupTypeProperties.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Environment variable custom setup type properties. */ -@Fluent -public final class EnvironmentVariableSetupTypeProperties { - /* - * The name of the environment variable. - */ - @JsonProperty(value = "variableName", required = true) - private String variableName; - - /* - * The value of the environment variable. - */ - @JsonProperty(value = "variableValue", required = true) - private String variableValue; - - /** - * Get the variableName property: The name of the environment variable. - * - * @return the variableName value. - */ - public String variableName() { - return this.variableName; - } - - /** - * Set the variableName property: The name of the environment variable. - * - * @param variableName the variableName value to set. - * @return the EnvironmentVariableSetupTypeProperties object itself. - */ - public EnvironmentVariableSetupTypeProperties withVariableName(String variableName) { - this.variableName = variableName; - return this; - } - - /** - * Get the variableValue property: The value of the environment variable. - * - * @return the variableValue value. - */ - public String variableValue() { - return this.variableValue; - } - - /** - * Set the variableValue property: The value of the environment variable. - * - * @param variableValue the variableValue value to set. - * @return the EnvironmentVariableSetupTypeProperties object itself. - */ - public EnvironmentVariableSetupTypeProperties withVariableValue(String variableValue) { - this.variableValue = variableValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (variableName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property variableName in model EnvironmentVariableSetupTypeProperties")); - } - if (variableValue() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property variableValue in model EnvironmentVariableSetupTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EnvironmentVariableSetupTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java deleted file mode 100644 index addacbb8ca2c7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Excel dataset properties. */ -@Fluent -public final class ExcelDatasetTypeProperties { - /* - * The location of the excel storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The sheet name of excel file. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "sheetName") - private Object sheetName; - - /* - * The sheet index of excel file and default value is 0. Type: integer (or - * Expression with resultType integer) - */ - @JsonProperty(value = "sheetIndex") - private Object sheetIndex; - - /* - * The partial data of one sheet. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "range") - private Object range; - - /* - * When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The - * default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "firstRowAsHeader") - private Object firstRowAsHeader; - - /* - * The data compression method used for the json dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /* - * The null value string. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nullValue") - private Object nullValue; - - /** - * Get the location property: The location of the excel storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the excel storage. - * - * @param location the location value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the sheetName property: The sheet name of excel file. Type: string (or Expression with resultType string). - * - * @return the sheetName value. - */ - public Object sheetName() { - return this.sheetName; - } - - /** - * Set the sheetName property: The sheet name of excel file. Type: string (or Expression with resultType string). - * - * @param sheetName the sheetName value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withSheetName(Object sheetName) { - this.sheetName = sheetName; - return this; - } - - /** - * Get the sheetIndex property: The sheet index of excel file and default value is 0. Type: integer (or Expression - * with resultType integer). - * - * @return the sheetIndex value. - */ - public Object sheetIndex() { - return this.sheetIndex; - } - - /** - * Set the sheetIndex property: The sheet index of excel file and default value is 0. Type: integer (or Expression - * with resultType integer). - * - * @param sheetIndex the sheetIndex value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withSheetIndex(Object sheetIndex) { - this.sheetIndex = sheetIndex; - return this; - } - - /** - * Get the range property: The partial data of one sheet. Type: string (or Expression with resultType string). - * - * @return the range value. - */ - public Object range() { - return this.range; - } - - /** - * Set the range property: The partial data of one sheet. Type: string (or Expression with resultType string). - * - * @param range the range value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withRange(Object range) { - this.range = range; - return this; - } - - /** - * Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowAsHeader value. - */ - public Object firstRowAsHeader() { - return this.firstRowAsHeader; - } - - /** - * Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowAsHeader the firstRowAsHeader value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withFirstRowAsHeader(Object firstRowAsHeader) { - this.firstRowAsHeader = firstRowAsHeader; - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.nullValue; - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withNullValue(Object nullValue) { - this.nullValue = nullValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model ExcelDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExcelDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java deleted file mode 100644 index dda012dce81b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Execute data flow activity properties. */ -@Fluent -public class ExecuteDataFlowActivityTypeProperties { - /* - * Data flow reference. - */ - @JsonProperty(value = "dataFlow", required = true) - private DataFlowReference dataFlow; - - /* - * Staging info for execute data flow activity. - */ - @JsonProperty(value = "staging") - private DataFlowStagingInfo staging; - - /* - * The integration runtime reference. - */ - @JsonProperty(value = "integrationRuntime") - private IntegrationRuntimeReference integrationRuntime; - - /* - * Compute properties for data flow activity. - */ - @JsonProperty(value = "compute") - private ExecuteDataFlowActivityTypePropertiesCompute compute; - - /* - * Trace level setting used for data flow monitoring output. Supported - * values are: 'coarse', 'fine', and 'none'. Type: string (or Expression - * with resultType string) - */ - @JsonProperty(value = "traceLevel") - private Object traceLevel; - - /* - * Continue on error setting used for data flow execution. Enables - * processing to continue if a sink fails. Type: boolean (or Expression - * with resultType boolean) - */ - @JsonProperty(value = "continueOnError") - private Object continueOnError; - - /* - * Concurrent run setting used for data flow execution. Allows sinks with - * the same save order to be processed concurrently. Type: boolean (or - * Expression with resultType boolean) - */ - @JsonProperty(value = "runConcurrently") - private Object runConcurrently; - - /** - * Get the dataFlow property: Data flow reference. - * - * @return the dataFlow value. - */ - public DataFlowReference dataFlow() { - return this.dataFlow; - } - - /** - * Set the dataFlow property: Data flow reference. - * - * @param dataFlow the dataFlow value to set. - * @return the ExecuteDataFlowActivityTypeProperties object itself. - */ - public ExecuteDataFlowActivityTypeProperties withDataFlow(DataFlowReference dataFlow) { - this.dataFlow = dataFlow; - return this; - } - - /** - * Get the staging property: Staging info for execute data flow activity. - * - * @return the staging value. - */ - public DataFlowStagingInfo staging() { - return this.staging; - } - - /** - * Set the staging property: Staging info for execute data flow activity. - * - * @param staging the staging value to set. - * @return the ExecuteDataFlowActivityTypeProperties object itself. - */ - public ExecuteDataFlowActivityTypeProperties withStaging(DataFlowStagingInfo staging) { - this.staging = staging; - return this; - } - - /** - * Get the integrationRuntime property: The integration runtime reference. - * - * @return the integrationRuntime value. - */ - public IntegrationRuntimeReference integrationRuntime() { - return this.integrationRuntime; - } - - /** - * Set the integrationRuntime property: The integration runtime reference. - * - * @param integrationRuntime the integrationRuntime value to set. - * @return the ExecuteDataFlowActivityTypeProperties object itself. - */ - public ExecuteDataFlowActivityTypeProperties withIntegrationRuntime( - IntegrationRuntimeReference integrationRuntime) { - this.integrationRuntime = integrationRuntime; - return this; - } - - /** - * Get the compute property: Compute properties for data flow activity. - * - * @return the compute value. - */ - public ExecuteDataFlowActivityTypePropertiesCompute compute() { - return this.compute; - } - - /** - * Set the compute property: Compute properties for data flow activity. - * - * @param compute the compute value to set. - * @return the ExecuteDataFlowActivityTypeProperties object itself. - */ - public ExecuteDataFlowActivityTypeProperties withCompute(ExecuteDataFlowActivityTypePropertiesCompute compute) { - this.compute = compute; - return this; - } - - /** - * Get the traceLevel property: Trace level setting used for data flow monitoring output. Supported values are: - * 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - * - * @return the traceLevel value. - */ - public Object traceLevel() { - return this.traceLevel; - } - - /** - * Set the traceLevel property: Trace level setting used for data flow monitoring output. Supported values are: - * 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - * - * @param traceLevel the traceLevel value to set. - * @return the ExecuteDataFlowActivityTypeProperties object itself. - */ - public ExecuteDataFlowActivityTypeProperties withTraceLevel(Object traceLevel) { - this.traceLevel = traceLevel; - return this; - } - - /** - * Get the continueOnError property: Continue on error setting used for data flow execution. Enables processing to - * continue if a sink fails. Type: boolean (or Expression with resultType boolean). - * - * @return the continueOnError value. - */ - public Object continueOnError() { - return this.continueOnError; - } - - /** - * Set the continueOnError property: Continue on error setting used for data flow execution. Enables processing to - * continue if a sink fails. Type: boolean (or Expression with resultType boolean). - * - * @param continueOnError the continueOnError value to set. - * @return the ExecuteDataFlowActivityTypeProperties object itself. - */ - public ExecuteDataFlowActivityTypeProperties withContinueOnError(Object continueOnError) { - this.continueOnError = continueOnError; - return this; - } - - /** - * Get the runConcurrently property: Concurrent run setting used for data flow execution. Allows sinks with the same - * save order to be processed concurrently. Type: boolean (or Expression with resultType boolean). - * - * @return the runConcurrently value. - */ - public Object runConcurrently() { - return this.runConcurrently; - } - - /** - * Set the runConcurrently property: Concurrent run setting used for data flow execution. Allows sinks with the same - * save order to be processed concurrently. Type: boolean (or Expression with resultType boolean). - * - * @param runConcurrently the runConcurrently value to set. - * @return the ExecuteDataFlowActivityTypeProperties object itself. - */ - public ExecuteDataFlowActivityTypeProperties withRunConcurrently(Object runConcurrently) { - this.runConcurrently = runConcurrently; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataFlow() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataFlow in model ExecuteDataFlowActivityTypeProperties")); - } else { - dataFlow().validate(); - } - if (staging() != null) { - staging().validate(); - } - if (integrationRuntime() != null) { - integrationRuntime().validate(); - } - if (compute() != null) { - compute().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExecuteDataFlowActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePipelineActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePipelineActivityTypeProperties.java deleted file mode 100644 index af4829f6ef58f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePipelineActivityTypeProperties.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Execute pipeline activity properties. */ -@Fluent -public final class ExecutePipelineActivityTypeProperties { - /* - * Pipeline reference. - */ - @JsonProperty(value = "pipeline", required = true) - private PipelineReference pipeline; - - /* - * Pipeline parameters. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - */ - @JsonProperty(value = "waitOnCompletion") - private Boolean waitOnCompletion; - - /** - * Get the pipeline property: Pipeline reference. - * - * @return the pipeline value. - */ - public PipelineReference pipeline() { - return this.pipeline; - } - - /** - * Set the pipeline property: Pipeline reference. - * - * @param pipeline the pipeline value to set. - * @return the ExecutePipelineActivityTypeProperties object itself. - */ - public ExecutePipelineActivityTypeProperties withPipeline(PipelineReference pipeline) { - this.pipeline = pipeline; - return this; - } - - /** - * Get the parameters property: Pipeline parameters. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Pipeline parameters. - * - * @param parameters the parameters value to set. - * @return the ExecutePipelineActivityTypeProperties object itself. - */ - public ExecutePipelineActivityTypeProperties withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the waitOnCompletion property: Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - * - * @return the waitOnCompletion value. - */ - public Boolean waitOnCompletion() { - return this.waitOnCompletion; - } - - /** - * Set the waitOnCompletion property: Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - * - * @param waitOnCompletion the waitOnCompletion value to set. - * @return the ExecutePipelineActivityTypeProperties object itself. - */ - public ExecutePipelineActivityTypeProperties withWaitOnCompletion(Boolean waitOnCompletion) { - this.waitOnCompletion = waitOnCompletion; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pipeline() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property pipeline in model ExecutePipelineActivityTypeProperties")); - } else { - pipeline().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExecutePipelineActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java deleted file mode 100644 index ecef67d34b9a4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Execute power query data flow activity properties. */ -@Fluent -public final class ExecutePowerQueryActivityTypeProperties extends ExecuteDataFlowActivityTypeProperties { - /* - * (Deprecated. Please use Queries). List of Power Query activity sinks - * mapped to a queryName. - */ - @JsonProperty(value = "sinks") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map sinks; - - /* - * List of mapping for Power Query mashup query to sink dataset(s). - */ - @JsonProperty(value = "queries") - private List queries; - - /** - * Get the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a - * queryName. - * - * @return the sinks value. - */ - public Map sinks() { - return this.sinks; - } - - /** - * Set the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a - * queryName. - * - * @param sinks the sinks value to set. - * @return the ExecutePowerQueryActivityTypeProperties object itself. - */ - public ExecutePowerQueryActivityTypeProperties withSinks(Map sinks) { - this.sinks = sinks; - return this; - } - - /** - * Get the queries property: List of mapping for Power Query mashup query to sink dataset(s). - * - * @return the queries value. - */ - public List queries() { - return this.queries; - } - - /** - * Set the queries property: List of mapping for Power Query mashup query to sink dataset(s). - * - * @param queries the queries value to set. - * @return the ExecutePowerQueryActivityTypeProperties object itself. - */ - public ExecutePowerQueryActivityTypeProperties withQueries(List queries) { - this.queries = queries; - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePowerQueryActivityTypeProperties withDataFlow(DataFlowReference dataFlow) { - super.withDataFlow(dataFlow); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePowerQueryActivityTypeProperties withStaging(DataFlowStagingInfo staging) { - super.withStaging(staging); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePowerQueryActivityTypeProperties withIntegrationRuntime( - IntegrationRuntimeReference integrationRuntime) { - super.withIntegrationRuntime(integrationRuntime); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePowerQueryActivityTypeProperties withCompute(ExecuteDataFlowActivityTypePropertiesCompute compute) { - super.withCompute(compute); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePowerQueryActivityTypeProperties withTraceLevel(Object traceLevel) { - super.withTraceLevel(traceLevel); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePowerQueryActivityTypeProperties withContinueOnError(Object continueOnError) { - super.withContinueOnError(continueOnError); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePowerQueryActivityTypeProperties withRunConcurrently(Object runConcurrently) { - super.withRunConcurrently(runConcurrently); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (sinks() != null) { - sinks() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (queries() != null) { - queries().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java deleted file mode 100644 index 425d0cd184a60..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java +++ /dev/null @@ -1,449 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.SsisExecutionCredential; -import com.azure.resourcemanager.datafactory.models.SsisExecutionParameter; -import com.azure.resourcemanager.datafactory.models.SsisLogLocation; -import com.azure.resourcemanager.datafactory.models.SsisPackageLocation; -import com.azure.resourcemanager.datafactory.models.SsisPropertyOverride; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Execute SSIS package activity properties. */ -@Fluent -public final class ExecuteSsisPackageActivityTypeProperties { - /* - * SSIS package location. - */ - @JsonProperty(value = "packageLocation", required = true) - private SsisPackageLocation packageLocation; - - /* - * Specifies the runtime to execute SSIS package. The value should be "x86" - * or "x64". Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "runtime") - private Object runtime; - - /* - * The logging level of SSIS package execution. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "loggingLevel") - private Object loggingLevel; - - /* - * The environment path to execute the SSIS package. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "environmentPath") - private Object environmentPath; - - /* - * The package execution credential. - */ - @JsonProperty(value = "executionCredential") - private SsisExecutionCredential executionCredential; - - /* - * The integration runtime reference. - */ - @JsonProperty(value = "connectVia", required = true) - private IntegrationRuntimeReference connectVia; - - /* - * The project level parameters to execute the SSIS package. - */ - @JsonProperty(value = "projectParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map projectParameters; - - /* - * The package level parameters to execute the SSIS package. - */ - @JsonProperty(value = "packageParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map packageParameters; - - /* - * The project level connection managers to execute the SSIS package. - */ - @JsonProperty(value = "projectConnectionManagers") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map> projectConnectionManagers; - - /* - * The package level connection managers to execute the SSIS package. - */ - @JsonProperty(value = "packageConnectionManagers") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map> packageConnectionManagers; - - /* - * The property overrides to execute the SSIS package. - */ - @JsonProperty(value = "propertyOverrides") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map propertyOverrides; - - /* - * SSIS package execution log location. - */ - @JsonProperty(value = "logLocation") - private SsisLogLocation logLocation; - - /** - * Get the packageLocation property: SSIS package location. - * - * @return the packageLocation value. - */ - public SsisPackageLocation packageLocation() { - return this.packageLocation; - } - - /** - * Set the packageLocation property: SSIS package location. - * - * @param packageLocation the packageLocation value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPackageLocation(SsisPackageLocation packageLocation) { - this.packageLocation = packageLocation; - return this; - } - - /** - * Get the runtime property: 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 Object runtime() { - return this.runtime; - } - - /** - * Set the runtime property: 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 ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withRuntime(Object runtime) { - this.runtime = runtime; - return this; - } - - /** - * Get the loggingLevel property: The logging level of SSIS package execution. Type: string (or Expression with - * resultType string). - * - * @return the loggingLevel value. - */ - public Object loggingLevel() { - return this.loggingLevel; - } - - /** - * Set the loggingLevel property: The logging level of SSIS package execution. Type: string (or Expression with - * resultType string). - * - * @param loggingLevel the loggingLevel value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withLoggingLevel(Object loggingLevel) { - this.loggingLevel = loggingLevel; - return this; - } - - /** - * Get the environmentPath property: The environment path to execute the SSIS package. Type: string (or Expression - * with resultType string). - * - * @return the environmentPath value. - */ - public Object environmentPath() { - return this.environmentPath; - } - - /** - * Set the environmentPath property: The environment path to execute the SSIS package. Type: string (or Expression - * with resultType string). - * - * @param environmentPath the environmentPath value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withEnvironmentPath(Object environmentPath) { - this.environmentPath = environmentPath; - return this; - } - - /** - * Get the executionCredential property: The package execution credential. - * - * @return the executionCredential value. - */ - public SsisExecutionCredential executionCredential() { - return this.executionCredential; - } - - /** - * Set the executionCredential property: The package execution credential. - * - * @param executionCredential the executionCredential value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withExecutionCredential( - SsisExecutionCredential executionCredential) { - this.executionCredential = executionCredential; - return this; - } - - /** - * Get the connectVia property: The integration runtime reference. - * - * @return the connectVia value. - */ - public IntegrationRuntimeReference connectVia() { - return this.connectVia; - } - - /** - * Set the connectVia property: The integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withConnectVia(IntegrationRuntimeReference connectVia) { - this.connectVia = connectVia; - return this; - } - - /** - * Get the projectParameters property: The project level parameters to execute the SSIS package. - * - * @return the projectParameters value. - */ - public Map projectParameters() { - return this.projectParameters; - } - - /** - * Set the projectParameters property: The project level parameters to execute the SSIS package. - * - * @param projectParameters the projectParameters value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withProjectParameters( - Map projectParameters) { - this.projectParameters = projectParameters; - return this; - } - - /** - * Get the packageParameters property: The package level parameters to execute the SSIS package. - * - * @return the packageParameters value. - */ - public Map packageParameters() { - return this.packageParameters; - } - - /** - * Set the packageParameters property: The package level parameters to execute the SSIS package. - * - * @param packageParameters the packageParameters value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPackageParameters( - Map packageParameters) { - this.packageParameters = packageParameters; - return this; - } - - /** - * Get the projectConnectionManagers property: The project level connection managers to execute the SSIS package. - * - * @return the projectConnectionManagers value. - */ - public Map> projectConnectionManagers() { - return this.projectConnectionManagers; - } - - /** - * Set the projectConnectionManagers property: The project level connection managers to execute the SSIS package. - * - * @param projectConnectionManagers the projectConnectionManagers value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withProjectConnectionManagers( - Map> projectConnectionManagers) { - this.projectConnectionManagers = projectConnectionManagers; - return this; - } - - /** - * Get the packageConnectionManagers property: The package level connection managers to execute the SSIS package. - * - * @return the packageConnectionManagers value. - */ - public Map> packageConnectionManagers() { - return this.packageConnectionManagers; - } - - /** - * Set the packageConnectionManagers property: The package level connection managers to execute the SSIS package. - * - * @param packageConnectionManagers the packageConnectionManagers value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPackageConnectionManagers( - Map> packageConnectionManagers) { - this.packageConnectionManagers = packageConnectionManagers; - return this; - } - - /** - * Get the propertyOverrides property: The property overrides to execute the SSIS package. - * - * @return the propertyOverrides value. - */ - public Map propertyOverrides() { - return this.propertyOverrides; - } - - /** - * Set the propertyOverrides property: The property overrides to execute the SSIS package. - * - * @param propertyOverrides the propertyOverrides value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPropertyOverrides( - Map propertyOverrides) { - this.propertyOverrides = propertyOverrides; - return this; - } - - /** - * Get the logLocation property: SSIS package execution log location. - * - * @return the logLocation value. - */ - public SsisLogLocation logLocation() { - return this.logLocation; - } - - /** - * Set the logLocation property: SSIS package execution log location. - * - * @param logLocation the logLocation value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withLogLocation(SsisLogLocation logLocation) { - this.logLocation = logLocation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (packageLocation() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property packageLocation in model ExecuteSsisPackageActivityTypeProperties")); - } else { - packageLocation().validate(); - } - if (executionCredential() != null) { - executionCredential().validate(); - } - if (connectVia() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectVia in model ExecuteSsisPackageActivityTypeProperties")); - } else { - connectVia().validate(); - } - if (projectParameters() != null) { - projectParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (packageParameters() != null) { - packageParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (projectConnectionManagers() != null) { - projectConnectionManagers() - .values() - .forEach( - e -> { - if (e != null) { - e - .values() - .forEach( - e1 -> { - if (e1 != null) { - e1.validate(); - } - }); - } - }); - } - if (packageConnectionManagers() != null) { - packageConnectionManagers() - .values() - .forEach( - e -> { - if (e != null) { - e - .values() - .forEach( - e1 -> { - if (e1 != null) { - e1.validate(); - } - }); - } - }); - } - if (propertyOverrides() != null) { - propertyOverrides() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (logLocation() != null) { - logLocation().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExecuteSsisPackageActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExposureControlBatchResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExposureControlBatchResponseInner.java deleted file mode 100644 index 2cf83210b4b3f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExposureControlBatchResponseInner.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of exposure control feature values. */ -@Fluent -public final class ExposureControlBatchResponseInner { - /* - * List of exposure control feature values. - */ - @JsonProperty(value = "exposureControlResponses", required = true) - private List exposureControlResponses; - - /** - * Get the exposureControlResponses property: List of exposure control feature values. - * - * @return the exposureControlResponses value. - */ - public List exposureControlResponses() { - return this.exposureControlResponses; - } - - /** - * Set the exposureControlResponses property: List of exposure control feature values. - * - * @param exposureControlResponses the exposureControlResponses value to set. - * @return the ExposureControlBatchResponseInner object itself. - */ - public ExposureControlBatchResponseInner withExposureControlResponses( - List exposureControlResponses) { - this.exposureControlResponses = exposureControlResponses; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (exposureControlResponses() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property exposureControlResponses in model" - + " ExposureControlBatchResponseInner")); - } else { - exposureControlResponses().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExposureControlBatchResponseInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExposureControlResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExposureControlResponseInner.java deleted file mode 100644 index 5aabb794d3487..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExposureControlResponseInner.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The exposure control response. */ -@Immutable -public final 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 featureName property: The feature name. - * - * @return the featureName value. - */ - public String featureName() { - return this.featureName; - } - - /** - * Get the value property: The feature value. - * - * @return the value value. - */ - public String value() { - return this.value; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryInner.java deleted file mode 100644 index d32c90980cb61..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryInner.java +++ /dev/null @@ -1,261 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.resourcemanager.datafactory.models.EncryptionConfiguration; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; - -/** Factory resource type. */ -@Fluent -public final class FactoryInner extends Resource { - /* - * Managed service identity of the factory. - */ - @JsonProperty(value = "identity") - private FactoryIdentity identity; - - /* - * Properties of the factory. - */ - @JsonProperty(value = "properties") - private FactoryProperties innerProperties; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /* - * Factory resource type. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the identity property: Managed service identity of the factory. - * - * @return the identity value. - */ - public FactoryIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: Managed service identity of the factory. - * - * @param identity the identity value to set. - * @return the FactoryInner object itself. - */ - public FactoryInner withIdentity(FactoryIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the innerProperties property: Properties of the factory. - * - * @return the innerProperties value. - */ - private FactoryProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** - * Get the additionalProperties property: Factory resource type. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Factory resource type. - * - * @param additionalProperties the additionalProperties value to set. - * @return the FactoryInner object itself. - */ - public FactoryInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** {@inheritDoc} */ - @Override - public FactoryInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Get the provisioningState property: Factory provisioning state, example Succeeded. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the createTime property: Time the factory was created in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.innerProperties() == null ? null : this.innerProperties().createTime(); - } - - /** - * Get the version property: Version of the factory. - * - * @return the version value. - */ - public String version() { - return this.innerProperties() == null ? null : this.innerProperties().version(); - } - - /** - * Get the repoConfiguration property: Git repo information of the factory. - * - * @return the repoConfiguration value. - */ - public FactoryRepoConfiguration repoConfiguration() { - return this.innerProperties() == null ? null : this.innerProperties().repoConfiguration(); - } - - /** - * Set the repoConfiguration property: Git repo information of the factory. - * - * @param repoConfiguration the repoConfiguration value to set. - * @return the FactoryInner object itself. - */ - public FactoryInner withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { - if (this.innerProperties() == null) { - this.innerProperties = new FactoryProperties(); - } - this.innerProperties().withRepoConfiguration(repoConfiguration); - return this; - } - - /** - * Get the globalParameters property: List of parameters for factory. - * - * @return the globalParameters value. - */ - public Map globalParameters() { - return this.innerProperties() == null ? null : this.innerProperties().globalParameters(); - } - - /** - * Set the globalParameters property: List of parameters for factory. - * - * @param globalParameters the globalParameters value to set. - * @return the FactoryInner object itself. - */ - public FactoryInner withGlobalParameters(Map globalParameters) { - if (this.innerProperties() == null) { - this.innerProperties = new FactoryProperties(); - } - this.innerProperties().withGlobalParameters(globalParameters); - return this; - } - - /** - * Get the encryption property: Properties to enable Customer Managed Key for the factory. - * - * @return the encryption value. - */ - public EncryptionConfiguration encryption() { - return this.innerProperties() == null ? null : this.innerProperties().encryption(); - } - - /** - * Set the encryption property: Properties to enable Customer Managed Key for the factory. - * - * @param encryption the encryption value to set. - * @return the FactoryInner object itself. - */ - public FactoryInner withEncryption(EncryptionConfiguration encryption) { - if (this.innerProperties() == null) { - this.innerProperties = new FactoryProperties(); - } - this.innerProperties().withEncryption(encryption); - return this; - } - - /** - * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @return the publicNetworkAccess value. - */ - public PublicNetworkAccess publicNetworkAccess() { - return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess(); - } - - /** - * Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @param publicNetworkAccess the publicNetworkAccess value to set. - * @return the FactoryInner object itself. - */ - public FactoryInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - if (this.innerProperties() == null) { - this.innerProperties = new FactoryProperties(); - } - this.innerProperties().withPublicNetworkAccess(publicNetworkAccess); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryProperties.java deleted file mode 100644 index f00eebde9a883..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryProperties.java +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.EncryptionConfiguration; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Factory resource properties. */ -@Fluent -public final class FactoryProperties { - /* - * Factory provisioning state, example Succeeded. - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Time the factory was created in ISO8601 format. - */ - @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createTime; - - /* - * Version of the factory. - */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * Git repo information of the factory. - */ - @JsonProperty(value = "repoConfiguration") - private FactoryRepoConfiguration repoConfiguration; - - /* - * List of parameters for factory. - */ - @JsonProperty(value = "globalParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map globalParameters; - - /* - * Properties to enable Customer Managed Key for the factory. - */ - @JsonProperty(value = "encryption") - private EncryptionConfiguration encryption; - - /* - * Whether or not public network access is allowed for the data factory. - */ - @JsonProperty(value = "publicNetworkAccess") - private PublicNetworkAccess publicNetworkAccess; - - /** - * Get the provisioningState property: Factory provisioning state, example Succeeded. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the createTime property: Time the factory was created in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.createTime; - } - - /** - * Get the version property: Version of the factory. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Get the repoConfiguration property: Git repo information of the factory. - * - * @return the repoConfiguration value. - */ - public FactoryRepoConfiguration repoConfiguration() { - return this.repoConfiguration; - } - - /** - * Set the repoConfiguration property: Git repo information of the factory. - * - * @param repoConfiguration the repoConfiguration value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { - this.repoConfiguration = repoConfiguration; - return this; - } - - /** - * Get the globalParameters property: List of parameters for factory. - * - * @return the globalParameters value. - */ - public Map globalParameters() { - return this.globalParameters; - } - - /** - * Set the globalParameters property: List of parameters for factory. - * - * @param globalParameters the globalParameters value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withGlobalParameters(Map globalParameters) { - this.globalParameters = globalParameters; - return this; - } - - /** - * Get the encryption property: Properties to enable Customer Managed Key for the factory. - * - * @return the encryption value. - */ - public EncryptionConfiguration encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Properties to enable Customer Managed Key for the factory. - * - * @param encryption the encryption value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withEncryption(EncryptionConfiguration encryption) { - this.encryption = encryption; - return this; - } - - /** - * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @return the publicNetworkAccess value. - */ - public PublicNetworkAccess publicNetworkAccess() { - return this.publicNetworkAccess; - } - - /** - * Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @param publicNetworkAccess the publicNetworkAccess value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - this.publicNetworkAccess = publicNetworkAccess; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (repoConfiguration() != null) { - repoConfiguration().validate(); - } - if (globalParameters() != null) { - globalParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (encryption() != null) { - encryption().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryUpdateProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryUpdateProperties.java deleted file mode 100644 index b2b6b514f738a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryUpdateProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Factory update resource properties. */ -@Fluent -public final class FactoryUpdateProperties { - /* - * Whether or not public network access is allowed for the data factory. - */ - @JsonProperty(value = "publicNetworkAccess") - private PublicNetworkAccess publicNetworkAccess; - - /** - * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @return the publicNetworkAccess value. - */ - public PublicNetworkAccess publicNetworkAccess() { - return this.publicNetworkAccess; - } - - /** - * Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @param publicNetworkAccess the publicNetworkAccess value to set. - * @return the FactoryUpdateProperties object itself. - */ - public FactoryUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - this.publicNetworkAccess = publicNetworkAccess; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FailActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FailActivityTypeProperties.java deleted file mode 100644 index eae8d5445f374..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FailActivityTypeProperties.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Fail activity properties. */ -@Fluent -public final class FailActivityTypeProperties { - /* - * The error message that surfaced in the Fail activity. It can be dynamic - * content that's evaluated to a non empty/blank string at runtime. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "message", required = true) - private Object message; - - /* - * The error code that categorizes the error type of the Fail activity. It - * can be dynamic content that's evaluated to a non empty/blank string at - * runtime. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "errorCode", required = true) - private Object errorCode; - - /** - * Get the message property: The error message that surfaced in the Fail activity. It can be dynamic content that's - * evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). - * - * @return the message value. - */ - public Object message() { - return this.message; - } - - /** - * Set the message property: The error message that surfaced in the Fail activity. It can be dynamic content that's - * evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). - * - * @param message the message value to set. - * @return the FailActivityTypeProperties object itself. - */ - public FailActivityTypeProperties withMessage(Object message) { - this.message = message; - return this; - } - - /** - * Get the errorCode property: The error code that categorizes the error type of the Fail activity. It can be - * dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with - * resultType string). - * - * @return the errorCode value. - */ - public Object errorCode() { - return this.errorCode; - } - - /** - * Set the errorCode property: The error code that categorizes the error type of the Fail activity. It can be - * dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with - * resultType string). - * - * @param errorCode the errorCode value to set. - * @return the FailActivityTypeProperties object itself. - */ - public FailActivityTypeProperties withErrorCode(Object errorCode) { - this.errorCode = errorCode; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (message() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property message in model FailActivityTypeProperties")); - } - if (errorCode() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property errorCode in model FailActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FailActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java deleted file mode 100644 index e777d8152032e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** File system linked service properties. */ -@Fluent -public final class FileServerLinkedServiceTypeProperties { - /* - * Host name of the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * User ID to logon the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "userId") - private Object userId; - - /* - * Password to logon the server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @return the userId value. - */ - public Object userId() { - return this.userId; - } - - /** - * Set the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @param userId the userId value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withUserId(Object userId) { - this.userId = userId; - return this; - } - - /** - * Get the password property: Password to logon the server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the server. - * - * @param password the password value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model FileServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FileServerLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java deleted file mode 100644 index 721ee4887aa00..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** On-premises file system dataset properties. */ -@Fluent -public final class FileShareDatasetTypeProperties { - /* - * The path of the on-premises file system. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The name of the on-premises file system. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * The format of the files. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * Specify a filter to be used to select a subset of files in the - * folderPath rather than all files. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileFilter") - private Object fileFilter; - - /* - * The data compression method used for the file system. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: The path of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @param folderPath the folderPath value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the fileName property: The name of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @param fileName the fileName value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the format property: The format of the files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the files. - * - * @param format the format value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @return the fileFilter value. - */ - public Object fileFilter() { - return this.fileFilter; - } - - /** - * Set the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @param fileFilter the fileFilter value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFileFilter(Object fileFilter) { - this.fileFilter = fileFilter; - return this; - } - - /** - * Get the compression property: The data compression method used for the file system. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the file system. - * - * @param compression the compression value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FilterActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FilterActivityTypeProperties.java deleted file mode 100644 index dda4f745641c0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FilterActivityTypeProperties.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Filter activity properties. */ -@Fluent -public final class FilterActivityTypeProperties { - /* - * Input array on which filter should be applied. - */ - @JsonProperty(value = "items", required = true) - private Expression items; - - /* - * Condition to be used for filtering the input. - */ - @JsonProperty(value = "condition", required = true) - private Expression condition; - - /** - * Get the items property: Input array on which filter should be applied. - * - * @return the items value. - */ - public Expression items() { - return this.items; - } - - /** - * Set the items property: Input array on which filter should be applied. - * - * @param items the items value to set. - * @return the FilterActivityTypeProperties object itself. - */ - public FilterActivityTypeProperties withItems(Expression items) { - this.items = items; - return this; - } - - /** - * Get the condition property: Condition to be used for filtering the input. - * - * @return the condition value. - */ - public Expression condition() { - return this.condition; - } - - /** - * Set the condition property: Condition to be used for filtering the input. - * - * @param condition the condition value to set. - * @return the FilterActivityTypeProperties object itself. - */ - public FilterActivityTypeProperties withCondition(Expression condition) { - this.condition = condition; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (items() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property items in model FilterActivityTypeProperties")); - } else { - items().validate(); - } - if (condition() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property condition in model FilterActivityTypeProperties")); - } else { - condition().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FilterActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FlowletTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FlowletTypeProperties.java deleted file mode 100644 index 7254d6cda0133..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FlowletTypeProperties.java +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.Transformation; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Flowlet type properties. */ -@Fluent -public final class FlowletTypeProperties { - /* - * List of sources in Flowlet. - */ - @JsonProperty(value = "sources") - private List sources; - - /* - * List of sinks in Flowlet. - */ - @JsonProperty(value = "sinks") - private List sinks; - - /* - * List of transformations in Flowlet. - */ - @JsonProperty(value = "transformations") - private List transformations; - - /* - * Flowlet script. - */ - @JsonProperty(value = "script") - private String script; - - /* - * Flowlet script lines. - */ - @JsonProperty(value = "scriptLines") - private List scriptLines; - - /** - * Get the sources property: List of sources in Flowlet. - * - * @return the sources value. - */ - public List sources() { - return this.sources; - } - - /** - * Set the sources property: List of sources in Flowlet. - * - * @param sources the sources value to set. - * @return the FlowletTypeProperties object itself. - */ - public FlowletTypeProperties withSources(List sources) { - this.sources = sources; - return this; - } - - /** - * Get the sinks property: List of sinks in Flowlet. - * - * @return the sinks value. - */ - public List sinks() { - return this.sinks; - } - - /** - * Set the sinks property: List of sinks in Flowlet. - * - * @param sinks the sinks value to set. - * @return the FlowletTypeProperties object itself. - */ - public FlowletTypeProperties withSinks(List sinks) { - this.sinks = sinks; - return this; - } - - /** - * Get the transformations property: List of transformations in Flowlet. - * - * @return the transformations value. - */ - public List transformations() { - return this.transformations; - } - - /** - * Set the transformations property: List of transformations in Flowlet. - * - * @param transformations the transformations value to set. - * @return the FlowletTypeProperties object itself. - */ - public FlowletTypeProperties withTransformations(List transformations) { - this.transformations = transformations; - return this; - } - - /** - * Get the script property: Flowlet script. - * - * @return the script value. - */ - public String script() { - return this.script; - } - - /** - * Set the script property: Flowlet script. - * - * @param script the script value to set. - * @return the FlowletTypeProperties object itself. - */ - public FlowletTypeProperties withScript(String script) { - this.script = script; - return this; - } - - /** - * Get the scriptLines property: Flowlet script lines. - * - * @return the scriptLines value. - */ - public List scriptLines() { - return this.scriptLines; - } - - /** - * Set the scriptLines property: Flowlet script lines. - * - * @param scriptLines the scriptLines value to set. - * @return the FlowletTypeProperties object itself. - */ - public FlowletTypeProperties withScriptLines(List scriptLines) { - this.scriptLines = scriptLines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sources() != null) { - sources().forEach(e -> e.validate()); - } - if (sinks() != null) { - sinks().forEach(e -> e.validate()); - } - if (transformations() != null) { - transformations().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ForEachActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ForEachActivityTypeProperties.java deleted file mode 100644 index bb56a18a5ceb0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ForEachActivityTypeProperties.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** ForEach activity properties. */ -@Fluent -public final class ForEachActivityTypeProperties { - /* - * Should the loop be executed in sequence or in parallel (max 50) - */ - @JsonProperty(value = "isSequential") - private Boolean isSequential; - - /* - * Batch count to be used for controlling the number of parallel execution - * (when isSequential is set to false). - */ - @JsonProperty(value = "batchCount") - private Integer batchCount; - - /* - * Collection to iterate. - */ - @JsonProperty(value = "items", required = true) - private Expression items; - - /* - * List of activities to execute . - */ - @JsonProperty(value = "activities", required = true) - private List activities; - - /** - * Get the isSequential property: Should the loop be executed in sequence or in parallel (max 50). - * - * @return the isSequential value. - */ - public Boolean isSequential() { - return this.isSequential; - } - - /** - * Set the isSequential property: Should the loop be executed in sequence or in parallel (max 50). - * - * @param isSequential the isSequential value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withIsSequential(Boolean isSequential) { - this.isSequential = isSequential; - return this; - } - - /** - * Get the batchCount property: Batch count to be used for controlling the number of parallel execution (when - * isSequential is set to false). - * - * @return the batchCount value. - */ - public Integer batchCount() { - return this.batchCount; - } - - /** - * Set the batchCount property: Batch count to be used for controlling the number of parallel execution (when - * isSequential is set to false). - * - * @param batchCount the batchCount value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withBatchCount(Integer batchCount) { - this.batchCount = batchCount; - return this; - } - - /** - * Get the items property: Collection to iterate. - * - * @return the items value. - */ - public Expression items() { - return this.items; - } - - /** - * Set the items property: Collection to iterate. - * - * @param items the items value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withItems(Expression items) { - this.items = items; - return this; - } - - /** - * Get the activities property: List of activities to execute . - * - * @return the activities value. - */ - public List activities() { - return this.activities; - } - - /** - * Set the activities property: List of activities to execute . - * - * @param activities the activities value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withActivities(List activities) { - this.activities = activities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (items() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property items in model ForEachActivityTypeProperties")); - } else { - items().validate(); - } - if (activities() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property activities in model ForEachActivityTypeProperties")); - } else { - activities().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ForEachActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java deleted file mode 100644 index e46fd24dc7678..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.FtpAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class FtpServerLinkedServiceTypeProperties { - /* - * Host name of the FTP server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port number that the FTP server uses to listen for client - * connections. Default value is 21. Type: integer (or Expression with - * resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication type to be used to connect to the FTP server. - */ - @JsonProperty(value = "authenticationType") - private FtpAuthenticationType authenticationType; - - /* - * Username to logon the FTP server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to logon the FTP server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * If true, connect to the FTP server over SSL/TLS channel. Default value - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * If true, validate the FTP server SSL certificate when connect over - * SSL/TLS channel. Default value is true. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "enableServerCertificateValidation") - private Object enableServerCertificateValidation; - - /** - * Get the host property: Host name of the FTP server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name of the FTP server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port number that the FTP server uses to listen for client connections. Default - * value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the FTP server uses to listen for client connections. Default - * value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @return the authenticationType value. - */ - public FtpAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withAuthenticationType(FtpAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username to logon the FTP server. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to logon the FTP server. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to logon the FTP server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the FTP server. - * - * @param password the password value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the enableSsl property: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param enableSsl the enableSsl value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the enableServerCertificateValidation property: If true, validate the FTP server SSL certificate when connect - * over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.enableServerCertificateValidation; - } - - /** - * Set the enableServerCertificateValidation property: If true, validate the FTP server SSL certificate when connect - * over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withEnableServerCertificateValidation( - Object enableServerCertificateValidation) { - this.enableServerCertificateValidation = enableServerCertificateValidation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model FtpServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FtpServerLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java deleted file mode 100644 index 9093f3d4f58c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class GenericDatasetTypeProperties { - /* - * The table name. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the GenericDatasetTypeProperties object itself. - */ - public GenericDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GetMetadataActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GetMetadataActivityTypeProperties.java deleted file mode 100644 index 760dee8e34576..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GetMetadataActivityTypeProperties.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** GetMetadata activity properties. */ -@Fluent -public final class GetMetadataActivityTypeProperties { - /* - * GetMetadata activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /* - * Fields of metadata to get from dataset. - */ - @JsonProperty(value = "fieldList") - private List fieldList; - - /* - * GetMetadata activity store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * GetMetadata activity format settings. - */ - @JsonProperty(value = "formatSettings") - private FormatReadSettings formatSettings; - - /** - * Get the dataset property: GetMetadata activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: GetMetadata activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Get the fieldList property: Fields of metadata to get from dataset. - * - * @return the fieldList value. - */ - public List fieldList() { - return this.fieldList; - } - - /** - * Set the fieldList property: Fields of metadata to get from dataset. - * - * @param fieldList the fieldList value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withFieldList(List fieldList) { - this.fieldList = fieldList; - return this; - } - - /** - * Get the storeSettings property: GetMetadata activity store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: GetMetadata activity store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: GetMetadata activity format settings. - * - * @return the formatSettings value. - */ - public FormatReadSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: GetMetadata activity format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withFormatSettings(FormatReadSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataset() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model GetMetadataActivityTypeProperties")); - } else { - dataset().validate(); - } - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GetMetadataActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GitHubAccessTokenResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GitHubAccessTokenResponseInner.java deleted file mode 100644 index 4695d552f35e9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GitHubAccessTokenResponseInner.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Get GitHub access token response definition. */ -@Fluent -public final class GitHubAccessTokenResponseInner { - /* - * GitHub access token. - */ - @JsonProperty(value = "gitHubAccessToken") - private String gitHubAccessToken; - - /** - * Get the gitHubAccessToken property: GitHub access token. - * - * @return the gitHubAccessToken value. - */ - public String gitHubAccessToken() { - return this.gitHubAccessToken; - } - - /** - * Set the gitHubAccessToken property: GitHub access token. - * - * @param gitHubAccessToken the gitHubAccessToken value to set. - * @return the GitHubAccessTokenResponseInner object itself. - */ - public GitHubAccessTokenResponseInner withGitHubAccessToken(String gitHubAccessToken) { - this.gitHubAccessToken = gitHubAccessToken; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java deleted file mode 100644 index 126f7cbe9c43d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,383 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.GoogleAdWordsAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google AdWords service linked service properties. */ -@Fluent -public final class GoogleAdWordsLinkedServiceTypeProperties { - /* - * Properties used to connect to GoogleAds. It is mutually exclusive with - * any other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The Client customer ID of the AdWords account that you want to fetch - * report data for. - */ - @JsonProperty(value = "clientCustomerID") - private Object clientCustomerId; - - /* - * The developer token associated with the manager account that you use to - * grant access to the AdWords API. - */ - @JsonProperty(value = "developerToken") - private SecretBase developerToken; - - /* - * The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - */ - @JsonProperty(value = "authenticationType") - private GoogleAdWordsAuthenticationType authenticationType; - - /* - * The refresh token obtained from Google for authorizing access to AdWords - * for UserAuthentication. - */ - @JsonProperty(value = "refreshToken") - private SecretBase refreshToken; - - /* - * The client id of the google application used to acquire the refresh - * token. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret of the google application used to acquire the refresh - * token. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The service account email ID that is used for ServiceAuthentication and - * can only be used on self-hosted IR. - */ - @JsonProperty(value = "email") - private Object email; - - /* - * The full path to the .p12 key file that is used to authenticate the - * service account email address and can only be used on self-hosted IR. - */ - @JsonProperty(value = "keyFilePath") - private Object keyFilePath; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report - * data for. - * - * @return the clientCustomerId value. - */ - public Object clientCustomerId() { - return this.clientCustomerId; - } - - /** - * Set the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report - * data for. - * - * @param clientCustomerId the clientCustomerId value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withClientCustomerId(Object clientCustomerId) { - this.clientCustomerId = clientCustomerId; - return this; - } - - /** - * Get the developerToken property: The developer token associated with the manager account that you use to grant - * access to the AdWords API. - * - * @return the developerToken value. - */ - public SecretBase developerToken() { - return this.developerToken; - } - - /** - * Set the developerToken property: The developer token associated with the manager account that you use to grant - * access to the AdWords API. - * - * @param developerToken the developerToken value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withDeveloperToken(SecretBase developerToken) { - this.developerToken = developerToken; - return this; - } - - /** - * Get the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @return the authenticationType value. - */ - public GoogleAdWordsAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @param authenticationType the authenticationType value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withAuthenticationType( - GoogleAdWordsAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained from Google for authorizing access to AdWords for - * UserAuthentication. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.refreshToken; - } - - /** - * Set the refreshToken property: The refresh token obtained from Google for authorizing access to AdWords for - * UserAuthentication. - * - * @param refreshToken the refreshToken value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withRefreshToken(SecretBase refreshToken) { - this.refreshToken = refreshToken; - return this; - } - - /** - * Get the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @param clientSecret the clientSecret value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @return the email value. - */ - public Object email() { - return this.email; - } - - /** - * Set the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @param email the email value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withEmail(Object email) { - this.email = email; - return this; - } - - /** - * Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @return the keyFilePath value. - */ - public Object keyFilePath() { - return this.keyFilePath; - } - - /** - * Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @param keyFilePath the keyFilePath value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withKeyFilePath(Object keyFilePath) { - this.keyFilePath = keyFilePath; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (developerToken() != null) { - developerToken().validate(); - } - if (refreshToken() != null) { - refreshToken().validate(); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java deleted file mode 100644 index 1771bd7b699da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google BigQuery Dataset Properties. */ -@Fluent -public final class GoogleBigQueryDatasetTypeProperties { - /* - * This property will be retired. Please consider using database + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Google BigQuery. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The database name of the Google BigQuery. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "dataset") - private Object dataset; - - /** - * Get the tableName property: This property will be retired. Please consider using database + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using database + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the GoogleBigQueryDatasetTypeProperties object itself. - */ - public GoogleBigQueryDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the GoogleBigQueryDatasetTypeProperties object itself. - */ - public GoogleBigQueryDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the dataset property: The database name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @return the dataset value. - */ - public Object dataset() { - return this.dataset; - } - - /** - * Set the dataset property: The database name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @param dataset the dataset value to set. - * @return the GoogleBigQueryDatasetTypeProperties object itself. - */ - public GoogleBigQueryDatasetTypeProperties withDataset(Object dataset) { - this.dataset = dataset; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java deleted file mode 100644 index cb862dc6faa36..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java +++ /dev/null @@ -1,393 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google BigQuery service linked service properties. */ -@Fluent -public final class GoogleBigQueryLinkedServiceTypeProperties { - /* - * The default BigQuery project to query against. - */ - @JsonProperty(value = "project", required = true) - private Object project; - - /* - * A comma-separated list of public BigQuery projects to access. - */ - @JsonProperty(value = "additionalProjects") - private Object additionalProjects; - - /* - * Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with - * data from Google Drive. The default value is false. - */ - @JsonProperty(value = "requestGoogleDriveScope") - private Object requestGoogleDriveScope; - - /* - * The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - */ - @JsonProperty(value = "authenticationType", required = true) - private GoogleBigQueryAuthenticationType authenticationType; - - /* - * The refresh token obtained from Google for authorizing access to - * BigQuery for UserAuthentication. - */ - @JsonProperty(value = "refreshToken") - private SecretBase refreshToken; - - /* - * The client id of the google application used to acquire the refresh - * token. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret of the google application used to acquire the refresh - * token. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The service account email ID that is used for ServiceAuthentication and - * can only be used on self-hosted IR. - */ - @JsonProperty(value = "email") - private Object email; - - /* - * The full path to the .p12 key file that is used to authenticate the - * service account email address and can only be used on self-hosted IR. - */ - @JsonProperty(value = "keyFilePath") - private Object keyFilePath; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the project property: The default BigQuery project to query against. - * - * @return the project value. - */ - public Object project() { - return this.project; - } - - /** - * Set the project property: The default BigQuery project to query against. - * - * @param project the project value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withProject(Object project) { - this.project = project; - return this; - } - - /** - * Get the additionalProjects property: A comma-separated list of public BigQuery projects to access. - * - * @return the additionalProjects value. - */ - public Object additionalProjects() { - return this.additionalProjects; - } - - /** - * Set the additionalProjects property: A comma-separated list of public BigQuery projects to access. - * - * @param additionalProjects the additionalProjects value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withAdditionalProjects(Object additionalProjects) { - this.additionalProjects = additionalProjects; - return this; - } - - /** - * Get the requestGoogleDriveScope property: Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is - * false. - * - * @return the requestGoogleDriveScope value. - */ - public Object requestGoogleDriveScope() { - return this.requestGoogleDriveScope; - } - - /** - * Set the requestGoogleDriveScope property: Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is - * false. - * - * @param requestGoogleDriveScope the requestGoogleDriveScope value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withRequestGoogleDriveScope(Object requestGoogleDriveScope) { - this.requestGoogleDriveScope = requestGoogleDriveScope; - return this; - } - - /** - * Get the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @return the authenticationType value. - */ - public GoogleBigQueryAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @param authenticationType the authenticationType value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withAuthenticationType( - GoogleBigQueryAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained from Google for authorizing access to BigQuery for - * UserAuthentication. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.refreshToken; - } - - /** - * Set the refreshToken property: The refresh token obtained from Google for authorizing access to BigQuery for - * UserAuthentication. - * - * @param refreshToken the refreshToken value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withRefreshToken(SecretBase refreshToken) { - this.refreshToken = refreshToken; - return this; - } - - /** - * Get the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @param clientSecret the clientSecret value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @return the email value. - */ - public Object email() { - return this.email; - } - - /** - * Set the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @param email the email value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withEmail(Object email) { - this.email = email; - return this; - } - - /** - * Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @return the keyFilePath value. - */ - public Object keyFilePath() { - return this.keyFilePath; - } - - /** - * Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @param keyFilePath the keyFilePath value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withKeyFilePath(Object keyFilePath) { - this.keyFilePath = keyFilePath; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (project() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property project in model GoogleBigQueryLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " GoogleBigQueryLinkedServiceTypeProperties")); - } - if (refreshToken() != null) { - refreshToken().validate(); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GoogleBigQueryLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java deleted file mode 100644 index c400038aee3da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google Cloud Storage linked service properties. */ -@Fluent -public final class GoogleCloudStorageLinkedServiceTypeProperties { - /* - * The access key identifier of the Google Cloud Storage Identity and - * Access Management (IAM) user. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the Google Cloud - * Storage Connector. This is an optional property; change it only if you - * want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accessKeyId property: The access key identifier of the Google Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Google Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Google Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Google Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java deleted file mode 100644 index 33a04b9d6c86e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Greenplum Dataset Properties. */ -@Fluent -public final class GreenplumDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of Greenplum. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of Greenplum. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the GreenplumDatasetTypeProperties object itself. - */ - public GreenplumDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of Greenplum. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of Greenplum. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the GreenplumDatasetTypeProperties object itself. - */ - public GreenplumDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the GreenplumDatasetTypeProperties object itself. - */ - public GreenplumDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java deleted file mode 100644 index 2be90e01a243f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Greenplum Database linked service properties. */ -@Fluent -public final class GreenplumLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the GreenplumLinkedServiceTypeProperties object itself. - */ - public GreenplumLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the GreenplumLinkedServiceTypeProperties object itself. - */ - public GreenplumLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GreenplumLinkedServiceTypeProperties object itself. - */ - public GreenplumLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java deleted file mode 100644 index 7824e7c102b54..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.HBaseAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** HBase server linked service properties. */ -@Fluent -public final class HBaseLinkedServiceTypeProperties { - /* - * The IP address or host name of the HBase server. (i.e. 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the HBase instance uses to listen for client - * connections. The default value is 9090. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version) - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * The authentication mechanism to use to connect to the HBase server. - */ - @JsonProperty(value = "authenticationType", required = true) - private HBaseAuthenticationType authenticationType; - - /* - * The user name used to connect to the HBase instance. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the HBase server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the HBase server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the HBase instance uses to listen for client connections. The default - * value is 9090. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the HBase instance uses to listen for client connections. The default - * value is 9090. - * - * @param port the port value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version). - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version). - * - * @param httpPath the httpPath value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism to use to connect to the HBase server. - * - * @return the authenticationType value. - */ - public HBaseAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication mechanism to use to connect to the HBase server. - * - * @param authenticationType the authenticationType value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withAuthenticationType(HBaseAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the HBase instance. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the HBase instance. - * - * @param username the username value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model HBaseLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model HBaseLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HBaseLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java deleted file mode 100644 index 6f1e6d77979ef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java +++ /dev/null @@ -1,244 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight Hive activity properties. */ -@Fluent -public final class HDInsightHiveActivityTypeProperties { - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Script path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "scriptPath") - private Object scriptPath; - - /* - * Script linked service reference. - */ - @JsonProperty(value = "scriptLinkedService") - private LinkedServiceReference scriptLinkedService; - - /* - * Allows user to specify defines for Hive job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /* - * User specified arguments under hivevar namespace. - */ - @JsonProperty(value = "variables") - private List variables; - - /* - * Query timeout value (in minutes). Effective when the HDInsight cluster - * is with ESP (Enterprise Security Package) - */ - @JsonProperty(value = "queryTimeout") - private Integer queryTimeout; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.scriptPath; - } - - /** - * Set the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withScriptPath(Object scriptPath) { - this.scriptPath = scriptPath; - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.scriptLinkedService; - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - this.scriptLinkedService = scriptLinkedService; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for Hive job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for Hive job request. - * - * @param defines the defines value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Get the variables property: User specified arguments under hivevar namespace. - * - * @return the variables value. - */ - public List variables() { - return this.variables; - } - - /** - * Set the variables property: User specified arguments under hivevar namespace. - * - * @param variables the variables value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withVariables(List variables) { - this.variables = variables; - return this; - } - - /** - * Get the queryTimeout property: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP - * (Enterprise Security Package). - * - * @return the queryTimeout value. - */ - public Integer queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP - * (Enterprise Security Package). - * - * @param queryTimeout the queryTimeout value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withQueryTimeout(Integer queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (scriptLinkedService() != null) { - scriptLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java deleted file mode 100644 index b4769717cf5d1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java +++ /dev/null @@ -1,264 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** HDInsight linked service properties. */ -@Fluent -public final class HDInsightLinkedServiceTypeProperties { - /* - * HDInsight cluster URI. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "clusterUri", required = true) - private Object clusterUri; - - /* - * HDInsight cluster user name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * HDInsight cluster password. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The Azure Storage linked service reference. - */ - @JsonProperty(value = "linkedServiceName") - private LinkedServiceReference linkedServiceName; - - /* - * A reference to the Azure SQL linked service that points to the HCatalog - * database. - */ - @JsonProperty(value = "hcatalogLinkedServiceName") - private LinkedServiceReference hcatalogLinkedServiceName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Specify if the HDInsight is created with ESP (Enterprise Security - * Package). Type: Boolean. - */ - @JsonProperty(value = "isEspEnabled") - private Object isEspEnabled; - - /* - * Specify the FileSystem if the main storage for the HDInsight is ADLS - * Gen2. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "fileSystem") - private Object fileSystem; - - /** - * Get the clusterUri property: HDInsight cluster URI. Type: string (or Expression with resultType string). - * - * @return the clusterUri value. - */ - public Object clusterUri() { - return this.clusterUri; - } - - /** - * Set the clusterUri property: HDInsight cluster URI. Type: string (or Expression with resultType string). - * - * @param clusterUri the clusterUri value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withClusterUri(Object clusterUri) { - this.clusterUri = clusterUri; - return this; - } - - /** - * Get the username property: HDInsight cluster user name. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: HDInsight cluster user name. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: HDInsight cluster password. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: HDInsight cluster password. - * - * @param password the password value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the linkedServiceName property: The Azure Storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: The Azure Storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the hcatalogLinkedServiceName property: A reference to the Azure SQL linked service that points to the - * HCatalog database. - * - * @return the hcatalogLinkedServiceName value. - */ - public LinkedServiceReference hcatalogLinkedServiceName() { - return this.hcatalogLinkedServiceName; - } - - /** - * Set the hcatalogLinkedServiceName property: A reference to the Azure SQL linked service that points to the - * HCatalog database. - * - * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withHcatalogLinkedServiceName( - LinkedServiceReference hcatalogLinkedServiceName) { - this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the isEspEnabled property: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: - * Boolean. - * - * @return the isEspEnabled value. - */ - public Object isEspEnabled() { - return this.isEspEnabled; - } - - /** - * Set the isEspEnabled property: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: - * Boolean. - * - * @param isEspEnabled the isEspEnabled value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withIsEspEnabled(Object isEspEnabled) { - this.isEspEnabled = isEspEnabled; - return this; - } - - /** - * Get the fileSystem property: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: - * string (or Expression with resultType string). - * - * @return the fileSystem value. - */ - public Object fileSystem() { - return this.fileSystem; - } - - /** - * Set the fileSystem property: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: - * string (or Expression with resultType string). - * - * @param fileSystem the fileSystem value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withFileSystem(Object fileSystem) { - this.fileSystem = fileSystem; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clusterUri() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clusterUri in model HDInsightLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (linkedServiceName() != null) { - linkedServiceName().validate(); - } - if (hcatalogLinkedServiceName() != null) { - hcatalogLinkedServiceName().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightMapReduceActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightMapReduceActivityTypeProperties.java deleted file mode 100644 index 5abb8289395f5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightMapReduceActivityTypeProperties.java +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight MapReduce activity properties. */ -@Fluent -public final class HDInsightMapReduceActivityTypeProperties { - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Class name. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "className", required = true) - private Object className; - - /* - * Jar path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "jarFilePath", required = true) - private Object jarFilePath; - - /* - * Jar linked service reference. - */ - @JsonProperty(value = "jarLinkedService") - private LinkedServiceReference jarLinkedService; - - /* - * Jar libs. - */ - @JsonProperty(value = "jarLibs") - private List jarLibs; - - /* - * Allows user to specify defines for the MapReduce job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the className property: Class name. Type: string (or Expression with resultType string). - * - * @return the className value. - */ - public Object className() { - return this.className; - } - - /** - * Set the className property: Class name. Type: string (or Expression with resultType string). - * - * @param className the className value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withClassName(Object className) { - this.className = className; - return this; - } - - /** - * Get the jarFilePath property: Jar path. Type: string (or Expression with resultType string). - * - * @return the jarFilePath value. - */ - public Object jarFilePath() { - return this.jarFilePath; - } - - /** - * Set the jarFilePath property: Jar path. Type: string (or Expression with resultType string). - * - * @param jarFilePath the jarFilePath value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withJarFilePath(Object jarFilePath) { - this.jarFilePath = jarFilePath; - return this; - } - - /** - * Get the jarLinkedService property: Jar linked service reference. - * - * @return the jarLinkedService value. - */ - public LinkedServiceReference jarLinkedService() { - return this.jarLinkedService; - } - - /** - * Set the jarLinkedService property: Jar linked service reference. - * - * @param jarLinkedService the jarLinkedService value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withJarLinkedService(LinkedServiceReference jarLinkedService) { - this.jarLinkedService = jarLinkedService; - return this; - } - - /** - * Get the jarLibs property: Jar libs. - * - * @return the jarLibs value. - */ - public List jarLibs() { - return this.jarLibs; - } - - /** - * Set the jarLibs property: Jar libs. - * - * @param jarLibs the jarLibs value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withJarLibs(List jarLibs) { - this.jarLibs = jarLibs; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for the MapReduce job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for the MapReduce job request. - * - * @param defines the defines value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (className() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property className in model HDInsightMapReduceActivityTypeProperties")); - } - if (jarFilePath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property jarFilePath in model HDInsightMapReduceActivityTypeProperties")); - } - if (jarLinkedService() != null) { - jarLinkedService().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightMapReduceActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java deleted file mode 100644 index 00daeb3f715f4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java +++ /dev/null @@ -1,1070 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ScriptAction; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** HDInsight ondemand linked service properties. */ -@Fluent -public final class HDInsightOnDemandLinkedServiceTypeProperties { - /* - * Number of worker/data nodes in the cluster. Suggestion value: 4. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterSize", required = true) - private Object clusterSize; - - /* - * The allowed idle time for the on-demand HDInsight cluster. Specifies how - * long the on-demand HDInsight cluster stays alive after completion of an - * activity run if there are no other active jobs in the cluster. The - * minimum value is 5 mins. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "timeToLive", required = true) - private Object timeToLive; - - /* - * Version of the HDInsight cluster.  Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "version", required = true) - private Object version; - - /* - * Azure Storage linked service to be used by the on-demand cluster for - * storing and processing data. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * The customer’s subscription to host the cluster. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostSubscriptionId", required = true) - private Object hostSubscriptionId; - - /* - * The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key for the service principal id. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The Tenant id/name to which the service principal belongs. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "tenant", required = true) - private Object tenant; - - /* - * The resource group where the cluster belongs. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "clusterResourceGroup", required = true) - private Object clusterResourceGroup; - - /* - * The prefix of cluster name, postfix will be distinct with timestamp. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterNamePrefix") - private Object clusterNamePrefix; - - /* - * The username to access the cluster. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "clusterUserName") - private Object clusterUsername; - - /* - * The password to access the cluster. - */ - @JsonProperty(value = "clusterPassword") - private SecretBase clusterPassword; - - /* - * The username to SSH remotely connect to cluster’s node (for Linux). - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterSshUserName") - private Object clusterSshUsername; - - /* - * The password to SSH remotely connect cluster’s node (for Linux). - */ - @JsonProperty(value = "clusterSshPassword") - private SecretBase clusterSshPassword; - - /* - * Specifies additional storage accounts for the HDInsight linked service - * so that the Data Factory service can register them on your behalf. - */ - @JsonProperty(value = "additionalLinkedServiceNames") - private List additionalLinkedServiceNames; - - /* - * The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure - * SQL database as the metastore. - */ - @JsonProperty(value = "hcatalogLinkedServiceName") - private LinkedServiceReference hcatalogLinkedServiceName; - - /* - * The cluster type. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterType") - private Object clusterType; - - /* - * The version of spark if the cluster type is 'spark'. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "sparkVersion") - private Object sparkVersion; - - /* - * Specifies the core configuration parameters (as in core-site.xml) for - * the HDInsight cluster to be created. - */ - @JsonProperty(value = "coreConfiguration") - private Object coreConfiguration; - - /* - * Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "hBaseConfiguration") - private Object hBaseConfiguration; - - /* - * Specifies the HDFS configuration parameters (hdfs-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "hdfsConfiguration") - private Object hdfsConfiguration; - - /* - * Specifies the hive configuration parameters (hive-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "hiveConfiguration") - private Object hiveConfiguration; - - /* - * Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - */ - @JsonProperty(value = "mapReduceConfiguration") - private Object mapReduceConfiguration; - - /* - * Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "oozieConfiguration") - private Object oozieConfiguration; - - /* - * Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "stormConfiguration") - private Object stormConfiguration; - - /* - * Specifies the Yarn configuration parameters (yarn-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "yarnConfiguration") - private Object yarnConfiguration; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Specifies the size of the head node for the HDInsight cluster. - */ - @JsonProperty(value = "headNodeSize") - private Object headNodeSize; - - /* - * Specifies the size of the data node for the HDInsight cluster. - */ - @JsonProperty(value = "dataNodeSize") - private Object dataNodeSize; - - /* - * Specifies the size of the Zoo Keeper node for the HDInsight cluster. - */ - @JsonProperty(value = "zookeeperNodeSize") - private Object zookeeperNodeSize; - - /* - * Custom script actions to run on HDI ondemand cluster once it's up. - * Please refer to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - */ - @JsonProperty(value = "scriptActions") - private List scriptActions; - - /* - * The ARM resource ID for the vNet to which the cluster should be joined - * after creation. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "virtualNetworkId") - private Object virtualNetworkId; - - /* - * The ARM resource ID for the subnet in the vNet. If virtualNetworkId was - * specified, then this property is required. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "subnetName") - private Object subnetName; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or - * Expression with resultType string). - * - * @return the clusterSize value. - */ - public Object clusterSize() { - return this.clusterSize; - } - - /** - * Set the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or - * Expression with resultType string). - * - * @param clusterSize the clusterSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterSize(Object clusterSize) { - this.clusterSize = clusterSize; - return this; - } - - /** - * Get the timeToLive property: The allowed idle time for the on-demand HDInsight cluster. Specifies how long the - * on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in - * the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - * - * @return the timeToLive value. - */ - public Object timeToLive() { - return this.timeToLive; - } - - /** - * Set the timeToLive property: The allowed idle time for the on-demand HDInsight cluster. Specifies how long the - * on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in - * the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - * - * @param timeToLive the timeToLive value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withTimeToLive(Object timeToLive) { - this.timeToLive = timeToLive; - return this; - } - - /** - * Get the version property: Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - * - * @param version the version value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withVersion(Object version) { - this.version = version; - return this; - } - - /** - * Get the linkedServiceName property: Azure Storage linked service to be used by the on-demand cluster for storing - * and processing data. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Azure Storage linked service to be used by the on-demand cluster for storing - * and processing data. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withLinkedServiceName( - LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the hostSubscriptionId property: The customer’s subscription to host the cluster. Type: string (or Expression - * with resultType string). - * - * @return the hostSubscriptionId value. - */ - public Object hostSubscriptionId() { - return this.hostSubscriptionId; - } - - /** - * Set the hostSubscriptionId property: The customer’s subscription to host the cluster. Type: string (or Expression - * with resultType string). - * - * @param hostSubscriptionId the hostSubscriptionId value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHostSubscriptionId(Object hostSubscriptionId) { - this.hostSubscriptionId = hostSubscriptionId; - return this; - } - - /** - * Get the servicePrincipalId property: The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key for the service principal id. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key for the service principal id. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The Tenant id/name to which the service principal belongs. Type: string (or Expression - * with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The Tenant id/name to which the service principal belongs. Type: string (or Expression - * with resultType string). - * - * @param tenant the tenant value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the clusterResourceGroup property: The resource group where the cluster belongs. Type: string (or Expression - * with resultType string). - * - * @return the clusterResourceGroup value. - */ - public Object clusterResourceGroup() { - return this.clusterResourceGroup; - } - - /** - * Set the clusterResourceGroup property: The resource group where the cluster belongs. Type: string (or Expression - * with resultType string). - * - * @param clusterResourceGroup the clusterResourceGroup value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterResourceGroup(Object clusterResourceGroup) { - this.clusterResourceGroup = clusterResourceGroup; - return this; - } - - /** - * Get the clusterNamePrefix property: The prefix of cluster name, postfix will be distinct with timestamp. Type: - * string (or Expression with resultType string). - * - * @return the clusterNamePrefix value. - */ - public Object clusterNamePrefix() { - return this.clusterNamePrefix; - } - - /** - * Set the clusterNamePrefix property: The prefix of cluster name, postfix will be distinct with timestamp. Type: - * string (or Expression with resultType string). - * - * @param clusterNamePrefix the clusterNamePrefix value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterNamePrefix(Object clusterNamePrefix) { - this.clusterNamePrefix = clusterNamePrefix; - return this; - } - - /** - * Get the clusterUsername property: The username to access the cluster. Type: string (or Expression with resultType - * string). - * - * @return the clusterUsername value. - */ - public Object clusterUsername() { - return this.clusterUsername; - } - - /** - * Set the clusterUsername property: The username to access the cluster. Type: string (or Expression with resultType - * string). - * - * @param clusterUsername the clusterUsername value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterUsername(Object clusterUsername) { - this.clusterUsername = clusterUsername; - return this; - } - - /** - * Get the clusterPassword property: The password to access the cluster. - * - * @return the clusterPassword value. - */ - public SecretBase clusterPassword() { - return this.clusterPassword; - } - - /** - * Set the clusterPassword property: The password to access the cluster. - * - * @param clusterPassword the clusterPassword value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterPassword(SecretBase clusterPassword) { - this.clusterPassword = clusterPassword; - return this; - } - - /** - * Get the clusterSshUsername property: The username to SSH remotely connect to cluster’s node (for Linux). Type: - * string (or Expression with resultType string). - * - * @return the clusterSshUsername value. - */ - public Object clusterSshUsername() { - return this.clusterSshUsername; - } - - /** - * Set the clusterSshUsername property: The username to SSH remotely connect to cluster’s node (for Linux). Type: - * string (or Expression with resultType string). - * - * @param clusterSshUsername the clusterSshUsername value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterSshUsername(Object clusterSshUsername) { - this.clusterSshUsername = clusterSshUsername; - return this; - } - - /** - * Get the clusterSshPassword property: The password to SSH remotely connect cluster’s node (for Linux). - * - * @return the clusterSshPassword value. - */ - public SecretBase clusterSshPassword() { - return this.clusterSshPassword; - } - - /** - * Set the clusterSshPassword property: The password to SSH remotely connect cluster’s node (for Linux). - * - * @param clusterSshPassword the clusterSshPassword value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterSshPassword(SecretBase clusterSshPassword) { - this.clusterSshPassword = clusterSshPassword; - return this; - } - - /** - * Get the additionalLinkedServiceNames property: Specifies additional storage accounts for the HDInsight linked - * service so that the Data Factory service can register them on your behalf. - * - * @return the additionalLinkedServiceNames value. - */ - public List additionalLinkedServiceNames() { - return this.additionalLinkedServiceNames; - } - - /** - * Set the additionalLinkedServiceNames property: Specifies additional storage accounts for the HDInsight linked - * service so that the Data Factory service can register them on your behalf. - * - * @param additionalLinkedServiceNames the additionalLinkedServiceNames value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withAdditionalLinkedServiceNames( - List additionalLinkedServiceNames) { - this.additionalLinkedServiceNames = additionalLinkedServiceNames; - return this; - } - - /** - * Get the hcatalogLinkedServiceName property: The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. - * - * @return the hcatalogLinkedServiceName value. - */ - public LinkedServiceReference hcatalogLinkedServiceName() { - return this.hcatalogLinkedServiceName; - } - - /** - * Set the hcatalogLinkedServiceName property: The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. - * - * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHcatalogLinkedServiceName( - LinkedServiceReference hcatalogLinkedServiceName) { - this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; - return this; - } - - /** - * Get the clusterType property: The cluster type. Type: string (or Expression with resultType string). - * - * @return the clusterType value. - */ - public Object clusterType() { - return this.clusterType; - } - - /** - * Set the clusterType property: The cluster type. Type: string (or Expression with resultType string). - * - * @param clusterType the clusterType value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterType(Object clusterType) { - this.clusterType = clusterType; - return this; - } - - /** - * Get the sparkVersion property: The version of spark if the cluster type is 'spark'. Type: string (or Expression - * with resultType string). - * - * @return the sparkVersion value. - */ - public Object sparkVersion() { - return this.sparkVersion; - } - - /** - * Set the sparkVersion property: The version of spark if the cluster type is 'spark'. Type: string (or Expression - * with resultType string). - * - * @param sparkVersion the sparkVersion value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withSparkVersion(Object sparkVersion) { - this.sparkVersion = sparkVersion; - return this; - } - - /** - * Get the coreConfiguration property: Specifies the core configuration parameters (as in core-site.xml) for the - * HDInsight cluster to be created. - * - * @return the coreConfiguration value. - */ - public Object coreConfiguration() { - return this.coreConfiguration; - } - - /** - * Set the coreConfiguration property: Specifies the core configuration parameters (as in core-site.xml) for the - * HDInsight cluster to be created. - * - * @param coreConfiguration the coreConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withCoreConfiguration(Object coreConfiguration) { - this.coreConfiguration = coreConfiguration; - return this; - } - - /** - * Get the hBaseConfiguration property: Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - * - * @return the hBaseConfiguration value. - */ - public Object hBaseConfiguration() { - return this.hBaseConfiguration; - } - - /** - * Set the hBaseConfiguration property: Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - * - * @param hBaseConfiguration the hBaseConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHBaseConfiguration(Object hBaseConfiguration) { - this.hBaseConfiguration = hBaseConfiguration; - return this; - } - - /** - * Get the hdfsConfiguration property: Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight - * cluster. - * - * @return the hdfsConfiguration value. - */ - public Object hdfsConfiguration() { - return this.hdfsConfiguration; - } - - /** - * Set the hdfsConfiguration property: Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight - * cluster. - * - * @param hdfsConfiguration the hdfsConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHdfsConfiguration(Object hdfsConfiguration) { - this.hdfsConfiguration = hdfsConfiguration; - return this; - } - - /** - * Get the hiveConfiguration property: Specifies the hive configuration parameters (hive-site.xml) for the HDInsight - * cluster. - * - * @return the hiveConfiguration value. - */ - public Object hiveConfiguration() { - return this.hiveConfiguration; - } - - /** - * Set the hiveConfiguration property: Specifies the hive configuration parameters (hive-site.xml) for the HDInsight - * cluster. - * - * @param hiveConfiguration the hiveConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHiveConfiguration(Object hiveConfiguration) { - this.hiveConfiguration = hiveConfiguration; - return this; - } - - /** - * Get the mapReduceConfiguration property: Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - * - * @return the mapReduceConfiguration value. - */ - public Object mapReduceConfiguration() { - return this.mapReduceConfiguration; - } - - /** - * Set the mapReduceConfiguration property: Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - * - * @param mapReduceConfiguration the mapReduceConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withMapReduceConfiguration(Object mapReduceConfiguration) { - this.mapReduceConfiguration = mapReduceConfiguration; - return this; - } - - /** - * Get the oozieConfiguration property: Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - * - * @return the oozieConfiguration value. - */ - public Object oozieConfiguration() { - return this.oozieConfiguration; - } - - /** - * Set the oozieConfiguration property: Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - * - * @param oozieConfiguration the oozieConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withOozieConfiguration(Object oozieConfiguration) { - this.oozieConfiguration = oozieConfiguration; - return this; - } - - /** - * Get the stormConfiguration property: Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - * - * @return the stormConfiguration value. - */ - public Object stormConfiguration() { - return this.stormConfiguration; - } - - /** - * Set the stormConfiguration property: Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - * - * @param stormConfiguration the stormConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withStormConfiguration(Object stormConfiguration) { - this.stormConfiguration = stormConfiguration; - return this; - } - - /** - * Get the yarnConfiguration property: Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight - * cluster. - * - * @return the yarnConfiguration value. - */ - public Object yarnConfiguration() { - return this.yarnConfiguration; - } - - /** - * Set the yarnConfiguration property: Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight - * cluster. - * - * @param yarnConfiguration the yarnConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withYarnConfiguration(Object yarnConfiguration) { - this.yarnConfiguration = yarnConfiguration; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the headNodeSize property: Specifies the size of the head node for the HDInsight cluster. - * - * @return the headNodeSize value. - */ - public Object headNodeSize() { - return this.headNodeSize; - } - - /** - * Set the headNodeSize property: Specifies the size of the head node for the HDInsight cluster. - * - * @param headNodeSize the headNodeSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHeadNodeSize(Object headNodeSize) { - this.headNodeSize = headNodeSize; - return this; - } - - /** - * Get the dataNodeSize property: Specifies the size of the data node for the HDInsight cluster. - * - * @return the dataNodeSize value. - */ - public Object dataNodeSize() { - return this.dataNodeSize; - } - - /** - * Set the dataNodeSize property: Specifies the size of the data node for the HDInsight cluster. - * - * @param dataNodeSize the dataNodeSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withDataNodeSize(Object dataNodeSize) { - this.dataNodeSize = dataNodeSize; - return this; - } - - /** - * Get the zookeeperNodeSize property: Specifies the size of the Zoo Keeper node for the HDInsight cluster. - * - * @return the zookeeperNodeSize value. - */ - public Object zookeeperNodeSize() { - return this.zookeeperNodeSize; - } - - /** - * Set the zookeeperNodeSize property: Specifies the size of the Zoo Keeper node for the HDInsight cluster. - * - * @param zookeeperNodeSize the zookeeperNodeSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withZookeeperNodeSize(Object zookeeperNodeSize) { - this.zookeeperNodeSize = zookeeperNodeSize; - return this; - } - - /** - * Get the scriptActions property: Custom script actions to run on HDI ondemand cluster once it's up. Please refer - * to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - * - * @return the scriptActions value. - */ - public List scriptActions() { - return this.scriptActions; - } - - /** - * Set the scriptActions property: Custom script actions to run on HDI ondemand cluster once it's up. Please refer - * to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - * - * @param scriptActions the scriptActions value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withScriptActions(List scriptActions) { - this.scriptActions = scriptActions; - return this; - } - - /** - * Get the virtualNetworkId property: The ARM resource ID for the vNet to which the cluster should be joined after - * creation. Type: string (or Expression with resultType string). - * - * @return the virtualNetworkId value. - */ - public Object virtualNetworkId() { - return this.virtualNetworkId; - } - - /** - * Set the virtualNetworkId property: The ARM resource ID for the vNet to which the cluster should be joined after - * creation. Type: string (or Expression with resultType string). - * - * @param virtualNetworkId the virtualNetworkId value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withVirtualNetworkId(Object virtualNetworkId) { - this.virtualNetworkId = virtualNetworkId; - return this; - } - - /** - * Get the subnetName property: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, - * then this property is required. Type: string (or Expression with resultType string). - * - * @return the subnetName value. - */ - public Object subnetName() { - return this.subnetName; - } - - /** - * Set the subnetName property: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, - * then this property is required. Type: string (or Expression with resultType string). - * - * @param subnetName the subnetName value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withSubnetName(Object subnetName) { - this.subnetName = subnetName; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clusterSize() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clusterSize in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (timeToLive() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property timeToLive in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (version() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property version in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model" - + " HDInsightOnDemandLinkedServiceTypeProperties")); - } else { - linkedServiceName().validate(); - } - if (hostSubscriptionId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property hostSubscriptionId in model" - + " HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (tenant() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenant in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (clusterResourceGroup() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clusterResourceGroup in model" - + " HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (clusterPassword() != null) { - clusterPassword().validate(); - } - if (clusterSshPassword() != null) { - clusterSshPassword().validate(); - } - if (additionalLinkedServiceNames() != null) { - additionalLinkedServiceNames().forEach(e -> e.validate()); - } - if (hcatalogLinkedServiceName() != null) { - hcatalogLinkedServiceName().validate(); - } - if (scriptActions() != null) { - scriptActions().forEach(e -> e.validate()); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightOnDemandLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java deleted file mode 100644 index 865392e381cf4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight Pig activity properties. */ -@Fluent -public final class HDInsightPigActivityTypeProperties { - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. Type: array (or - * Expression with resultType array). - */ - @JsonProperty(value = "arguments") - private Object arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Script path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "scriptPath") - private Object scriptPath; - - /* - * Script linked service reference. - */ - @JsonProperty(value = "scriptLinkedService") - private LinkedServiceReference scriptLinkedService; - - /* - * Allows user to specify defines for Pig job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. Type: array (or Expression with - * resultType array). - * - * @return the arguments value. - */ - public Object arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. Type: array (or Expression with - * resultType array). - * - * @param arguments the arguments value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withArguments(Object arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.scriptPath; - } - - /** - * Set the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withScriptPath(Object scriptPath) { - this.scriptPath = scriptPath; - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.scriptLinkedService; - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - this.scriptLinkedService = scriptLinkedService; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for Pig job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for Pig job request. - * - * @param defines the defines value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (scriptLinkedService() != null) { - scriptLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java deleted file mode 100644 index cdd4fda433db1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight spark activity properties. */ -@Fluent -public final class HDInsightSparkActivityTypeProperties { - /* - * The root path in 'sparkJobLinkedService' for all the job’s files. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "rootPath", required = true) - private Object rootPath; - - /* - * The relative path to the root folder of the code/package to be executed. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "entryFilePath", required = true) - private Object entryFilePath; - - /* - * The user-specified arguments to HDInsightSparkActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * The storage linked service for uploading the entry file and - * dependencies, and for receiving logs. - */ - @JsonProperty(value = "sparkJobLinkedService") - private LinkedServiceReference sparkJobLinkedService; - - /* - * The application's Java/Spark main class. - */ - @JsonProperty(value = "className") - private String className; - - /* - * The user to impersonate that will execute the job. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "proxyUser") - private Object proxyUser; - - /* - * Spark configuration property. - */ - @JsonProperty(value = "sparkConfig") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map sparkConfig; - - /** - * Get the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or - * Expression with resultType string). - * - * @return the rootPath value. - */ - public Object rootPath() { - return this.rootPath; - } - - /** - * Set the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or - * Expression with resultType string). - * - * @param rootPath the rootPath value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withRootPath(Object rootPath) { - this.rootPath = rootPath; - return this; - } - - /** - * Get the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type: - * string (or Expression with resultType string). - * - * @return the entryFilePath value. - */ - public Object entryFilePath() { - return this.entryFilePath; - } - - /** - * Set the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type: - * string (or Expression with resultType string). - * - * @param entryFilePath the entryFilePath value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withEntryFilePath(Object entryFilePath) { - this.entryFilePath = entryFilePath; - return this; - } - - /** - * Get the arguments property: The user-specified arguments to HDInsightSparkActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: The user-specified arguments to HDInsightSparkActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the sparkJobLinkedService property: The storage linked service for uploading the entry file and dependencies, - * and for receiving logs. - * - * @return the sparkJobLinkedService value. - */ - public LinkedServiceReference sparkJobLinkedService() { - return this.sparkJobLinkedService; - } - - /** - * Set the sparkJobLinkedService property: The storage linked service for uploading the entry file and dependencies, - * and for receiving logs. - * - * @param sparkJobLinkedService the sparkJobLinkedService value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withSparkJobLinkedService( - LinkedServiceReference sparkJobLinkedService) { - this.sparkJobLinkedService = sparkJobLinkedService; - return this; - } - - /** - * Get the className property: The application's Java/Spark main class. - * - * @return the className value. - */ - public String className() { - return this.className; - } - - /** - * Set the className property: The application's Java/Spark main class. - * - * @param className the className value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withClassName(String className) { - this.className = className; - return this; - } - - /** - * Get the proxyUser property: The user to impersonate that will execute the job. Type: string (or Expression with - * resultType string). - * - * @return the proxyUser value. - */ - public Object proxyUser() { - return this.proxyUser; - } - - /** - * Set the proxyUser property: The user to impersonate that will execute the job. Type: string (or Expression with - * resultType string). - * - * @param proxyUser the proxyUser value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withProxyUser(Object proxyUser) { - this.proxyUser = proxyUser; - return this; - } - - /** - * Get the sparkConfig property: Spark configuration property. - * - * @return the sparkConfig value. - */ - public Map sparkConfig() { - return this.sparkConfig; - } - - /** - * Set the sparkConfig property: Spark configuration property. - * - * @param sparkConfig the sparkConfig value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withSparkConfig(Map sparkConfig) { - this.sparkConfig = sparkConfig; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (rootPath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property rootPath in model HDInsightSparkActivityTypeProperties")); - } - if (entryFilePath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property entryFilePath in model HDInsightSparkActivityTypeProperties")); - } - if (sparkJobLinkedService() != null) { - sparkJobLinkedService().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightSparkActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java deleted file mode 100644 index ddd1f41f8b36d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java +++ /dev/null @@ -1,381 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight streaming activity properties. */ -@Fluent -public final class HDInsightStreamingActivityTypeProperties { - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Mapper executable name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "mapper", required = true) - private Object mapper; - - /* - * Reducer executable name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "reducer", required = true) - private Object reducer; - - /* - * Input blob path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "input", required = true) - private Object input; - - /* - * Output blob path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "output", required = true) - private Object output; - - /* - * Paths to streaming job files. Can be directories. - */ - @JsonProperty(value = "filePaths", required = true) - private List filePaths; - - /* - * Linked service reference where the files are located. - */ - @JsonProperty(value = "fileLinkedService") - private LinkedServiceReference fileLinkedService; - - /* - * Combiner executable name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "combiner") - private Object combiner; - - /* - * Command line environment values. - */ - @JsonProperty(value = "commandEnvironment") - private List commandEnvironment; - - /* - * Allows user to specify defines for streaming job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the mapper property: Mapper executable name. Type: string (or Expression with resultType string). - * - * @return the mapper value. - */ - public Object mapper() { - return this.mapper; - } - - /** - * Set the mapper property: Mapper executable name. Type: string (or Expression with resultType string). - * - * @param mapper the mapper value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withMapper(Object mapper) { - this.mapper = mapper; - return this; - } - - /** - * Get the reducer property: Reducer executable name. Type: string (or Expression with resultType string). - * - * @return the reducer value. - */ - public Object reducer() { - return this.reducer; - } - - /** - * Set the reducer property: Reducer executable name. Type: string (or Expression with resultType string). - * - * @param reducer the reducer value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withReducer(Object reducer) { - this.reducer = reducer; - return this; - } - - /** - * Get the input property: Input blob path. Type: string (or Expression with resultType string). - * - * @return the input value. - */ - public Object input() { - return this.input; - } - - /** - * Set the input property: Input blob path. Type: string (or Expression with resultType string). - * - * @param input the input value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withInput(Object input) { - this.input = input; - return this; - } - - /** - * Get the output property: Output blob path. Type: string (or Expression with resultType string). - * - * @return the output value. - */ - public Object output() { - return this.output; - } - - /** - * Set the output property: Output blob path. Type: string (or Expression with resultType string). - * - * @param output the output value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withOutput(Object output) { - this.output = output; - return this; - } - - /** - * Get the filePaths property: Paths to streaming job files. Can be directories. - * - * @return the filePaths value. - */ - public List filePaths() { - return this.filePaths; - } - - /** - * Set the filePaths property: Paths to streaming job files. Can be directories. - * - * @param filePaths the filePaths value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withFilePaths(List filePaths) { - this.filePaths = filePaths; - return this; - } - - /** - * Get the fileLinkedService property: Linked service reference where the files are located. - * - * @return the fileLinkedService value. - */ - public LinkedServiceReference fileLinkedService() { - return this.fileLinkedService; - } - - /** - * Set the fileLinkedService property: Linked service reference where the files are located. - * - * @param fileLinkedService the fileLinkedService value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withFileLinkedService(LinkedServiceReference fileLinkedService) { - this.fileLinkedService = fileLinkedService; - return this; - } - - /** - * Get the combiner property: Combiner executable name. Type: string (or Expression with resultType string). - * - * @return the combiner value. - */ - public Object combiner() { - return this.combiner; - } - - /** - * Set the combiner property: Combiner executable name. Type: string (or Expression with resultType string). - * - * @param combiner the combiner value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withCombiner(Object combiner) { - this.combiner = combiner; - return this; - } - - /** - * Get the commandEnvironment property: Command line environment values. - * - * @return the commandEnvironment value. - */ - public List commandEnvironment() { - return this.commandEnvironment; - } - - /** - * Set the commandEnvironment property: Command line environment values. - * - * @param commandEnvironment the commandEnvironment value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withCommandEnvironment(List commandEnvironment) { - this.commandEnvironment = commandEnvironment; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for streaming job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for streaming job request. - * - * @param defines the defines value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (mapper() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mapper in model HDInsightStreamingActivityTypeProperties")); - } - if (reducer() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property reducer in model HDInsightStreamingActivityTypeProperties")); - } - if (input() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property input in model HDInsightStreamingActivityTypeProperties")); - } - if (output() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property output in model HDInsightStreamingActivityTypeProperties")); - } - if (filePaths() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property filePaths in model HDInsightStreamingActivityTypeProperties")); - } - if (fileLinkedService() != null) { - fileLinkedService().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightStreamingActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java deleted file mode 100644 index b2a99ae43c4ad..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** HDFS linked service properties. */ -@Fluent -public final class HdfsLinkedServiceTypeProperties { - /* - * The URL of the HDFS service endpoint, e.g. - * http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * User name for Windows authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Windows authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /** - * Get the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: - * string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: - * string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the username property: User name for Windows authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Windows authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Windows authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Windows authentication. - * - * @param password the password value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model HdfsLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HdfsLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java deleted file mode 100644 index 03e7b3543d15c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Hive Properties. */ -@Fluent -public final class HiveDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Hive. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Hive. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the HiveDatasetTypeProperties object itself. - */ - public HiveDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Hive. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Hive. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the HiveDatasetTypeProperties object itself. - */ - public HiveDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the HiveDatasetTypeProperties object itself. - */ - public HiveDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java deleted file mode 100644 index f2ae287e790ca..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java +++ /dev/null @@ -1,516 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.HiveAuthenticationType; -import com.azure.resourcemanager.datafactory.models.HiveServerType; -import com.azure.resourcemanager.datafactory.models.HiveThriftTransportProtocol; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Hive Server linked service properties. */ -@Fluent -public final class HiveLinkedServiceTypeProperties { - /* - * IP address or host name of the Hive server, separated by ';' for - * multiple hosts (only when serviceDiscoveryMode is enable). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Hive server uses to listen for client connections. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The type of Hive server. - */ - @JsonProperty(value = "serverType") - private HiveServerType serverType; - - /* - * The transport protocol to use in the Thrift layer. - */ - @JsonProperty(value = "thriftTransportProtocol") - private HiveThriftTransportProtocol thriftTransportProtocol; - - /* - * The authentication method used to access the Hive server. - */ - @JsonProperty(value = "authenticationType", required = true) - private HiveAuthenticationType authenticationType; - - /* - * true to indicate using the ZooKeeper service, false not. - */ - @JsonProperty(value = "serviceDiscoveryMode") - private Object serviceDiscoveryMode; - - /* - * The namespace on ZooKeeper under which Hive Server 2 nodes are added. - */ - @JsonProperty(value = "zooKeeperNameSpace") - private Object zooKeeperNameSpace; - - /* - * Specifies whether the driver uses native HiveQL queries,or converts them - * into an equivalent form in HiveQL. - */ - @JsonProperty(value = "useNativeQuery") - private Object useNativeQuery; - - /* - * The user name that you use to access Hive Server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * Username field - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The partial URL corresponding to the Hive server. - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: IP address or host name of the Hive server, separated by ';' for multiple hosts (only when - * serviceDiscoveryMode is enable). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: IP address or host name of the Hive server, separated by ';' for multiple hosts (only when - * serviceDiscoveryMode is enable). - * - * @param host the host value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Hive server uses to listen for client connections. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Hive server uses to listen for client connections. - * - * @param port the port value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serverType property: The type of Hive server. - * - * @return the serverType value. - */ - public HiveServerType serverType() { - return this.serverType; - } - - /** - * Set the serverType property: The type of Hive server. - * - * @param serverType the serverType value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withServerType(HiveServerType serverType) { - this.serverType = serverType; - return this; - } - - /** - * Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @return the thriftTransportProtocol value. - */ - public HiveThriftTransportProtocol thriftTransportProtocol() { - return this.thriftTransportProtocol; - } - - /** - * Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @param thriftTransportProtocol the thriftTransportProtocol value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withThriftTransportProtocol( - HiveThriftTransportProtocol thriftTransportProtocol) { - this.thriftTransportProtocol = thriftTransportProtocol; - return this; - } - - /** - * Get the authenticationType property: The authentication method used to access the Hive server. - * - * @return the authenticationType value. - */ - public HiveAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication method used to access the Hive server. - * - * @param authenticationType the authenticationType value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withAuthenticationType(HiveAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the serviceDiscoveryMode property: true to indicate using the ZooKeeper service, false not. - * - * @return the serviceDiscoveryMode value. - */ - public Object serviceDiscoveryMode() { - return this.serviceDiscoveryMode; - } - - /** - * Set the serviceDiscoveryMode property: true to indicate using the ZooKeeper service, false not. - * - * @param serviceDiscoveryMode the serviceDiscoveryMode value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withServiceDiscoveryMode(Object serviceDiscoveryMode) { - this.serviceDiscoveryMode = serviceDiscoveryMode; - return this; - } - - /** - * Get the zooKeeperNameSpace property: The namespace on ZooKeeper under which Hive Server 2 nodes are added. - * - * @return the zooKeeperNameSpace value. - */ - public Object zooKeeperNameSpace() { - return this.zooKeeperNameSpace; - } - - /** - * Set the zooKeeperNameSpace property: The namespace on ZooKeeper under which Hive Server 2 nodes are added. - * - * @param zooKeeperNameSpace the zooKeeperNameSpace value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withZooKeeperNameSpace(Object zooKeeperNameSpace) { - this.zooKeeperNameSpace = zooKeeperNameSpace; - return this; - } - - /** - * Get the useNativeQuery property: Specifies whether the driver uses native HiveQL queries,or converts them into an - * equivalent form in HiveQL. - * - * @return the useNativeQuery value. - */ - public Object useNativeQuery() { - return this.useNativeQuery; - } - - /** - * Set the useNativeQuery property: Specifies whether the driver uses native HiveQL queries,or converts them into an - * equivalent form in HiveQL. - * - * @param useNativeQuery the useNativeQuery value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withUseNativeQuery(Object useNativeQuery) { - this.useNativeQuery = useNativeQuery; - return this; - } - - /** - * Get the username property: The user name that you use to access Hive Server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Hive Server. - * - * @param username the username value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the Username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the Username field. - * - * @param password the password value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Hive server. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the Hive server. - * - * @param httpPath the httpPath value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model HiveLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model HiveLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HiveLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java deleted file mode 100644 index 00c24a4f46242..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class HttpDatasetTypeProperties { - /* - * The relative URL based on the URL in the HttpLinkedService refers to an - * HTTP file Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "relativeUrl") - private Object relativeUrl; - - /* - * The HTTP method for the HTTP request. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "requestMethod") - private Object requestMethod; - - /* - * The body for the HTTP request. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "requestBody") - private Object requestBody; - - /* - * The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 - * ... - * request-header-name-n:request-header-value-n Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "additionalHeaders") - private Object additionalHeaders; - - /* - * The format of files. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used on files. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the relativeUrl property: The relative URL based on the URL in the HttpLinkedService refers to an HTTP file - * Type: string (or Expression with resultType string). - * - * @return the relativeUrl value. - */ - public Object relativeUrl() { - return this.relativeUrl; - } - - /** - * Set the relativeUrl property: The relative URL based on the URL in the HttpLinkedService refers to an HTTP file - * Type: string (or Expression with resultType string). - * - * @param relativeUrl the relativeUrl value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withRelativeUrl(Object relativeUrl) { - this.relativeUrl = relativeUrl; - return this; - } - - /** - * Get the requestMethod property: The HTTP method for the HTTP request. Type: string (or Expression with resultType - * string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.requestMethod; - } - - /** - * Set the requestMethod property: The HTTP method for the HTTP request. Type: string (or Expression with resultType - * string). - * - * @param requestMethod the requestMethod value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withRequestMethod(Object requestMethod) { - this.requestMethod = requestMethod; - return this; - } - - /** - * Get the requestBody property: The body for the HTTP request. Type: string (or Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.requestBody; - } - - /** - * Set the requestBody property: The body for the HTTP request. Type: string (or Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withRequestBody(Object requestBody) { - this.requestBody = requestBody; - return this; - } - - /** - * Get the additionalHeaders property: The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 ... request-header-name-n:request-header-value-n Type: string (or - * Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.additionalHeaders; - } - - /** - * Set the additionalHeaders property: The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 ... request-header-name-n:request-header-value-n Type: string (or - * Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withAdditionalHeaders(Object additionalHeaders) { - this.additionalHeaders = additionalHeaders; - return this; - } - - /** - * Get the format property: The format of files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of files. - * - * @param format the format value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used on files. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used on files. - * - * @param compression the compression value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java deleted file mode 100644 index 799291ad1cb7d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.HttpAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class HttpLinkedServiceTypeProperties { - /* - * The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The authentication type to be used to connect to the HTTP server. - */ - @JsonProperty(value = "authenticationType") - private HttpAuthenticationType authenticationType; - - /* - * User name for Basic, Digest, or Windows authentication. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic, Digest, Windows, or ClientCertificate with - * EmbeddedCertData authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The additional HTTP headers in the request to RESTful API used for - * authorization. Type: object (or Expression with resultType object). - */ - @JsonProperty(value = "authHeaders") - private Object authHeaders; - - /* - * Base64 encoded certificate data for ClientCertificate authentication. - * For on-premises copy with ClientCertificate authentication, either - * CertThumbprint or EmbeddedCertData/Password should be specified. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "embeddedCertData") - private Object embeddedCertData; - - /* - * Thumbprint of certificate for ClientCertificate authentication. Only - * valid for on-premises copy. For on-premises copy with ClientCertificate - * authentication, either CertThumbprint or EmbeddedCertData/Password - * should be specified. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "certThumbprint") - private Object certThumbprint; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * If true, validate the HTTPS server SSL certificate. Default value is - * true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableServerCertificateValidation") - private Object enableServerCertificateValidation; - - /** - * Get the url property: The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or - * Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or - * Expression with resultType string). - * - * @param url the url value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the HTTP server. - * - * @return the authenticationType value. - */ - public HttpAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the HTTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withAuthenticationType(HttpAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name for Basic, Digest, or Windows authentication. Type: string (or Expression - * with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic, Digest, or Windows authentication. Type: string (or Expression - * with resultType string). - * - * @param username the username value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData - * authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData - * authentication. - * - * @param password the password value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.authHeaders; - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withAuthHeaders(Object authHeaders) { - this.authHeaders = authHeaders; - return this; - } - - /** - * Get the embeddedCertData property: Base64 encoded certificate data for ClientCertificate authentication. For - * on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should - * be specified. Type: string (or Expression with resultType string). - * - * @return the embeddedCertData value. - */ - public Object embeddedCertData() { - return this.embeddedCertData; - } - - /** - * Set the embeddedCertData property: Base64 encoded certificate data for ClientCertificate authentication. For - * on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should - * be specified. Type: string (or Expression with resultType string). - * - * @param embeddedCertData the embeddedCertData value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withEmbeddedCertData(Object embeddedCertData) { - this.embeddedCertData = embeddedCertData; - return this; - } - - /** - * Get the certThumbprint property: Thumbprint of certificate for ClientCertificate authentication. Only valid for - * on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or - * EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - * - * @return the certThumbprint value. - */ - public Object certThumbprint() { - return this.certThumbprint; - } - - /** - * Set the certThumbprint property: Thumbprint of certificate for ClientCertificate authentication. Only valid for - * on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or - * EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - * - * @param certThumbprint the certThumbprint value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withCertThumbprint(Object certThumbprint) { - this.certThumbprint = certThumbprint; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the enableServerCertificateValidation property: If true, validate the HTTPS server SSL certificate. Default - * value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.enableServerCertificateValidation; - } - - /** - * Set the enableServerCertificateValidation property: If true, validate the HTTPS server SSL certificate. Default - * value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withEnableServerCertificateValidation( - Object enableServerCertificateValidation) { - this.enableServerCertificateValidation = enableServerCertificateValidation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model HttpLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HttpLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java deleted file mode 100644 index 728e12860efca..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Hubspot Service linked service properties. */ -@Fluent -public final class HubspotLinkedServiceTypeProperties { - /* - * The client ID associated with your Hubspot application. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret associated with your Hubspot application. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The access token obtained when initially authenticating your OAuth - * integration. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * The refresh token obtained when initially authenticating your OAuth - * integration. - */ - @JsonProperty(value = "refreshToken") - private SecretBase refreshToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the clientId property: The client ID associated with your Hubspot application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with your Hubspot application. - * - * @param clientId the clientId value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your Hubspot application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with your Hubspot application. - * - * @param clientSecret the clientSecret value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the accessToken property: The access token obtained when initially authenticating your OAuth integration. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token obtained when initially authenticating your OAuth integration. - * - * @param accessToken the accessToken value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained when initially authenticating your OAuth integration. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.refreshToken; - } - - /** - * Set the refreshToken property: The refresh token obtained when initially authenticating your OAuth integration. - * - * @param refreshToken the refreshToken value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withRefreshToken(SecretBase refreshToken) { - this.refreshToken = refreshToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model HubspotLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - if (accessToken() != null) { - accessToken().validate(); - } - if (refreshToken() != null) { - refreshToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HubspotLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IfConditionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IfConditionActivityTypeProperties.java deleted file mode 100644 index 2549709110920..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IfConditionActivityTypeProperties.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** IfCondition activity properties. */ -@Fluent -public final class IfConditionActivityTypeProperties { - /* - * An expression that would evaluate to Boolean. This is used to determine - * the block of activities (ifTrueActivities or ifFalseActivities) that - * will be executed. - */ - @JsonProperty(value = "expression", required = true) - private Expression expression; - - /* - * List of activities to execute if expression is evaluated to true. This - * is an optional property and if not provided, the activity will exit - * without any action. - */ - @JsonProperty(value = "ifTrueActivities") - private List ifTrueActivities; - - /* - * List of activities to execute if expression is evaluated to false. This - * is an optional property and if not provided, the activity will exit - * without any action. - */ - @JsonProperty(value = "ifFalseActivities") - private List ifFalseActivities; - - /** - * Get the expression property: An expression that would evaluate to Boolean. This is used to determine the block of - * activities (ifTrueActivities or ifFalseActivities) that will be executed. - * - * @return the expression value. - */ - public Expression expression() { - return this.expression; - } - - /** - * Set the expression property: An expression that would evaluate to Boolean. This is used to determine the block of - * activities (ifTrueActivities or ifFalseActivities) that will be executed. - * - * @param expression the expression value to set. - * @return the IfConditionActivityTypeProperties object itself. - */ - public IfConditionActivityTypeProperties withExpression(Expression expression) { - this.expression = expression; - return this; - } - - /** - * Get the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the ifTrueActivities value. - */ - public List ifTrueActivities() { - return this.ifTrueActivities; - } - - /** - * Set the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param ifTrueActivities the ifTrueActivities value to set. - * @return the IfConditionActivityTypeProperties object itself. - */ - public IfConditionActivityTypeProperties withIfTrueActivities(List ifTrueActivities) { - this.ifTrueActivities = ifTrueActivities; - return this; - } - - /** - * Get the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the ifFalseActivities value. - */ - public List ifFalseActivities() { - return this.ifFalseActivities; - } - - /** - * Set the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param ifFalseActivities the ifFalseActivities value to set. - * @return the IfConditionActivityTypeProperties object itself. - */ - public IfConditionActivityTypeProperties withIfFalseActivities(List ifFalseActivities) { - this.ifFalseActivities = ifFalseActivities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (expression() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property expression in model IfConditionActivityTypeProperties")); - } else { - expression().validate(); - } - if (ifTrueActivities() != null) { - ifTrueActivities().forEach(e -> e.validate()); - } - if (ifFalseActivities() != null) { - ifFalseActivities().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IfConditionActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java deleted file mode 100644 index 8ed3ca9f8a84a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Impala Dataset Properties. */ -@Fluent -public final class ImpalaDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Impala. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Impala. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the ImpalaDatasetTypeProperties object itself. - */ - public ImpalaDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Impala. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Impala. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the ImpalaDatasetTypeProperties object itself. - */ - public ImpalaDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the ImpalaDatasetTypeProperties object itself. - */ - public ImpalaDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java deleted file mode 100644 index 15e1b637bc5d9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,357 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ImpalaAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Impala server linked service properties. */ -@Fluent -public final class ImpalaLinkedServiceTypeProperties { - /* - * The IP address or host name of the Impala server. (i.e. 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Impala server uses to listen for client - * connections. The default value is 21050. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication type to use. - */ - @JsonProperty(value = "authenticationType", required = true) - private ImpalaAuthenticationType authenticationType; - - /* - * The user name used to access the Impala server. The default value is - * anonymous when using SASLUsername. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name when using - * UsernameAndPassword. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Impala server uses to listen for client connections. The default - * value is 21050. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Impala server uses to listen for client connections. The default - * value is 21050. - * - * @param port the port value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ImpalaAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withAuthenticationType(ImpalaAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to access the Impala server. The default value is anonymous when - * using SASLUsername. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to access the Impala server. The default value is anonymous when - * using SASLUsername. - * - * @param username the username value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name when using UsernameAndPassword. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name when using UsernameAndPassword. - * - * @param password the password value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model ImpalaLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model ImpalaLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ImpalaLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java deleted file mode 100644 index 1a12280c9c69e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Informix linked service properties. */ -@Fluent -public final class InformixLinkedServiceTypeProperties { - /* - * The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * Type of authentication used to connect to the Informix as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access credential portion of the connection string specified in - * driver-specific property-value format. - */ - @JsonProperty(value = "credential") - private SecretBase credential; - - /* - * User name for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the Informix as ODBC data store. - * Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the Informix as ODBC data store. - * Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.credential; - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withCredential(SecretBase credential) { - this.credential = credential; - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model InformixLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(InformixLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java deleted file mode 100644 index a15095382139a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Informix table dataset properties. */ -@Fluent -public final class InformixTableDatasetTypeProperties { - /* - * The Informix table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the InformixTableDatasetTypeProperties object itself. - */ - public InformixTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeAuthKeysInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeAuthKeysInner.java deleted file mode 100644 index a7107359f2423..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeAuthKeysInner.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The integration runtime authentication keys. */ -@Fluent -public final class IntegrationRuntimeAuthKeysInner { - /* - * The primary integration runtime authentication key. - */ - @JsonProperty(value = "authKey1") - private String authKey1; - - /* - * The secondary integration runtime authentication key. - */ - @JsonProperty(value = "authKey2") - private String authKey2; - - /** - * Get the authKey1 property: The primary integration runtime authentication key. - * - * @return the authKey1 value. - */ - public String authKey1() { - return this.authKey1; - } - - /** - * Set the authKey1 property: The primary integration runtime authentication key. - * - * @param authKey1 the authKey1 value to set. - * @return the IntegrationRuntimeAuthKeysInner object itself. - */ - public IntegrationRuntimeAuthKeysInner withAuthKey1(String authKey1) { - this.authKey1 = authKey1; - return this; - } - - /** - * Get the authKey2 property: The secondary integration runtime authentication key. - * - * @return the authKey2 value. - */ - public String authKey2() { - return this.authKey2; - } - - /** - * Set the authKey2 property: The secondary integration runtime authentication key. - * - * @param authKey2 the authKey2 value to set. - * @return the IntegrationRuntimeAuthKeysInner object itself. - */ - public IntegrationRuntimeAuthKeysInner withAuthKey2(String authKey2) { - this.authKey2 = authKey2; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeConnectionInfoInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeConnectionInfoInner.java deleted file mode 100644 index ff81008af711b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeConnectionInfoInner.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Connection information for encrypting the on-premises data source credentials. */ -@Fluent -public final class IntegrationRuntimeConnectionInfoInner { - /* - * The token generated in service. Callers use this token to authenticate - * to integration runtime. - */ - @JsonProperty(value = "serviceToken", access = JsonProperty.Access.WRITE_ONLY) - private String serviceToken; - - /* - * The integration runtime SSL certificate thumbprint. Click-Once - * application uses it to do server validation. - */ - @JsonProperty(value = "identityCertThumbprint", access = JsonProperty.Access.WRITE_ONLY) - private String identityCertThumbprint; - - /* - * The on-premises integration runtime host URL. - */ - @JsonProperty(value = "hostServiceUri", access = JsonProperty.Access.WRITE_ONLY) - private String hostServiceUri; - - /* - * The integration runtime version. - */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * The public key for encrypting a credential when transferring the - * credential to the integration runtime. - */ - @JsonProperty(value = "publicKey", access = JsonProperty.Access.WRITE_ONLY) - private String publicKey; - - /* - * Whether the identity certificate is expired. - */ - @JsonProperty(value = "isIdentityCertExprired", access = JsonProperty.Access.WRITE_ONLY) - private Boolean isIdentityCertExprired; - - /* - * Connection information for encrypting the on-premises data source - * credentials. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the serviceToken property: The token generated in service. Callers use this token to authenticate to - * integration runtime. - * - * @return the serviceToken value. - */ - public String serviceToken() { - return this.serviceToken; - } - - /** - * Get the identityCertThumbprint property: The integration runtime SSL certificate thumbprint. Click-Once - * application uses it to do server validation. - * - * @return the identityCertThumbprint value. - */ - public String identityCertThumbprint() { - return this.identityCertThumbprint; - } - - /** - * Get the hostServiceUri property: The on-premises integration runtime host URL. - * - * @return the hostServiceUri value. - */ - public String hostServiceUri() { - return this.hostServiceUri; - } - - /** - * Get the version property: The integration runtime version. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Get the publicKey property: The public key for encrypting a credential when transferring the credential to the - * integration runtime. - * - * @return the publicKey value. - */ - public String publicKey() { - return this.publicKey; - } - - /** - * Get the isIdentityCertExprired property: Whether the identity certificate is expired. - * - * @return the isIdentityCertExprired value. - */ - public Boolean isIdentityCertExprired() { - return this.isIdentityCertExprired; - } - - /** - * Get the additionalProperties property: Connection information for encrypting the on-premises data source - * credentials. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Connection information for encrypting the on-premises data source - * credentials. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeConnectionInfoInner object itself. - */ - public IntegrationRuntimeConnectionInfoInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeMonitoringDataInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeMonitoringDataInner.java deleted file mode 100644 index 727ea13965658..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeMonitoringDataInner.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Get monitoring data response. */ -@Fluent -public final class IntegrationRuntimeMonitoringDataInner { - /* - * Integration runtime name. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Integration runtime node monitoring data. - */ - @JsonProperty(value = "nodes") - private List nodes; - - /** - * Get the name property: Integration runtime name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Integration runtime name. - * - * @param name the name value to set. - * @return the IntegrationRuntimeMonitoringDataInner object itself. - */ - public IntegrationRuntimeMonitoringDataInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the nodes property: Integration runtime node monitoring data. - * - * @return the nodes value. - */ - public List nodes() { - return this.nodes; - } - - /** - * Set the nodes property: Integration runtime node monitoring data. - * - * @param nodes the nodes value to set. - * @return the IntegrationRuntimeMonitoringDataInner object itself. - */ - public IntegrationRuntimeMonitoringDataInner withNodes(List nodes) { - this.nodes = nodes; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (nodes() != null) { - nodes().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeNodeIpAddressInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeNodeIpAddressInner.java deleted file mode 100644 index b6a092e430786..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeNodeIpAddressInner.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The IP address of self-hosted integration runtime node. */ -@Immutable -public final class IntegrationRuntimeNodeIpAddressInner { - /* - * The IP address of self-hosted integration runtime node. - */ - @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) - private String ipAddress; - - /** - * Get the ipAddress property: The IP address of self-hosted integration runtime node. - * - * @return the ipAddress value. - */ - public String ipAddress() { - return this.ipAddress; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java deleted file mode 100644 index 19464f6f14dc4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Azure-SSIS integration runtime outbound network dependency endpoints. */ -@Fluent -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner { - /* - * The list of outbound network dependency endpoints. - */ - @JsonProperty(value = "value") - private List value; - - /** - * Get the value property: The list of outbound network dependency endpoints. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of outbound network dependency endpoints. - * - * @param value the value value to set. - * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner object itself. - */ - public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner withValue( - List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeResourceInner.java deleted file mode 100644 index 501b17b4c9d9c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeResourceInner.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Integration runtime resource type. */ -@Fluent -public final class IntegrationRuntimeResourceInner extends SubResource { - /* - * Integration runtime properties. - */ - @JsonProperty(value = "properties", required = true) - private IntegrationRuntime properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Integration runtime properties. - * - * @return the properties value. - */ - public IntegrationRuntime properties() { - return this.properties; - } - - /** - * Set the properties property: Integration runtime properties. - * - * @param properties the properties value to set. - * @return the IntegrationRuntimeResourceInner object itself. - */ - public IntegrationRuntimeResourceInner withProperties(IntegrationRuntime properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public IntegrationRuntimeResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model IntegrationRuntimeResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeStatusResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeStatusResponseInner.java deleted file mode 100644 index d1b6128255004..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IntegrationRuntimeStatusResponseInner.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Integration runtime status response. */ -@Fluent -public final class IntegrationRuntimeStatusResponseInner { - /* - * The integration runtime name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * Integration runtime properties. - */ - @JsonProperty(value = "properties", required = true) - private IntegrationRuntimeStatus properties; - - /** - * Get the name property: The integration runtime name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the properties property: Integration runtime properties. - * - * @return the properties value. - */ - public IntegrationRuntimeStatus properties() { - return this.properties; - } - - /** - * Set the properties property: Integration runtime properties. - * - * @param properties the properties value to set. - * @return the IntegrationRuntimeStatusResponseInner object itself. - */ - public IntegrationRuntimeStatusResponseInner withProperties(IntegrationRuntimeStatus properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model IntegrationRuntimeStatusResponseInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeStatusResponseInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java deleted file mode 100644 index b37be1c7c206b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java +++ /dev/null @@ -1,266 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Jira Service linked service properties. */ -@Fluent -public final class JiraLinkedServiceTypeProperties { - /* - * The IP address or host name of the Jira service. (e.g. jira.example.com) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Jira server uses to listen for client connections. - * The default value is 443 if connecting through HTTPS, or 8080 if - * connecting through HTTP. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The user name that you use to access Jira Service. - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * username field. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Jira service. (e.g. jira.example.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Jira service. (e.g. jira.example.com). - * - * @param host the host value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Jira server uses to listen for client connections. The default value - * is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Jira server uses to listen for client connections. The default value - * is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - * - * @param port the port value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the username property: The user name that you use to access Jira Service. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Jira Service. - * - * @param username the username value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username field. - * - * @param password the password value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model JiraLinkedServiceTypeProperties")); - } - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model JiraLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JiraLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java deleted file mode 100644 index 633c9e2ea2cc8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Json dataset properties. */ -@Fluent -public final class JsonDatasetTypeProperties { - /* - * The location of the json data storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The code page name of the preferred encoding. If not specified, the - * default value is UTF-8, unless BOM denotes another Unicode encoding. - * Refer to the name column of the table in the following link to set - * supported values: - * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * The data compression method used for the json dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the location property: The location of the json data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the json data storage. - * - * @param location the location value to set. - * @return the JsonDatasetTypeProperties object itself. - */ - public JsonDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the JsonDatasetTypeProperties object itself. - */ - public JsonDatasetTypeProperties withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the JsonDatasetTypeProperties object itself. - */ - public JsonDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model JsonDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JsonDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LicensedComponentSetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LicensedComponentSetupTypeProperties.java deleted file mode 100644 index 12c862c56a76f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LicensedComponentSetupTypeProperties.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Installation of licensed component setup type properties. */ -@Fluent -public final class LicensedComponentSetupTypeProperties { - /* - * The name of the 3rd party component. - */ - @JsonProperty(value = "componentName", required = true) - private String componentName; - - /* - * The license key to activate the component. - */ - @JsonProperty(value = "licenseKey") - private SecretBase licenseKey; - - /** - * Get the componentName property: The name of the 3rd party component. - * - * @return the componentName value. - */ - public String componentName() { - return this.componentName; - } - - /** - * Set the componentName property: The name of the 3rd party component. - * - * @param componentName the componentName value to set. - * @return the LicensedComponentSetupTypeProperties object itself. - */ - public LicensedComponentSetupTypeProperties withComponentName(String componentName) { - this.componentName = componentName; - return this; - } - - /** - * Get the licenseKey property: The license key to activate the component. - * - * @return the licenseKey value. - */ - public SecretBase licenseKey() { - return this.licenseKey; - } - - /** - * Set the licenseKey property: The license key to activate the component. - * - * @param licenseKey the licenseKey value to set. - * @return the LicensedComponentSetupTypeProperties object itself. - */ - public LicensedComponentSetupTypeProperties withLicenseKey(SecretBase licenseKey) { - this.licenseKey = licenseKey; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (componentName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property componentName in model LicensedComponentSetupTypeProperties")); - } - if (licenseKey() != null) { - licenseKey().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LicensedComponentSetupTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LinkedServiceResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LinkedServiceResourceInner.java deleted file mode 100644 index 78ba3c5d39df0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LinkedServiceResourceInner.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Linked service resource type. */ -@Fluent -public final class LinkedServiceResourceInner extends SubResource { - /* - * Properties of linked service. - */ - @JsonProperty(value = "properties", required = true) - private LinkedService properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Properties of linked service. - * - * @return the properties value. - */ - public LinkedService properties() { - return this.properties; - } - - /** - * Set the properties property: Properties of linked service. - * - * @param properties the properties value to set. - * @return the LinkedServiceResourceInner object itself. - */ - public LinkedServiceResourceInner withProperties(LinkedService properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public LinkedServiceResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model LinkedServiceResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedServiceResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java deleted file mode 100644 index ab5ac6ea157bc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Lookup activity properties. */ -@Fluent -public final class LookupActivityTypeProperties { - /* - * Dataset-specific source properties, same as copy activity source. - */ - @JsonProperty(value = "source", required = true) - private CopySource source; - - /* - * Lookup activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /* - * Whether to return first row or all rows. Default value is true. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "firstRowOnly") - private Object firstRowOnly; - - /** - * Get the source property: Dataset-specific source properties, same as copy activity source. - * - * @return the source value. - */ - public CopySource source() { - return this.source; - } - - /** - * Set the source property: Dataset-specific source properties, same as copy activity source. - * - * @param source the source value to set. - * @return the LookupActivityTypeProperties object itself. - */ - public LookupActivityTypeProperties withSource(CopySource source) { - this.source = source; - return this; - } - - /** - * Get the dataset property: Lookup activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: Lookup activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the LookupActivityTypeProperties object itself. - */ - public LookupActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Get the firstRowOnly property: Whether to return first row or all rows. Default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowOnly value. - */ - public Object firstRowOnly() { - return this.firstRowOnly; - } - - /** - * Set the firstRowOnly property: Whether to return first row or all rows. Default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowOnly the firstRowOnly value to set. - * @return the LookupActivityTypeProperties object itself. - */ - public LookupActivityTypeProperties withFirstRowOnly(Object firstRowOnly) { - this.firstRowOnly = firstRowOnly; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (source() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property source in model LookupActivityTypeProperties")); - } else { - source().validate(); - } - if (dataset() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model LookupActivityTypeProperties")); - } else { - dataset().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LookupActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java deleted file mode 100644 index 465f6d5cbedf1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Magento server linked service properties. */ -@Fluent -public final class MagentoLinkedServiceTypeProperties { - /* - * The URL of the Magento instance. (i.e. 192.168.222.110/magento3) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The access token from Magento. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). - * - * @param host the host value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the accessToken property: The access token from Magento. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token from Magento. - * - * @param accessToken the accessToken value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model MagentoLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MagentoLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIdentityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIdentityTypeProperties.java deleted file mode 100644 index d8fc0033f1012..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIdentityTypeProperties.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Managed identity type properties. */ -@Fluent -public final class ManagedIdentityTypeProperties { - /* - * The resource id of user assigned managed identity - */ - @JsonProperty(value = "resourceId") - private String resourceId; - - /** - * Get the resourceId property: The resource id of user assigned managed identity. - * - * @return the resourceId value. - */ - public String resourceId() { - return this.resourceId; - } - - /** - * Set the resourceId property: The resource id of user assigned managed identity. - * - * @param resourceId the resourceId value to set. - * @return the ManagedIdentityTypeProperties object itself. - */ - public ManagedIdentityTypeProperties withResourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java deleted file mode 100644 index 6069080661746..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeError; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeNode; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeOperationResult; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.List; - -/** Managed integration runtime status type properties. */ -@Immutable -public final class ManagedIntegrationRuntimeStatusTypeProperties { - /* - * The time at which the integration runtime was created, in ISO8601 - * format. - */ - @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createTime; - - /* - * The list of nodes for managed integration runtime. - */ - @JsonProperty(value = "nodes", access = JsonProperty.Access.WRITE_ONLY) - private List nodes; - - /* - * The errors that occurred on this integration runtime. - */ - @JsonProperty(value = "otherErrors", access = JsonProperty.Access.WRITE_ONLY) - private List otherErrors; - - /* - * The last operation result that occurred on this integration runtime. - */ - @JsonProperty(value = "lastOperation", access = JsonProperty.Access.WRITE_ONLY) - private ManagedIntegrationRuntimeOperationResult lastOperation; - - /** - * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.createTime; - } - - /** - * Get the nodes property: The list of nodes for managed integration runtime. - * - * @return the nodes value. - */ - public List nodes() { - return this.nodes; - } - - /** - * Get the otherErrors property: The errors that occurred on this integration runtime. - * - * @return the otherErrors value. - */ - public List otherErrors() { - return this.otherErrors; - } - - /** - * Get the lastOperation property: The last operation result that occurred on this integration runtime. - * - * @return the lastOperation value. - */ - public ManagedIntegrationRuntimeOperationResult lastOperation() { - return this.lastOperation; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (nodes() != null) { - nodes().forEach(e -> e.validate()); - } - if (otherErrors() != null) { - otherErrors().forEach(e -> e.validate()); - } - if (lastOperation() != null) { - lastOperation().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeTypeProperties.java deleted file mode 100644 index 64428f4e1f365..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeTypeProperties.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeSsisProperties; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Managed integration runtime type properties. */ -@Fluent -public final class ManagedIntegrationRuntimeTypeProperties { - /* - * The compute resource for managed integration runtime. - */ - @JsonProperty(value = "computeProperties") - private IntegrationRuntimeComputeProperties computeProperties; - - /* - * SSIS properties for managed integration runtime. - */ - @JsonProperty(value = "ssisProperties") - private IntegrationRuntimeSsisProperties ssisProperties; - - /* - * The name of virtual network to which Azure-SSIS integration runtime will - * join - */ - @JsonProperty(value = "customerVirtualNetwork") - private IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork; - - /** - * Get the computeProperties property: The compute resource for managed integration runtime. - * - * @return the computeProperties value. - */ - public IntegrationRuntimeComputeProperties computeProperties() { - return this.computeProperties; - } - - /** - * Set the computeProperties property: The compute resource for managed integration runtime. - * - * @param computeProperties the computeProperties value to set. - * @return the ManagedIntegrationRuntimeTypeProperties object itself. - */ - public ManagedIntegrationRuntimeTypeProperties withComputeProperties( - IntegrationRuntimeComputeProperties computeProperties) { - this.computeProperties = computeProperties; - return this; - } - - /** - * Get the ssisProperties property: SSIS properties for managed integration runtime. - * - * @return the ssisProperties value. - */ - public IntegrationRuntimeSsisProperties ssisProperties() { - return this.ssisProperties; - } - - /** - * Set the ssisProperties property: SSIS properties for managed integration runtime. - * - * @param ssisProperties the ssisProperties value to set. - * @return the ManagedIntegrationRuntimeTypeProperties object itself. - */ - public ManagedIntegrationRuntimeTypeProperties withSsisProperties(IntegrationRuntimeSsisProperties ssisProperties) { - this.ssisProperties = ssisProperties; - return this; - } - - /** - * Get the customerVirtualNetwork property: The name of virtual network to which Azure-SSIS integration runtime will - * join. - * - * @return the customerVirtualNetwork value. - */ - public IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork() { - return this.customerVirtualNetwork; - } - - /** - * Set the customerVirtualNetwork property: The name of virtual network to which Azure-SSIS integration runtime will - * join. - * - * @param customerVirtualNetwork the customerVirtualNetwork value to set. - * @return the ManagedIntegrationRuntimeTypeProperties object itself. - */ - public ManagedIntegrationRuntimeTypeProperties withCustomerVirtualNetwork( - IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork) { - this.customerVirtualNetwork = customerVirtualNetwork; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (computeProperties() != null) { - computeProperties().validate(); - } - if (ssisProperties() != null) { - ssisProperties().validate(); - } - if (customerVirtualNetwork() != null) { - customerVirtualNetwork().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedPrivateEndpointResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedPrivateEndpointResourceInner.java deleted file mode 100644 index c8a70e5c84d11..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedPrivateEndpointResourceInner.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Managed private endpoint resource type. */ -@Fluent -public final class ManagedPrivateEndpointResourceInner extends SubResource { - /* - * Managed private endpoint properties. - */ - @JsonProperty(value = "properties", required = true) - private ManagedPrivateEndpoint properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Managed private endpoint properties. - * - * @return the properties value. - */ - public ManagedPrivateEndpoint properties() { - return this.properties; - } - - /** - * Set the properties property: Managed private endpoint properties. - * - * @param properties the properties value to set. - * @return the ManagedPrivateEndpointResourceInner object itself. - */ - public ManagedPrivateEndpointResourceInner withProperties(ManagedPrivateEndpoint properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public ManagedPrivateEndpointResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model ManagedPrivateEndpointResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedPrivateEndpointResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedVirtualNetworkResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedVirtualNetworkResourceInner.java deleted file mode 100644 index d0b31b1a9915e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedVirtualNetworkResourceInner.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Managed Virtual Network resource type. */ -@Fluent -public final class ManagedVirtualNetworkResourceInner extends SubResource { - /* - * Managed Virtual Network properties. - */ - @JsonProperty(value = "properties", required = true) - private ManagedVirtualNetwork properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Managed Virtual Network properties. - * - * @return the properties value. - */ - public ManagedVirtualNetwork properties() { - return this.properties; - } - - /** - * Set the properties property: Managed Virtual Network properties. - * - * @param properties the properties value to set. - * @return the ManagedVirtualNetworkResourceInner object itself. - */ - public ManagedVirtualNetworkResourceInner withProperties(ManagedVirtualNetwork properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public ManagedVirtualNetworkResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model ManagedVirtualNetworkResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedVirtualNetworkResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MappingDataFlowTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MappingDataFlowTypeProperties.java deleted file mode 100644 index e7d8a6e31ff7f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MappingDataFlowTypeProperties.java +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.Transformation; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Mapping data flow type properties. */ -@Fluent -public final class MappingDataFlowTypeProperties { - /* - * List of sources in data flow. - */ - @JsonProperty(value = "sources") - private List sources; - - /* - * List of sinks in data flow. - */ - @JsonProperty(value = "sinks") - private List sinks; - - /* - * List of transformations in data flow. - */ - @JsonProperty(value = "transformations") - private List transformations; - - /* - * DataFlow script. - */ - @JsonProperty(value = "script") - private String script; - - /* - * Data flow script lines. - */ - @JsonProperty(value = "scriptLines") - private List scriptLines; - - /** - * Get the sources property: List of sources in data flow. - * - * @return the sources value. - */ - public List sources() { - return this.sources; - } - - /** - * Set the sources property: List of sources in data flow. - * - * @param sources the sources value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withSources(List sources) { - this.sources = sources; - return this; - } - - /** - * Get the sinks property: List of sinks in data flow. - * - * @return the sinks value. - */ - public List sinks() { - return this.sinks; - } - - /** - * Set the sinks property: List of sinks in data flow. - * - * @param sinks the sinks value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withSinks(List sinks) { - this.sinks = sinks; - return this; - } - - /** - * Get the transformations property: List of transformations in data flow. - * - * @return the transformations value. - */ - public List transformations() { - return this.transformations; - } - - /** - * Set the transformations property: List of transformations in data flow. - * - * @param transformations the transformations value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withTransformations(List transformations) { - this.transformations = transformations; - return this; - } - - /** - * Get the script property: DataFlow script. - * - * @return the script value. - */ - public String script() { - return this.script; - } - - /** - * Set the script property: DataFlow script. - * - * @param script the script value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withScript(String script) { - this.script = script; - return this; - } - - /** - * Get the scriptLines property: Data flow script lines. - * - * @return the scriptLines value. - */ - public List scriptLines() { - return this.scriptLines; - } - - /** - * Set the scriptLines property: Data flow script lines. - * - * @param scriptLines the scriptLines value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withScriptLines(List scriptLines) { - this.scriptLines = scriptLines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sources() != null) { - sources().forEach(e -> e.validate()); - } - if (sinks() != null) { - sinks().forEach(e -> e.validate()); - } - if (transformations() != null) { - transformations().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java deleted file mode 100644 index f557876cd7a70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MariaDB server linked service properties. */ -@Fluent -public final class MariaDBLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MariaDBLinkedServiceTypeProperties object itself. - */ - public MariaDBLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the MariaDBLinkedServiceTypeProperties object itself. - */ - public MariaDBLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MariaDBLinkedServiceTypeProperties object itself. - */ - public MariaDBLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java deleted file mode 100644 index d1bba2d52d3f2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Marketo server linked service properties. */ -@Fluent -public final class MarketoLinkedServiceTypeProperties { - /* - * The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The client Id of your Marketo service. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret of your Marketo service. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). - * - * @param endpoint the endpoint value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the clientId property: The client Id of your Marketo service. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client Id of your Marketo service. - * - * @param clientId the clientId value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret of your Marketo service. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret of your Marketo service. - * - * @param clientSecret the clientSecret value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model MarketoLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model MarketoLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MarketoLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java deleted file mode 100644 index 63d93e462c72f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Microsoft Access linked service properties. */ -@Fluent -public final class MicrosoftAccessLinkedServiceTypeProperties { - /* - * The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * Type of authentication used to connect to the Microsoft Access as ODBC - * data store. Possible values are: Anonymous and Basic. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access credential portion of the connection string specified in - * driver-specific property-value format. - */ - @JsonProperty(value = "credential") - private SecretBase credential; - - /* - * User name for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the Microsoft Access as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the Microsoft Access as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.credential; - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withCredential(SecretBase credential) { - this.credential = credential; - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " MicrosoftAccessLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MicrosoftAccessLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java deleted file mode 100644 index d7384fbf7d814..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Microsoft Access table dataset properties. */ -@Fluent -public final class MicrosoftAccessTableDatasetTypeProperties { - /* - * The Microsoft Access table name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MicrosoftAccessTableDatasetTypeProperties object itself. - */ - public MicrosoftAccessTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasCollectionDatasetTypeProperties.java deleted file mode 100644 index 9fcb724cda4ce..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB Atlas database dataset properties. */ -@Fluent -public final class MongoDbAtlasCollectionDatasetTypeProperties { - /* - * The collection name of the MongoDB Atlas database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "collection", required = true) - private Object collection; - - /** - * Get the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.collection; - } - - /** - * Set the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbAtlasCollectionDatasetTypeProperties object itself. - */ - public MongoDbAtlasCollectionDatasetTypeProperties withCollection(Object collection) { - this.collection = collection; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collection() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collection in model MongoDbAtlasCollectionDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbAtlasCollectionDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java deleted file mode 100644 index 621af6aab47aa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB Atlas linked service properties. */ -@Fluent -public final class MongoDbAtlasLinkedServiceTypeProperties { - /* - * The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The name of the MongoDB Atlas database that you want to access. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /** - * Get the connectionString property: The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MongoDbAtlasLinkedServiceTypeProperties object itself. - */ - public MongoDbAtlasLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the database property: The name of the MongoDB Atlas database that you want to access. Type: string (or - * Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the MongoDB Atlas database that you want to access. Type: string (or - * Expression with resultType string). - * - * @param database the database value to set. - * @return the MongoDbAtlasLinkedServiceTypeProperties object itself. - */ - public MongoDbAtlasLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model MongoDbAtlasLinkedServiceTypeProperties")); - } - if (database() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model MongoDbAtlasLinkedServiceTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbAtlasLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbCollectionDatasetTypeProperties.java deleted file mode 100644 index 4ee206885fe67..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB database dataset properties. */ -@Fluent -public final class MongoDbCollectionDatasetTypeProperties { - /* - * The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "collectionName", required = true) - private Object collectionName; - - /** - * Get the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.collectionName; - } - - /** - * Set the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collectionName the collectionName value to set. - * @return the MongoDbCollectionDatasetTypeProperties object itself. - */ - public MongoDbCollectionDatasetTypeProperties withCollectionName(Object collectionName) { - this.collectionName = collectionName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collectionName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collectionName in model MongoDbCollectionDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbCollectionDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java deleted file mode 100644 index b8ef532387283..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java +++ /dev/null @@ -1,326 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.MongoDbAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB linked service properties. */ -@Fluent -public final class MongoDbLinkedServiceTypeProperties { - /* - * The IP address or server name of the MongoDB server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * The authentication type to be used to connect to the MongoDB database. - */ - @JsonProperty(value = "authenticationType") - private MongoDbAuthenticationType authenticationType; - - /* - * The name of the MongoDB database that you want to access. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "databaseName", required = true) - private Object databaseName; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Database to verify the username and password. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authSource") - private Object authSource; - - /* - * The TCP port number that the MongoDB server uses to listen for client - * connections. The default value is 27017. Type: integer (or Expression - * with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: The IP address or server name of the MongoDB server. Type: string (or Expression with - * resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: The IP address or server name of the MongoDB server. Type: string (or Expression with - * resultType string). - * - * @param server the server value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the MongoDB database. - * - * @return the authenticationType value. - */ - public MongoDbAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the MongoDB database. - * - * @param authenticationType the authenticationType value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withAuthenticationType(MongoDbAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the databaseName property: The name of the MongoDB database that you want to access. Type: string (or - * Expression with resultType string). - * - * @return the databaseName value. - */ - public Object databaseName() { - return this.databaseName; - } - - /** - * Set the databaseName property: The name of the MongoDB database that you want to access. Type: string (or - * Expression with resultType string). - * - * @param databaseName the databaseName value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withDatabaseName(Object databaseName) { - this.databaseName = databaseName; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authSource property: Database to verify the username and password. Type: string (or Expression with - * resultType string). - * - * @return the authSource value. - */ - public Object authSource() { - return this.authSource; - } - - /** - * Set the authSource property: Database to verify the username and password. Type: string (or Expression with - * resultType string). - * - * @param authSource the authSource value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withAuthSource(Object authSource) { - this.authSource = authSource; - return this; - } - - /** - * Get the port property: The TCP port number that the MongoDB server uses to listen for client connections. The - * default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the MongoDB server uses to listen for client connections. The - * default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. Type: boolean (or Expression with resultType boolean). - * - * @param enableSsl the enableSsl value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model MongoDbLinkedServiceTypeProperties")); - } - if (databaseName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property databaseName in model MongoDbLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2CollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2CollectionDatasetTypeProperties.java deleted file mode 100644 index d944f94d0cd84..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2CollectionDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB database dataset properties. */ -@Fluent -public final class MongoDbV2CollectionDatasetTypeProperties { - /* - * The collection name of the MongoDB database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "collection", required = true) - private Object collection; - - /** - * Get the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.collection; - } - - /** - * Set the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbV2CollectionDatasetTypeProperties object itself. - */ - public MongoDbV2CollectionDatasetTypeProperties withCollection(Object collection) { - this.collection = collection; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collection() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collection in model MongoDbV2CollectionDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbV2CollectionDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2LinkedServiceTypeProperties.java deleted file mode 100644 index 4a28ef093573e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2LinkedServiceTypeProperties.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB linked service properties. */ -@Fluent -public final class MongoDbV2LinkedServiceTypeProperties { - /* - * The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The name of the MongoDB database that you want to access. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /** - * Get the connectionString property: The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MongoDbV2LinkedServiceTypeProperties object itself. - */ - public MongoDbV2LinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the database property: The name of the MongoDB database that you want to access. Type: string (or Expression - * with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the MongoDB database that you want to access. Type: string (or Expression - * with resultType string). - * - * @param database the database value to set. - * @return the MongoDbV2LinkedServiceTypeProperties object itself. - */ - public MongoDbV2LinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model MongoDbV2LinkedServiceTypeProperties")); - } - if (database() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model MongoDbV2LinkedServiceTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbV2LinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java deleted file mode 100644 index 0afa7a9e2b6e0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MySQL linked service properties. */ -@Fluent -public final class MySqlLinkedServiceTypeProperties { - /* - * The connection string. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. - * - * @param connectionString the connectionString value to set. - * @return the MySqlLinkedServiceTypeProperties object itself. - */ - public MySqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the MySqlLinkedServiceTypeProperties object itself. - */ - public MySqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MySqlLinkedServiceTypeProperties object itself. - */ - public MySqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model MySqlLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MySqlLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java deleted file mode 100644 index 29a18efad46c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MySql table dataset properties. */ -@Fluent -public final class MySqlTableDatasetTypeProperties { - /* - * The MySQL table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MySqlTableDatasetTypeProperties object itself. - */ - public MySqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java deleted file mode 100644 index 59c1d1eb7b4f7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Netezza linked service properties. */ -@Fluent -public final class NetezzaLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the NetezzaLinkedServiceTypeProperties object itself. - */ - public NetezzaLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the NetezzaLinkedServiceTypeProperties object itself. - */ - public NetezzaLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the NetezzaLinkedServiceTypeProperties object itself. - */ - public NetezzaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java deleted file mode 100644 index 0c2429dfc8b1d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Netezza dataset properties. */ -@Fluent -public final class NetezzaTableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Netezza. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Netezza. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the NetezzaTableDatasetTypeProperties object itself. - */ - public NetezzaTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Netezza. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Netezza. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the NetezzaTableDatasetTypeProperties object itself. - */ - public NetezzaTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the NetezzaTableDatasetTypeProperties object itself. - */ - public NetezzaTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java deleted file mode 100644 index af9ab6fb39f18..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java +++ /dev/null @@ -1,451 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ODataAadServicePrincipalCredentialType; -import com.azure.resourcemanager.datafactory.models.ODataAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** OData linked service properties. */ -@Fluent -public final class ODataLinkedServiceTypeProperties { - /* - * The URL of the OData service endpoint. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Type of authentication used to connect to the OData service. - */ - @JsonProperty(value = "authenticationType") - private ODataAuthenticationType authenticationType; - - /* - * User name of the OData service. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password of the OData service. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The additional HTTP headers in the request to RESTful API used for - * authorization. Type: object (or Expression with resultType object). - */ - @JsonProperty(value = "authHeaders") - private Object authHeaders; - - /* - * Specify the tenant information (domain name or tenant ID) under which - * your application resides. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Specify the application id of your application registered in Azure - * Active Directory. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * Specify the resource you are requesting authorization to use Directory. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "aadResourceId") - private Object aadResourceId; - - /* - * Specify the credential type (key or cert) is used for service principal. - */ - @JsonProperty(value = "aadServicePrincipalCredentialType") - private ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType; - - /* - * Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * Specify the base64 encoded certificate of your application registered in - * Azure Active Directory. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "servicePrincipalEmbeddedCert") - private SecretBase servicePrincipalEmbeddedCert; - - /* - * Specify the password of your certificate if your certificate has a - * password and you are using AadServicePrincipal authentication. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalEmbeddedCertPassword") - private SecretBase servicePrincipalEmbeddedCertPassword; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: The URL of the OData service endpoint. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The URL of the OData service endpoint. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the OData service. - * - * @return the authenticationType value. - */ - public ODataAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the OData service. - * - * @param authenticationType the authenticationType value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAuthenticationType(ODataAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name of the OData service. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name of the OData service. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password of the OData service. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password of the OData service. - * - * @param password the password value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.authHeaders; - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAuthHeaders(Object authHeaders) { - this.authHeaders = authHeaders; - return this; - } - - /** - * Get the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Type: string (or Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Type: string (or Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application id of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: Specify the application id of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the aadResourceId property: Specify the resource you are requesting authorization to use Directory. Type: - * string (or Expression with resultType string). - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.aadResourceId; - } - - /** - * Set the aadResourceId property: Specify the resource you are requesting authorization to use Directory. Type: - * string (or Expression with resultType string). - * - * @param aadResourceId the aadResourceId value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAadResourceId(Object aadResourceId) { - this.aadResourceId = aadResourceId; - return this; - } - - /** - * Get the aadServicePrincipalCredentialType property: Specify the credential type (key or cert) is used for service - * principal. - * - * @return the aadServicePrincipalCredentialType value. - */ - public ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType() { - return this.aadServicePrincipalCredentialType; - } - - /** - * Set the aadServicePrincipalCredentialType property: Specify the credential type (key or cert) is used for service - * principal. - * - * @param aadServicePrincipalCredentialType the aadServicePrincipalCredentialType value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAadServicePrincipalCredentialType( - ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType) { - this.aadServicePrincipalCredentialType = aadServicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application - * registered in Azure Active Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalEmbeddedCert value. - */ - public SecretBase servicePrincipalEmbeddedCert() { - return this.servicePrincipalEmbeddedCert; - } - - /** - * Set the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application - * registered in Azure Active Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalEmbeddedCert the servicePrincipalEmbeddedCert value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalEmbeddedCert(SecretBase servicePrincipalEmbeddedCert) { - this.servicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert; - return this; - } - - /** - * Get the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your - * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalEmbeddedCertPassword value. - */ - public SecretBase servicePrincipalEmbeddedCertPassword() { - return this.servicePrincipalEmbeddedCertPassword; - } - - /** - * Set the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your - * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalEmbeddedCertPassword the servicePrincipalEmbeddedCertPassword value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalEmbeddedCertPassword( - SecretBase servicePrincipalEmbeddedCertPassword) { - this.servicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model ODataLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (servicePrincipalEmbeddedCert() != null) { - servicePrincipalEmbeddedCert().validate(); - } - if (servicePrincipalEmbeddedCertPassword() != null) { - servicePrincipalEmbeddedCertPassword().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ODataLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java deleted file mode 100644 index 0037c0f9aa375..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** OData dataset properties. */ -@Fluent -public final class ODataResourceDatasetTypeProperties { - /* - * The OData resource path. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "path") - private Object path; - - /** - * Get the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the ODataResourceDatasetTypeProperties object itself. - */ - public ODataResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java deleted file mode 100644 index f027851e834a6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ODBC linked service properties. */ -@Fluent -public final class OdbcLinkedServiceTypeProperties { - /* - * The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access credential portion of the connection string specified in - * driver-specific property-value format. - */ - @JsonProperty(value = "credential") - private SecretBase credential; - - /* - * User name for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.credential; - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withCredential(SecretBase credential) { - this.credential = credential; - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model OdbcLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OdbcLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java deleted file mode 100644 index 92075d7bdad73..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ODBC table dataset properties. */ -@Fluent -public final class OdbcTableDatasetTypeProperties { - /* - * The ODBC table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the OdbcTableDatasetTypeProperties object itself. - */ - public OdbcTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java deleted file mode 100644 index ef399b38c3dd4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Office365 dataset properties. */ -@Fluent -public final class Office365DatasetTypeProperties { - /* - * Name of the dataset to extract from Office 365. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "tableName", required = true) - private Object tableName; - - /* - * A predicate expression that can be used to filter the specific rows to - * extract from Office 365. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "predicate") - private Object predicate; - - /** - * Get the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the Office365DatasetTypeProperties object itself. - */ - public Office365DatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @return the predicate value. - */ - public Object predicate() { - return this.predicate; - } - - /** - * Set the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @param predicate the predicate value to set. - * @return the Office365DatasetTypeProperties object itself. - */ - public Office365DatasetTypeProperties withPredicate(Object predicate) { - this.predicate = predicate; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (tableName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tableName in model Office365DatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Office365DatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java deleted file mode 100644 index 1d855527a3ac3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Office365 linked service properties. */ -@Fluent -public final class Office365LinkedServiceTypeProperties { - /* - * Azure tenant ID to which the Office 365 account belongs. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "office365TenantId", required = true) - private Object office365TenantId; - - /* - * Specify the tenant information under which your Azure AD web application - * resides. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalTenantId", required = true) - private Object servicePrincipalTenantId; - - /* - * Specify the application's client ID. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId", required = true) - private Object servicePrincipalId; - - /* - * Specify the application's key. - */ - @JsonProperty(value = "servicePrincipalKey", required = true) - private SecretBase servicePrincipalKey; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the office365TenantId property: Azure tenant ID to which the Office 365 account belongs. Type: string (or - * Expression with resultType string). - * - * @return the office365TenantId value. - */ - public Object office365TenantId() { - return this.office365TenantId; - } - - /** - * Set the office365TenantId property: Azure tenant ID to which the Office 365 account belongs. Type: string (or - * Expression with resultType string). - * - * @param office365TenantId the office365TenantId value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withOffice365TenantId(Object office365TenantId) { - this.office365TenantId = office365TenantId; - return this; - } - - /** - * Get the servicePrincipalTenantId property: Specify the tenant information under which your Azure AD web - * application resides. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalTenantId value. - */ - public Object servicePrincipalTenantId() { - return this.servicePrincipalTenantId; - } - - /** - * Set the servicePrincipalTenantId property: Specify the tenant information under which your Azure AD web - * application resides. Type: string (or Expression with resultType string). - * - * @param servicePrincipalTenantId the servicePrincipalTenantId value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withServicePrincipalTenantId(Object servicePrincipalTenantId) { - this.servicePrincipalTenantId = servicePrincipalTenantId; - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the application's key. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: Specify the application's key. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (office365TenantId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property office365TenantId in model Office365LinkedServiceTypeProperties")); - } - if (servicePrincipalTenantId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalTenantId in model" - + " Office365LinkedServiceTypeProperties")); - } - if (servicePrincipalId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalId in model Office365LinkedServiceTypeProperties")); - } - if (servicePrincipalKey() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalKey in model Office365LinkedServiceTypeProperties")); - } else { - servicePrincipalKey().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Office365LinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java deleted file mode 100644 index 1bdb8451a883c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Factory API operation definition. */ -@Fluent -public final class OperationInner { - /* - * Operation name: {provider}/{resource}/{operation} - */ - @JsonProperty(value = "name") - private String name; - - /* - * The intended executor of the operation. - */ - @JsonProperty(value = "origin") - private String origin; - - /* - * Metadata associated with the operation. - */ - @JsonProperty(value = "display") - private OperationDisplay display; - - /* - * Additional details about the operation. - */ - @JsonProperty(value = "properties") - private OperationProperties innerProperties; - - /** - * Get the name property: Operation name: {provider}/{resource}/{operation}. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Operation name: {provider}/{resource}/{operation}. - * - * @param name the name value to set. - * @return the OperationInner object itself. - */ - public OperationInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the origin property: The intended executor of the operation. - * - * @return the origin value. - */ - public String origin() { - return this.origin; - } - - /** - * Set the origin property: The intended executor of the operation. - * - * @param origin the origin value to set. - * @return the OperationInner object itself. - */ - public OperationInner withOrigin(String origin) { - this.origin = origin; - return this; - } - - /** - * Get the display property: Metadata associated with the operation. - * - * @return the display value. - */ - public OperationDisplay display() { - return this.display; - } - - /** - * Set the display property: Metadata associated with the operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - - /** - * Get the innerProperties property: Additional details about the operation. - * - * @return the innerProperties value. - */ - private OperationProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the serviceSpecification property: Details about a service operation. - * - * @return the serviceSpecification value. - */ - public OperationServiceSpecification serviceSpecification() { - return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification(); - } - - /** - * Set the serviceSpecification property: Details about a service operation. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationInner object itself. - */ - public OperationInner withServiceSpecification(OperationServiceSpecification serviceSpecification) { - if (this.innerProperties() == null) { - this.innerProperties = new OperationProperties(); - } - this.innerProperties().withServiceSpecification(serviceSpecification); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (display() != null) { - display().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java deleted file mode 100644 index dbbca07b6a23c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Additional details about an operation. */ -@Fluent -public final class OperationProperties { - /* - * Details about a service operation. - */ - @JsonProperty(value = "serviceSpecification") - private OperationServiceSpecification serviceSpecification; - - /** - * Get the serviceSpecification property: Details about a service operation. - * - * @return the serviceSpecification value. - */ - public OperationServiceSpecification serviceSpecification() { - return this.serviceSpecification; - } - - /** - * Set the serviceSpecification property: Details about a service operation. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationProperties object itself. - */ - public OperationProperties withServiceSpecification(OperationServiceSpecification serviceSpecification) { - this.serviceSpecification = serviceSpecification; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (serviceSpecification() != null) { - serviceSpecification().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java deleted file mode 100644 index cb3ba7fe73dea..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Oracle Cloud Storage linked service properties. */ -@Fluent -public final class OracleCloudStorageLinkedServiceTypeProperties { - /* - * The access key identifier of the Oracle Cloud Storage Identity and - * Access Management (IAM) user. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the Oracle Cloud - * Storage Connector. This is an optional property; change it only if you - * want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accessKeyId property: The access key identifier of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Oracle Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Oracle Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java deleted file mode 100644 index 4adf205ce6ddd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Oracle database linked service properties. */ -@Fluent -public final class OracleLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the OracleLinkedServiceTypeProperties object itself. - */ - public OracleLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the OracleLinkedServiceTypeProperties object itself. - */ - public OracleLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleLinkedServiceTypeProperties object itself. - */ - public OracleLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model OracleLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OracleLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java deleted file mode 100644 index 14a36dfeceff8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Oracle Service Cloud linked service properties. */ -@Fluent -public final class OracleServiceCloudLinkedServiceTypeProperties { - /* - * The URL of the Oracle Service Cloud instance. - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The user name that you use to access Oracle Service Cloud server. - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * username key. - */ - @JsonProperty(value = "password", required = true) - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The URL of the Oracle Service Cloud instance. - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the Oracle Service Cloud instance. - * - * @param host the host value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the username property: The user name that you use to access Oracle Service Cloud server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Oracle Service Cloud server. - * - * @param username the username value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username key. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username key. - * - * @param password the password value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model OracleServiceCloudLinkedServiceTypeProperties")); - } - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model OracleServiceCloudLinkedServiceTypeProperties")); - } - if (password() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property password in model OracleServiceCloudLinkedServiceTypeProperties")); - } else { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OracleServiceCloudLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java deleted file mode 100644 index 01aa8a8d46563..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** On-premises Oracle dataset properties. */ -@Fluent -public final class OracleTableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the on-premises Oracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the on-premises Oracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the OracleTableDatasetTypeProperties object itself. - */ - public OracleTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the OracleTableDatasetTypeProperties object itself. - */ - public OracleTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the OracleTableDatasetTypeProperties object itself. - */ - public OracleTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java deleted file mode 100644 index 1baa10864d5b1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ORC dataset properties. */ -@Fluent -public final class OrcDatasetTypeProperties { - /* - * The location of the ORC data storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data orcCompressionCodec. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "orcCompressionCodec") - private Object orcCompressionCodec; - - /** - * Get the location property: The location of the ORC data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the ORC data storage. - * - * @param location the location value to set. - * @return the OrcDatasetTypeProperties object itself. - */ - public OrcDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the orcCompressionCodec value. - */ - public Object orcCompressionCodec() { - return this.orcCompressionCodec; - } - - /** - * Set the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @param orcCompressionCodec the orcCompressionCodec value to set. - * @return the OrcDatasetTypeProperties object itself. - */ - public OrcDatasetTypeProperties withOrcCompressionCodec(Object orcCompressionCodec) { - this.orcCompressionCodec = orcCompressionCodec; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model OrcDatasetTypeProperties")); - } else { - location().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OrcDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java deleted file mode 100644 index 75d50546090c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Parquet dataset properties. */ -@Fluent -public final class ParquetDatasetTypeProperties { - /* - * The location of the parquet storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data compressionCodec. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "compressionCodec") - private Object compressionCodec; - - /** - * Get the location property: The location of the parquet storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the parquet storage. - * - * @param location the location value to set. - * @return the ParquetDatasetTypeProperties object itself. - */ - public ParquetDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the compressionCodec value. - */ - public Object compressionCodec() { - return this.compressionCodec; - } - - /** - * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @param compressionCodec the compressionCodec value to set. - * @return the ParquetDatasetTypeProperties object itself. - */ - public ParquetDatasetTypeProperties withCompressionCodec(Object compressionCodec) { - this.compressionCodec = compressionCodec; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model ParquetDatasetTypeProperties")); - } else { - location().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ParquetDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java deleted file mode 100644 index 4ee278231b91e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Paypal Service linked service properties. */ -@Fluent -public final class PaypalLinkedServiceTypeProperties { - /* - * The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The client ID associated with your PayPal application. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret associated with your PayPal application. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). - * - * @param host the host value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the clientId property: The client ID associated with your PayPal application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with your PayPal application. - * - * @param clientId the clientId value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your PayPal application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with your PayPal application. - * - * @param clientSecret the clientSecret value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model PaypalLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model PaypalLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PaypalLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java deleted file mode 100644 index 5386ac5f5f7aa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Phoenix Dataset Properties. */ -@Fluent -public final class PhoenixDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Phoenix. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Phoenix. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PhoenixDatasetTypeProperties object itself. - */ - public PhoenixDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Phoenix. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Phoenix. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PhoenixDatasetTypeProperties object itself. - */ - public PhoenixDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PhoenixDatasetTypeProperties object itself. - */ - public PhoenixDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java deleted file mode 100644 index e916e85fd2c9e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.PhoenixAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Phoenix server linked service properties. */ -@Fluent -public final class PhoenixLinkedServiceTypeProperties { - /* - * The IP address or host name of the Phoenix server. (i.e. - * 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Phoenix server uses to listen for client - * connections. The default value is 8765. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if - * using WindowsAzureHDInsightService. - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * The authentication mechanism used to connect to the Phoenix server. - */ - @JsonProperty(value = "authenticationType", required = true) - private PhoenixAuthenticationType authenticationType; - - /* - * The user name used to connect to the Phoenix server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Phoenix server uses to listen for client connections. The default - * value is 8765. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Phoenix server uses to listen for client connections. The default - * value is 8765. - * - * @param port the port value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. - * - * @param httpPath the httpPath value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism used to connect to the Phoenix server. - * - * @return the authenticationType value. - */ - public PhoenixAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication mechanism used to connect to the Phoenix server. - * - * @param authenticationType the authenticationType value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withAuthenticationType(PhoenixAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the Phoenix server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the Phoenix server. - * - * @param username the username value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model PhoenixLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model PhoenixLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PhoenixLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Pipeline.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Pipeline.java deleted file mode 100644 index ac76e4cab55a6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Pipeline.java +++ /dev/null @@ -1,297 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** A data factory pipeline. */ -@Fluent -public final class Pipeline { - /* - * The description of the pipeline. - */ - @JsonProperty(value = "description") - private String description; - - /* - * List of activities in pipeline. - */ - @JsonProperty(value = "activities") - private List activities; - - /* - * List of parameters for pipeline. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * List of variables for pipeline. - */ - @JsonProperty(value = "variables") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map variables; - - /* - * The max number of concurrent runs for the pipeline. - */ - @JsonProperty(value = "concurrency") - private Integer concurrency; - - /* - * List of tags that can be used for describing the Pipeline. - */ - @JsonProperty(value = "annotations") - private List annotations; - - /* - * Dimensions emitted by Pipeline. - */ - @JsonProperty(value = "runDimensions") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map runDimensions; - - /* - * The folder that this Pipeline is in. If not specified, Pipeline will - * appear at the root level. - */ - @JsonProperty(value = "folder") - private PipelineFolder folder; - - /* - * Pipeline Policy. - */ - @JsonProperty(value = "policy") - private PipelinePolicy policy; - - /** - * Get the description property: The description of the pipeline. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The description of the pipeline. - * - * @param description the description value to set. - * @return the Pipeline object itself. - */ - public Pipeline withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the activities property: List of activities in pipeline. - * - * @return the activities value. - */ - public List activities() { - return this.activities; - } - - /** - * Set the activities property: List of activities in pipeline. - * - * @param activities the activities value to set. - * @return the Pipeline object itself. - */ - public Pipeline withActivities(List activities) { - this.activities = activities; - return this; - } - - /** - * Get the parameters property: List of parameters for pipeline. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: List of parameters for pipeline. - * - * @param parameters the parameters value to set. - * @return the Pipeline object itself. - */ - public Pipeline withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the variables property: List of variables for pipeline. - * - * @return the variables value. - */ - public Map variables() { - return this.variables; - } - - /** - * Set the variables property: List of variables for pipeline. - * - * @param variables the variables value to set. - * @return the Pipeline object itself. - */ - public Pipeline withVariables(Map variables) { - this.variables = variables; - return this; - } - - /** - * Get the concurrency property: The max number of concurrent runs for the pipeline. - * - * @return the concurrency value. - */ - public Integer concurrency() { - return this.concurrency; - } - - /** - * Set the concurrency property: The max number of concurrent runs for the pipeline. - * - * @param concurrency the concurrency value to set. - * @return the Pipeline object itself. - */ - public Pipeline withConcurrency(Integer concurrency) { - this.concurrency = concurrency; - return this; - } - - /** - * Get the annotations property: List of tags that can be used for describing the Pipeline. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: List of tags that can be used for describing the Pipeline. - * - * @param annotations the annotations value to set. - * @return the Pipeline object itself. - */ - public Pipeline withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the runDimensions property: Dimensions emitted by Pipeline. - * - * @return the runDimensions value. - */ - public Map runDimensions() { - return this.runDimensions; - } - - /** - * Set the runDimensions property: Dimensions emitted by Pipeline. - * - * @param runDimensions the runDimensions value to set. - * @return the Pipeline object itself. - */ - public Pipeline withRunDimensions(Map runDimensions) { - this.runDimensions = runDimensions; - return this; - } - - /** - * Get the folder property: The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * - * @return the folder value. - */ - public PipelineFolder folder() { - return this.folder; - } - - /** - * Set the folder property: The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * - * @param folder the folder value to set. - * @return the Pipeline object itself. - */ - public Pipeline withFolder(PipelineFolder folder) { - this.folder = folder; - return this; - } - - /** - * Get the policy property: Pipeline Policy. - * - * @return the policy value. - */ - public PipelinePolicy policy() { - return this.policy; - } - - /** - * Set the policy property: Pipeline Policy. - * - * @param policy the policy value to set. - * @return the Pipeline object itself. - */ - public Pipeline withPolicy(PipelinePolicy policy) { - this.policy = policy; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (activities() != null) { - activities().forEach(e -> e.validate()); - } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (variables() != null) { - variables() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (folder() != null) { - folder().validate(); - } - if (policy() != null) { - policy().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineResourceInner.java deleted file mode 100644 index 8f23a72cd7845..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineResourceInner.java +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Pipeline resource type. */ -@Fluent -public final class PipelineResourceInner extends SubResource { - /* - * Properties of the pipeline. - */ - @JsonProperty(value = "properties", required = true) - private Pipeline innerProperties = new Pipeline(); - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /* - * Pipeline resource type. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the innerProperties property: Properties of the pipeline. - * - * @return the innerProperties value. - */ - private Pipeline innerProperties() { - return this.innerProperties; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** - * Get the additionalProperties property: Pipeline resource type. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Pipeline resource type. - * - * @param additionalProperties the additionalProperties value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** {@inheritDoc} */ - @Override - public PipelineResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Get the description property: The description of the pipeline. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Set the description property: The description of the pipeline. - * - * @param description the description value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withDescription(description); - return this; - } - - /** - * Get the activities property: List of activities in pipeline. - * - * @return the activities value. - */ - public List activities() { - return this.innerProperties() == null ? null : this.innerProperties().activities(); - } - - /** - * Set the activities property: List of activities in pipeline. - * - * @param activities the activities value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withActivities(List activities) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withActivities(activities); - return this; - } - - /** - * Get the parameters property: List of parameters for pipeline. - * - * @return the parameters value. - */ - public Map parameters() { - return this.innerProperties() == null ? null : this.innerProperties().parameters(); - } - - /** - * Set the parameters property: List of parameters for pipeline. - * - * @param parameters the parameters value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withParameters(Map parameters) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withParameters(parameters); - return this; - } - - /** - * Get the variables property: List of variables for pipeline. - * - * @return the variables value. - */ - public Map variables() { - return this.innerProperties() == null ? null : this.innerProperties().variables(); - } - - /** - * Set the variables property: List of variables for pipeline. - * - * @param variables the variables value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withVariables(Map variables) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withVariables(variables); - return this; - } - - /** - * Get the concurrency property: The max number of concurrent runs for the pipeline. - * - * @return the concurrency value. - */ - public Integer concurrency() { - return this.innerProperties() == null ? null : this.innerProperties().concurrency(); - } - - /** - * Set the concurrency property: The max number of concurrent runs for the pipeline. - * - * @param concurrency the concurrency value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withConcurrency(Integer concurrency) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withConcurrency(concurrency); - return this; - } - - /** - * Get the annotations property: List of tags that can be used for describing the Pipeline. - * - * @return the annotations value. - */ - public List annotations() { - return this.innerProperties() == null ? null : this.innerProperties().annotations(); - } - - /** - * Set the annotations property: List of tags that can be used for describing the Pipeline. - * - * @param annotations the annotations value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withAnnotations(List annotations) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withAnnotations(annotations); - return this; - } - - /** - * Get the runDimensions property: Dimensions emitted by Pipeline. - * - * @return the runDimensions value. - */ - public Map runDimensions() { - return this.innerProperties() == null ? null : this.innerProperties().runDimensions(); - } - - /** - * Set the runDimensions property: Dimensions emitted by Pipeline. - * - * @param runDimensions the runDimensions value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withRunDimensions(Map runDimensions) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withRunDimensions(runDimensions); - return this; - } - - /** - * Get the folder property: The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * - * @return the folder value. - */ - public PipelineFolder folder() { - return this.innerProperties() == null ? null : this.innerProperties().folder(); - } - - /** - * Set the folder property: The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * - * @param folder the folder value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withFolder(PipelineFolder folder) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withFolder(folder); - return this; - } - - /** - * Get the policy property: Pipeline Policy. - * - * @return the policy value. - */ - public PipelinePolicy policy() { - return this.innerProperties() == null ? null : this.innerProperties().policy(); - } - - /** - * Set the policy property: Pipeline Policy. - * - * @param policy the policy value to set. - * @return the PipelineResourceInner object itself. - */ - public PipelineResourceInner withPolicy(PipelinePolicy policy) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withPolicy(policy); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model PipelineResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PipelineResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineRunInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineRunInner.java deleted file mode 100644 index 69cdff0b0a7b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineRunInner.java +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.PipelineRunInvokedBy; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; - -/** Information about a pipeline run. */ -@Fluent -public final class PipelineRunInner { - /* - * Identifier of a run. - */ - @JsonProperty(value = "runId", access = JsonProperty.Access.WRITE_ONLY) - private String runId; - - /* - * Identifier that correlates all the recovery runs of a pipeline run. - */ - @JsonProperty(value = "runGroupId", access = JsonProperty.Access.WRITE_ONLY) - private String runGroupId; - - /* - * Indicates if the recovered pipeline run is the latest in its group. - */ - @JsonProperty(value = "isLatest", access = JsonProperty.Access.WRITE_ONLY) - private Boolean isLatest; - - /* - * The pipeline name. - */ - @JsonProperty(value = "pipelineName", access = JsonProperty.Access.WRITE_ONLY) - private String pipelineName; - - /* - * The full or partial list of parameter name, value pair used in the - * pipeline run. - */ - @JsonProperty(value = "parameters", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * Run dimensions emitted by Pipeline run. - */ - @JsonProperty(value = "runDimensions", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map runDimensions; - - /* - * Entity that started the pipeline run. - */ - @JsonProperty(value = "invokedBy", access = JsonProperty.Access.WRITE_ONLY) - private PipelineRunInvokedBy invokedBy; - - /* - * The last updated timestamp for the pipeline run event in ISO8601 format. - */ - @JsonProperty(value = "lastUpdated", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastUpdated; - - /* - * The start time of a pipeline run in ISO8601 format. - */ - @JsonProperty(value = "runStart", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime runStart; - - /* - * The end time of a pipeline run in ISO8601 format. - */ - @JsonProperty(value = "runEnd", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime runEnd; - - /* - * The duration of a pipeline run. - */ - @JsonProperty(value = "durationInMs", access = JsonProperty.Access.WRITE_ONLY) - private Integer durationInMs; - - /* - * The status of a pipeline run. Possible values: Queued, InProgress, - * Succeeded, Failed, Canceling, Cancelled - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private String status; - - /* - * The message from a pipeline run. - */ - @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) - private String message; - - /* - * Information about a pipeline run. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the runId property: Identifier of a run. - * - * @return the runId value. - */ - public String runId() { - return this.runId; - } - - /** - * Get the runGroupId property: Identifier that correlates all the recovery runs of a pipeline run. - * - * @return the runGroupId value. - */ - public String runGroupId() { - return this.runGroupId; - } - - /** - * Get the isLatest property: Indicates if the recovered pipeline run is the latest in its group. - * - * @return the isLatest value. - */ - public Boolean isLatest() { - return this.isLatest; - } - - /** - * Get the pipelineName property: The pipeline name. - * - * @return the pipelineName value. - */ - public String pipelineName() { - return this.pipelineName; - } - - /** - * Get the parameters property: The full or partial list of parameter name, value pair used in the pipeline run. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Get the runDimensions property: Run dimensions emitted by Pipeline run. - * - * @return the runDimensions value. - */ - public Map runDimensions() { - return this.runDimensions; - } - - /** - * Get the invokedBy property: Entity that started the pipeline run. - * - * @return the invokedBy value. - */ - public PipelineRunInvokedBy invokedBy() { - return this.invokedBy; - } - - /** - * Get the lastUpdated property: The last updated timestamp for the pipeline run event in ISO8601 format. - * - * @return the lastUpdated value. - */ - public OffsetDateTime lastUpdated() { - return this.lastUpdated; - } - - /** - * Get the runStart property: The start time of a pipeline run in ISO8601 format. - * - * @return the runStart value. - */ - public OffsetDateTime runStart() { - return this.runStart; - } - - /** - * Get the runEnd property: The end time of a pipeline run in ISO8601 format. - * - * @return the runEnd value. - */ - public OffsetDateTime runEnd() { - return this.runEnd; - } - - /** - * Get the durationInMs property: The duration of a pipeline run. - * - * @return the durationInMs value. - */ - public Integer durationInMs() { - return this.durationInMs; - } - - /** - * Get the status property: The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, - * Canceling, Cancelled. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Get the message property: The message from a pipeline run. - * - * @return the message value. - */ - public String message() { - return this.message; - } - - /** - * Get the additionalProperties property: Information about a pipeline run. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Information about a pipeline run. - * - * @param additionalProperties the additionalProperties value to set. - * @return the PipelineRunInner object itself. - */ - public PipelineRunInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (invokedBy() != null) { - invokedBy().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineRunsQueryResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineRunsQueryResponseInner.java deleted file mode 100644 index 0a86f3eb05f29..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineRunsQueryResponseInner.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list pipeline runs. */ -@Fluent -public final class PipelineRunsQueryResponseInner { - /* - * List of pipeline runs. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - */ - @JsonProperty(value = "continuationToken") - private String continuationToken; - - /** - * Get the value property: List of pipeline runs. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of pipeline runs. - * - * @param value the value value to set. - * @return the PipelineRunsQueryResponseInner object itself. - */ - public PipelineRunsQueryResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @return the continuationToken value. - */ - public String continuationToken() { - return this.continuationToken; - } - - /** - * Set the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @param continuationToken the continuationToken value to set. - * @return the PipelineRunsQueryResponseInner object itself. - */ - public PipelineRunsQueryResponseInner withContinuationToken(String continuationToken) { - this.continuationToken = continuationToken; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model PipelineRunsQueryResponseInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PipelineRunsQueryResponseInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlLinkedServiceTypeProperties.java deleted file mode 100644 index 10a3600fab76a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** PostgreSQL linked service properties. */ -@Fluent -public final class PostgreSqlLinkedServiceTypeProperties { - /* - * The connection string. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. - * - * @param connectionString the connectionString value to set. - * @return the PostgreSqlLinkedServiceTypeProperties object itself. - */ - public PostgreSqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the PostgreSqlLinkedServiceTypeProperties object itself. - */ - public PostgreSqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PostgreSqlLinkedServiceTypeProperties object itself. - */ - public PostgreSqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model PostgreSqlLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PostgreSqlLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java deleted file mode 100644 index 26ff1263972aa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** PostgreSQL table dataset properties. */ -@Fluent -public final class PostgreSqlTableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The PostgreSQL table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The PostgreSQL schema name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PostgreSqlTableDatasetTypeProperties object itself. - */ - public PostgreSqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The PostgreSQL table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The PostgreSQL table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PostgreSqlTableDatasetTypeProperties object itself. - */ - public PostgreSqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PostgreSqlTableDatasetTypeProperties object itself. - */ - public PostgreSqlTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PowerQueryTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PowerQueryTypeProperties.java deleted file mode 100644 index b6340c061e8f3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PowerQueryTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Power Query data flow type properties. */ -@Fluent -public final class PowerQueryTypeProperties { - /* - * List of sources in Power Query. - */ - @JsonProperty(value = "sources") - private List sources; - - /* - * Power query mashup script. - */ - @JsonProperty(value = "script") - private String script; - - /* - * Locale of the Power query mashup document. - */ - @JsonProperty(value = "documentLocale") - private String documentLocale; - - /** - * Get the sources property: List of sources in Power Query. - * - * @return the sources value. - */ - public List sources() { - return this.sources; - } - - /** - * Set the sources property: List of sources in Power Query. - * - * @param sources the sources value to set. - * @return the PowerQueryTypeProperties object itself. - */ - public PowerQueryTypeProperties withSources(List sources) { - this.sources = sources; - return this; - } - - /** - * Get the script property: Power query mashup script. - * - * @return the script value. - */ - public String script() { - return this.script; - } - - /** - * Set the script property: Power query mashup script. - * - * @param script the script value to set. - * @return the PowerQueryTypeProperties object itself. - */ - public PowerQueryTypeProperties withScript(String script) { - this.script = script; - return this; - } - - /** - * Get the documentLocale property: Locale of the Power query mashup document. - * - * @return the documentLocale value. - */ - public String documentLocale() { - return this.documentLocale; - } - - /** - * Set the documentLocale property: Locale of the Power query mashup document. - * - * @param documentLocale the documentLocale value to set. - * @return the PowerQueryTypeProperties object itself. - */ - public PowerQueryTypeProperties withDocumentLocale(String documentLocale) { - this.documentLocale = documentLocale; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sources() != null) { - sources().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java deleted file mode 100644 index 28022b65dfeac..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Presto Dataset Properties. */ -@Fluent -public final class PrestoDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Presto. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Presto. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PrestoDatasetTypeProperties object itself. - */ - public PrestoDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Presto. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Presto. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PrestoDatasetTypeProperties object itself. - */ - public PrestoDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PrestoDatasetTypeProperties object itself. - */ - public PrestoDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java deleted file mode 100644 index 473023f3a9e70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,447 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.PrestoAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Presto server linked service properties. */ -@Fluent -public final class PrestoLinkedServiceTypeProperties { - /* - * The IP address or host name of the Presto server. (i.e. 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The version of the Presto server. (i.e. 0.148-t) - */ - @JsonProperty(value = "serverVersion", required = true) - private Object serverVersion; - - /* - * The catalog context for all request against the server. - */ - @JsonProperty(value = "catalog", required = true) - private Object catalog; - - /* - * The TCP port that the Presto server uses to listen for client - * connections. The default value is 8080. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication mechanism used to connect to the Presto server. - */ - @JsonProperty(value = "authenticationType", required = true) - private PrestoAuthenticationType authenticationType; - - /* - * The user name used to connect to the Presto server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The local time zone used by the connection. Valid values for this option - * are specified in the IANA Time Zone Database. The default value is the - * system time zone. - */ - @JsonProperty(value = "timeZoneID") - private Object timeZoneId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the serverVersion property: The version of the Presto server. (i.e. 0.148-t). - * - * @return the serverVersion value. - */ - public Object serverVersion() { - return this.serverVersion; - } - - /** - * Set the serverVersion property: The version of the Presto server. (i.e. 0.148-t). - * - * @param serverVersion the serverVersion value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withServerVersion(Object serverVersion) { - this.serverVersion = serverVersion; - return this; - } - - /** - * Get the catalog property: The catalog context for all request against the server. - * - * @return the catalog value. - */ - public Object catalog() { - return this.catalog; - } - - /** - * Set the catalog property: The catalog context for all request against the server. - * - * @param catalog the catalog value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withCatalog(Object catalog) { - this.catalog = catalog; - return this; - } - - /** - * Get the port property: The TCP port that the Presto server uses to listen for client connections. The default - * value is 8080. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Presto server uses to listen for client connections. The default - * value is 8080. - * - * @param port the port value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism used to connect to the Presto server. - * - * @return the authenticationType value. - */ - public PrestoAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication mechanism used to connect to the Presto server. - * - * @param authenticationType the authenticationType value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withAuthenticationType(PrestoAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the Presto server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the Presto server. - * - * @param username the username value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the timeZoneId property: The local time zone used by the connection. Valid values for this option are - * specified in the IANA Time Zone Database. The default value is the system time zone. - * - * @return the timeZoneId value. - */ - public Object timeZoneId() { - return this.timeZoneId; - } - - /** - * Set the timeZoneId property: The local time zone used by the connection. Valid values for this option are - * specified in the IANA Time Zone Database. The default value is the system time zone. - * - * @param timeZoneId the timeZoneId value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withTimeZoneId(Object timeZoneId) { - this.timeZoneId = timeZoneId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model PrestoLinkedServiceTypeProperties")); - } - if (serverVersion() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property serverVersion in model PrestoLinkedServiceTypeProperties")); - } - if (catalog() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property catalog in model PrestoLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model PrestoLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrestoLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrivateEndpointConnectionResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrivateEndpointConnectionResourceInner.java deleted file mode 100644 index 7b6f4d43878af..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrivateEndpointConnectionResourceInner.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Private Endpoint Connection ARM resource. */ -@Fluent -public final class PrivateEndpointConnectionResourceInner extends SubResource { - /* - * Core resource properties - */ - @JsonProperty(value = "properties") - private RemotePrivateEndpointConnection properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Core resource properties. - * - * @return the properties value. - */ - public RemotePrivateEndpointConnection properties() { - return this.properties; - } - - /** - * Set the properties property: Core resource properties. - * - * @param properties the properties value to set. - * @return the PrivateEndpointConnectionResourceInner object itself. - */ - public PrivateEndpointConnectionResourceInner withProperties(RemotePrivateEndpointConnection properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public PrivateEndpointConnectionResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrivateLinkResourcesWrapperInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrivateLinkResourcesWrapperInner.java deleted file mode 100644 index b24bf21027b4d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrivateLinkResourcesWrapperInner.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Wrapper for a collection of private link resources. */ -@Fluent -public final class PrivateLinkResourcesWrapperInner { - /* - * The value property. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /** - * Get the value property: The value property. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The value property. - * - * @param value the value value to set. - * @return the PrivateLinkResourcesWrapperInner object itself. - */ - public PrivateLinkResourcesWrapperInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model PrivateLinkResourcesWrapperInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesWrapperInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java deleted file mode 100644 index 885cc4e5ae9f8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java +++ /dev/null @@ -1,274 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** QuickBooks server linked service properties. */ -@Fluent -public final class QuickBooksLinkedServiceTypeProperties { - /* - * Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) - */ - @JsonProperty(value = "endpoint") - private Object endpoint; - - /* - * The company ID of the QuickBooks company to authorize. - */ - @JsonProperty(value = "companyId") - private Object companyId; - - /* - * The consumer key for OAuth 1.0 authentication. - */ - @JsonProperty(value = "consumerKey") - private Object consumerKey; - - /* - * The consumer secret for OAuth 1.0 authentication. - */ - @JsonProperty(value = "consumerSecret") - private SecretBase consumerSecret; - - /* - * The access token for OAuth 1.0 authentication. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * The access token secret for OAuth 1.0 authentication. - */ - @JsonProperty(value = "accessTokenSecret") - private SecretBase accessTokenSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - * - * @param endpoint the endpoint value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the companyId property: The company ID of the QuickBooks company to authorize. - * - * @return the companyId value. - */ - public Object companyId() { - return this.companyId; - } - - /** - * Set the companyId property: The company ID of the QuickBooks company to authorize. - * - * @param companyId the companyId value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withCompanyId(Object companyId) { - this.companyId = companyId; - return this; - } - - /** - * Get the consumerKey property: The consumer key for OAuth 1.0 authentication. - * - * @return the consumerKey value. - */ - public Object consumerKey() { - return this.consumerKey; - } - - /** - * Set the consumerKey property: The consumer key for OAuth 1.0 authentication. - * - * @param consumerKey the consumerKey value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withConsumerKey(Object consumerKey) { - this.consumerKey = consumerKey; - return this; - } - - /** - * Get the consumerSecret property: The consumer secret for OAuth 1.0 authentication. - * - * @return the consumerSecret value. - */ - public SecretBase consumerSecret() { - return this.consumerSecret; - } - - /** - * Set the consumerSecret property: The consumer secret for OAuth 1.0 authentication. - * - * @param consumerSecret the consumerSecret value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withConsumerSecret(SecretBase consumerSecret) { - this.consumerSecret = consumerSecret; - return this; - } - - /** - * Get the accessToken property: The access token for OAuth 1.0 authentication. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token for OAuth 1.0 authentication. - * - * @param accessToken the accessToken value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the accessTokenSecret property: The access token secret for OAuth 1.0 authentication. - * - * @return the accessTokenSecret value. - */ - public SecretBase accessTokenSecret() { - return this.accessTokenSecret; - } - - /** - * Set the accessTokenSecret property: The access token secret for OAuth 1.0 authentication. - * - * @param accessTokenSecret the accessTokenSecret value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withAccessTokenSecret(SecretBase accessTokenSecret) { - this.accessTokenSecret = accessTokenSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (consumerSecret() != null) { - consumerSecret().validate(); - } - if (accessToken() != null) { - accessToken().validate(); - } - if (accessTokenSecret() != null) { - accessTokenSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickbaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickbaseLinkedServiceTypeProperties.java deleted file mode 100644 index 3fd12b95f6058..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickbaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Quickbase linked service type properties. */ -@Fluent -public final class QuickbaseLinkedServiceTypeProperties { - /* - * The url to connect Quickbase source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The user token for the Quickbase source. - */ - @JsonProperty(value = "userToken", required = true) - private SecretBase userToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the QuickbaseLinkedServiceTypeProperties object itself. - */ - public QuickbaseLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the userToken property: The user token for the Quickbase source. - * - * @return the userToken value. - */ - public SecretBase userToken() { - return this.userToken; - } - - /** - * Set the userToken property: The user token for the Quickbase source. - * - * @param userToken the userToken value to set. - * @return the QuickbaseLinkedServiceTypeProperties object itself. - */ - public QuickbaseLinkedServiceTypeProperties withUserToken(SecretBase userToken) { - this.userToken = userToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the QuickbaseLinkedServiceTypeProperties object itself. - */ - public QuickbaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model QuickbaseLinkedServiceTypeProperties")); - } - if (userToken() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property userToken in model QuickbaseLinkedServiceTypeProperties")); - } else { - userToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(QuickbaseLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java deleted file mode 100644 index 8ca6069e1be90..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Relational table dataset properties. */ -@Fluent -public final class RelationalTableDatasetTypeProperties { - /* - * The relational table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the RelationalTableDatasetTypeProperties object itself. - */ - public RelationalTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RerunTumblingWindowTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RerunTumblingWindowTriggerTypeProperties.java deleted file mode 100644 index a10f3d7e6238f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RerunTumblingWindowTriggerTypeProperties.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; - -/** Rerun Trigger properties. */ -@Fluent -public final class RerunTumblingWindowTriggerTypeProperties { - /* - * The parent trigger reference. - */ - @JsonProperty(value = "parentTrigger", required = true) - private Object parentTrigger; - - /* - * The start time for the time period for which restatement is initiated. - * Only UTC time is currently supported. - */ - @JsonProperty(value = "requestedStartTime", required = true) - private OffsetDateTime requestedStartTime; - - /* - * The end time for the time period for which restatement is initiated. - * Only UTC time is currently supported. - */ - @JsonProperty(value = "requestedEndTime", required = true) - private OffsetDateTime requestedEndTime; - - /* - * The max number of parallel time windows (ready for execution) for which - * a rerun is triggered. - */ - @JsonProperty(value = "rerunConcurrency", required = true) - private int rerunConcurrency; - - /** - * Get the parentTrigger property: The parent trigger reference. - * - * @return the parentTrigger value. - */ - public Object parentTrigger() { - return this.parentTrigger; - } - - /** - * Set the parentTrigger property: The parent trigger reference. - * - * @param parentTrigger the parentTrigger value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withParentTrigger(Object parentTrigger) { - this.parentTrigger = parentTrigger; - return this; - } - - /** - * Get the requestedStartTime property: The start time for the time period for which restatement is initiated. Only - * UTC time is currently supported. - * - * @return the requestedStartTime value. - */ - public OffsetDateTime requestedStartTime() { - return this.requestedStartTime; - } - - /** - * Set the requestedStartTime property: The start time for the time period for which restatement is initiated. Only - * UTC time is currently supported. - * - * @param requestedStartTime the requestedStartTime value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withRequestedStartTime(OffsetDateTime requestedStartTime) { - this.requestedStartTime = requestedStartTime; - return this; - } - - /** - * Get the requestedEndTime property: The end time for the time period for which restatement is initiated. Only UTC - * time is currently supported. - * - * @return the requestedEndTime value. - */ - public OffsetDateTime requestedEndTime() { - return this.requestedEndTime; - } - - /** - * Set the requestedEndTime property: The end time for the time period for which restatement is initiated. Only UTC - * time is currently supported. - * - * @param requestedEndTime the requestedEndTime value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withRequestedEndTime(OffsetDateTime requestedEndTime) { - this.requestedEndTime = requestedEndTime; - return this; - } - - /** - * Get the rerunConcurrency property: The max number of parallel time windows (ready for execution) for which a - * rerun is triggered. - * - * @return the rerunConcurrency value. - */ - public int rerunConcurrency() { - return this.rerunConcurrency; - } - - /** - * Set the rerunConcurrency property: The max number of parallel time windows (ready for execution) for which a - * rerun is triggered. - * - * @param rerunConcurrency the rerunConcurrency value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withRerunConcurrency(int rerunConcurrency) { - this.rerunConcurrency = rerunConcurrency; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (parentTrigger() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property parentTrigger in model RerunTumblingWindowTriggerTypeProperties")); - } - if (requestedStartTime() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property requestedStartTime in model" - + " RerunTumblingWindowTriggerTypeProperties")); - } - if (requestedEndTime() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property requestedEndTime in model" - + " RerunTumblingWindowTriggerTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RerunTumblingWindowTriggerTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java deleted file mode 100644 index 2d29e11881564..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Responsys linked service properties. */ -@Fluent -public final class ResponsysLinkedServiceTypeProperties { - /* - * The endpoint of the Responsys server. - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The client ID associated with the Responsys application. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret associated with the Responsys application. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Responsys server. - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Responsys server. - * - * @param endpoint the endpoint value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the clientId property: The client ID associated with the Responsys application. Type: string (or Expression - * with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with the Responsys application. Type: string (or Expression - * with resultType string). - * - * @param clientId the clientId value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with the Responsys application. Type: string (or - * Expression with resultType string). - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with the Responsys application. Type: string (or - * Expression with resultType string). - * - * @param clientSecret the clientSecret value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model ResponsysLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model ResponsysLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ResponsysLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java deleted file mode 100644 index 1c7368a858607..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class RestResourceDatasetTypeProperties { - /* - * The relative URL to the resource that the RESTful API provides. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "relativeUrl") - private Object relativeUrl; - - /* - * The HTTP method used to call the RESTful API. The default is GET. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestMethod") - private Object requestMethod; - - /* - * The HTTP request body to the RESTful API if requestMethod is POST. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestBody") - private Object requestBody; - - /* - * The additional HTTP headers in the request to the RESTful API. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "additionalHeaders") - private Object additionalHeaders; - - /* - * The pagination rules to compose next page requests. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "paginationRules") - private Object paginationRules; - - /** - * Get the relativeUrl property: The relative URL to the resource that the RESTful API provides. Type: string (or - * Expression with resultType string). - * - * @return the relativeUrl value. - */ - public Object relativeUrl() { - return this.relativeUrl; - } - - /** - * Set the relativeUrl property: The relative URL to the resource that the RESTful API provides. Type: string (or - * Expression with resultType string). - * - * @param relativeUrl the relativeUrl value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withRelativeUrl(Object relativeUrl) { - this.relativeUrl = relativeUrl; - return this; - } - - /** - * Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.requestMethod; - } - - /** - * Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @param requestMethod the requestMethod value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withRequestMethod(Object requestMethod) { - this.requestMethod = requestMethod; - return this; - } - - /** - * Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.requestBody; - } - - /** - * Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withRequestBody(Object requestBody) { - this.requestBody = requestBody; - return this; - } - - /** - * Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.additionalHeaders; - } - - /** - * Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withAdditionalHeaders(Object additionalHeaders) { - this.additionalHeaders = additionalHeaders; - return this; - } - - /** - * Get the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @return the paginationRules value. - */ - public Object paginationRules() { - return this.paginationRules; - } - - /** - * Set the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @param paginationRules the paginationRules value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withPaginationRules(Object paginationRules) { - this.paginationRules = paginationRules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java deleted file mode 100644 index bd88fa0800d87..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java +++ /dev/null @@ -1,411 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.RestServiceAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Rest Service linked service properties. */ -@Fluent -public final class RestServiceLinkedServiceTypeProperties { - /* - * The base URL of the REST service. - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Whether to validate server side SSL certificate when connecting to the - * endpoint.The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "enableServerCertificateValidation") - private Object enableServerCertificateValidation; - - /* - * Type of authentication used to connect to the REST service. - */ - @JsonProperty(value = "authenticationType", required = true) - private RestServiceAuthenticationType authenticationType; - - /* - * The user name used in Basic authentication type. - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The password used in Basic authentication type. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The additional HTTP headers in the request to RESTful API used for - * authorization. Type: object (or Expression with resultType object). - */ - @JsonProperty(value = "authHeaders") - private Object authHeaders; - - /* - * The application's client ID used in AadServicePrincipal authentication - * type. - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The application's key used in AadServicePrincipal authentication type. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The tenant information (domain name or tenant ID) used in - * AadServicePrincipal authentication type under which your application - * resides. - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The resource you are requesting authorization to use. - */ - @JsonProperty(value = "aadResourceId") - private Object aadResourceId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the url property: The base URL of the REST service. - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The base URL of the REST service. - * - * @param url the url value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the enableServerCertificateValidation property: Whether to validate server side SSL certificate when - * connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.enableServerCertificateValidation; - } - - /** - * Set the enableServerCertificateValidation property: Whether to validate server side SSL certificate when - * connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withEnableServerCertificateValidation( - Object enableServerCertificateValidation) { - this.enableServerCertificateValidation = enableServerCertificateValidation; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the REST service. - * - * @return the authenticationType value. - */ - public RestServiceAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the REST service. - * - * @param authenticationType the authenticationType value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAuthenticationType( - RestServiceAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used in Basic authentication type. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used in Basic authentication type. - * - * @param username the username value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password used in Basic authentication type. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password used in Basic authentication type. - * - * @param password the password value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.authHeaders; - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAuthHeaders(Object authHeaders) { - this.authHeaders = authHeaders; - return this; - } - - /** - * Get the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type. - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type. - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal - * authentication type under which your application resides. - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal - * authentication type under which your application resides. - * - * @param tenant the tenant value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the aadResourceId property: The resource you are requesting authorization to use. - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.aadResourceId; - } - - /** - * Set the aadResourceId property: The resource you are requesting authorization to use. - * - * @param aadResourceId the aadResourceId value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAadResourceId(Object aadResourceId) { - this.aadResourceId = aadResourceId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model RestServiceLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " RestServiceLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RestServiceLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java deleted file mode 100644 index a5dbd3a4cad70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce linked service properties. */ -@Fluent -public final class SalesforceLinkedServiceTypeProperties { - /* - * The URL of Salesforce instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify - * 'https://test.salesforce.com'. To copy data from custom domain, specify, - * for example, 'https://[domain].my.salesforce.com'. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "environmentUrl") - private Object environmentUrl; - - /* - * The username for Basic authentication of the Salesforce instance. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password for Basic authentication of the Salesforce instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The security token is optional to remotely access Salesforce instance. - */ - @JsonProperty(value = "securityToken") - private SecretBase securityToken; - - /* - * The Salesforce API version used in ADF. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "apiVersion") - private Object apiVersion; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the environmentUrl property: The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To - * copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for - * example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - * - * @return the environmentUrl value. - */ - public Object environmentUrl() { - return this.environmentUrl; - } - - /** - * Set the environmentUrl property: The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To - * copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for - * example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - * - * @param environmentUrl the environmentUrl value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withEnvironmentUrl(Object environmentUrl) { - this.environmentUrl = environmentUrl; - return this; - } - - /** - * Get the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication of the Salesforce instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication of the Salesforce instance. - * - * @param password the password value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @return the securityToken value. - */ - public SecretBase securityToken() { - return this.securityToken; - } - - /** - * Set the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @param securityToken the securityToken value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withSecurityToken(SecretBase securityToken) { - this.securityToken = securityToken; - return this; - } - - /** - * Get the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @return the apiVersion value. - */ - public Object apiVersion() { - return this.apiVersion; - } - - /** - * Set the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @param apiVersion the apiVersion value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withApiVersion(Object apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - if (securityToken() != null) { - securityToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java deleted file mode 100644 index 4248bd1792a27..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce Marketing Cloud linked service properties. */ -@Fluent -public final class SalesforceMarketingCloudLinkedServiceTypeProperties { - /* - * Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The client ID associated with the Salesforce Marketing Cloud - * application. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret associated with the Salesforce Marketing Cloud - * application. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the clientId property: The client ID associated with the Salesforce Marketing Cloud application. Type: string - * (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with the Salesforce Marketing Cloud application. Type: string - * (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with the Salesforce Marketing Cloud application. - * Type: string (or Expression with resultType string). - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with the Salesforce Marketing Cloud application. - * Type: string (or Expression with resultType string). - * - * @param clientSecret the clientSecret value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java deleted file mode 100644 index 2cdc58befd593..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce object dataset properties. */ -@Fluent -public final class SalesforceObjectDatasetTypeProperties { - /* - * The Salesforce object API name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "objectApiName") - private Object objectApiName; - - /** - * Get the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.objectApiName; - } - - /** - * Set the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceObjectDatasetTypeProperties object itself. - */ - public SalesforceObjectDatasetTypeProperties withObjectApiName(Object objectApiName) { - this.objectApiName = objectApiName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java deleted file mode 100644 index 7c5f15efcecf4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce Service Cloud linked service properties. */ -@Fluent -public final class SalesforceServiceCloudLinkedServiceTypeProperties { - /* - * The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify - * 'https://test.salesforce.com'. To copy data from custom domain, specify, - * for example, 'https://[domain].my.salesforce.com'. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "environmentUrl") - private Object environmentUrl; - - /* - * The username for Basic authentication of the Salesforce instance. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password for Basic authentication of the Salesforce instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The security token is optional to remotely access Salesforce instance. - */ - @JsonProperty(value = "securityToken") - private SecretBase securityToken; - - /* - * The Salesforce API version used in ADF. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "apiVersion") - private Object apiVersion; - - /* - * Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "extendedProperties") - private Object extendedProperties; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the environmentUrl property: The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data - * from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with - * resultType string). - * - * @return the environmentUrl value. - */ - public Object environmentUrl() { - return this.environmentUrl; - } - - /** - * Set the environmentUrl property: The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data - * from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with - * resultType string). - * - * @param environmentUrl the environmentUrl value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withEnvironmentUrl(Object environmentUrl) { - this.environmentUrl = environmentUrl; - return this; - } - - /** - * Get the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication of the Salesforce instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication of the Salesforce instance. - * - * @param password the password value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @return the securityToken value. - */ - public SecretBase securityToken() { - return this.securityToken; - } - - /** - * Set the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @param securityToken the securityToken value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withSecurityToken(SecretBase securityToken) { - this.securityToken = securityToken; - return this; - } - - /** - * Get the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @return the apiVersion value. - */ - public Object apiVersion() { - return this.apiVersion; - } - - /** - * Set the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @param apiVersion the apiVersion value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withApiVersion(Object apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** - * Get the extendedProperties property: Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - * - * @return the extendedProperties value. - */ - public Object extendedProperties() { - return this.extendedProperties; - } - - /** - * Set the extendedProperties property: Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - * - * @param extendedProperties the extendedProperties value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withExtendedProperties(Object extendedProperties) { - this.extendedProperties = extendedProperties; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - if (securityToken() != null) { - securityToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java deleted file mode 100644 index 94ffbb4b25778..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce Service Cloud object dataset properties. */ -@Fluent -public final class SalesforceServiceCloudObjectDatasetTypeProperties { - /* - * The Salesforce Service Cloud object API name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "objectApiName") - private Object objectApiName; - - /** - * Get the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.objectApiName; - } - - /** - * Set the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceServiceCloudObjectDatasetTypeProperties object itself. - */ - public SalesforceServiceCloudObjectDatasetTypeProperties withObjectApiName(Object objectApiName) { - this.objectApiName = objectApiName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java deleted file mode 100644 index 099dc39f353dc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SapBWLinkedServiceTypeProperties { - /* - * Host name of the SAP BW instance. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * System number of the BW system. (Usually a two-digit decimal number - * represented as a string.) Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "systemNumber", required = true) - private Object systemNumber; - - /* - * Client ID of the client on the BW system. (Usually a three-digit decimal - * number represented as a string) Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * Username to access the SAP BW server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP BW server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Host name of the SAP BW instance. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP BW instance. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the systemNumber property: System number of the BW system. (Usually a two-digit decimal number represented as - * a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.systemNumber; - } - - /** - * Set the systemNumber property: System number of the BW system. (Usually a two-digit decimal number represented as - * a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withSystemNumber(Object systemNumber) { - this.systemNumber = systemNumber; - return this; - } - - /** - * Get the clientId property: Client ID of the client on the BW system. (Usually a three-digit decimal number - * represented as a string) Type: string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Client ID of the client on the BW system. (Usually a three-digit decimal number - * represented as a string) Type: string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the username property: Username to access the SAP BW server. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP BW server. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP BW server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP BW server. - * - * @param password the password value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model SapBWLinkedServiceTypeProperties")); - } - if (systemNumber() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property systemNumber in model SapBWLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model SapBWLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapBWLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java deleted file mode 100644 index 295bfc33eb997..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP Cloud for Customer linked service properties. */ -@Fluent -public final class SapCloudForCustomerLinkedServiceTypeProperties { - /* - * The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The username for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Either - * encryptedCredential or username/password must be provided. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication. - * - * @param password the password value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model SapCloudForCustomerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapCloudForCustomerLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerResourceDatasetTypeProperties.java deleted file mode 100644 index cd29735fa6373..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerResourceDatasetTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sap Cloud For Customer OData resource dataset properties. */ -@Fluent -public final class SapCloudForCustomerResourceDatasetTypeProperties { - /* - * The path of the SAP Cloud for Customer OData entity. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "path", required = true) - private Object path; - - /** - * Get the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @param path the path value to set. - * @return the SapCloudForCustomerResourceDatasetTypeProperties object itself. - */ - public SapCloudForCustomerResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (path() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property path in model SapCloudForCustomerResourceDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapCloudForCustomerResourceDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java deleted file mode 100644 index 85757f2a4007b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP ECC linked service properties. */ -@Fluent -public final class SapEccLinkedServiceTypeProperties { - /* - * The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private String url; - - /* - * The username for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "username") - private String username; - - /* - * The password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Either - * encryptedCredential or username/password must be provided. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private String encryptedCredential; - - /** - * Get the url property: The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public String url() { - return this.url; - } - - /** - * Set the url property: The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withUrl(String url) { - this.url = url; - return this; - } - - /** - * Get the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public String username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withUsername(String username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication. - * - * @param password the password value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model SapEccLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapEccLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccResourceDatasetTypeProperties.java deleted file mode 100644 index 9f3006b6c5c3e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccResourceDatasetTypeProperties.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sap ECC OData resource dataset properties. */ -@Fluent -public final class SapEccResourceDatasetTypeProperties { - /* - * The path of the SAP ECC OData entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "path", required = true) - private Object path; - - /** - * Get the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the SapEccResourceDatasetTypeProperties object itself. - */ - public SapEccResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (path() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property path in model SapEccResourceDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapEccResourceDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java deleted file mode 100644 index d7ebd53e016f2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SapHanaAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SapHanaLinkedServiceProperties { - /* - * SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * Host name of the SAP HANA server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * The authentication type to be used to connect to the SAP HANA server. - */ - @JsonProperty(value = "authenticationType") - private SapHanaAuthenticationType authenticationType; - - /* - * Username to access the SAP HANA server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP HANA server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the SAP HANA server. - * - * @return the authenticationType value. - */ - public SapHanaAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the SAP HANA server. - * - * @param authenticationType the authenticationType value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withAuthenticationType(SapHanaAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username to access the SAP HANA server. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP HANA server. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP HANA server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP HANA server. - * - * @param password the password value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java deleted file mode 100644 index c07a1e7ba80b4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP HANA Table properties. */ -@Fluent -public final class SapHanaTableDatasetTypeProperties { - /* - * The schema name of SAP HANA. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of SAP HANA. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SapHanaTableDatasetTypeProperties object itself. - */ - public SapHanaTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the SapHanaTableDatasetTypeProperties object itself. - */ - public SapHanaTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java deleted file mode 100644 index d31311f32817b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java +++ /dev/null @@ -1,347 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to SAP Business Warehouse Open Hub Destination linked service type. */ -@Fluent -public final class SapOpenHubLinkedServiceTypeProperties { - /* - * Host name of the SAP BW instance where the open hub destination is - * located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * System number of the BW system where the open hub destination is - * located. (Usually a two-digit decimal number represented as a string.) - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "systemNumber") - private Object systemNumber; - - /* - * Client ID of the client on the BW system where the open hub destination - * is located. (Usually a three-digit decimal number represented as a - * string) Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * Language of the BW system where the open hub destination is located. The - * default value is EN. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "language") - private Object language; - - /* - * SystemID of the SAP system where the table is located. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "systemId") - private Object systemId; - - /* - * Username to access the SAP BW server where the open hub destination is - * located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP BW server where the open hub destination is - * located. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "messageServer") - private Object messageServer; - - /* - * The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "messageServerService") - private Object messageServerService; - - /* - * The Logon Group for the SAP System. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "logonGroup") - private Object logonGroup; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Host name of the SAP BW instance where the open hub destination is located. Type: string - * (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP BW instance where the open hub destination is located. Type: string - * (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the systemNumber property: System number of the BW system where the open hub destination is located. (Usually - * a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.systemNumber; - } - - /** - * Set the systemNumber property: System number of the BW system where the open hub destination is located. (Usually - * a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withSystemNumber(Object systemNumber) { - this.systemNumber = systemNumber; - return this; - } - - /** - * Get the clientId property: Client ID of the client on the BW system where the open hub destination is located. - * (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType - * string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Client ID of the client on the BW system where the open hub destination is located. - * (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType - * string). - * - * @param clientId the clientId value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the language property: Language of the BW system where the open hub destination is located. The default value - * is EN. Type: string (or Expression with resultType string). - * - * @return the language value. - */ - public Object language() { - return this.language; - } - - /** - * Set the language property: Language of the BW system where the open hub destination is located. The default value - * is EN. Type: string (or Expression with resultType string). - * - * @param language the language value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withLanguage(Object language) { - this.language = language; - return this; - } - - /** - * Get the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the systemId value. - */ - public Object systemId() { - return this.systemId; - } - - /** - * Set the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @param systemId the systemId value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withSystemId(Object systemId) { - this.systemId = systemId; - return this; - } - - /** - * Get the username property: Username to access the SAP BW server where the open hub destination is located. Type: - * string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP BW server where the open hub destination is located. Type: - * string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP BW server where the open hub destination is located. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP BW server where the open hub destination is located. - * - * @param password the password value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @return the messageServer value. - */ - public Object messageServer() { - return this.messageServer; - } - - /** - * Set the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @param messageServer the messageServer value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withMessageServer(Object messageServer) { - this.messageServer = messageServer; - return this; - } - - /** - * Get the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @return the messageServerService value. - */ - public Object messageServerService() { - return this.messageServerService; - } - - /** - * Set the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @param messageServerService the messageServerService value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withMessageServerService(Object messageServerService) { - this.messageServerService = messageServerService; - return this; - } - - /** - * Get the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @return the logonGroup value. - */ - public Object logonGroup() { - return this.logonGroup; - } - - /** - * Set the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @param logonGroup the logonGroup value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withLogonGroup(Object logonGroup) { - this.logonGroup = logonGroup; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java deleted file mode 100644 index c64e7d77743e1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sap Business Warehouse Open Hub Destination Table properties. */ -@Fluent -public final class SapOpenHubTableDatasetTypeProperties { - /* - * The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "openHubDestinationName", required = true) - private Object openHubDestinationName; - - /* - * Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "excludeLastRequest") - private Object excludeLastRequest; - - /* - * The ID of request for delta loading. Once it is set, only data with - * requestId larger than the value of this property will be retrieved. The - * default value is 0. Type: integer (or Expression with resultType integer - * ). - */ - @JsonProperty(value = "baseRequestId") - private Object baseRequestId; - - /** - * Get the openHubDestinationName property: The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - * - * @return the openHubDestinationName value. - */ - public Object openHubDestinationName() { - return this.openHubDestinationName; - } - - /** - * Set the openHubDestinationName property: The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - * - * @param openHubDestinationName the openHubDestinationName value to set. - * @return the SapOpenHubTableDatasetTypeProperties object itself. - */ - public SapOpenHubTableDatasetTypeProperties withOpenHubDestinationName(Object openHubDestinationName) { - this.openHubDestinationName = openHubDestinationName; - return this; - } - - /** - * Get the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @return the excludeLastRequest value. - */ - public Object excludeLastRequest() { - return this.excludeLastRequest; - } - - /** - * Set the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @param excludeLastRequest the excludeLastRequest value to set. - * @return the SapOpenHubTableDatasetTypeProperties object itself. - */ - public SapOpenHubTableDatasetTypeProperties withExcludeLastRequest(Object excludeLastRequest) { - this.excludeLastRequest = excludeLastRequest; - return this; - } - - /** - * Get the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @return the baseRequestId value. - */ - public Object baseRequestId() { - return this.baseRequestId; - } - - /** - * Set the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @param baseRequestId the baseRequestId value to set. - * @return the SapOpenHubTableDatasetTypeProperties object itself. - */ - public SapOpenHubTableDatasetTypeProperties withBaseRequestId(Object baseRequestId) { - this.baseRequestId = baseRequestId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (openHubDestinationName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property openHubDestinationName in model" - + " SapOpenHubTableDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapOpenHubTableDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java deleted file mode 100644 index 0ae08b1749526..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java +++ /dev/null @@ -1,489 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SapTableLinkedServiceTypeProperties { - /* - * Host name of the SAP instance where the table is located. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * System number of the SAP system where the table is located. (Usually a - * two-digit decimal number represented as a string.) Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "systemNumber") - private Object systemNumber; - - /* - * Client ID of the client on the SAP system where the table is located. - * (Usually a three-digit decimal number represented as a string) Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * Language of the SAP system where the table is located. The default value - * is EN. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "language") - private Object language; - - /* - * SystemID of the SAP system where the table is located. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "systemId") - private Object systemId; - - /* - * Username to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP server where the table is located. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "messageServer") - private Object messageServer; - - /* - * The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "messageServerService") - private Object messageServerService; - - /* - * SNC activation indicator to access the SAP server where the table is - * located. Must be either 0 (off) or 1 (on). Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sncMode") - private Object sncMode; - - /* - * Initiator's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sncMyName") - private Object sncMyName; - - /* - * Communication partner's SNC name to access the SAP server where the - * table is located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sncPartnerName") - private Object sncPartnerName; - - /* - * External security product's library to access the SAP server where the - * table is located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sncLibraryPath") - private Object sncLibraryPath; - - /* - * SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "sncQop") - private Object sncQop; - - /* - * The Logon Group for the SAP System. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "logonGroup") - private Object logonGroup; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Host name of the SAP instance where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP instance where the table is located. Type: string (or Expression - * with resultType string). - * - * @param server the server value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the systemNumber property: System number of the SAP system where the table is located. (Usually a two-digit - * decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.systemNumber; - } - - /** - * Set the systemNumber property: System number of the SAP system where the table is located. (Usually a two-digit - * decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSystemNumber(Object systemNumber) { - this.systemNumber = systemNumber; - return this; - } - - /** - * Get the clientId property: Client ID of the client on the SAP system where the table is located. (Usually a - * three-digit decimal number represented as a string) Type: string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Client ID of the client on the SAP system where the table is located. (Usually a - * three-digit decimal number represented as a string) Type: string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the language property: Language of the SAP system where the table is located. The default value is EN. Type: - * string (or Expression with resultType string). - * - * @return the language value. - */ - public Object language() { - return this.language; - } - - /** - * Set the language property: Language of the SAP system where the table is located. The default value is EN. Type: - * string (or Expression with resultType string). - * - * @param language the language value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withLanguage(Object language) { - this.language = language; - return this; - } - - /** - * Get the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the systemId value. - */ - public Object systemId() { - return this.systemId; - } - - /** - * Set the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @param systemId the systemId value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSystemId(Object systemId) { - this.systemId = systemId; - return this; - } - - /** - * Get the username property: Username to access the SAP server where the table is located. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP server where the table is located. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP server where the table is located. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP server where the table is located. - * - * @param password the password value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @return the messageServer value. - */ - public Object messageServer() { - return this.messageServer; - } - - /** - * Set the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @param messageServer the messageServer value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withMessageServer(Object messageServer) { - this.messageServer = messageServer; - return this; - } - - /** - * Get the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @return the messageServerService value. - */ - public Object messageServerService() { - return this.messageServerService; - } - - /** - * Set the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @param messageServerService the messageServerService value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withMessageServerService(Object messageServerService) { - this.messageServerService = messageServerService; - return this; - } - - /** - * Get the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). - * - * @return the sncMode value. - */ - public Object sncMode() { - return this.sncMode; - } - - /** - * Set the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). - * - * @param sncMode the sncMode value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncMode(Object sncMode) { - this.sncMode = sncMode; - return this; - } - - /** - * Get the sncMyName property: Initiator's SNC name to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - * - * @return the sncMyName value. - */ - public Object sncMyName() { - return this.sncMyName; - } - - /** - * Set the sncMyName property: Initiator's SNC name to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - * - * @param sncMyName the sncMyName value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncMyName(Object sncMyName) { - this.sncMyName = sncMyName; - return this; - } - - /** - * Get the sncPartnerName property: Communication partner's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @return the sncPartnerName value. - */ - public Object sncPartnerName() { - return this.sncPartnerName; - } - - /** - * Set the sncPartnerName property: Communication partner's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @param sncPartnerName the sncPartnerName value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncPartnerName(Object sncPartnerName) { - this.sncPartnerName = sncPartnerName; - return this; - } - - /** - * Get the sncLibraryPath property: External security product's library to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @return the sncLibraryPath value. - */ - public Object sncLibraryPath() { - return this.sncLibraryPath; - } - - /** - * Set the sncLibraryPath property: External security product's library to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @param sncLibraryPath the sncLibraryPath value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncLibraryPath(Object sncLibraryPath) { - this.sncLibraryPath = sncLibraryPath; - return this; - } - - /** - * Get the sncQop property: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or - * Expression with resultType string). - * - * @return the sncQop value. - */ - public Object sncQop() { - return this.sncQop; - } - - /** - * Set the sncQop property: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or - * Expression with resultType string). - * - * @param sncQop the sncQop value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncQop(Object sncQop) { - this.sncQop = sncQop; - return this; - } - - /** - * Get the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @return the logonGroup value. - */ - public Object logonGroup() { - return this.logonGroup; - } - - /** - * Set the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @param logonGroup the logonGroup value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withLogonGroup(Object logonGroup) { - this.logonGroup = logonGroup; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableResourceDatasetTypeProperties.java deleted file mode 100644 index a59633ce6a816..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableResourceDatasetTypeProperties.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP Table Resource properties. */ -@Fluent -public final class SapTableResourceDatasetTypeProperties { - /* - * The name of the SAP Table. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName", required = true) - private Object tableName; - - /** - * Get the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SapTableResourceDatasetTypeProperties object itself. - */ - public SapTableResourceDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (tableName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tableName in model SapTableResourceDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapTableResourceDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScheduleTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScheduleTriggerTypeProperties.java deleted file mode 100644 index b9a4b8dd4d477..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScheduleTriggerTypeProperties.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Schedule Trigger properties. */ -@Fluent -public final class ScheduleTriggerTypeProperties { - /* - * Recurrence schedule configuration. - */ - @JsonProperty(value = "recurrence", required = true) - private ScheduleTriggerRecurrence recurrence; - - /** - * Get the recurrence property: Recurrence schedule configuration. - * - * @return the recurrence value. - */ - public ScheduleTriggerRecurrence recurrence() { - return this.recurrence; - } - - /** - * Set the recurrence property: Recurrence schedule configuration. - * - * @param recurrence the recurrence value to set. - * @return the ScheduleTriggerTypeProperties object itself. - */ - public ScheduleTriggerTypeProperties withRecurrence(ScheduleTriggerRecurrence recurrence) { - this.recurrence = recurrence; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (recurrence() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property recurrence in model ScheduleTriggerTypeProperties")); - } else { - recurrence().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ScheduleTriggerTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java deleted file mode 100644 index e4f3a10047a89..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Script activity properties. */ -@Fluent -public final class ScriptActivityTypeProperties { - /* - * Array of script blocks. Type: array. - */ - @JsonProperty(value = "scripts") - private List scripts; - - /* - * Log settings of script activity. - */ - @JsonProperty(value = "logSettings") - private ScriptActivityTypePropertiesLogSettings logSettings; - - /** - * Get the scripts property: Array of script blocks. Type: array. - * - * @return the scripts value. - */ - public List scripts() { - return this.scripts; - } - - /** - * Set the scripts property: Array of script blocks. Type: array. - * - * @param scripts the scripts value to set. - * @return the ScriptActivityTypeProperties object itself. - */ - public ScriptActivityTypeProperties withScripts(List scripts) { - this.scripts = scripts; - return this; - } - - /** - * Get the logSettings property: Log settings of script activity. - * - * @return the logSettings value. - */ - public ScriptActivityTypePropertiesLogSettings logSettings() { - return this.logSettings; - } - - /** - * Set the logSettings property: Log settings of script activity. - * - * @param logSettings the logSettings value to set. - * @return the ScriptActivityTypeProperties object itself. - */ - public ScriptActivityTypeProperties withLogSettings(ScriptActivityTypePropertiesLogSettings logSettings) { - this.logSettings = logSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (scripts() != null) { - scripts().forEach(e -> e.validate()); - } - if (logSettings() != null) { - logSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java deleted file mode 100644 index e31c533bb8ae7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java +++ /dev/null @@ -1,339 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeUpdateResult; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; - -/** Properties of Self-hosted integration runtime node. */ -@Fluent -public final class SelfHostedIntegrationRuntimeNodeInner { - /* - * Name of the integration runtime node. - */ - @JsonProperty(value = "nodeName", access = JsonProperty.Access.WRITE_ONLY) - private String nodeName; - - /* - * Machine name of the integration runtime node. - */ - @JsonProperty(value = "machineName", access = JsonProperty.Access.WRITE_ONLY) - private String machineName; - - /* - * URI for the host machine of the integration runtime. - */ - @JsonProperty(value = "hostServiceUri", access = JsonProperty.Access.WRITE_ONLY) - private String hostServiceUri; - - /* - * Status of the integration runtime node. - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private SelfHostedIntegrationRuntimeNodeStatus status; - - /* - * The integration runtime capabilities dictionary - */ - @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map capabilities; - - /* - * Status of the integration runtime node version. - */ - @JsonProperty(value = "versionStatus", access = JsonProperty.Access.WRITE_ONLY) - private String versionStatus; - - /* - * Version of the integration runtime node. - */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * The time at which the integration runtime node was registered in ISO8601 - * format. - */ - @JsonProperty(value = "registerTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime registerTime; - - /* - * The most recent time at which the integration runtime was connected in - * ISO8601 format. - */ - @JsonProperty(value = "lastConnectTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastConnectTime; - - /* - * The time at which the integration runtime will expire in ISO8601 format. - */ - @JsonProperty(value = "expiryTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime expiryTime; - - /* - * The time the node last started up. - */ - @JsonProperty(value = "lastStartTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastStartTime; - - /* - * The integration runtime node last stop time. - */ - @JsonProperty(value = "lastStopTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastStopTime; - - /* - * The result of the last integration runtime node update. - */ - @JsonProperty(value = "lastUpdateResult", access = JsonProperty.Access.WRITE_ONLY) - private IntegrationRuntimeUpdateResult lastUpdateResult; - - /* - * The last time for the integration runtime node update start. - */ - @JsonProperty(value = "lastStartUpdateTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastStartUpdateTime; - - /* - * The last time for the integration runtime node update end. - */ - @JsonProperty(value = "lastEndUpdateTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastEndUpdateTime; - - /* - * Indicates whether this node is the active dispatcher for integration - * runtime requests. - */ - @JsonProperty(value = "isActiveDispatcher", access = JsonProperty.Access.WRITE_ONLY) - private Boolean isActiveDispatcher; - - /* - * Maximum concurrent jobs on the integration runtime node. - */ - @JsonProperty(value = "concurrentJobsLimit", access = JsonProperty.Access.WRITE_ONLY) - private Integer concurrentJobsLimit; - - /* - * The maximum concurrent jobs in this integration runtime. - */ - @JsonProperty(value = "maxConcurrentJobs", access = JsonProperty.Access.WRITE_ONLY) - private Integer maxConcurrentJobs; - - /* - * Properties of Self-hosted integration runtime node. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the nodeName property: Name of the integration runtime node. - * - * @return the nodeName value. - */ - public String nodeName() { - return this.nodeName; - } - - /** - * Get the machineName property: Machine name of the integration runtime node. - * - * @return the machineName value. - */ - public String machineName() { - return this.machineName; - } - - /** - * Get the hostServiceUri property: URI for the host machine of the integration runtime. - * - * @return the hostServiceUri value. - */ - public String hostServiceUri() { - return this.hostServiceUri; - } - - /** - * Get the status property: Status of the integration runtime node. - * - * @return the status value. - */ - public SelfHostedIntegrationRuntimeNodeStatus status() { - return this.status; - } - - /** - * Get the capabilities property: The integration runtime capabilities dictionary. - * - * @return the capabilities value. - */ - public Map capabilities() { - return this.capabilities; - } - - /** - * Get the versionStatus property: Status of the integration runtime node version. - * - * @return the versionStatus value. - */ - public String versionStatus() { - return this.versionStatus; - } - - /** - * Get the version property: Version of the integration runtime node. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Get the registerTime property: The time at which the integration runtime node was registered in ISO8601 format. - * - * @return the registerTime value. - */ - public OffsetDateTime registerTime() { - return this.registerTime; - } - - /** - * Get the lastConnectTime property: The most recent time at which the integration runtime was connected in ISO8601 - * format. - * - * @return the lastConnectTime value. - */ - public OffsetDateTime lastConnectTime() { - return this.lastConnectTime; - } - - /** - * Get the expiryTime property: The time at which the integration runtime will expire in ISO8601 format. - * - * @return the expiryTime value. - */ - public OffsetDateTime expiryTime() { - return this.expiryTime; - } - - /** - * Get the lastStartTime property: The time the node last started up. - * - * @return the lastStartTime value. - */ - public OffsetDateTime lastStartTime() { - return this.lastStartTime; - } - - /** - * Get the lastStopTime property: The integration runtime node last stop time. - * - * @return the lastStopTime value. - */ - public OffsetDateTime lastStopTime() { - return this.lastStopTime; - } - - /** - * Get the lastUpdateResult property: The result of the last integration runtime node update. - * - * @return the lastUpdateResult value. - */ - public IntegrationRuntimeUpdateResult lastUpdateResult() { - return this.lastUpdateResult; - } - - /** - * Get the lastStartUpdateTime property: The last time for the integration runtime node update start. - * - * @return the lastStartUpdateTime value. - */ - public OffsetDateTime lastStartUpdateTime() { - return this.lastStartUpdateTime; - } - - /** - * Get the lastEndUpdateTime property: The last time for the integration runtime node update end. - * - * @return the lastEndUpdateTime value. - */ - public OffsetDateTime lastEndUpdateTime() { - return this.lastEndUpdateTime; - } - - /** - * Get the isActiveDispatcher property: Indicates whether this node is the active dispatcher for integration runtime - * requests. - * - * @return the isActiveDispatcher value. - */ - public Boolean isActiveDispatcher() { - return this.isActiveDispatcher; - } - - /** - * Get the concurrentJobsLimit property: Maximum concurrent jobs on the integration runtime node. - * - * @return the concurrentJobsLimit value. - */ - public Integer concurrentJobsLimit() { - return this.concurrentJobsLimit; - } - - /** - * Get the maxConcurrentJobs property: The maximum concurrent jobs in this integration runtime. - * - * @return the maxConcurrentJobs value. - */ - public Integer maxConcurrentJobs() { - return this.maxConcurrentJobs; - } - - /** - * Get the additionalProperties property: Properties of Self-hosted integration runtime node. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Properties of Self-hosted integration runtime node. - * - * @param additionalProperties the additionalProperties value to set. - * @return the SelfHostedIntegrationRuntimeNodeInner object itself. - */ - public SelfHostedIntegrationRuntimeNodeInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java deleted file mode 100644 index e4c896fe0b0c3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -/** Self-hosted integration runtime status type properties. */ -@Fluent -public final class SelfHostedIntegrationRuntimeStatusTypeProperties { - /* - * The time at which the integration runtime was created, in ISO8601 - * format. - */ - @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createTime; - - /* - * The task queue id of the integration runtime. - */ - @JsonProperty(value = "taskQueueId", access = JsonProperty.Access.WRITE_ONLY) - private String taskQueueId; - - /* - * It is used to set the encryption mode for node-node communication - * channel (when more than 2 self-hosted integration runtime nodes exist). - */ - @JsonProperty(value = "internalChannelEncryption", access = JsonProperty.Access.WRITE_ONLY) - private IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption; - - /* - * Version of the integration runtime. - */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * The list of nodes for this integration runtime. - */ - @JsonProperty(value = "nodes") - private List nodes; - - /* - * The date at which the integration runtime will be scheduled to update, - * in ISO8601 format. - */ - @JsonProperty(value = "scheduledUpdateDate", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime scheduledUpdateDate; - - /* - * The time in the date scheduled by service to update the integration - * runtime, e.g., PT03H is 3 hours - */ - @JsonProperty(value = "updateDelayOffset", access = JsonProperty.Access.WRITE_ONLY) - private String updateDelayOffset; - - /* - * The local time zone offset in hours. - */ - @JsonProperty(value = "localTimeZoneOffset", access = JsonProperty.Access.WRITE_ONLY) - private String localTimeZoneOffset; - - /* - * Object with additional information about integration runtime - * capabilities. - */ - @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map capabilities; - - /* - * The URLs for the services used in integration runtime backend service. - */ - @JsonProperty(value = "serviceUrls", access = JsonProperty.Access.WRITE_ONLY) - private List serviceUrls; - - /* - * Whether Self-hosted integration runtime auto update has been turned on. - */ - @JsonProperty(value = "autoUpdate", access = JsonProperty.Access.WRITE_ONLY) - private IntegrationRuntimeAutoUpdate autoUpdate; - - /* - * Status of the integration runtime version. - */ - @JsonProperty(value = "versionStatus", access = JsonProperty.Access.WRITE_ONLY) - private String versionStatus; - - /* - * The list of linked integration runtimes that are created to share with - * this integration runtime. - */ - @JsonProperty(value = "links") - private List links; - - /* - * The version that the integration runtime is going to update to. - */ - @JsonProperty(value = "pushedVersion", access = JsonProperty.Access.WRITE_ONLY) - private String pushedVersion; - - /* - * The latest version on download center. - */ - @JsonProperty(value = "latestVersion", access = JsonProperty.Access.WRITE_ONLY) - private String latestVersion; - - /* - * The estimated time when the self-hosted integration runtime will be - * updated. - */ - @JsonProperty(value = "autoUpdateETA", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime autoUpdateEta; - - /** - * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.createTime; - } - - /** - * Get the taskQueueId property: The task queue id of the integration runtime. - * - * @return the taskQueueId value. - */ - public String taskQueueId() { - return this.taskQueueId; - } - - /** - * Get the internalChannelEncryption property: It is used to set the encryption mode for node-node communication - * channel (when more than 2 self-hosted integration runtime nodes exist). - * - * @return the internalChannelEncryption value. - */ - public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { - return this.internalChannelEncryption; - } - - /** - * Get the version property: Version of the integration runtime. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Get the nodes property: The list of nodes for this integration runtime. - * - * @return the nodes value. - */ - public List nodes() { - return this.nodes; - } - - /** - * Set the nodes property: The list of nodes for this integration runtime. - * - * @param nodes the nodes value to set. - * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeStatusTypeProperties withNodes( - List nodes) { - this.nodes = nodes; - return this; - } - - /** - * Get the scheduledUpdateDate property: The date at which the integration runtime will be scheduled to update, in - * ISO8601 format. - * - * @return the scheduledUpdateDate value. - */ - public OffsetDateTime scheduledUpdateDate() { - return this.scheduledUpdateDate; - } - - /** - * Get the updateDelayOffset property: The time in the date scheduled by service to update the integration runtime, - * e.g., PT03H is 3 hours. - * - * @return the updateDelayOffset value. - */ - public String updateDelayOffset() { - return this.updateDelayOffset; - } - - /** - * Get the localTimeZoneOffset property: The local time zone offset in hours. - * - * @return the localTimeZoneOffset value. - */ - public String localTimeZoneOffset() { - return this.localTimeZoneOffset; - } - - /** - * Get the capabilities property: Object with additional information about integration runtime capabilities. - * - * @return the capabilities value. - */ - public Map capabilities() { - return this.capabilities; - } - - /** - * Get the serviceUrls property: The URLs for the services used in integration runtime backend service. - * - * @return the serviceUrls value. - */ - public List serviceUrls() { - return this.serviceUrls; - } - - /** - * Get the autoUpdate property: Whether Self-hosted integration runtime auto update has been turned on. - * - * @return the autoUpdate value. - */ - public IntegrationRuntimeAutoUpdate autoUpdate() { - return this.autoUpdate; - } - - /** - * Get the versionStatus property: Status of the integration runtime version. - * - * @return the versionStatus value. - */ - public String versionStatus() { - return this.versionStatus; - } - - /** - * Get the links property: The list of linked integration runtimes that are created to share with this integration - * runtime. - * - * @return the links value. - */ - public List links() { - return this.links; - } - - /** - * Set the links property: The list of linked integration runtimes that are created to share with this integration - * runtime. - * - * @param links the links value to set. - * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeStatusTypeProperties withLinks(List links) { - this.links = links; - return this; - } - - /** - * Get the pushedVersion property: The version that the integration runtime is going to update to. - * - * @return the pushedVersion value. - */ - public String pushedVersion() { - return this.pushedVersion; - } - - /** - * Get the latestVersion property: The latest version on download center. - * - * @return the latestVersion value. - */ - public String latestVersion() { - return this.latestVersion; - } - - /** - * Get the autoUpdateEta property: The estimated time when the self-hosted integration runtime will be updated. - * - * @return the autoUpdateEta value. - */ - public OffsetDateTime autoUpdateEta() { - return this.autoUpdateEta; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (nodes() != null) { - nodes().forEach(e -> e.validate()); - } - if (links() != null) { - links().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java deleted file mode 100644 index 820a8bce82d4a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The self-hosted integration runtime properties. */ -@Fluent -public final class SelfHostedIntegrationRuntimeTypeProperties { - /* - * The base definition of a linked integration runtime. - */ - @JsonProperty(value = "linkedInfo") - private LinkedIntegrationRuntimeType linkedInfo; - - /** - * Get the linkedInfo property: The base definition of a linked integration runtime. - * - * @return the linkedInfo value. - */ - public LinkedIntegrationRuntimeType linkedInfo() { - return this.linkedInfo; - } - - /** - * Set the linkedInfo property: The base definition of a linked integration runtime. - * - * @param linkedInfo the linkedInfo value to set. - * @return the SelfHostedIntegrationRuntimeTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeTypeProperties withLinkedInfo(LinkedIntegrationRuntimeType linkedInfo) { - this.linkedInfo = linkedInfo; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedInfo() != null) { - linkedInfo().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java deleted file mode 100644 index c403977878232..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java +++ /dev/null @@ -1,322 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.ServiceNowAuthenticationType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ServiceNow server linked service properties. */ -@Fluent -public final class ServiceNowLinkedServiceTypeProperties { - /* - * The endpoint of the ServiceNow server. (i.e. .service-now.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The authentication type to use. - */ - @JsonProperty(value = "authenticationType", required = true) - private ServiceNowAuthenticationType authenticationType; - - /* - * The user name used to connect to the ServiceNow server for Basic and - * OAuth2 authentication. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name for Basic and OAuth2 - * authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client id for OAuth2 authentication. - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret for OAuth2 authentication. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). - * - * @param endpoint the endpoint value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ServiceNowAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withAuthenticationType( - ServiceNowAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2 - * authentication. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2 - * authentication. - * - * @param username the username value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name for Basic and OAuth2 authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name for Basic and OAuth2 authentication. - * - * @param password the password value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the clientId property: The client id for OAuth2 authentication. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client id for OAuth2 authentication. - * - * @param clientId the clientId value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret for OAuth2 authentication. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret for OAuth2 authentication. - * - * @param clientSecret the clientSecret value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model ServiceNowLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model ServiceNowLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ServiceNowLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServicePrincipalCredentialTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServicePrincipalCredentialTypeProperties.java deleted file mode 100644 index 5159a8d24a333..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServicePrincipalCredentialTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Service Principal credential type properties. */ -@Fluent -public final class ServicePrincipalCredentialTypeProperties { - /* - * The app ID of the service principal used to authenticate - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate. - */ - @JsonProperty(value = "servicePrincipalKey") - private AzureKeyVaultSecretReference servicePrincipalKey; - - /* - * The ID of the tenant to which the service principal belongs - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /** - * Get the servicePrincipalId property: The app ID of the service principal used to authenticate. - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The app ID of the service principal used to authenticate. - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the ServicePrincipalCredentialTypeProperties object itself. - */ - public ServicePrincipalCredentialTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate. - * - * @return the servicePrincipalKey value. - */ - public AzureKeyVaultSecretReference servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the ServicePrincipalCredentialTypeProperties object itself. - */ - public ServicePrincipalCredentialTypeProperties withServicePrincipalKey( - AzureKeyVaultSecretReference servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The ID of the tenant to which the service principal belongs. - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The ID of the tenant to which the service principal belongs. - * - * @param tenant the tenant value to set. - * @return the ServicePrincipalCredentialTypeProperties object itself. - */ - public ServicePrincipalCredentialTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java deleted file mode 100644 index e2e08e487941c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SetVariable activity properties. */ -@Fluent -public final class SetVariableActivityTypeProperties { - /* - * Name of the variable whose value needs to be set. - */ - @JsonProperty(value = "variableName") - private String variableName; - - /* - * Value to be set. Could be a static value or Expression - */ - @JsonProperty(value = "value") - private Object value; - - /** - * Get the variableName property: Name of the variable whose value needs to be set. - * - * @return the variableName value. - */ - public String variableName() { - return this.variableName; - } - - /** - * Set the variableName property: Name of the variable whose value needs to be set. - * - * @param variableName the variableName value to set. - * @return the SetVariableActivityTypeProperties object itself. - */ - public SetVariableActivityTypeProperties withVariableName(String variableName) { - this.variableName = variableName; - return this; - } - - /** - * Get the value property: Value to be set. Could be a static value or Expression. - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: Value to be set. Could be a static value or Expression. - * - * @param value the value value to set. - * @return the SetVariableActivityTypeProperties object itself. - */ - public SetVariableActivityTypeProperties withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java deleted file mode 100644 index 97317ab0dfb3d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,363 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SftpAuthenticationType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SftpServerLinkedServiceTypeProperties { - /* - * The SFTP server host name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port number that the SFTP server uses to listen for client - * connections. Default value is 22. Type: integer (or Expression with - * resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication type to be used to connect to the FTP server. - */ - @JsonProperty(value = "authenticationType") - private SftpAuthenticationType authenticationType; - - /* - * The username used to log on to the SFTP server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to logon the SFTP server for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The SSH private key file path for SshPublicKey authentication. Only - * valid for on-premises copy. For on-premises copy with SshPublicKey - * authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "privateKeyPath") - private Object privateKeyPath; - - /* - * Base64 encoded SSH private key content for SshPublicKey authentication. - * For on-premises copy with SshPublicKey authentication, either - * PrivateKeyPath or PrivateKeyContent should be specified. SSH private key - * should be OpenSSH format. - */ - @JsonProperty(value = "privateKeyContent") - private SecretBase privateKeyContent; - - /* - * The password to decrypt the SSH private key if the SSH private key is - * encrypted. - */ - @JsonProperty(value = "passPhrase") - private SecretBase passPhrase; - - /* - * If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "skipHostKeyValidation") - private Object skipHostKeyValidation; - - /* - * The host key finger-print of the SFTP server. When SkipHostKeyValidation - * is false, HostKeyFingerprint should be specified. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostKeyFingerprint") - private Object hostKeyFingerprint; - - /** - * Get the host property: The SFTP server host name. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The SFTP server host name. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port number that the SFTP server uses to listen for client connections. Default - * value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the SFTP server uses to listen for client connections. Default - * value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @return the authenticationType value. - */ - public SftpAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withAuthenticationType(SftpAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The username used to log on to the SFTP server. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username used to log on to the SFTP server. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to logon the SFTP server for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the SFTP server for Basic authentication. - * - * @param password the password value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the privateKeyPath property: The SSH private key file path for SshPublicKey authentication. Only valid for - * on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - * PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with - * resultType string). - * - * @return the privateKeyPath value. - */ - public Object privateKeyPath() { - return this.privateKeyPath; - } - - /** - * Set the privateKeyPath property: The SSH private key file path for SshPublicKey authentication. Only valid for - * on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - * PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with - * resultType string). - * - * @param privateKeyPath the privateKeyPath value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPrivateKeyPath(Object privateKeyPath) { - this.privateKeyPath = privateKeyPath; - return this; - } - - /** - * Get the privateKeyContent property: Base64 encoded SSH private key content for SshPublicKey authentication. For - * on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. - * - * @return the privateKeyContent value. - */ - public SecretBase privateKeyContent() { - return this.privateKeyContent; - } - - /** - * Set the privateKeyContent property: Base64 encoded SSH private key content for SshPublicKey authentication. For - * on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. - * - * @param privateKeyContent the privateKeyContent value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPrivateKeyContent(SecretBase privateKeyContent) { - this.privateKeyContent = privateKeyContent; - return this; - } - - /** - * Get the passPhrase property: The password to decrypt the SSH private key if the SSH private key is encrypted. - * - * @return the passPhrase value. - */ - public SecretBase passPhrase() { - return this.passPhrase; - } - - /** - * Set the passPhrase property: The password to decrypt the SSH private key if the SSH private key is encrypted. - * - * @param passPhrase the passPhrase value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPassPhrase(SecretBase passPhrase) { - this.passPhrase = passPhrase; - return this; - } - - /** - * Get the skipHostKeyValidation property: If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the skipHostKeyValidation value. - */ - public Object skipHostKeyValidation() { - return this.skipHostKeyValidation; - } - - /** - * Set the skipHostKeyValidation property: If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param skipHostKeyValidation the skipHostKeyValidation value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withSkipHostKeyValidation(Object skipHostKeyValidation) { - this.skipHostKeyValidation = skipHostKeyValidation; - return this; - } - - /** - * Get the hostKeyFingerprint property: The host key finger-print of the SFTP server. When SkipHostKeyValidation is - * false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - * - * @return the hostKeyFingerprint value. - */ - public Object hostKeyFingerprint() { - return this.hostKeyFingerprint; - } - - /** - * Set the hostKeyFingerprint property: The host key finger-print of the SFTP server. When SkipHostKeyValidation is - * false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - * - * @param hostKeyFingerprint the hostKeyFingerprint value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withHostKeyFingerprint(Object hostKeyFingerprint) { - this.hostKeyFingerprint = hostKeyFingerprint; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model SftpServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (privateKeyContent() != null) { - privateKeyContent().validate(); - } - if (passPhrase() != null) { - passPhrase().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SftpServerLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java deleted file mode 100644 index 9e85df0331fdb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sharepoint online list dataset properties. */ -@Fluent -public final class SharePointOnlineListDatasetTypeProperties { - /* - * The name of the SharePoint Online list. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "listName") - private Object listName; - - /** - * Get the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @return the listName value. - */ - public Object listName() { - return this.listName; - } - - /** - * Set the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @param listName the listName value to set. - * @return the SharePointOnlineListDatasetTypeProperties object itself. - */ - public SharePointOnlineListDatasetTypeProperties withListName(Object listName) { - this.listName = listName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java deleted file mode 100644 index fb22f9fdfb651..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SharePoint Online List linked service properties. */ -@Fluent -public final class SharePointOnlineListLinkedServiceTypeProperties { - /* - * The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "siteUrl", required = true) - private Object siteUrl; - - /* - * The tenant ID under which your application resides. You can find it from - * Azure portal Active Directory overview page. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "tenantId", required = true) - private Object tenantId; - - /* - * The application (client) ID of your application registered in Azure - * Active Directory. Make sure to grant SharePoint site permission to this - * application. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId", required = true) - private Object servicePrincipalId; - - /* - * The client secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalKey", required = true) - private SecretBase servicePrincipalKey; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the siteUrl property: The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). - * - * @return the siteUrl value. - */ - public Object siteUrl() { - return this.siteUrl; - } - - /** - * Set the siteUrl property: The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). - * - * @param siteUrl the siteUrl value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withSiteUrl(Object siteUrl) { - this.siteUrl = siteUrl; - return this; - } - - /** - * Get the tenantId property: The tenant ID under which your application resides. You can find it from Azure portal - * Active Directory overview page. Type: string (or Expression with resultType string). - * - * @return the tenantId value. - */ - public Object tenantId() { - return this.tenantId; - } - - /** - * Set the tenantId property: The tenant ID under which your application resides. You can find it from Azure portal - * Active Directory overview page. Type: string (or Expression with resultType string). - * - * @param tenantId the tenantId value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withTenantId(Object tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the servicePrincipalId property: The application (client) ID of your application registered in Azure Active - * Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The application (client) ID of your application registered in Azure Active - * Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The client secret of your application registered in Azure Active Directory. - * Type: string (or Expression with resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The client secret of your application registered in Azure Active Directory. - * Type: string (or Expression with resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (siteUrl() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property siteUrl in model SharePointOnlineListLinkedServiceTypeProperties")); - } - if (tenantId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenantId in model SharePointOnlineListLinkedServiceTypeProperties")); - } - if (servicePrincipalId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalId in model" - + " SharePointOnlineListLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalKey in model" - + " SharePointOnlineListLinkedServiceTypeProperties")); - } else { - servicePrincipalKey().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SharePointOnlineListLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java deleted file mode 100644 index ecb19fa683951..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Shopify Service linked service properties. */ -@Fluent -public final class ShopifyLinkedServiceTypeProperties { - /* - * The endpoint of the Shopify server. (i.e. mystore.myshopify.com) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The API access token that can be used to access Shopify’s data. The - * token won't expire if it is offline mode. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). - * - * @param host the host value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the accessToken property: The API access token that can be used to access Shopify’s data. The token won't - * expire if it is offline mode. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The API access token that can be used to access Shopify’s data. The token won't - * expire if it is offline mode. - * - * @param accessToken the accessToken value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model ShopifyLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ShopifyLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SmartsheetLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SmartsheetLinkedServiceTypeProperties.java deleted file mode 100644 index 2275324b9a343..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SmartsheetLinkedServiceTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Smartsheet linked service type properties. */ -@Fluent -public final class SmartsheetLinkedServiceTypeProperties { - /* - * The api token for the Smartsheet source. - */ - @JsonProperty(value = "apiToken", required = true) - private SecretBase apiToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the apiToken property: The api token for the Smartsheet source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.apiToken; - } - - /** - * Set the apiToken property: The api token for the Smartsheet source. - * - * @param apiToken the apiToken value to set. - * @return the SmartsheetLinkedServiceTypeProperties object itself. - */ - public SmartsheetLinkedServiceTypeProperties withApiToken(SecretBase apiToken) { - this.apiToken = apiToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SmartsheetLinkedServiceTypeProperties object itself. - */ - public SmartsheetLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (apiToken() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property apiToken in model SmartsheetLinkedServiceTypeProperties")); - } else { - apiToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SmartsheetLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java deleted file mode 100644 index 18002ccb22eb2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Snowflake dataset properties. */ -@Fluent -public final class SnowflakeDatasetTypeProperties { - /* - * The schema name of the Snowflake database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Snowflake database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the SnowflakeDatasetTypeProperties object itself. - */ - public SnowflakeDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the SnowflakeDatasetTypeProperties object itself. - */ - public SnowflakeDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedServiceTypeProperties.java deleted file mode 100644 index e77eb5e1fd9dd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedServiceTypeProperties.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Snowflake linked service properties. */ -@Fluent -public final class SnowflakeLinkedServiceTypeProperties { - /* - * The connection string of snowflake. Type: string, SecureString. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string of snowflake. Type: string, SecureString. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string of snowflake. Type: string, SecureString. - * - * @param connectionString the connectionString value to set. - * @return the SnowflakeLinkedServiceTypeProperties object itself. - */ - public SnowflakeLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the SnowflakeLinkedServiceTypeProperties object itself. - */ - public SnowflakeLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SnowflakeLinkedServiceTypeProperties object itself. - */ - public SnowflakeLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model SnowflakeLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SnowflakeLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java deleted file mode 100644 index 3dde624ba5800..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Spark Properties. */ -@Fluent -public final class SparkDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Spark. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Spark. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the SparkDatasetTypeProperties object itself. - */ - public SparkDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Spark. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Spark. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the SparkDatasetTypeProperties object itself. - */ - public SparkDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SparkDatasetTypeProperties object itself. - */ - public SparkDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java deleted file mode 100644 index 500451de1eb63..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java +++ /dev/null @@ -1,439 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SparkAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SparkServerType; -import com.azure.resourcemanager.datafactory.models.SparkThriftTransportProtocol; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Spark Server linked service properties. */ -@Fluent -public final class SparkLinkedServiceTypeProperties { - /* - * IP address or host name of the Spark server - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Spark server uses to listen for client - * connections. - */ - @JsonProperty(value = "port", required = true) - private Object port; - - /* - * The type of Spark server. - */ - @JsonProperty(value = "serverType") - private SparkServerType serverType; - - /* - * The transport protocol to use in the Thrift layer. - */ - @JsonProperty(value = "thriftTransportProtocol") - private SparkThriftTransportProtocol thriftTransportProtocol; - - /* - * The authentication method used to access the Spark server. - */ - @JsonProperty(value = "authenticationType", required = true) - private SparkAuthenticationType authenticationType; - - /* - * The user name that you use to access Spark Server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * Username field - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The partial URL corresponding to the Spark server. - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: IP address or host name of the Spark server. - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: IP address or host name of the Spark server. - * - * @param host the host value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Spark server uses to listen for client connections. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Spark server uses to listen for client connections. - * - * @param port the port value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serverType property: The type of Spark server. - * - * @return the serverType value. - */ - public SparkServerType serverType() { - return this.serverType; - } - - /** - * Set the serverType property: The type of Spark server. - * - * @param serverType the serverType value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withServerType(SparkServerType serverType) { - this.serverType = serverType; - return this; - } - - /** - * Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @return the thriftTransportProtocol value. - */ - public SparkThriftTransportProtocol thriftTransportProtocol() { - return this.thriftTransportProtocol; - } - - /** - * Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @param thriftTransportProtocol the thriftTransportProtocol value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withThriftTransportProtocol( - SparkThriftTransportProtocol thriftTransportProtocol) { - this.thriftTransportProtocol = thriftTransportProtocol; - return this; - } - - /** - * Get the authenticationType property: The authentication method used to access the Spark server. - * - * @return the authenticationType value. - */ - public SparkAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication method used to access the Spark server. - * - * @param authenticationType the authenticationType value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withAuthenticationType(SparkAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name that you use to access Spark Server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Spark Server. - * - * @param username the username value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the Username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the Username field. - * - * @param password the password value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Spark server. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the Spark server. - * - * @param httpPath the httpPath value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model SparkLinkedServiceTypeProperties")); - } - if (port() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property port in model SparkLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model SparkLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SparkLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java deleted file mode 100644 index 9e2687245a1c9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SQL Server linked service properties. */ -@Fluent -public final class SqlServerLinkedServiceTypeProperties { - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The on-premises Windows authentication user name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The on-premises Windows authentication password. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The on-premises Windows authentication password. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The on-premises Windows authentication password. - * - * @param password the password value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model SqlServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SqlServerLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java deleted file mode 100644 index 0cd0411a7bb08..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.StoredProcedureParameter; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** SQL stored procedure activity properties. */ -@Fluent -public final class SqlServerStoredProcedureActivityTypeProperties { - /* - * Stored procedure name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "storedProcedureName", required = true) - private Object storedProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /** - * Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @return the storedProcedureName value. - */ - public Object storedProcedureName() { - return this.storedProcedureName; - } - - /** - * Set the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @param storedProcedureName the storedProcedureName value to set. - * @return the SqlServerStoredProcedureActivityTypeProperties object itself. - */ - public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureName(Object storedProcedureName) { - this.storedProcedureName = storedProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlServerStoredProcedureActivityTypeProperties object itself. - */ - public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureParameters( - Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storedProcedureName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property storedProcedureName in model" - + " SqlServerStoredProcedureActivityTypeProperties")); - } - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SqlServerStoredProcedureActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java deleted file mode 100644 index 0cb9b0780a55b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** On-premises SQL Server dataset properties. */ -@Fluent -public final class SqlServerTableDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the SqlServerTableDatasetTypeProperties object itself. - */ - public SqlServerTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the SqlServerTableDatasetTypeProperties object itself. - */ - public SqlServerTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the SqlServerTableDatasetTypeProperties object itself. - */ - public SqlServerTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java deleted file mode 100644 index 2ca2f83e46d91..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java +++ /dev/null @@ -1,278 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Square Service linked service properties. */ -@Fluent -public final class SquareLinkedServiceTypeProperties { - /* - * Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The URL of the Square instance. (i.e. mystore.mysquare.com) - */ - @JsonProperty(value = "host") - private Object host; - - /* - * The client ID associated with your Square application. - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret associated with your Square application. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500) - */ - @JsonProperty(value = "redirectUri") - private Object redirectUri; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the host property: The URL of the Square instance. (i.e. mystore.mysquare.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the Square instance. (i.e. mystore.mysquare.com). - * - * @param host the host value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the clientId property: The client ID associated with your Square application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with your Square application. - * - * @param clientId the clientId value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your Square application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with your Square application. - * - * @param clientSecret the clientSecret value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the redirectUri property: The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500). - * - * @return the redirectUri value. - */ - public Object redirectUri() { - return this.redirectUri; - } - - /** - * Set the redirectUri property: The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500). - * - * @param redirectUri the redirectUri value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withRedirectUri(Object redirectUri) { - this.redirectUri = redirectUri; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java deleted file mode 100644 index 2aa78a1d51dc9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SsisAccessCredential; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS package execution log location properties. */ -@Fluent -public final class SsisLogLocationTypeProperties { - /* - * The package execution log access credential. - */ - @JsonProperty(value = "accessCredential") - private SsisAccessCredential accessCredential; - - /* - * Specifies the interval to refresh log. The default interval is 5 - * minutes. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "logRefreshInterval") - private Object logRefreshInterval; - - /** - * Get the accessCredential property: The package execution log access credential. - * - * @return the accessCredential value. - */ - public SsisAccessCredential accessCredential() { - return this.accessCredential; - } - - /** - * Set the accessCredential property: The package execution log access credential. - * - * @param accessCredential the accessCredential value to set. - * @return the SsisLogLocationTypeProperties object itself. - */ - public SsisLogLocationTypeProperties withAccessCredential(SsisAccessCredential accessCredential) { - this.accessCredential = accessCredential; - return this; - } - - /** - * Get the logRefreshInterval property: Specifies the interval to refresh log. The default interval is 5 minutes. - * Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the logRefreshInterval value. - */ - public Object logRefreshInterval() { - return this.logRefreshInterval; - } - - /** - * Set the logRefreshInterval property: Specifies the interval to refresh log. The default interval is 5 minutes. - * Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param logRefreshInterval the logRefreshInterval value to set. - * @return the SsisLogLocationTypeProperties object itself. - */ - public SsisLogLocationTypeProperties withLogRefreshInterval(Object logRefreshInterval) { - this.logRefreshInterval = logRefreshInterval; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accessCredential() != null) { - accessCredential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisObjectMetadataListResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisObjectMetadataListResponseInner.java deleted file mode 100644 index 37f4c5635e698..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisObjectMetadataListResponseInner.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of SSIS object metadata. */ -@Fluent -public final class SsisObjectMetadataListResponseInner { - /* - * List of SSIS object metadata. - */ - @JsonProperty(value = "value") - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of SSIS object metadata. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of SSIS object metadata. - * - * @param value the value value to set. - * @return the SsisObjectMetadataListResponseInner object itself. - */ - public SsisObjectMetadataListResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the SsisObjectMetadataListResponseInner object itself. - */ - public SsisObjectMetadataListResponseInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisObjectMetadataStatusResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisObjectMetadataStatusResponseInner.java deleted file mode 100644 index d012f08379d81..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisObjectMetadataStatusResponseInner.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The status of the operation. */ -@Fluent -public final class SsisObjectMetadataStatusResponseInner { - /* - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /* - * The operation name. - */ - @JsonProperty(value = "name") - private String name; - - /* - * The operation properties. - */ - @JsonProperty(value = "properties") - private String properties; - - /* - * The operation error message. - */ - @JsonProperty(value = "error") - private String error; - - /** - * Get the status property: The status of the operation. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Set the status property: The status of the operation. - * - * @param status the status value to set. - * @return the SsisObjectMetadataStatusResponseInner object itself. - */ - public SsisObjectMetadataStatusResponseInner withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the name property: The operation name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The operation name. - * - * @param name the name value to set. - * @return the SsisObjectMetadataStatusResponseInner object itself. - */ - public SsisObjectMetadataStatusResponseInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the properties property: The operation properties. - * - * @return the properties value. - */ - public String properties() { - return this.properties; - } - - /** - * Set the properties property: The operation properties. - * - * @param properties the properties value to set. - * @return the SsisObjectMetadataStatusResponseInner object itself. - */ - public SsisObjectMetadataStatusResponseInner withProperties(String properties) { - this.properties = properties; - return this; - } - - /** - * Get the error property: The operation error message. - * - * @return the error value. - */ - public String error() { - return this.error; - } - - /** - * Set the error property: The operation error message. - * - * @param error the error value to set. - * @return the SsisObjectMetadataStatusResponseInner object itself. - */ - public SsisObjectMetadataStatusResponseInner withError(String error) { - this.error = error; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java deleted file mode 100644 index 697268e70b3ca..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java +++ /dev/null @@ -1,251 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SsisAccessCredential; -import com.azure.resourcemanager.datafactory.models.SsisChildPackage; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** SSIS package location properties. */ -@Fluent -public final class SsisPackageLocationTypeProperties { - /* - * Password of the package. - */ - @JsonProperty(value = "packagePassword") - private SecretBase packagePassword; - - /* - * The package access credential. - */ - @JsonProperty(value = "accessCredential") - private SsisAccessCredential accessCredential; - - /* - * The configuration file of the package execution. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "configurationPath") - private Object configurationPath; - - /* - * The configuration file access credential. - */ - @JsonProperty(value = "configurationAccessCredential") - private SsisAccessCredential configurationAccessCredential; - - /* - * The package name. - */ - @JsonProperty(value = "packageName") - private String packageName; - - /* - * The embedded package content. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "packageContent") - private Object packageContent; - - /* - * The embedded package last modified date. - */ - @JsonProperty(value = "packageLastModifiedDate") - private String packageLastModifiedDate; - - /* - * The embedded child package list. - */ - @JsonProperty(value = "childPackages") - private List childPackages; - - /** - * Get the packagePassword property: Password of the package. - * - * @return the packagePassword value. - */ - public SecretBase packagePassword() { - return this.packagePassword; - } - - /** - * Set the packagePassword property: Password of the package. - * - * @param packagePassword the packagePassword value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackagePassword(SecretBase packagePassword) { - this.packagePassword = packagePassword; - return this; - } - - /** - * Get the accessCredential property: The package access credential. - * - * @return the accessCredential value. - */ - public SsisAccessCredential accessCredential() { - return this.accessCredential; - } - - /** - * Set the accessCredential property: The package access credential. - * - * @param accessCredential the accessCredential value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withAccessCredential(SsisAccessCredential accessCredential) { - this.accessCredential = accessCredential; - return this; - } - - /** - * Get the configurationPath property: The configuration file of the package execution. Type: string (or Expression - * with resultType string). - * - * @return the configurationPath value. - */ - public Object configurationPath() { - return this.configurationPath; - } - - /** - * Set the configurationPath property: The configuration file of the package execution. Type: string (or Expression - * with resultType string). - * - * @param configurationPath the configurationPath value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withConfigurationPath(Object configurationPath) { - this.configurationPath = configurationPath; - return this; - } - - /** - * Get the configurationAccessCredential property: The configuration file access credential. - * - * @return the configurationAccessCredential value. - */ - public SsisAccessCredential configurationAccessCredential() { - return this.configurationAccessCredential; - } - - /** - * Set the configurationAccessCredential property: The configuration file access credential. - * - * @param configurationAccessCredential the configurationAccessCredential value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withConfigurationAccessCredential( - SsisAccessCredential configurationAccessCredential) { - this.configurationAccessCredential = configurationAccessCredential; - return this; - } - - /** - * Get the packageName property: The package name. - * - * @return the packageName value. - */ - public String packageName() { - return this.packageName; - } - - /** - * Set the packageName property: The package name. - * - * @param packageName the packageName value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackageName(String packageName) { - this.packageName = packageName; - return this; - } - - /** - * Get the packageContent property: The embedded package content. Type: string (or Expression with resultType - * string). - * - * @return the packageContent value. - */ - public Object packageContent() { - return this.packageContent; - } - - /** - * Set the packageContent property: The embedded package content. Type: string (or Expression with resultType - * string). - * - * @param packageContent the packageContent value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackageContent(Object packageContent) { - this.packageContent = packageContent; - return this; - } - - /** - * Get the packageLastModifiedDate property: The embedded package last modified date. - * - * @return the packageLastModifiedDate value. - */ - public String packageLastModifiedDate() { - return this.packageLastModifiedDate; - } - - /** - * Set the packageLastModifiedDate property: The embedded package last modified date. - * - * @param packageLastModifiedDate the packageLastModifiedDate value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackageLastModifiedDate(String packageLastModifiedDate) { - this.packageLastModifiedDate = packageLastModifiedDate; - return this; - } - - /** - * Get the childPackages property: The embedded child package list. - * - * @return the childPackages value. - */ - public List childPackages() { - return this.childPackages; - } - - /** - * Set the childPackages property: The embedded child package list. - * - * @param childPackages the childPackages value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withChildPackages(List childPackages) { - this.childPackages = childPackages; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (packagePassword() != null) { - packagePassword().validate(); - } - if (accessCredential() != null) { - accessCredential().validate(); - } - if (configurationAccessCredential() != null) { - configurationAccessCredential().validate(); - } - if (childPackages() != null) { - childPackages().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SwitchActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SwitchActivityTypeProperties.java deleted file mode 100644 index b696be338f9b9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SwitchActivityTypeProperties.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Switch activity properties. */ -@Fluent -public final class SwitchActivityTypeProperties { - /* - * An expression that would evaluate to a string or integer. This is used - * to determine the block of activities in cases that will be executed. - */ - @JsonProperty(value = "on", required = true) - private Expression on; - - /* - * List of cases that correspond to expected values of the 'on' property. - * This is an optional property and if not provided, the activity will - * execute activities provided in defaultActivities. - */ - @JsonProperty(value = "cases") - private List cases; - - /* - * List of activities to execute if no case condition is satisfied. This is - * an optional property and if not provided, the activity will exit without - * any action. - */ - @JsonProperty(value = "defaultActivities") - private List defaultActivities; - - /** - * Get the on property: An expression that would evaluate to a string or integer. This is used to determine the - * block of activities in cases that will be executed. - * - * @return the on value. - */ - public Expression on() { - return this.on; - } - - /** - * Set the on property: An expression that would evaluate to a string or integer. This is used to determine the - * block of activities in cases that will be executed. - * - * @param on the on value to set. - * @return the SwitchActivityTypeProperties object itself. - */ - public SwitchActivityTypeProperties withOn(Expression on) { - this.on = on; - return this; - } - - /** - * Get the cases property: List of cases that correspond to expected values of the 'on' property. This is an - * optional property and if not provided, the activity will execute activities provided in defaultActivities. - * - * @return the cases value. - */ - public List cases() { - return this.cases; - } - - /** - * Set the cases property: List of cases that correspond to expected values of the 'on' property. This is an - * optional property and if not provided, the activity will execute activities provided in defaultActivities. - * - * @param cases the cases value to set. - * @return the SwitchActivityTypeProperties object itself. - */ - public SwitchActivityTypeProperties withCases(List cases) { - this.cases = cases; - return this; - } - - /** - * Get the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the defaultActivities value. - */ - public List defaultActivities() { - return this.defaultActivities; - } - - /** - * Set the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param defaultActivities the defaultActivities value to set. - * @return the SwitchActivityTypeProperties object itself. - */ - public SwitchActivityTypeProperties withDefaultActivities(List defaultActivities) { - this.defaultActivities = defaultActivities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (on() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property on in model SwitchActivityTypeProperties")); - } else { - on().validate(); - } - if (cases() != null) { - cases().forEach(e -> e.validate()); - } - if (defaultActivities() != null) { - defaultActivities().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SwitchActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java deleted file mode 100644 index 1c81b6013e5b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SybaseAuthenticationType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sybase linked service properties. */ -@Fluent -public final class SybaseLinkedServiceTypeProperties { - /* - * Server name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * Database name for connection. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /* - * Schema name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * AuthenticationType to be used for connection. - */ - @JsonProperty(value = "authenticationType") - private SybaseAuthenticationType authenticationType; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the schema property: Schema name for connection. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: Schema name for connection. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. - * - * @return the authenticationType value. - */ - public SybaseAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. - * - * @param authenticationType the authenticationType value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withAuthenticationType(SybaseAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model SybaseLinkedServiceTypeProperties")); - } - if (database() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model SybaseLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SybaseLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java deleted file mode 100644 index 669e81a6a8c7b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sybase table dataset properties. */ -@Fluent -public final class SybaseTableDatasetTypeProperties { - /* - * The Sybase table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SybaseTableDatasetTypeProperties object itself. - */ - public SybaseTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java deleted file mode 100644 index f28e0d1832328..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.TeamDeskAuthenticationType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** TeamDesk linked service type properties. */ -@Fluent -public final class TeamDeskLinkedServiceTypeProperties { - /* - * The authentication type to use. - */ - @JsonProperty(value = "authenticationType", required = true) - private TeamDeskAuthenticationType authenticationType; - - /* - * The url to connect TeamDesk source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The username of the TeamDesk source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The password of the TeamDesk source. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The api token for the TeamDesk source. - */ - @JsonProperty(value = "apiToken") - private SecretBase apiToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public TeamDeskAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the TeamDeskLinkedServiceTypeProperties object itself. - */ - public TeamDeskLinkedServiceTypeProperties withAuthenticationType(TeamDeskAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the TeamDeskLinkedServiceTypeProperties object itself. - */ - public TeamDeskLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the username property: The username of the TeamDesk source. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username of the TeamDesk source. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the TeamDeskLinkedServiceTypeProperties object itself. - */ - public TeamDeskLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password of the TeamDesk source. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password of the TeamDesk source. - * - * @param password the password value to set. - * @return the TeamDeskLinkedServiceTypeProperties object itself. - */ - public TeamDeskLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the apiToken property: The api token for the TeamDesk source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.apiToken; - } - - /** - * Set the apiToken property: The api token for the TeamDesk source. - * - * @param apiToken the apiToken value to set. - * @return the TeamDeskLinkedServiceTypeProperties object itself. - */ - public TeamDeskLinkedServiceTypeProperties withApiToken(SecretBase apiToken) { - this.apiToken = apiToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the TeamDeskLinkedServiceTypeProperties object itself. - */ - public TeamDeskLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model TeamDeskLinkedServiceTypeProperties")); - } - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model TeamDeskLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (apiToken() != null) { - apiToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TeamDeskLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java deleted file mode 100644 index 90f23d0e83898..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.TeradataAuthenticationType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Teradata linked service properties. */ -@Fluent -public final class TeradataLinkedServiceTypeProperties { - /* - * Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * Server name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * AuthenticationType to be used for connection. - */ - @JsonProperty(value = "authenticationType") - private TeradataAuthenticationType authenticationType; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. - * - * @return the authenticationType value. - */ - public TeradataAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. - * - * @param authenticationType the authenticationType value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withAuthenticationType(TeradataAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java deleted file mode 100644 index e15a0f1869eb5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Teradata dataset properties. */ -@Fluent -public final class TeradataTableDatasetTypeProperties { - /* - * The database name of Teradata. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database") - private Object database; - - /* - * The table name of Teradata. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the TeradataTableDatasetTypeProperties object itself. - */ - public TeradataTableDatasetTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the TeradataTableDatasetTypeProperties object itself. - */ - public TeradataTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerQueryResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerQueryResponseInner.java deleted file mode 100644 index 3fdb9be1648e1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerQueryResponseInner.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A query of triggers. */ -@Fluent -public final class TriggerQueryResponseInner { - /* - * List of triggers. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - */ - @JsonProperty(value = "continuationToken") - private String continuationToken; - - /** - * Get the value property: List of triggers. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of triggers. - * - * @param value the value value to set. - * @return the TriggerQueryResponseInner object itself. - */ - public TriggerQueryResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @return the continuationToken value. - */ - public String continuationToken() { - return this.continuationToken; - } - - /** - * Set the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @param continuationToken the continuationToken value to set. - * @return the TriggerQueryResponseInner object itself. - */ - public TriggerQueryResponseInner withContinuationToken(String continuationToken) { - this.continuationToken = continuationToken; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model TriggerQueryResponseInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TriggerQueryResponseInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerResourceInner.java deleted file mode 100644 index fffbf44449efd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerResourceInner.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Trigger resource type. */ -@Fluent -public final class TriggerResourceInner extends SubResource { - /* - * Properties of the trigger. - */ - @JsonProperty(value = "properties", required = true) - private Trigger properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Properties of the trigger. - * - * @return the properties value. - */ - public Trigger properties() { - return this.properties; - } - - /** - * Set the properties property: Properties of the trigger. - * - * @param properties the properties value to set. - * @return the TriggerResourceInner object itself. - */ - public TriggerResourceInner withProperties(Trigger properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public TriggerResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property properties in model TriggerResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TriggerResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerRunsQueryResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerRunsQueryResponseInner.java deleted file mode 100644 index 0ea8535375ee1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerRunsQueryResponseInner.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.TriggerRun; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of trigger runs. */ -@Fluent -public final class TriggerRunsQueryResponseInner { - /* - * List of trigger runs. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - */ - @JsonProperty(value = "continuationToken") - private String continuationToken; - - /** - * Get the value property: List of trigger runs. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of trigger runs. - * - * @param value the value value to set. - * @return the TriggerRunsQueryResponseInner object itself. - */ - public TriggerRunsQueryResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @return the continuationToken value. - */ - public String continuationToken() { - return this.continuationToken; - } - - /** - * Set the continuationToken property: The continuation token for getting the next page of results, if any remaining - * results exist, null otherwise. - * - * @param continuationToken the continuationToken value to set. - * @return the TriggerRunsQueryResponseInner object itself. - */ - public TriggerRunsQueryResponseInner withContinuationToken(String continuationToken) { - this.continuationToken = continuationToken; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model TriggerRunsQueryResponseInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TriggerRunsQueryResponseInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerSubscriptionOperationStatusInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerSubscriptionOperationStatusInner.java deleted file mode 100644 index cd30cb6f8465a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TriggerSubscriptionOperationStatusInner.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.resourcemanager.datafactory.models.EventSubscriptionStatus; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Defines the response of a trigger subscription operation. */ -@Immutable -public final class TriggerSubscriptionOperationStatusInner { - /* - * Trigger name. - */ - @JsonProperty(value = "triggerName", access = JsonProperty.Access.WRITE_ONLY) - private String triggerName; - - /* - * Event Subscription Status. - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private EventSubscriptionStatus status; - - /** - * Get the triggerName property: Trigger name. - * - * @return the triggerName value. - */ - public String triggerName() { - return this.triggerName; - } - - /** - * Get the status property: Event Subscription Status. - * - * @return the status value. - */ - public EventSubscriptionStatus status() { - return this.status; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java deleted file mode 100644 index a66392592a8d3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java +++ /dev/null @@ -1,273 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DependencyReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.List; - -/** Tumbling Window Trigger properties. */ -@Fluent -public final class TumblingWindowTriggerTypeProperties { - /* - * The frequency of the time windows. - */ - @JsonProperty(value = "frequency", required = true) - private TumblingWindowFrequency frequency; - - /* - * The interval of the time windows. The minimum interval allowed is 15 - * Minutes. - */ - @JsonProperty(value = "interval", required = true) - private int interval; - - /* - * The start time for the time period for the trigger during which events - * are fired for windows that are ready. Only UTC time is currently - * supported. - */ - @JsonProperty(value = "startTime", required = true) - private OffsetDateTime startTime; - - /* - * The end time for the time period for the trigger during which events are - * fired for windows that are ready. Only UTC time is currently supported. - */ - @JsonProperty(value = "endTime") - private OffsetDateTime endTime; - - /* - * Specifies how long the trigger waits past due time before triggering new - * run. It doesn't alter window start and end time. The default is 0. Type: - * string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "delay") - private Object delay; - - /* - * The max number of parallel time windows (ready for execution) for which - * a new run is triggered. - */ - @JsonProperty(value = "maxConcurrency", required = true) - private int maxConcurrency; - - /* - * Retry policy that will be applied for failed pipeline runs. - */ - @JsonProperty(value = "retryPolicy") - private RetryPolicy retryPolicy; - - /* - * Triggers that this trigger depends on. Only tumbling window triggers are - * supported. - */ - @JsonProperty(value = "dependsOn") - private List dependsOn; - - /** - * Get the frequency property: The frequency of the time windows. - * - * @return the frequency value. - */ - public TumblingWindowFrequency frequency() { - return this.frequency; - } - - /** - * Set the frequency property: The frequency of the time windows. - * - * @param frequency the frequency value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withFrequency(TumblingWindowFrequency frequency) { - this.frequency = frequency; - return this; - } - - /** - * Get the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes. - * - * @return the interval value. - */ - public int interval() { - return this.interval; - } - - /** - * Set the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes. - * - * @param interval the interval value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withInterval(int interval) { - this.interval = interval; - return this; - } - - /** - * Get the startTime property: The start time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @return the startTime value. - */ - public OffsetDateTime startTime() { - return this.startTime; - } - - /** - * Set the startTime property: The start time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @param startTime the startTime value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; - return this; - } - - /** - * Get the endTime property: The end time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @return the endTime value. - */ - public OffsetDateTime endTime() { - return this.endTime; - } - - /** - * Set the endTime property: The end time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @param endTime the endTime value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withEndTime(OffsetDateTime endTime) { - this.endTime = endTime; - return this; - } - - /** - * Get the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't - * alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the delay value. - */ - public Object delay() { - return this.delay; - } - - /** - * Set the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't - * alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param delay the delay value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withDelay(Object delay) { - this.delay = delay; - return this; - } - - /** - * Get the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new - * run is triggered. - * - * @return the maxConcurrency value. - */ - public int maxConcurrency() { - return this.maxConcurrency; - } - - /** - * Set the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new - * run is triggered. - * - * @param maxConcurrency the maxConcurrency value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withMaxConcurrency(int maxConcurrency) { - this.maxConcurrency = maxConcurrency; - return this; - } - - /** - * Get the retryPolicy property: Retry policy that will be applied for failed pipeline runs. - * - * @return the retryPolicy value. - */ - public RetryPolicy retryPolicy() { - return this.retryPolicy; - } - - /** - * Set the retryPolicy property: Retry policy that will be applied for failed pipeline runs. - * - * @param retryPolicy the retryPolicy value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withRetryPolicy(RetryPolicy retryPolicy) { - this.retryPolicy = retryPolicy; - return this; - } - - /** - * Get the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported. - * - * @return the dependsOn value. - */ - public List dependsOn() { - return this.dependsOn; - } - - /** - * Set the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported. - * - * @param dependsOn the dependsOn value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withDependsOn(List dependsOn) { - this.dependsOn = dependsOn; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (frequency() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property frequency in model TumblingWindowTriggerTypeProperties")); - } - if (startTime() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property startTime in model TumblingWindowTriggerTypeProperties")); - } - if (retryPolicy() != null) { - retryPolicy().validate(); - } - if (dependsOn() != null) { - dependsOn().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TumblingWindowTriggerTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java deleted file mode 100644 index 5a0a6c3c27cf2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Until activity properties. */ -@Fluent -public final class UntilActivityTypeProperties { - /* - * An expression that would evaluate to Boolean. The loop will continue - * until this expression evaluates to true - */ - @JsonProperty(value = "expression", required = true) - private Expression expression; - - /* - * 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 = "timeout") - private Object timeout; - - /* - * List of activities to execute. - */ - @JsonProperty(value = "activities", required = true) - private List activities; - - /** - * Get the expression property: An expression that would evaluate to Boolean. The loop will continue until this - * expression evaluates to true. - * - * @return the expression value. - */ - public Expression expression() { - return this.expression; - } - - /** - * Set the expression property: An expression that would evaluate to Boolean. The loop will continue until this - * expression evaluates to true. - * - * @param expression the expression value to set. - * @return the UntilActivityTypeProperties object itself. - */ - public UntilActivityTypeProperties withExpression(Expression expression) { - this.expression = expression; - return this; - } - - /** - * Get the timeout property: 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 the timeout property: 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 UntilActivityTypeProperties object itself. - */ - public UntilActivityTypeProperties withTimeout(Object timeout) { - this.timeout = timeout; - return this; - } - - /** - * Get the activities property: List of activities to execute. - * - * @return the activities value. - */ - public List activities() { - return this.activities; - } - - /** - * Set the activities property: List of activities to execute. - * - * @param activities the activities value to set. - * @return the UntilActivityTypeProperties object itself. - */ - public UntilActivityTypeProperties withActivities(List activities) { - this.activities = activities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (expression() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property expression in model UntilActivityTypeProperties")); - } else { - expression().validate(); - } - if (activities() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property activities in model UntilActivityTypeProperties")); - } else { - activities().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(UntilActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java deleted file mode 100644 index e46f4c0b6b298..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Validation activity properties. */ -@Fluent -public final class ValidationActivityTypeProperties { - /* - * 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])). - */ - @JsonProperty(value = "timeout") - private Object timeout; - - /* - * A delay in seconds between validation attempts. If no value is - * specified, 10 seconds will be used as the default. Type: integer (or - * Expression with resultType integer). - */ - @JsonProperty(value = "sleep") - private Object sleep; - - /* - * Can be used if dataset points to a file. The file must be greater than - * or equal in size to the value specified. Type: integer (or Expression - * with resultType integer). - */ - @JsonProperty(value = "minimumSize") - private Object minimumSize; - - /* - * Can be used if dataset points to a folder. If set to true, the folder - * must have at least one file. If set to false, the folder must be empty. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "childItems") - private Object childItems; - - /* - * Validation activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /** - * Get the timeout property: 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])). - * - * @return the timeout value. - */ - public Object timeout() { - return this.timeout; - } - - /** - * Set the timeout property: 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])). - * - * @param timeout the timeout value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withTimeout(Object timeout) { - this.timeout = timeout; - return this; - } - - /** - * Get the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will - * be used as the default. Type: integer (or Expression with resultType integer). - * - * @return the sleep value. - */ - public Object sleep() { - return this.sleep; - } - - /** - * Set the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will - * be used as the default. Type: integer (or Expression with resultType integer). - * - * @param sleep the sleep value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withSleep(Object sleep) { - this.sleep = sleep; - return this; - } - - /** - * Get the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in - * size to the value specified. Type: integer (or Expression with resultType integer). - * - * @return the minimumSize value. - */ - public Object minimumSize() { - return this.minimumSize; - } - - /** - * Set the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in - * size to the value specified. Type: integer (or Expression with resultType integer). - * - * @param minimumSize the minimumSize value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withMinimumSize(Object minimumSize) { - this.minimumSize = minimumSize; - return this; - } - - /** - * Get the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at - * least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). - * - * @return the childItems value. - */ - public Object childItems() { - return this.childItems; - } - - /** - * Set the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at - * least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). - * - * @param childItems the childItems value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withChildItems(Object childItems) { - this.childItems = childItems; - return this; - } - - /** - * Get the dataset property: Validation activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: Validation activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataset() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model ValidationActivityTypeProperties")); - } else { - dataset().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ValidationActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java deleted file mode 100644 index bd6088c4a9542..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Vertica Properties. */ -@Fluent -public final class VerticaDatasetTypeProperties { - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Vertica. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Vertica. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the VerticaDatasetTypeProperties object itself. - */ - public VerticaDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Vertica. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Vertica. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the VerticaDatasetTypeProperties object itself. - */ - public VerticaDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the VerticaDatasetTypeProperties object itself. - */ - public VerticaDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java deleted file mode 100644 index e11afcba64c80..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Vertica linked service properties. */ -@Fluent -public final class VerticaLinkedServiceTypeProperties { - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the VerticaLinkedServiceTypeProperties object itself. - */ - public VerticaLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the VerticaLinkedServiceTypeProperties object itself. - */ - public VerticaLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the VerticaLinkedServiceTypeProperties object itself. - */ - public VerticaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WaitActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WaitActivityTypeProperties.java deleted file mode 100644 index cae405fb4c270..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WaitActivityTypeProperties.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Wait activity properties. */ -@Fluent -public final class WaitActivityTypeProperties { - /* - * Duration in seconds. - */ - @JsonProperty(value = "waitTimeInSeconds", required = true) - private Object waitTimeInSeconds; - - /** - * Get the waitTimeInSeconds property: Duration in seconds. - * - * @return the waitTimeInSeconds value. - */ - public Object waitTimeInSeconds() { - return this.waitTimeInSeconds; - } - - /** - * Set the waitTimeInSeconds property: Duration in seconds. - * - * @param waitTimeInSeconds the waitTimeInSeconds value to set. - * @return the WaitActivityTypeProperties object itself. - */ - public WaitActivityTypeProperties withWaitTimeInSeconds(Object waitTimeInSeconds) { - this.waitTimeInSeconds = waitTimeInSeconds; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (waitTimeInSeconds() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property waitTimeInSeconds in model WaitActivityTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WaitActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java deleted file mode 100644 index 1f8d7d5e71e84..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java +++ /dev/null @@ -1,298 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.WebActivityAuthentication; -import com.azure.resourcemanager.datafactory.models.WebActivityMethod; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Web activity type properties. */ -@Fluent -public final class WebActivityTypeProperties { - /* - * Rest API method for target endpoint. - */ - @JsonProperty(value = "method", required = true) - private WebActivityMethod method; - - /* - * Web activity target endpoint and path. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * 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 = "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 = "body") - private Object body; - - /* - * Authentication method used for calling the endpoint. - */ - @JsonProperty(value = "authentication") - private WebActivityAuthentication authentication; - - /* - * When set to true, Certificate validation will be disabled. - */ - @JsonProperty(value = "disableCertValidation") - private Boolean disableCertValidation; - - /* - * List of datasets passed to web endpoint. - */ - @JsonProperty(value = "datasets") - private List datasets; - - /* - * List of linked services passed to web endpoint. - */ - @JsonProperty(value = "linkedServices") - private List linkedServices; - - /* - * The integration runtime reference. - */ - @JsonProperty(value = "connectVia") - private IntegrationRuntimeReference connectVia; - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public WebActivityMethod method() { - return this.method; - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withMethod(WebActivityMethod method) { - this.method = method; - return this; - } - - /** - * Get the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the headers property: 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 the headers property: 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 WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withHeaders(Object headers) { - this.headers = headers; - return this; - } - - /** - * Get the body property: 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 the body property: 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 WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withBody(Object body) { - this.body = body; - return this; - } - - /** - * Get the authentication property: Authentication method used for calling the endpoint. - * - * @return the authentication value. - */ - public WebActivityAuthentication authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Authentication method used for calling the endpoint. - * - * @param authentication the authentication value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withAuthentication(WebActivityAuthentication authentication) { - this.authentication = authentication; - return this; - } - - /** - * Get the disableCertValidation property: When set to true, Certificate validation will be disabled. - * - * @return the disableCertValidation value. - */ - public Boolean disableCertValidation() { - return this.disableCertValidation; - } - - /** - * Set the disableCertValidation property: When set to true, Certificate validation will be disabled. - * - * @param disableCertValidation the disableCertValidation value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withDisableCertValidation(Boolean disableCertValidation) { - this.disableCertValidation = disableCertValidation; - return this; - } - - /** - * Get the datasets property: List of datasets passed to web endpoint. - * - * @return the datasets value. - */ - public List datasets() { - return this.datasets; - } - - /** - * Set the datasets property: List of datasets passed to web endpoint. - * - * @param datasets the datasets value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withDatasets(List datasets) { - this.datasets = datasets; - return this; - } - - /** - * Get the linkedServices property: List of linked services passed to web endpoint. - * - * @return the linkedServices value. - */ - public List linkedServices() { - return this.linkedServices; - } - - /** - * Set the linkedServices property: List of linked services passed to web endpoint. - * - * @param linkedServices the linkedServices value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withLinkedServices(List linkedServices) { - this.linkedServices = linkedServices; - return this; - } - - /** - * Get the connectVia property: The integration runtime reference. - * - * @return the connectVia value. - */ - public IntegrationRuntimeReference connectVia() { - return this.connectVia; - } - - /** - * Set the connectVia property: The integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withConnectVia(IntegrationRuntimeReference connectVia) { - this.connectVia = connectVia; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (method() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property method in model WebActivityTypeProperties")); - } - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property url in model WebActivityTypeProperties")); - } - if (authentication() != null) { - authentication().validate(); - } - if (datasets() != null) { - datasets().forEach(e -> e.validate()); - } - if (linkedServices() != null) { - linkedServices().forEach(e -> e.validate()); - } - if (connectVia() != null) { - connectVia().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java deleted file mode 100644 index 63f230dbf1114..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Web table dataset properties. */ -@Fluent -public final class WebTableDatasetTypeProperties { - /* - * The zero-based index of the table in the web page. Type: integer (or - * Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "index", required = true) - private Object index; - - /* - * The relative URL to the web page from the linked service URL. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "path") - private Object path; - - /** - * Get the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @return the index value. - */ - public Object index() { - return this.index; - } - - /** - * Set the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @param index the index value to set. - * @return the WebTableDatasetTypeProperties object itself. - */ - public WebTableDatasetTypeProperties withIndex(Object index) { - this.index = index; - return this; - } - - /** - * Get the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @param path the path value to set. - * @return the WebTableDatasetTypeProperties object itself. - */ - public WebTableDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (index() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property index in model WebTableDatasetTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebTableDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java deleted file mode 100644 index 6606ba032918b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java +++ /dev/null @@ -1,249 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.WebActivityAuthentication; -import com.azure.resourcemanager.datafactory.models.WebhookActivityMethod; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** WebHook activity type properties. */ -@Fluent -public final class WebhookActivityTypeProperties { - /* - * Rest API method for target endpoint. - */ - @JsonProperty(value = "method", required = true) - private WebhookActivityMethod method; - - /* - * WebHook activity target endpoint and path. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The timeout within which the webhook should be called back. If there is - * no value specified, it defaults to 10 minutes. Type: string. Pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "timeout") - private String 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 = "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 = "body") - private Object body; - - /* - * Authentication method used for calling the endpoint. - */ - @JsonProperty(value = "authentication") - private WebActivityAuthentication authentication; - - /* - * When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by - * setting statusCode >= 400 in callback request. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "reportStatusOnCallBack") - private Object reportStatusOnCallBack; - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public WebhookActivityMethod method() { - return this.method; - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withMethod(WebhookActivityMethod method) { - this.method = method; - return this; - } - - /** - * Get the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType - * string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType - * string). - * - * @param url the url value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the timeout property: The timeout within which the webhook should be called back. If there is no value - * specified, it defaults to 10 minutes. Type: string. Pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the timeout value. - */ - public String timeout() { - return this.timeout; - } - - /** - * Set the timeout property: The timeout within which the webhook should be called back. If there is no value - * specified, it defaults to 10 minutes. Type: string. Pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param timeout the timeout value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withTimeout(String timeout) { - this.timeout = timeout; - return this; - } - - /** - * Get the headers property: 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 the headers property: 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 WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withHeaders(Object headers) { - this.headers = headers; - return this; - } - - /** - * Get the body property: 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 the body property: 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 WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withBody(Object body) { - this.body = body; - return this; - } - - /** - * Get the authentication property: Authentication method used for calling the endpoint. - * - * @return the authentication value. - */ - public WebActivityAuthentication authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Authentication method used for calling the endpoint. - * - * @param authentication the authentication value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withAuthentication(WebActivityAuthentication authentication) { - this.authentication = authentication; - return this; - } - - /** - * Get the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback - * request. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the reportStatusOnCallBack value. - */ - public Object reportStatusOnCallBack() { - return this.reportStatusOnCallBack; - } - - /** - * Set the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback - * request. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param reportStatusOnCallBack the reportStatusOnCallBack value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withReportStatusOnCallBack(Object reportStatusOnCallBack) { - this.reportStatusOnCallBack = reportStatusOnCallBack; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (method() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property method in model WebhookActivityTypeProperties")); - } - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model WebhookActivityTypeProperties")); - } - if (authentication() != null) { - authentication().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebhookActivityTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java deleted file mode 100644 index b4499b3268f78..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Xero Service linked service properties. */ -@Fluent -public final class XeroLinkedServiceTypeProperties { - /* - * Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The endpoint of the Xero server. (i.e. api.xero.com) - */ - @JsonProperty(value = "host") - private Object host; - - /* - * The consumer key associated with the Xero application. - */ - @JsonProperty(value = "consumerKey") - private SecretBase consumerKey; - - /* - * The private key from the .pem file that was generated for your Xero - * private application. You must include all the text from the .pem file, - * including the Unix line endings( - * ). - */ - @JsonProperty(value = "privateKey") - private SecretBase privateKey; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the host property: The endpoint of the Xero server. (i.e. api.xero.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The endpoint of the Xero server. (i.e. api.xero.com). - * - * @param host the host value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the consumerKey property: The consumer key associated with the Xero application. - * - * @return the consumerKey value. - */ - public SecretBase consumerKey() { - return this.consumerKey; - } - - /** - * Set the consumerKey property: The consumer key associated with the Xero application. - * - * @param consumerKey the consumerKey value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withConsumerKey(SecretBase consumerKey) { - this.consumerKey = consumerKey; - return this; - } - - /** - * Get the privateKey property: The private key from the .pem file that was generated for your Xero private - * application. You must include all the text from the .pem file, including the Unix line endings( ). - * - * @return the privateKey value. - */ - public SecretBase privateKey() { - return this.privateKey; - } - - /** - * Set the privateKey property: The private key from the .pem file that was generated for your Xero private - * application. You must include all the text from the .pem file, including the Unix line endings( ). - * - * @param privateKey the privateKey value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withPrivateKey(SecretBase privateKey) { - this.privateKey = privateKey; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (consumerKey() != null) { - consumerKey().validate(); - } - if (privateKey() != null) { - privateKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java deleted file mode 100644 index 200fee91b11e7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Xml dataset properties. */ -@Fluent -public final class XmlDatasetTypeProperties { - /* - * The location of the json data storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The code page name of the preferred encoding. If not specified, the - * default value is UTF-8, unless BOM denotes another Unicode encoding. - * Refer to the name column of the table in the following link to set - * supported values: - * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * The null value string. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nullValue") - private Object nullValue; - - /* - * The data compression method used for the json dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the location property: The location of the json data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the json data storage. - * - * @param location the location value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.nullValue; - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withNullValue(Object nullValue) { - this.nullValue = nullValue; - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model XmlDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(XmlDatasetTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java deleted file mode 100644 index 87f8d01c0fc8b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.ZendeskAuthenticationType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Zendesk linked service type properties. */ -@Fluent -public final class ZendeskLinkedServiceTypeProperties { - /* - * The authentication type to use. - */ - @JsonProperty(value = "authenticationType", required = true) - private ZendeskAuthenticationType authenticationType; - - /* - * The url to connect Zendesk source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The username of the Zendesk source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The password of the Zendesk source. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The api token for the Zendesk source. - */ - @JsonProperty(value = "apiToken") - private SecretBase apiToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ZendeskAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ZendeskLinkedServiceTypeProperties object itself. - */ - public ZendeskLinkedServiceTypeProperties withAuthenticationType(ZendeskAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the ZendeskLinkedServiceTypeProperties object itself. - */ - public ZendeskLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the username property: The username of the Zendesk source. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username of the Zendesk source. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the ZendeskLinkedServiceTypeProperties object itself. - */ - public ZendeskLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password of the Zendesk source. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password of the Zendesk source. - * - * @param password the password value to set. - * @return the ZendeskLinkedServiceTypeProperties object itself. - */ - public ZendeskLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the apiToken property: The api token for the Zendesk source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.apiToken; - } - - /** - * Set the apiToken property: The api token for the Zendesk source. - * - * @param apiToken the apiToken value to set. - * @return the ZendeskLinkedServiceTypeProperties object itself. - */ - public ZendeskLinkedServiceTypeProperties withApiToken(SecretBase apiToken) { - this.apiToken = apiToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ZendeskLinkedServiceTypeProperties object itself. - */ - public ZendeskLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (authenticationType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model ZendeskLinkedServiceTypeProperties")); - } - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model ZendeskLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (apiToken() != null) { - apiToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ZendeskLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java deleted file mode 100644 index 527c687236319..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Zoho server linked service properties. */ -@Fluent -public final class ZohoLinkedServiceTypeProperties { - /* - * Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) - */ - @JsonProperty(value = "endpoint") - private Object endpoint; - - /* - * The access token for Zoho authentication. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the endpoint property: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - * - * @param endpoint the endpoint value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the accessToken property: The access token for Zoho authentication. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token for Zoho authentication. - * - * @param accessToken the accessToken value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accessToken() != null) { - accessToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/package-info.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/package-info.java deleted file mode 100644 index 2ec2747e0928b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/package-info.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * Package containing the inner data models for DataFactoryManagementClient. The Azure Data Factory V2 management API - * provides a RESTful set of web services that interact with Azure Data Factory V2 services. - */ -package com.azure.resourcemanager.datafactory.fluent.models; diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/package-info.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/package-info.java deleted file mode 100644 index 24430fbec3bfb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/package-info.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * Package containing the service clients for DataFactoryManagementClient. The Azure Data Factory V2 management API - * provides a RESTful set of web services that interact with Azure Data Factory V2 services. - */ -package com.azure.resourcemanager.datafactory.fluent; diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/AccessPolicyResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/AccessPolicyResponseImpl.java deleted file mode 100644 index 2ec494828944d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/AccessPolicyResponseImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner; -import com.azure.resourcemanager.datafactory.models.AccessPolicyResponse; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; - -public final class AccessPolicyResponseImpl implements AccessPolicyResponse { - private AccessPolicyResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - AccessPolicyResponseImpl( - AccessPolicyResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public UserAccessPolicy policy() { - return this.innerModel().policy(); - } - - public String accessToken() { - return this.innerModel().accessToken(); - } - - public String dataPlaneUrl() { - return this.innerModel().dataPlaneUrl(); - } - - public AccessPolicyResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java deleted file mode 100644 index 0440d2dbb1862..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.ActivityRunsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in ActivityRunsClient. */ -public final class ActivityRunsClientImpl implements ActivityRunsClient { - /** The proxy service used to perform REST calls. */ - private final ActivityRunsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of ActivityRunsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ActivityRunsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(ActivityRunsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientActivityRuns to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface ActivityRunsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryByPipelineRun( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("runId") String runId, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RunFilterParameters filterParameters, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByPipelineRunWithResponseAsync( - String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .queryByPipelineRun( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - runId, - this.client.getApiVersion(), - filterParameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByPipelineRunWithResponseAsync( - String resourceGroupName, - String factoryName, - String runId, - RunFilterParameters filterParameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .queryByPipelineRun( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - runId, - this.client.getApiVersion(), - filterParameters, - accept, - context); - } - - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono queryByPipelineRunAsync( - String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters) { - return queryByPipelineRunWithResponseAsync(resourceGroupName, factoryName, runId, filterParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ActivityRunsQueryResponseInner queryByPipelineRun( - String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters) { - return queryByPipelineRunAsync(resourceGroupName, factoryName, runId, filterParameters).block(); - } - - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response queryByPipelineRunWithResponse( - String resourceGroupName, - String factoryName, - String runId, - RunFilterParameters filterParameters, - Context context) { - return queryByPipelineRunWithResponseAsync(resourceGroupName, factoryName, runId, filterParameters, context) - .block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsImpl.java deleted file mode 100644 index 816e033453d8e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.ActivityRunsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.ActivityRuns; -import com.azure.resourcemanager.datafactory.models.ActivityRunsQueryResponse; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; - -public final class ActivityRunsImpl implements ActivityRuns { - private static final ClientLogger LOGGER = new ClientLogger(ActivityRunsImpl.class); - - private final ActivityRunsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public ActivityRunsImpl( - ActivityRunsClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public ActivityRunsQueryResponse queryByPipelineRun( - String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters) { - ActivityRunsQueryResponseInner inner = - this.serviceClient().queryByPipelineRun(resourceGroupName, factoryName, runId, filterParameters); - if (inner != null) { - return new ActivityRunsQueryResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response queryByPipelineRunWithResponse( - String resourceGroupName, - String factoryName, - String runId, - RunFilterParameters filterParameters, - Context context) { - Response inner = - this - .serviceClient() - .queryByPipelineRunWithResponse(resourceGroupName, factoryName, runId, filterParameters, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ActivityRunsQueryResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - private ActivityRunsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsQueryResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsQueryResponseImpl.java deleted file mode 100644 index 1ffd8a965acad..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsQueryResponseImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.ActivityRun; -import com.azure.resourcemanager.datafactory.models.ActivityRunsQueryResponse; -import java.util.Collections; -import java.util.List; - -public final class ActivityRunsQueryResponseImpl implements ActivityRunsQueryResponse { - private ActivityRunsQueryResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - ActivityRunsQueryResponseImpl( - ActivityRunsQueryResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public String continuationToken() { - return this.innerModel().continuationToken(); - } - - public ActivityRunsQueryResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/AddDataFlowToDebugSessionResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/AddDataFlowToDebugSessionResponseImpl.java deleted file mode 100644 index 5de8f2daba79c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/AddDataFlowToDebugSessionResponseImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.models.AddDataFlowToDebugSessionResponse; - -public final class AddDataFlowToDebugSessionResponseImpl implements AddDataFlowToDebugSessionResponse { - private AddDataFlowToDebugSessionResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - AddDataFlowToDebugSessionResponseImpl( - AddDataFlowToDebugSessionResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String jobVersion() { - return this.innerModel().jobVersion(); - } - - public AddDataFlowToDebugSessionResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CreateDataFlowDebugSessionResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CreateDataFlowDebugSessionResponseImpl.java deleted file mode 100644 index 51f6e85466752..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CreateDataFlowDebugSessionResponseImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionResponse; - -public final class CreateDataFlowDebugSessionResponseImpl implements CreateDataFlowDebugSessionResponse { - private CreateDataFlowDebugSessionResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - CreateDataFlowDebugSessionResponseImpl( - CreateDataFlowDebugSessionResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String status() { - return this.innerModel().status(); - } - - public String sessionId() { - return this.innerModel().sessionId(); - } - - public CreateDataFlowDebugSessionResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CreateRunResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CreateRunResponseImpl.java deleted file mode 100644 index 016311580ddf4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CreateRunResponseImpl.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; -import com.azure.resourcemanager.datafactory.models.CreateRunResponse; - -public final class CreateRunResponseImpl implements CreateRunResponse { - private CreateRunResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - CreateRunResponseImpl( - CreateRunResponseInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String runId() { - return this.innerModel().runId(); - } - - public CreateRunResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientBuilder.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientBuilder.java deleted file mode 100644 index 0415073729e87..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientBuilder.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.ServiceClientBuilder; -import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; -import com.azure.core.http.policy.RetryPolicy; -import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerAdapter; -import java.time.Duration; - -/** A builder for creating a new instance of the DataFactoryManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = {DataFactoryManagementClientImpl.class}) -public final class DataFactoryManagementClientBuilder { - /* - * The subscription identifier. - */ - private String subscriptionId; - - /** - * Sets The subscription identifier. - * - * @param subscriptionId the subscriptionId value. - * @return the DataFactoryManagementClientBuilder. - */ - public DataFactoryManagementClientBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /* - * server parameter - */ - private String endpoint; - - /** - * Sets server parameter. - * - * @param endpoint the endpoint value. - * @return the DataFactoryManagementClientBuilder. - */ - public DataFactoryManagementClientBuilder endpoint(String endpoint) { - this.endpoint = endpoint; - return this; - } - - /* - * The environment to connect to - */ - private AzureEnvironment environment; - - /** - * Sets The environment to connect to. - * - * @param environment the environment value. - * @return the DataFactoryManagementClientBuilder. - */ - public DataFactoryManagementClientBuilder environment(AzureEnvironment environment) { - this.environment = environment; - return this; - } - - /* - * The default poll interval for long-running operation - */ - private Duration defaultPollInterval; - - /** - * Sets The default poll interval for long-running operation. - * - * @param defaultPollInterval the defaultPollInterval value. - * @return the DataFactoryManagementClientBuilder. - */ - public DataFactoryManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = defaultPollInterval; - return this; - } - - /* - * The HTTP pipeline to send requests through - */ - private HttpPipeline pipeline; - - /** - * Sets The HTTP pipeline to send requests through. - * - * @param pipeline the pipeline value. - * @return the DataFactoryManagementClientBuilder. - */ - public DataFactoryManagementClientBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; - return this; - } - - /* - * The serializer to serialize an object into a string - */ - private SerializerAdapter serializerAdapter; - - /** - * Sets The serializer to serialize an object into a string. - * - * @param serializerAdapter the serializerAdapter value. - * @return the DataFactoryManagementClientBuilder. - */ - public DataFactoryManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { - this.serializerAdapter = serializerAdapter; - return this; - } - - /** - * Builds an instance of DataFactoryManagementClientImpl with the provided parameters. - * - * @return an instance of DataFactoryManagementClientImpl. - */ - public DataFactoryManagementClientImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (pipeline == null) { - this.pipeline = - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } - DataFactoryManagementClientImpl client = - new DataFactoryManagementClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); - return client; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java deleted file mode 100644 index db43280b04a1c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java +++ /dev/null @@ -1,559 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.ServiceClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.Response; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.exception.ManagementError; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.management.polling.PollerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.AsyncPollResponse; -import com.azure.core.util.polling.LongRunningOperationStatus; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.serializer.SerializerAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.ActivityRunsClient; -import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient; -import com.azure.resourcemanager.datafactory.fluent.DataFlowDebugSessionsClient; -import com.azure.resourcemanager.datafactory.fluent.DataFlowsClient; -import com.azure.resourcemanager.datafactory.fluent.DatasetsClient; -import com.azure.resourcemanager.datafactory.fluent.ExposureControlsClient; -import com.azure.resourcemanager.datafactory.fluent.FactoriesClient; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeNodesClient; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeObjectMetadatasClient; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimesClient; -import com.azure.resourcemanager.datafactory.fluent.LinkedServicesClient; -import com.azure.resourcemanager.datafactory.fluent.ManagedPrivateEndpointsClient; -import com.azure.resourcemanager.datafactory.fluent.ManagedVirtualNetworksClient; -import com.azure.resourcemanager.datafactory.fluent.OperationsClient; -import com.azure.resourcemanager.datafactory.fluent.PipelineRunsClient; -import com.azure.resourcemanager.datafactory.fluent.PipelinesClient; -import com.azure.resourcemanager.datafactory.fluent.PrivateEndPointConnectionsClient; -import com.azure.resourcemanager.datafactory.fluent.PrivateEndpointConnectionOperationsClient; -import com.azure.resourcemanager.datafactory.fluent.PrivateLinkResourcesClient; -import com.azure.resourcemanager.datafactory.fluent.TriggerRunsClient; -import com.azure.resourcemanager.datafactory.fluent.TriggersClient; -import java.io.IOException; -import java.lang.reflect.Type; -import java.nio.ByteBuffer; -import java.nio.charset.Charset; -import java.nio.charset.StandardCharsets; -import java.time.Duration; -import java.util.Map; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** Initializes a new instance of the DataFactoryManagementClientImpl type. */ -@ServiceClient(builder = DataFactoryManagementClientBuilder.class) -public final class DataFactoryManagementClientImpl implements DataFactoryManagementClient { - /** The subscription identifier. */ - private final String subscriptionId; - - /** - * Gets The subscription identifier. - * - * @return the subscriptionId value. - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - - /** server parameter. */ - private final String endpoint; - - /** - * Gets server parameter. - * - * @return the endpoint value. - */ - public String getEndpoint() { - return this.endpoint; - } - - /** Api Version. */ - private final String apiVersion; - - /** - * Gets Api Version. - * - * @return the apiVersion value. - */ - public String getApiVersion() { - return this.apiVersion; - } - - /** The HTTP pipeline to send requests through. */ - private final HttpPipeline httpPipeline; - - /** - * Gets The HTTP pipeline to send requests through. - * - * @return the httpPipeline value. - */ - public HttpPipeline getHttpPipeline() { - return this.httpPipeline; - } - - /** The serializer to serialize an object into a string. */ - private final SerializerAdapter serializerAdapter; - - /** - * Gets The serializer to serialize an object into a string. - * - * @return the serializerAdapter value. - */ - SerializerAdapter getSerializerAdapter() { - return this.serializerAdapter; - } - - /** The default poll interval for long-running operation. */ - private final Duration defaultPollInterval; - - /** - * Gets The default poll interval for long-running operation. - * - * @return the defaultPollInterval value. - */ - public Duration getDefaultPollInterval() { - return this.defaultPollInterval; - } - - /** The OperationsClient object to access its operations. */ - private final OperationsClient operations; - - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - public OperationsClient getOperations() { - return this.operations; - } - - /** The FactoriesClient object to access its operations. */ - private final FactoriesClient factories; - - /** - * Gets the FactoriesClient object to access its operations. - * - * @return the FactoriesClient object. - */ - public FactoriesClient getFactories() { - return this.factories; - } - - /** The ExposureControlsClient object to access its operations. */ - private final ExposureControlsClient exposureControls; - - /** - * Gets the ExposureControlsClient object to access its operations. - * - * @return the ExposureControlsClient object. - */ - public ExposureControlsClient getExposureControls() { - return this.exposureControls; - } - - /** The IntegrationRuntimesClient object to access its operations. */ - private final IntegrationRuntimesClient integrationRuntimes; - - /** - * Gets the IntegrationRuntimesClient object to access its operations. - * - * @return the IntegrationRuntimesClient object. - */ - public IntegrationRuntimesClient getIntegrationRuntimes() { - return this.integrationRuntimes; - } - - /** The IntegrationRuntimeObjectMetadatasClient object to access its operations. */ - private final IntegrationRuntimeObjectMetadatasClient integrationRuntimeObjectMetadatas; - - /** - * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. - * - * @return the IntegrationRuntimeObjectMetadatasClient object. - */ - public IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas() { - return this.integrationRuntimeObjectMetadatas; - } - - /** The IntegrationRuntimeNodesClient object to access its operations. */ - private final IntegrationRuntimeNodesClient integrationRuntimeNodes; - - /** - * Gets the IntegrationRuntimeNodesClient object to access its operations. - * - * @return the IntegrationRuntimeNodesClient object. - */ - public IntegrationRuntimeNodesClient getIntegrationRuntimeNodes() { - return this.integrationRuntimeNodes; - } - - /** The LinkedServicesClient object to access its operations. */ - private final LinkedServicesClient linkedServices; - - /** - * Gets the LinkedServicesClient object to access its operations. - * - * @return the LinkedServicesClient object. - */ - public LinkedServicesClient getLinkedServices() { - return this.linkedServices; - } - - /** The DatasetsClient object to access its operations. */ - private final DatasetsClient datasets; - - /** - * Gets the DatasetsClient object to access its operations. - * - * @return the DatasetsClient object. - */ - public DatasetsClient getDatasets() { - return this.datasets; - } - - /** The PipelinesClient object to access its operations. */ - private final PipelinesClient pipelines; - - /** - * Gets the PipelinesClient object to access its operations. - * - * @return the PipelinesClient object. - */ - public PipelinesClient getPipelines() { - return this.pipelines; - } - - /** The PipelineRunsClient object to access its operations. */ - private final PipelineRunsClient pipelineRuns; - - /** - * Gets the PipelineRunsClient object to access its operations. - * - * @return the PipelineRunsClient object. - */ - public PipelineRunsClient getPipelineRuns() { - return this.pipelineRuns; - } - - /** The ActivityRunsClient object to access its operations. */ - private final ActivityRunsClient activityRuns; - - /** - * Gets the ActivityRunsClient object to access its operations. - * - * @return the ActivityRunsClient object. - */ - public ActivityRunsClient getActivityRuns() { - return this.activityRuns; - } - - /** The TriggersClient object to access its operations. */ - private final TriggersClient triggers; - - /** - * Gets the TriggersClient object to access its operations. - * - * @return the TriggersClient object. - */ - public TriggersClient getTriggers() { - return this.triggers; - } - - /** The TriggerRunsClient object to access its operations. */ - private final TriggerRunsClient triggerRuns; - - /** - * Gets the TriggerRunsClient object to access its operations. - * - * @return the TriggerRunsClient object. - */ - public TriggerRunsClient getTriggerRuns() { - return this.triggerRuns; - } - - /** The DataFlowsClient object to access its operations. */ - private final DataFlowsClient dataFlows; - - /** - * Gets the DataFlowsClient object to access its operations. - * - * @return the DataFlowsClient object. - */ - public DataFlowsClient getDataFlows() { - return this.dataFlows; - } - - /** The DataFlowDebugSessionsClient object to access its operations. */ - private final DataFlowDebugSessionsClient dataFlowDebugSessions; - - /** - * Gets the DataFlowDebugSessionsClient object to access its operations. - * - * @return the DataFlowDebugSessionsClient object. - */ - public DataFlowDebugSessionsClient getDataFlowDebugSessions() { - return this.dataFlowDebugSessions; - } - - /** The ManagedVirtualNetworksClient object to access its operations. */ - private final ManagedVirtualNetworksClient managedVirtualNetworks; - - /** - * Gets the ManagedVirtualNetworksClient object to access its operations. - * - * @return the ManagedVirtualNetworksClient object. - */ - public ManagedVirtualNetworksClient getManagedVirtualNetworks() { - return this.managedVirtualNetworks; - } - - /** The ManagedPrivateEndpointsClient object to access its operations. */ - private final ManagedPrivateEndpointsClient managedPrivateEndpoints; - - /** - * Gets the ManagedPrivateEndpointsClient object to access its operations. - * - * @return the ManagedPrivateEndpointsClient object. - */ - public ManagedPrivateEndpointsClient getManagedPrivateEndpoints() { - return this.managedPrivateEndpoints; - } - - /** The PrivateEndPointConnectionsClient object to access its operations. */ - private final PrivateEndPointConnectionsClient privateEndPointConnections; - - /** - * Gets the PrivateEndPointConnectionsClient object to access its operations. - * - * @return the PrivateEndPointConnectionsClient object. - */ - public PrivateEndPointConnectionsClient getPrivateEndPointConnections() { - return this.privateEndPointConnections; - } - - /** The PrivateEndpointConnectionOperationsClient object to access its operations. */ - private final PrivateEndpointConnectionOperationsClient privateEndpointConnectionOperations; - - /** - * Gets the PrivateEndpointConnectionOperationsClient object to access its operations. - * - * @return the PrivateEndpointConnectionOperationsClient object. - */ - public PrivateEndpointConnectionOperationsClient getPrivateEndpointConnectionOperations() { - return this.privateEndpointConnectionOperations; - } - - /** The PrivateLinkResourcesClient object to access its operations. */ - private final PrivateLinkResourcesClient privateLinkResources; - - /** - * Gets the PrivateLinkResourcesClient object to access its operations. - * - * @return the PrivateLinkResourcesClient object. - */ - public PrivateLinkResourcesClient getPrivateLinkResources() { - return this.privateLinkResources; - } - - /** - * Initializes an instance of DataFactoryManagementClient client. - * - * @param httpPipeline The HTTP pipeline to send requests through. - * @param serializerAdapter The serializer to serialize an object into a string. - * @param defaultPollInterval The default poll interval for long-running operation. - * @param environment The Azure environment. - * @param subscriptionId The subscription identifier. - * @param endpoint server parameter. - */ - DataFactoryManagementClientImpl( - HttpPipeline httpPipeline, - SerializerAdapter serializerAdapter, - Duration defaultPollInterval, - AzureEnvironment environment, - String subscriptionId, - String endpoint) { - this.httpPipeline = httpPipeline; - this.serializerAdapter = serializerAdapter; - this.defaultPollInterval = defaultPollInterval; - this.subscriptionId = subscriptionId; - this.endpoint = endpoint; - this.apiVersion = "2018-06-01"; - this.operations = new OperationsClientImpl(this); - this.factories = new FactoriesClientImpl(this); - this.exposureControls = new ExposureControlsClientImpl(this); - this.integrationRuntimes = new IntegrationRuntimesClientImpl(this); - this.integrationRuntimeObjectMetadatas = new IntegrationRuntimeObjectMetadatasClientImpl(this); - this.integrationRuntimeNodes = new IntegrationRuntimeNodesClientImpl(this); - this.linkedServices = new LinkedServicesClientImpl(this); - this.datasets = new DatasetsClientImpl(this); - this.pipelines = new PipelinesClientImpl(this); - this.pipelineRuns = new PipelineRunsClientImpl(this); - this.activityRuns = new ActivityRunsClientImpl(this); - this.triggers = new TriggersClientImpl(this); - this.triggerRuns = new TriggerRunsClientImpl(this); - this.dataFlows = new DataFlowsClientImpl(this); - this.dataFlowDebugSessions = new DataFlowDebugSessionsClientImpl(this); - this.managedVirtualNetworks = new ManagedVirtualNetworksClientImpl(this); - this.managedPrivateEndpoints = new ManagedPrivateEndpointsClientImpl(this); - this.privateEndPointConnections = new PrivateEndPointConnectionsClientImpl(this); - this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsClientImpl(this); - this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); - } - - /** - * Gets default client context. - * - * @return the default client context. - */ - public Context getContext() { - return Context.NONE; - } - - /** - * Merges default client context with provided context. - * - * @param context the context to be merged with default client context. - * @return the merged context. - */ - public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; - } - - /** - * Gets long running operation result. - * - * @param activationResponse the response of activation operation. - * @param httpPipeline the http pipeline. - * @param pollResultType type of poll result. - * @param finalResultType type of final result. - * @param context the context shared by all requests. - * @param type of poll result. - * @param type of final result. - * @return poller flux for poll result and final result. - */ - public PollerFlux, U> getLroResult( - Mono>> activationResponse, - HttpPipeline httpPipeline, - Type pollResultType, - Type finalResultType, - Context context) { - return PollerFactory - .create( - serializerAdapter, - httpPipeline, - pollResultType, - finalResultType, - defaultPollInterval, - activationResponse, - context); - } - - /** - * Gets the final result, or an error, based on last async poll response. - * - * @param response the last async poll response. - * @param type of poll result. - * @param type of final result. - * @return the final result, or an error. - */ - public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) { - if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) { - String errorMessage; - ManagementError managementError = null; - HttpResponse errorResponse = null; - PollResult.Error lroError = response.getValue().getError(); - if (lroError != null) { - errorResponse = - new HttpResponseImpl( - lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody()); - - errorMessage = response.getValue().getError().getMessage(); - String errorBody = response.getValue().getError().getResponseBody(); - if (errorBody != null) { - // try to deserialize error body to ManagementError - try { - managementError = - this - .getSerializerAdapter() - .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON); - if (managementError.getCode() == null || managementError.getMessage() == null) { - managementError = null; - } - } catch (IOException | RuntimeException ioe) { - LOGGER.logThrowableAsWarning(ioe); - } - } - } else { - // fallback to default error message - errorMessage = "Long running operation failed."; - } - if (managementError == null) { - // fallback to default ManagementError - managementError = new ManagementError(response.getStatus().toString(), errorMessage); - } - return Mono.error(new ManagementException(errorMessage, errorResponse, managementError)); - } else { - return response.getFinalResult(); - } - } - - private static final class HttpResponseImpl extends HttpResponse { - private final int statusCode; - - private final byte[] responseBody; - - private final HttpHeaders httpHeaders; - - HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) { - super(null); - this.statusCode = statusCode; - this.httpHeaders = httpHeaders; - this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8); - } - - public int getStatusCode() { - return statusCode; - } - - public String getHeaderValue(String s) { - return httpHeaders.getValue(s); - } - - public HttpHeaders getHeaders() { - return httpHeaders; - } - - public Flux getBody() { - return Flux.just(ByteBuffer.wrap(responseBody)); - } - - public Mono getBodyAsByteArray() { - return Mono.just(responseBody); - } - - public Mono getBodyAsString() { - return Mono.just(new String(responseBody, StandardCharsets.UTF_8)); - } - - public Mono getBodyAsString(Charset charset) { - return Mono.just(new String(responseBody, charset)); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataFactoryManagementClientImpl.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugCommandResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugCommandResponseImpl.java deleted file mode 100644 index 62f72f1423a53..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugCommandResponseImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandResponse; - -public final class DataFlowDebugCommandResponseImpl implements DataFlowDebugCommandResponse { - private DataFlowDebugCommandResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - DataFlowDebugCommandResponseImpl( - DataFlowDebugCommandResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String status() { - return this.innerModel().status(); - } - - public String data() { - return this.innerModel().data(); - } - - public DataFlowDebugCommandResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionInfoImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionInfoImpl.java deleted file mode 100644 index 81d43ba011e43..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionInfoImpl.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessionInfo; -import java.util.Collections; -import java.util.Map; - -public final class DataFlowDebugSessionInfoImpl implements DataFlowDebugSessionInfo { - private DataFlowDebugSessionInfoInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - DataFlowDebugSessionInfoImpl( - DataFlowDebugSessionInfoInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String dataFlowName() { - return this.innerModel().dataFlowName(); - } - - public String computeType() { - return this.innerModel().computeType(); - } - - public Integer coreCount() { - return this.innerModel().coreCount(); - } - - public Integer nodeCount() { - return this.innerModel().nodeCount(); - } - - public String integrationRuntimeName() { - return this.innerModel().integrationRuntimeName(); - } - - public String sessionId() { - return this.innerModel().sessionId(); - } - - public String startTime() { - return this.innerModel().startTime(); - } - - public Integer timeToLiveInMinutes() { - return this.innerModel().timeToLiveInMinutes(); - } - - public String lastActivityTime() { - return this.innerModel().lastActivityTime(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public DataFlowDebugSessionInfoInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java deleted file mode 100644 index 681975d8b3319..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java +++ /dev/null @@ -1,1303 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.DataFlowDebugSessionsClient; -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.QueryDataFlowDebugSessionsResponse; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in DataFlowDebugSessionsClient. */ -public final class DataFlowDebugSessionsClientImpl implements DataFlowDebugSessionsClient { - /** The proxy service used to perform REST calls. */ - private final DataFlowDebugSessionsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of DataFlowDebugSessionsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - DataFlowDebugSessionsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create(DataFlowDebugSessionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientDataFlowDebugSessions to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface DataFlowDebugSessionsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/createDataFlowDebugSession") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CreateDataFlowDebugSessionRequest request, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryDataFlowDebugSessions") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/addDataFlowToDebugSession") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> addDataFlow( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataFlowDebugPackage request, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/deleteDataFlowDebugSession") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DeleteDataFlowDebugSessionRequest request, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/executeDataFlowDebugCommand") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> executeCommand( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataFlowDebugCommandRequest request, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, CreateDataFlowDebugSessionResponseInner> - beginCreateAsync(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - Mono>> mono = createWithResponseAsync(resourceGroupName, factoryName, request); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - CreateDataFlowDebugSessionResponseInner.class, - CreateDataFlowDebugSessionResponseInner.class, - this.client.getContext()); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, CreateDataFlowDebugSessionResponseInner> - beginCreateAsync( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, factoryName, request, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - CreateDataFlowDebugSessionResponseInner.class, - CreateDataFlowDebugSessionResponseInner.class, - context); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CreateDataFlowDebugSessionResponseInner> - beginCreate(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - return beginCreateAsync(resourceGroupName, factoryName, request).getSyncPoller(); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CreateDataFlowDebugSessionResponseInner> - beginCreate( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - return beginCreateAsync(resourceGroupName, factoryName, request, context).getSyncPoller(); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - return beginCreateAsync(resourceGroupName, factoryName, request) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - return beginCreateAsync(resourceGroupName, factoryName, request, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CreateDataFlowDebugSessionResponseInner create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - return createAsync(resourceGroupName, factoryName, request).block(); - } - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CreateDataFlowDebugSessionResponseInner create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - return createAsync(resourceGroupName, factoryName, request, context).block(); - } - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux queryByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> queryByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> queryByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux queryByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> queryByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> queryByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable queryByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(queryByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable queryByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(queryByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> addDataFlowWithResponseAsync( - String resourceGroupName, String factoryName, DataFlowDebugPackage request) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .addDataFlow( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> addDataFlowWithResponseAsync( - String resourceGroupName, String factoryName, DataFlowDebugPackage request, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .addDataFlow( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context); - } - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addDataFlowAsync( - String resourceGroupName, String factoryName, DataFlowDebugPackage request) { - return addDataFlowWithResponseAsync(resourceGroupName, factoryName, request) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AddDataFlowToDebugSessionResponseInner addDataFlow( - String resourceGroupName, String factoryName, DataFlowDebugPackage request) { - return addDataFlowAsync(resourceGroupName, factoryName, request).block(); - } - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response addDataFlowWithResponse( - String resourceGroupName, String factoryName, DataFlowDebugPackage request, Context context) { - return addDataFlowWithResponseAsync(resourceGroupName, factoryName, request, context).block(); - } - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context); - } - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request) { - return deleteWithResponseAsync(resourceGroupName, factoryName, request) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request) { - deleteAsync(resourceGroupName, factoryName, request).block(); - } - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, request, context).block(); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> executeCommandWithResponseAsync( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .executeCommand( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> executeCommandWithResponseAsync( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .executeCommand( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - request, - accept, - context); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response body structure of data flow result for data preview, - * statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataFlowDebugCommandResponseInner> - beginExecuteCommandAsync(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - Mono>> mono = - executeCommandWithResponseAsync(resourceGroupName, factoryName, request); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DataFlowDebugCommandResponseInner.class, - DataFlowDebugCommandResponseInner.class, - this.client.getContext()); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response body structure of data flow result for data preview, - * statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataFlowDebugCommandResponseInner> - beginExecuteCommandAsync( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - executeCommandWithResponseAsync(resourceGroupName, factoryName, request, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DataFlowDebugCommandResponseInner.class, - DataFlowDebugCommandResponseInner.class, - context); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, - * statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataFlowDebugCommandResponseInner> - beginExecuteCommand(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - return beginExecuteCommandAsync(resourceGroupName, factoryName, request).getSyncPoller(); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, - * statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataFlowDebugCommandResponseInner> - beginExecuteCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - return beginExecuteCommandAsync(resourceGroupName, factoryName, request, context).getSyncPoller(); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono executeCommandAsync( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - return beginExecuteCommandAsync(resourceGroupName, factoryName, request) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono executeCommandAsync( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - return beginExecuteCommandAsync(resourceGroupName, factoryName, request, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataFlowDebugCommandResponseInner executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - return executeCommandAsync(resourceGroupName, factoryName, request).block(); - } - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataFlowDebugCommandResponseInner executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - return executeCommandAsync(resourceGroupName, factoryName, request, context).block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.queryByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .queryByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsImpl.java deleted file mode 100644 index afccc6be58604..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsImpl.java +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.DataFlowDebugSessionsClient; -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.azure.resourcemanager.datafactory.models.AddDataFlowToDebugSessionResponse; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionResponse; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandResponse; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessionInfo; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessions; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; - -public final class DataFlowDebugSessionsImpl implements DataFlowDebugSessions { - private static final ClientLogger LOGGER = new ClientLogger(DataFlowDebugSessionsImpl.class); - - private final DataFlowDebugSessionsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public DataFlowDebugSessionsImpl( - DataFlowDebugSessionsClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public CreateDataFlowDebugSessionResponse create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - CreateDataFlowDebugSessionResponseInner inner = - this.serviceClient().create(resourceGroupName, factoryName, request); - if (inner != null) { - return new CreateDataFlowDebugSessionResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public CreateDataFlowDebugSessionResponse create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - CreateDataFlowDebugSessionResponseInner inner = - this.serviceClient().create(resourceGroupName, factoryName, request, context); - if (inner != null) { - return new CreateDataFlowDebugSessionResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable queryByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = - this.serviceClient().queryByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new DataFlowDebugSessionInfoImpl(inner1, this.manager())); - } - - public PagedIterable queryByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().queryByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new DataFlowDebugSessionInfoImpl(inner1, this.manager())); - } - - public AddDataFlowToDebugSessionResponse addDataFlow( - String resourceGroupName, String factoryName, DataFlowDebugPackage request) { - AddDataFlowToDebugSessionResponseInner inner = - this.serviceClient().addDataFlow(resourceGroupName, factoryName, request); - if (inner != null) { - return new AddDataFlowToDebugSessionResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response addDataFlowWithResponse( - String resourceGroupName, String factoryName, DataFlowDebugPackage request, Context context) { - Response inner = - this.serviceClient().addDataFlowWithResponse(resourceGroupName, factoryName, request, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new AddDataFlowToDebugSessionResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request) { - this.serviceClient().delete(resourceGroupName, factoryName, request); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, request, context); - } - - public DataFlowDebugCommandResponse executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - DataFlowDebugCommandResponseInner inner = - this.serviceClient().executeCommand(resourceGroupName, factoryName, request); - if (inner != null) { - return new DataFlowDebugCommandResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataFlowDebugCommandResponse executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - DataFlowDebugCommandResponseInner inner = - this.serviceClient().executeCommand(resourceGroupName, factoryName, request, context); - if (inner != null) { - return new DataFlowDebugCommandResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - private DataFlowDebugSessionsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowResourceImpl.java deleted file mode 100644 index 0864cbefac521..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowResourceImpl.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; - -public final class DataFlowResourceImpl - implements DataFlowResource, DataFlowResource.Definition, DataFlowResource.Update { - private DataFlowResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public DataFlow properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public DataFlowResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String dataFlowName; - - private String createIfMatch; - - private String updateIfMatch; - - public DataFlowResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public DataFlowResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getDataFlows() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, dataFlowName, this.innerModel(), createIfMatch, Context.NONE) - .getValue(); - return this; - } - - public DataFlowResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataFlows() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, dataFlowName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - DataFlowResourceImpl(String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new DataFlowResourceInner(); - this.serviceManager = serviceManager; - this.dataFlowName = name; - this.createIfMatch = null; - } - - public DataFlowResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public DataFlowResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getDataFlows() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, dataFlowName, this.innerModel(), updateIfMatch, Context.NONE) - .getValue(); - return this; - } - - public DataFlowResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataFlows() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, dataFlowName, this.innerModel(), updateIfMatch, context) - .getValue(); - return this; - } - - DataFlowResourceImpl( - DataFlowResourceInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.dataFlowName = Utils.getValueFromIdByName(innerObject.id(), "dataflows"); - } - - public DataFlowResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getDataFlows() - .getWithResponse(resourceGroupName, factoryName, dataFlowName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public DataFlowResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getDataFlows() - .getWithResponse(resourceGroupName, factoryName, dataFlowName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public DataFlowResourceImpl withProperties(DataFlow properties) { - this.innerModel().withProperties(properties); - return this; - } - - public DataFlowResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java deleted file mode 100644 index 7735c3e4094b9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java +++ /dev/null @@ -1,981 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.DataFlowsClient; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlowListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in DataFlowsClient. */ -public final class DataFlowsClientImpl implements DataFlowsClient { - /** The proxy service used to perform REST calls. */ - private final DataFlowsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of DataFlowsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - DataFlowsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(DataFlowsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientDataFlows to be used by the proxy service - * to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface DataFlowsService { - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows/{dataFlowName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("dataFlowName") String dataFlowName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") DataFlowResourceInner dataFlow, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows/{dataFlowName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("dataFlowName") String dataFlowName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows/{dataFlowName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("dataFlowName") String dataFlowName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String dataFlowName, - DataFlowResourceInner dataFlow, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - if (dataFlow == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlow is required and cannot be null.")); - } else { - dataFlow.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - dataFlowName, - this.client.getApiVersion(), - ifMatch, - dataFlow, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String dataFlowName, - DataFlowResourceInner dataFlow, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - if (dataFlow == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlow is required and cannot be null.")); - } else { - dataFlow.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - dataFlowName, - this.client.getApiVersion(), - ifMatch, - dataFlow, - accept, - context); - } - - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String dataFlowName, - DataFlowResourceInner dataFlow, - String ifMatch) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String factoryName, String dataFlowName, DataFlowResourceInner dataFlow) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataFlowResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String dataFlowName, DataFlowResourceInner dataFlow) { - final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch).block(); - } - - /** - * Creates or updates a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param dataFlow Data flow resource definition. - * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data flow resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String dataFlowName, - DataFlowResourceInner dataFlow, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch, context) - .block(); - } - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - dataFlowName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - dataFlowName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String factoryName, String dataFlowName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataFlowResourceInner get(String resourceGroupName, String factoryName, String dataFlowName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch).block(); - } - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch, context).block(); - } - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String dataFlowName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - dataFlowName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String dataFlowName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - dataFlowName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String dataFlowName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, dataFlowName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String dataFlowName) { - deleteAsync(resourceGroupName, factoryName, dataFlowName).block(); - } - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, dataFlowName, context).block(); - } - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsImpl.java deleted file mode 100644 index 801145c380cba..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsImpl.java +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.DataFlowsClient; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import com.azure.resourcemanager.datafactory.models.DataFlows; - -public final class DataFlowsImpl implements DataFlows { - private static final ClientLogger LOGGER = new ClientLogger(DataFlowsImpl.class); - - private final DataFlowsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public DataFlowsImpl( - DataFlowsClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public DataFlowResource get(String resourceGroupName, String factoryName, String dataFlowName) { - DataFlowResourceInner inner = this.serviceClient().get(resourceGroupName, factoryName, dataFlowName); - if (inner != null) { - return new DataFlowResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, factoryName, dataFlowName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new DataFlowResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String dataFlowName) { - this.serviceClient().delete(resourceGroupName, factoryName, dataFlowName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, dataFlowName, context); - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new DataFlowResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new DataFlowResourceImpl(inner1, this.manager())); - } - - public DataFlowResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String dataFlowName = Utils.getValueFromIdByName(id, "dataflows"); - if (dataFlowName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dataflows'.", id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, dataFlowName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String dataFlowName = Utils.getValueFromIdByName(id, "dataflows"); - if (dataFlowName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dataflows'.", id))); - } - return this.getWithResponse(resourceGroupName, factoryName, dataFlowName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String dataFlowName = Utils.getValueFromIdByName(id, "dataflows"); - if (dataFlowName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dataflows'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, dataFlowName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String dataFlowName = Utils.getValueFromIdByName(id, "dataflows"); - if (dataFlowName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dataflows'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, dataFlowName, context); - } - - private DataFlowsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public DataFlowResourceImpl define(String name) { - return new DataFlowResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetResourceImpl.java deleted file mode 100644 index e23fe8ad8c2fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetResourceImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetResource; - -public final class DatasetResourceImpl implements DatasetResource, DatasetResource.Definition, DatasetResource.Update { - private DatasetResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public Dataset properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public DatasetResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String datasetName; - - private String createIfMatch; - - private String updateIfMatch; - - public DatasetResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public DatasetResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getDatasets() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, datasetName, this.innerModel(), createIfMatch, Context.NONE) - .getValue(); - return this; - } - - public DatasetResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDatasets() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, datasetName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - DatasetResourceImpl(String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new DatasetResourceInner(); - this.serviceManager = serviceManager; - this.datasetName = name; - this.createIfMatch = null; - } - - public DatasetResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public DatasetResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getDatasets() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, datasetName, this.innerModel(), updateIfMatch, Context.NONE) - .getValue(); - return this; - } - - public DatasetResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDatasets() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, datasetName, this.innerModel(), updateIfMatch, context) - .getValue(); - return this; - } - - DatasetResourceImpl( - DatasetResourceInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.datasetName = Utils.getValueFromIdByName(innerObject.id(), "datasets"); - } - - public DatasetResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getDatasets() - .getWithResponse(resourceGroupName, factoryName, datasetName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public DatasetResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getDatasets() - .getWithResponse(resourceGroupName, factoryName, datasetName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public DatasetResourceImpl withProperties(Dataset properties) { - this.innerModel().withProperties(properties); - return this; - } - - public DatasetResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java deleted file mode 100644 index b127ef11ef029..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java +++ /dev/null @@ -1,980 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.DatasetsClient; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.DatasetListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in DatasetsClient. */ -public final class DatasetsClientImpl implements DatasetsClient { - /** The proxy service used to perform REST calls. */ - private final DatasetsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of DatasetsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - DatasetsClientImpl(DataFactoryManagementClientImpl client) { - this.service = RestProxy.create(DatasetsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientDatasets to be used by the proxy service - * to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface DatasetsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets/{datasetName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("datasetName") String datasetName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") DatasetResourceInner dataset, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets/{datasetName}") - @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("datasetName") String datasetName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets/{datasetName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("datasetName") String datasetName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String datasetName, - DatasetResourceInner dataset, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - if (dataset == null) { - return Mono.error(new IllegalArgumentException("Parameter dataset is required and cannot be null.")); - } else { - dataset.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - datasetName, - this.client.getApiVersion(), - ifMatch, - dataset, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String datasetName, - DatasetResourceInner dataset, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - if (dataset == null) { - return Mono.error(new IllegalArgumentException("Parameter dataset is required and cannot be null.")); - } else { - dataset.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - datasetName, - this.client.getApiVersion(), - ifMatch, - dataset, - accept, - context); - } - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String datasetName, - DatasetResourceInner dataset, - String ifMatch) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, datasetName, dataset, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String factoryName, String datasetName, DatasetResourceInner dataset) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, datasetName, dataset, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatasetResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String datasetName, DatasetResourceInner dataset) { - final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, factoryName, datasetName, dataset, ifMatch).block(); - } - - /** - * Creates or updates a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param dataset Dataset resource definition. - * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dataset resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String datasetName, - DatasetResourceInner dataset, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, datasetName, dataset, ifMatch, context) - .block(); - } - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - datasetName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - datasetName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String factoryName, String datasetName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatasetResourceInner get(String resourceGroupName, String factoryName, String datasetName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch).block(); - } - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch, context).block(); - } - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String datasetName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - datasetName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String datasetName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - datasetName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String datasetName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, datasetName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String datasetName) { - deleteAsync(resourceGroupName, factoryName, datasetName).block(); - } - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String datasetName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, datasetName, context).block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsImpl.java deleted file mode 100644 index a258068f37a81..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsImpl.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.DatasetsClient; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.Datasets; - -public final class DatasetsImpl implements Datasets { - private static final ClientLogger LOGGER = new ClientLogger(DatasetsImpl.class); - - private final DatasetsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public DatasetsImpl( - DatasetsClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new DatasetResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new DatasetResourceImpl(inner1, this.manager())); - } - - public DatasetResource get(String resourceGroupName, String factoryName, String datasetName) { - DatasetResourceInner inner = this.serviceClient().get(resourceGroupName, factoryName, datasetName); - if (inner != null) { - return new DatasetResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, factoryName, datasetName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new DatasetResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String datasetName) { - this.serviceClient().delete(resourceGroupName, factoryName, datasetName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String datasetName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, datasetName, context); - } - - public DatasetResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String datasetName = Utils.getValueFromIdByName(id, "datasets"); - if (datasetName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'datasets'.", id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, datasetName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String datasetName = Utils.getValueFromIdByName(id, "datasets"); - if (datasetName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'datasets'.", id))); - } - return this.getWithResponse(resourceGroupName, factoryName, datasetName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String datasetName = Utils.getValueFromIdByName(id, "datasets"); - if (datasetName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'datasets'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, datasetName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String datasetName = Utils.getValueFromIdByName(id, "datasets"); - if (datasetName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'datasets'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, datasetName, context); - } - - private DatasetsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public DatasetResourceImpl define(String name) { - return new DatasetResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlBatchResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlBatchResponseImpl.java deleted file mode 100644 index ec71fc17663d3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlBatchResponseImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchResponse; -import com.azure.resourcemanager.datafactory.models.ExposureControlResponse; -import java.util.Collections; -import java.util.List; -import java.util.stream.Collectors; - -public final class ExposureControlBatchResponseImpl implements ExposureControlBatchResponse { - private ExposureControlBatchResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - ExposureControlBatchResponseImpl( - ExposureControlBatchResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List exposureControlResponses() { - List inner = this.innerModel().exposureControlResponses(); - if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new ExposureControlResponseImpl(inner1, this.manager())) - .collect(Collectors.toList())); - } else { - return Collections.emptyList(); - } - } - - public ExposureControlBatchResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlResponseImpl.java deleted file mode 100644 index a0c76ec412d31..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlResponseImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import com.azure.resourcemanager.datafactory.models.ExposureControlResponse; - -public final class ExposureControlResponseImpl implements ExposureControlResponse { - private ExposureControlResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - ExposureControlResponseImpl( - ExposureControlResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String featureName() { - return this.innerModel().featureName(); - } - - public String value() { - return this.innerModel().value(); - } - - public ExposureControlResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java deleted file mode 100644 index 5bbc723feed7d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java +++ /dev/null @@ -1,622 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.ExposureControlsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in ExposureControlsClient. */ -public final class ExposureControlsClientImpl implements ExposureControlsClient { - /** The proxy service used to perform REST calls. */ - private final ExposureControlsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of ExposureControlsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ExposureControlsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(ExposureControlsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientExposureControls to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface ExposureControlsService { - @Headers({"Content-Type: application/json"}) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getFeatureValue( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("locationId") String locationId, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ExposureControlRequest exposureControlRequest, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/getFeatureValue") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getFeatureValueByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ExposureControlRequest exposureControlRequest, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryFeaturesValue") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryFeatureValuesByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ExposureControlBatchRequest exposureControlBatchRequest, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * 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 ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getFeatureValueWithResponseAsync( - String locationId, ExposureControlRequest exposureControlRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (locationId == null) { - return Mono.error(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); - } - if (exposureControlRequest == null) { - return Mono - .error( - new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); - } else { - exposureControlRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getFeatureValue( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - locationId, - this.client.getApiVersion(), - exposureControlRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get exposure control feature for specific location. - * - * @param locationId The location identifier. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getFeatureValueWithResponseAsync( - String locationId, ExposureControlRequest exposureControlRequest, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (locationId == null) { - return Mono.error(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); - } - if (exposureControlRequest == null) { - return Mono - .error( - new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); - } else { - exposureControlRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getFeatureValue( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - locationId, - this.client.getApiVersion(), - exposureControlRequest, - accept, - context); - } - - /** - * 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 ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getFeatureValueAsync( - String locationId, ExposureControlRequest exposureControlRequest) { - return getFeatureValueWithResponseAsync(locationId, exposureControlRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * 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 ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExposureControlResponseInner getFeatureValue( - String locationId, ExposureControlRequest exposureControlRequest) { - return getFeatureValueAsync(locationId, exposureControlRequest).block(); - } - - /** - * Get exposure control feature for specific location. - * - * @param locationId The location identifier. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFeatureValueWithResponse( - String locationId, ExposureControlRequest exposureControlRequest, Context context) { - return getFeatureValueWithResponseAsync(locationId, exposureControlRequest, context).block(); - } - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getFeatureValueByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (exposureControlRequest == null) { - return Mono - .error( - new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); - } else { - exposureControlRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getFeatureValueByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - exposureControlRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getFeatureValueByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (exposureControlRequest == null) { - return Mono - .error( - new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); - } else { - exposureControlRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getFeatureValueByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - exposureControlRequest, - accept, - context); - } - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getFeatureValueByFactoryAsync( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { - return getFeatureValueByFactoryWithResponseAsync(resourceGroupName, factoryName, exposureControlRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExposureControlResponseInner getFeatureValueByFactory( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { - return getFeatureValueByFactoryAsync(resourceGroupName, factoryName, exposureControlRequest).block(); - } - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFeatureValueByFactoryWithResponse( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, Context context) { - return getFeatureValueByFactoryWithResponseAsync( - resourceGroupName, factoryName, exposureControlRequest, context) - .block(); - } - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryFeatureValuesByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (exposureControlBatchRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter exposureControlBatchRequest is required and cannot be null.")); - } else { - exposureControlBatchRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .queryFeatureValuesByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - exposureControlBatchRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryFeatureValuesByFactoryWithResponseAsync( - String resourceGroupName, - String factoryName, - ExposureControlBatchRequest exposureControlBatchRequest, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (exposureControlBatchRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter exposureControlBatchRequest is required and cannot be null.")); - } else { - exposureControlBatchRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .queryFeatureValuesByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - exposureControlBatchRequest, - accept, - context); - } - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono queryFeatureValuesByFactoryAsync( - String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest) { - return queryFeatureValuesByFactoryWithResponseAsync(resourceGroupName, factoryName, exposureControlBatchRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExposureControlBatchResponseInner queryFeatureValuesByFactory( - String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest) { - return queryFeatureValuesByFactoryAsync(resourceGroupName, factoryName, exposureControlBatchRequest).block(); - } - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response queryFeatureValuesByFactoryWithResponse( - String resourceGroupName, - String factoryName, - ExposureControlBatchRequest exposureControlBatchRequest, - Context context) { - return queryFeatureValuesByFactoryWithResponseAsync( - resourceGroupName, factoryName, exposureControlBatchRequest, context) - .block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsImpl.java deleted file mode 100644 index a51016d7e1cef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsImpl.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.ExposureControlsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchResponse; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlResponse; -import com.azure.resourcemanager.datafactory.models.ExposureControls; - -public final class ExposureControlsImpl implements ExposureControls { - private static final ClientLogger LOGGER = new ClientLogger(ExposureControlsImpl.class); - - private final ExposureControlsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public ExposureControlsImpl( - ExposureControlsClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public ExposureControlResponse getFeatureValue(String locationId, ExposureControlRequest exposureControlRequest) { - ExposureControlResponseInner inner = this.serviceClient().getFeatureValue(locationId, exposureControlRequest); - if (inner != null) { - return new ExposureControlResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getFeatureValueWithResponse( - String locationId, ExposureControlRequest exposureControlRequest, Context context) { - Response inner = - this.serviceClient().getFeatureValueWithResponse(locationId, exposureControlRequest, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ExposureControlResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public ExposureControlResponse getFeatureValueByFactory( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { - ExposureControlResponseInner inner = - this.serviceClient().getFeatureValueByFactory(resourceGroupName, factoryName, exposureControlRequest); - if (inner != null) { - return new ExposureControlResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getFeatureValueByFactoryWithResponse( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, Context context) { - Response inner = - this - .serviceClient() - .getFeatureValueByFactoryWithResponse(resourceGroupName, factoryName, exposureControlRequest, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ExposureControlResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public ExposureControlBatchResponse queryFeatureValuesByFactory( - String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest) { - ExposureControlBatchResponseInner inner = - this - .serviceClient() - .queryFeatureValuesByFactory(resourceGroupName, factoryName, exposureControlBatchRequest); - if (inner != null) { - return new ExposureControlBatchResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response queryFeatureValuesByFactoryWithResponse( - String resourceGroupName, - String factoryName, - ExposureControlBatchRequest exposureControlBatchRequest, - Context context) { - Response inner = - this - .serviceClient() - .queryFeatureValuesByFactoryWithResponse( - resourceGroupName, factoryName, exposureControlBatchRequest, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ExposureControlBatchResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - private ExposureControlsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java deleted file mode 100644 index f4a1a3eef4861..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java +++ /dev/null @@ -1,1876 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.FactoriesClient; -import com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; -import com.azure.resourcemanager.datafactory.fluent.models.GitHubAccessTokenResponseInner; -import com.azure.resourcemanager.datafactory.models.FactoryListResponse; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import com.azure.resourcemanager.datafactory.models.FactoryUpdateParameters; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in FactoriesClient. */ -public final class FactoriesClientImpl implements FactoriesClient { - /** The proxy service used to perform REST calls. */ - private final FactoriesService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of FactoriesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - FactoriesClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(FactoriesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientFactories to be used by the proxy service - * to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface FactoriesService { - @Headers({"Content-Type: application/json"}) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}" - + "/configureFactoryRepo") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> configureFactoryRepo( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("locationId") String locationId, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FactoryRepoUpdate factoryRepoUpdate, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") FactoryInner factory, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FactoryUpdateParameters factoryUpdateParameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") - @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/getGitHubAccessToken") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getGitHubAccessToken( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GitHubAccessTokenRequest gitHubAccessTokenRequest, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/getDataPlaneAccess") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getDataPlaneAccess( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UserAccessPolicy policy, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists factories under the specified subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists factories under the specified subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists factories under the specified subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> configureFactoryRepoWithResponseAsync( - String locationId, FactoryRepoUpdate factoryRepoUpdate) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (locationId == null) { - return Mono.error(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); - } - if (factoryRepoUpdate == null) { - return Mono - .error(new IllegalArgumentException("Parameter factoryRepoUpdate is required and cannot be null.")); - } else { - factoryRepoUpdate.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .configureFactoryRepo( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - locationId, - this.client.getApiVersion(), - factoryRepoUpdate, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> configureFactoryRepoWithResponseAsync( - String locationId, FactoryRepoUpdate factoryRepoUpdate, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (locationId == null) { - return Mono.error(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); - } - if (factoryRepoUpdate == null) { - return Mono - .error(new IllegalArgumentException("Parameter factoryRepoUpdate is required and cannot be null.")); - } else { - factoryRepoUpdate.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .configureFactoryRepo( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - locationId, - this.client.getApiVersion(), - factoryRepoUpdate, - accept, - context); - } - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono configureFactoryRepoAsync(String locationId, FactoryRepoUpdate factoryRepoUpdate) { - return configureFactoryRepoWithResponseAsync(locationId, factoryRepoUpdate) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FactoryInner configureFactoryRepo(String locationId, FactoryRepoUpdate factoryRepoUpdate) { - return configureFactoryRepoAsync(locationId, factoryRepoUpdate).block(); - } - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response configureFactoryRepoWithResponse( - String locationId, FactoryRepoUpdate factoryRepoUpdate, Context context) { - return configureFactoryRepoWithResponseAsync(locationId, factoryRepoUpdate, context).block(); - } - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (factory == null) { - return Mono.error(new IllegalArgumentException("Parameter factory is required and cannot be null.")); - } else { - factory.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - ifMatch, - factory, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (factory == null) { - return Mono.error(new IllegalArgumentException("Parameter factory is required and cannot be null.")); - } else { - factory.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - ifMatch, - factory, - accept, - context); - } - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, factory, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String factoryName, FactoryInner factory) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, factory, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FactoryInner createOrUpdate(String resourceGroupName, String factoryName, FactoryInner factory) { - final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, factoryName, factory, ifMatch).block(); - } - - /** - * Creates or updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factory Factory resource definition. - * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, factory, ifMatch, context).block(); - } - - /** - * Updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factoryUpdateParameters The parameters for updating a factory. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (factoryUpdateParameters == null) { - return Mono - .error( - new IllegalArgumentException("Parameter factoryUpdateParameters is required and cannot be null.")); - } else { - factoryUpdateParameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - factoryUpdateParameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factoryUpdateParameters The parameters for updating a factory. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String factoryName, - FactoryUpdateParameters factoryUpdateParameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (factoryUpdateParameters == null) { - return Mono - .error( - new IllegalArgumentException("Parameter factoryUpdateParameters is required and cannot be null.")); - } else { - factoryUpdateParameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - factoryUpdateParameters, - accept, - context); - } - - /** - * Updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factoryUpdateParameters The parameters for updating a factory. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters) { - return updateWithResponseAsync(resourceGroupName, factoryName, factoryUpdateParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factoryUpdateParameters The parameters for updating a factory. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FactoryInner update( - String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters) { - return updateAsync(resourceGroupName, factoryName, factoryUpdateParameters).block(); - } - - /** - * Updates a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param factoryUpdateParameters The parameters for updating a factory. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String factoryName, - FactoryUpdateParameters factoryUpdateParameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, factoryName, factoryUpdateParameters, context).block(); - } - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String factoryName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String factoryName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync( - String resourceGroupName, String factoryName, String ifNoneMatch) { - return getByResourceGroupWithResponseAsync(resourceGroupName, factoryName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String factoryName) { - final String ifNoneMatch = null; - return getByResourceGroupWithResponseAsync(resourceGroupName, factoryName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FactoryInner getByResourceGroup(String resourceGroupName, String factoryName) { - final String ifNoneMatch = null; - return getByResourceGroupAsync(resourceGroupName, factoryName, ifNoneMatch).block(); - } - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String factoryName, String ifNoneMatch, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, factoryName, ifNoneMatch, context).block(); - } - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName) { - return deleteWithResponseAsync(resourceGroupName, factoryName).flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName) { - deleteAsync(resourceGroupName, factoryName).block(); - } - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String factoryName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, context).block(); - } - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getGitHubAccessTokenWithResponseAsync( - String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (gitHubAccessTokenRequest == null) { - return Mono - .error( - new IllegalArgumentException("Parameter gitHubAccessTokenRequest is required and cannot be null.")); - } else { - gitHubAccessTokenRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getGitHubAccessToken( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - gitHubAccessTokenRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getGitHubAccessTokenWithResponseAsync( - String resourceGroupName, - String factoryName, - GitHubAccessTokenRequest gitHubAccessTokenRequest, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (gitHubAccessTokenRequest == null) { - return Mono - .error( - new IllegalArgumentException("Parameter gitHubAccessTokenRequest is required and cannot be null.")); - } else { - gitHubAccessTokenRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getGitHubAccessToken( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - gitHubAccessTokenRequest, - accept, - context); - } - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getGitHubAccessTokenAsync( - String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { - return getGitHubAccessTokenWithResponseAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public GitHubAccessTokenResponseInner getGitHubAccessToken( - String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { - return getGitHubAccessTokenAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest).block(); - } - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getGitHubAccessTokenWithResponse( - String resourceGroupName, - String factoryName, - GitHubAccessTokenRequest gitHubAccessTokenRequest, - Context context) { - return getGitHubAccessTokenWithResponseAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest, context) - .block(); - } - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDataPlaneAccessWithResponseAsync( - String resourceGroupName, String factoryName, UserAccessPolicy policy) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (policy == null) { - return Mono.error(new IllegalArgumentException("Parameter policy is required and cannot be null.")); - } else { - policy.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getDataPlaneAccess( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - policy, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDataPlaneAccessWithResponseAsync( - String resourceGroupName, String factoryName, UserAccessPolicy policy, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (policy == null) { - return Mono.error(new IllegalArgumentException("Parameter policy is required and cannot be null.")); - } else { - policy.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getDataPlaneAccess( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - policy, - accept, - context); - } - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getDataPlaneAccessAsync( - String resourceGroupName, String factoryName, UserAccessPolicy policy) { - return getDataPlaneAccessWithResponseAsync(resourceGroupName, factoryName, policy) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AccessPolicyResponseInner getDataPlaneAccess( - String resourceGroupName, String factoryName, UserAccessPolicy policy) { - return getDataPlaneAccessAsync(resourceGroupName, factoryName, policy).block(); - } - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDataPlaneAccessWithResponse( - String resourceGroupName, String factoryName, UserAccessPolicy policy, Context context) { - return getDataPlaneAccessWithResponseAsync(resourceGroupName, factoryName, policy, context).block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesImpl.java deleted file mode 100644 index bf549653c67e8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesImpl.java +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.FactoriesClient; -import com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; -import com.azure.resourcemanager.datafactory.fluent.models.GitHubAccessTokenResponseInner; -import com.azure.resourcemanager.datafactory.models.AccessPolicyResponse; -import com.azure.resourcemanager.datafactory.models.Factories; -import com.azure.resourcemanager.datafactory.models.Factory; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenResponse; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; - -public final class FactoriesImpl implements Factories { - private static final ClientLogger LOGGER = new ClientLogger(FactoriesImpl.class); - - private final FactoriesClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public FactoriesImpl( - FactoriesClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new FactoryImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new FactoryImpl(inner1, this.manager())); - } - - public Factory configureFactoryRepo(String locationId, FactoryRepoUpdate factoryRepoUpdate) { - FactoryInner inner = this.serviceClient().configureFactoryRepo(locationId, factoryRepoUpdate); - if (inner != null) { - return new FactoryImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response configureFactoryRepoWithResponse( - String locationId, FactoryRepoUpdate factoryRepoUpdate, Context context) { - Response inner = - this.serviceClient().configureFactoryRepoWithResponse(locationId, factoryRepoUpdate, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new FactoryImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new FactoryImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new FactoryImpl(inner1, this.manager())); - } - - public Factory getByResourceGroup(String resourceGroupName, String factoryName) { - FactoryInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, factoryName); - if (inner != null) { - return new FactoryImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getByResourceGroupWithResponse( - String resourceGroupName, String factoryName, String ifNoneMatch, Context context) { - Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, factoryName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new FactoryImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void deleteByResourceGroup(String resourceGroupName, String factoryName) { - this.serviceClient().delete(resourceGroupName, factoryName); - } - - public Response deleteWithResponse(String resourceGroupName, String factoryName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, context); - } - - public GitHubAccessTokenResponse getGitHubAccessToken( - String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { - GitHubAccessTokenResponseInner inner = - this.serviceClient().getGitHubAccessToken(resourceGroupName, factoryName, gitHubAccessTokenRequest); - if (inner != null) { - return new GitHubAccessTokenResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getGitHubAccessTokenWithResponse( - String resourceGroupName, - String factoryName, - GitHubAccessTokenRequest gitHubAccessTokenRequest, - Context context) { - Response inner = - this - .serviceClient() - .getGitHubAccessTokenWithResponse(resourceGroupName, factoryName, gitHubAccessTokenRequest, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new GitHubAccessTokenResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public AccessPolicyResponse getDataPlaneAccess( - String resourceGroupName, String factoryName, UserAccessPolicy policy) { - AccessPolicyResponseInner inner = - this.serviceClient().getDataPlaneAccess(resourceGroupName, factoryName, policy); - if (inner != null) { - return new AccessPolicyResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getDataPlaneAccessWithResponse( - String resourceGroupName, String factoryName, UserAccessPolicy policy, Context context) { - Response inner = - this.serviceClient().getDataPlaneAccessWithResponse(resourceGroupName, factoryName, policy, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new AccessPolicyResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public Factory getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String localIfNoneMatch = null; - return this - .getByResourceGroupWithResponse(resourceGroupName, factoryName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, factoryName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, context); - } - - private FactoriesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public FactoryImpl define(String name) { - return new FactoryImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoryImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoryImpl.java deleted file mode 100644 index 9256c83eaed8a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoryImpl.java +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.management.Region; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; -import com.azure.resourcemanager.datafactory.models.AccessPolicyResponse; -import com.azure.resourcemanager.datafactory.models.EncryptionConfiguration; -import com.azure.resourcemanager.datafactory.models.Factory; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import com.azure.resourcemanager.datafactory.models.FactoryUpdateParameters; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenResponse; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; -import java.time.OffsetDateTime; -import java.util.Collections; -import java.util.Map; - -public final class FactoryImpl implements Factory, Factory.Definition, Factory.Update { - private FactoryInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public FactoryIdentity identity() { - return this.innerModel().identity(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public String provisioningState() { - return this.innerModel().provisioningState(); - } - - public OffsetDateTime createTime() { - return this.innerModel().createTime(); - } - - public String version() { - return this.innerModel().version(); - } - - public FactoryRepoConfiguration repoConfiguration() { - return this.innerModel().repoConfiguration(); - } - - public Map globalParameters() { - Map inner = this.innerModel().globalParameters(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public EncryptionConfiguration encryption() { - return this.innerModel().encryption(); - } - - public PublicNetworkAccess publicNetworkAccess() { - return this.innerModel().publicNetworkAccess(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public FactoryInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String createIfMatch; - - private FactoryUpdateParameters updateFactoryUpdateParameters; - - public FactoryImpl withExistingResourceGroup(String resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - public Factory create() { - this.innerObject = - serviceManager - .serviceClient() - .getFactories() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, this.innerModel(), createIfMatch, Context.NONE) - .getValue(); - return this; - } - - public Factory create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getFactories() - .createOrUpdateWithResponse(resourceGroupName, factoryName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - FactoryImpl(String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new FactoryInner(); - this.serviceManager = serviceManager; - this.factoryName = name; - this.createIfMatch = null; - } - - public FactoryImpl update() { - this.updateFactoryUpdateParameters = new FactoryUpdateParameters(); - return this; - } - - public Factory apply() { - this.innerObject = - serviceManager - .serviceClient() - .getFactories() - .updateWithResponse(resourceGroupName, factoryName, updateFactoryUpdateParameters, Context.NONE) - .getValue(); - return this; - } - - public Factory apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getFactories() - .updateWithResponse(resourceGroupName, factoryName, updateFactoryUpdateParameters, context) - .getValue(); - return this; - } - - FactoryImpl(FactoryInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - } - - public Factory refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getFactories() - .getByResourceGroupWithResponse(resourceGroupName, factoryName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public Factory refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getFactories() - .getByResourceGroupWithResponse(resourceGroupName, factoryName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public GitHubAccessTokenResponse getGitHubAccessToken(GitHubAccessTokenRequest gitHubAccessTokenRequest) { - return serviceManager - .factories() - .getGitHubAccessToken(resourceGroupName, factoryName, gitHubAccessTokenRequest); - } - - public Response getGitHubAccessTokenWithResponse( - GitHubAccessTokenRequest gitHubAccessTokenRequest, Context context) { - return serviceManager - .factories() - .getGitHubAccessTokenWithResponse(resourceGroupName, factoryName, gitHubAccessTokenRequest, context); - } - - public AccessPolicyResponse getDataPlaneAccess(UserAccessPolicy policy) { - return serviceManager.factories().getDataPlaneAccess(resourceGroupName, factoryName, policy); - } - - public Response getDataPlaneAccessWithResponse(UserAccessPolicy policy, Context context) { - return serviceManager - .factories() - .getDataPlaneAccessWithResponse(resourceGroupName, factoryName, policy, context); - } - - public FactoryImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public FactoryImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public FactoryImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateFactoryUpdateParameters.withTags(tags); - return this; - } - } - - public FactoryImpl withIdentity(FactoryIdentity identity) { - if (isInCreateMode()) { - this.innerModel().withIdentity(identity); - return this; - } else { - this.updateFactoryUpdateParameters.withIdentity(identity); - return this; - } - } - - public FactoryImpl withAdditionalProperties(Map additionalProperties) { - this.innerModel().withAdditionalProperties(additionalProperties); - return this; - } - - public FactoryImpl withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { - this.innerModel().withRepoConfiguration(repoConfiguration); - return this; - } - - public FactoryImpl withGlobalParameters(Map globalParameters) { - this.innerModel().withGlobalParameters(globalParameters); - return this; - } - - public FactoryImpl withEncryption(EncryptionConfiguration encryption) { - this.innerModel().withEncryption(encryption); - return this; - } - - public FactoryImpl withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - if (isInCreateMode()) { - this.innerModel().withPublicNetworkAccess(publicNetworkAccess); - return this; - } else { - this.updateFactoryUpdateParameters.withPublicNetworkAccess(publicNetworkAccess); - return this; - } - } - - public FactoryImpl withIfMatch(String ifMatch) { - this.createIfMatch = ifMatch; - return this; - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GitHubAccessTokenResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GitHubAccessTokenResponseImpl.java deleted file mode 100644 index ee0901fddc7eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GitHubAccessTokenResponseImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.GitHubAccessTokenResponseInner; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenResponse; - -public final class GitHubAccessTokenResponseImpl implements GitHubAccessTokenResponse { - private GitHubAccessTokenResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - GitHubAccessTokenResponseImpl( - GitHubAccessTokenResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String gitHubAccessToken() { - return this.innerModel().gitHubAccessToken(); - } - - public GitHubAccessTokenResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeAuthKeysImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeAuthKeysImpl.java deleted file mode 100644 index 4dde30e62b2d3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeAuthKeysImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeys; - -public final class IntegrationRuntimeAuthKeysImpl implements IntegrationRuntimeAuthKeys { - private IntegrationRuntimeAuthKeysInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - IntegrationRuntimeAuthKeysImpl( - IntegrationRuntimeAuthKeysInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String authKey1() { - return this.innerModel().authKey1(); - } - - public String authKey2() { - return this.innerModel().authKey2(); - } - - public IntegrationRuntimeAuthKeysInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeConnectionInfoImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeConnectionInfoImpl.java deleted file mode 100644 index aa012953fb86c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeConnectionInfoImpl.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeConnectionInfo; -import java.util.Collections; -import java.util.Map; - -public final class IntegrationRuntimeConnectionInfoImpl implements IntegrationRuntimeConnectionInfo { - private IntegrationRuntimeConnectionInfoInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - IntegrationRuntimeConnectionInfoImpl( - IntegrationRuntimeConnectionInfoInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String serviceToken() { - return this.innerModel().serviceToken(); - } - - public String identityCertThumbprint() { - return this.innerModel().identityCertThumbprint(); - } - - public String hostServiceUri() { - return this.innerModel().hostServiceUri(); - } - - public String version() { - return this.innerModel().version(); - } - - public String publicKey() { - return this.innerModel().publicKey(); - } - - public Boolean isIdentityCertExprired() { - return this.innerModel().isIdentityCertExprired(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public IntegrationRuntimeConnectionInfoInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeMonitoringDataImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeMonitoringDataImpl.java deleted file mode 100644 index f0d34475aa9cb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeMonitoringDataImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeMonitoringData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import java.util.Collections; -import java.util.List; - -public final class IntegrationRuntimeMonitoringDataImpl implements IntegrationRuntimeMonitoringData { - private IntegrationRuntimeMonitoringDataInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - IntegrationRuntimeMonitoringDataImpl( - IntegrationRuntimeMonitoringDataInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String name() { - return this.innerModel().name(); - } - - public List nodes() { - List inner = this.innerModel().nodes(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public IntegrationRuntimeMonitoringDataInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodeIpAddressImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodeIpAddressImpl.java deleted file mode 100644 index ade0edc2e9952..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodeIpAddressImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeIpAddress; - -public final class IntegrationRuntimeNodeIpAddressImpl implements IntegrationRuntimeNodeIpAddress { - private IntegrationRuntimeNodeIpAddressInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - IntegrationRuntimeNodeIpAddressImpl( - IntegrationRuntimeNodeIpAddressInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String ipAddress() { - return this.innerModel().ipAddress(); - } - - public IntegrationRuntimeNodeIpAddressInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java deleted file mode 100644 index 3a4a96c590ac4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java +++ /dev/null @@ -1,908 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeNodesClient; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. */ -public final class IntegrationRuntimeNodesClientImpl implements IntegrationRuntimeNodesClient { - /** The proxy service used to perform REST calls. */ - private final IntegrationRuntimeNodesService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of IntegrationRuntimeNodesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - IntegrationRuntimeNodesClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create(IntegrationRuntimeNodesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientIntegrationRuntimeNodes to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface IntegrationRuntimeNodesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getIpAddress( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SelfHostedIntegrationRuntimeNodeInner get( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - return getAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).block(); - } - - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context).block(); - } - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - deleteAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).block(); - } - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context) - .block(); - } - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - if (updateIntegrationRuntimeNodeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); - } else { - updateIntegrationRuntimeNodeRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - updateIntegrationRuntimeNodeRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - if (updateIntegrationRuntimeNodeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); - } else { - updateIntegrationRuntimeNodeRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - updateIntegrationRuntimeNodeRequest, - accept, - context); - } - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - return updateWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SelfHostedIntegrationRuntimeNodeInner update( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - return updateAsync( - resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest) - .block(); - } - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context) { - return updateWithResponseAsync( - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest, - context) - .block(); - } - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getIpAddressWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getIpAddress( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getIpAddressWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getIpAddress( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getIpAddressAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - return getIpAddressWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeNodeIpAddressInner getIpAddress( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - return getIpAddressAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).block(); - } - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getIpAddressWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - return getIpAddressWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context) - .block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesImpl.java deleted file mode 100644 index 6be0d519efc96..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesImpl.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeNodesClient; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeIpAddress; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodes; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNode; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; - -public final class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeNodesImpl.class); - - private final IntegrationRuntimeNodesClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public IntegrationRuntimeNodesImpl( - IntegrationRuntimeNodesClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public SelfHostedIntegrationRuntimeNode get( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - SelfHostedIntegrationRuntimeNodeInner inner = - this.serviceClient().get(resourceGroupName, factoryName, integrationRuntimeName, nodeName); - if (inner != null) { - return new SelfHostedIntegrationRuntimeNodeImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new SelfHostedIntegrationRuntimeNodeImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - this.serviceClient().delete(resourceGroupName, factoryName, integrationRuntimeName, nodeName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - return this - .serviceClient() - .deleteWithResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context); - } - - public SelfHostedIntegrationRuntimeNode update( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - SelfHostedIntegrationRuntimeNodeInner inner = - this - .serviceClient() - .update( - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest); - if (inner != null) { - return new SelfHostedIntegrationRuntimeNodeImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response updateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context) { - Response inner = - this - .serviceClient() - .updateWithResponse( - resourceGroupName, - factoryName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest, - context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new SelfHostedIntegrationRuntimeNodeImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeNodeIpAddress getIpAddress( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { - IntegrationRuntimeNodeIpAddressInner inner = - this.serviceClient().getIpAddress(resourceGroupName, factoryName, integrationRuntimeName, nodeName); - if (inner != null) { - return new IntegrationRuntimeNodeIpAddressImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getIpAddressWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - Response inner = - this - .serviceClient() - .getIpAddressWithResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeNodeIpAddressImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - private IntegrationRuntimeNodesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java deleted file mode 100644 index add655d8aa92d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ /dev/null @@ -1,597 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeObjectMetadatasClient; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in IntegrationRuntimeObjectMetadatasClient. - */ -public final class IntegrationRuntimeObjectMetadatasClientImpl implements IntegrationRuntimeObjectMetadatasClient { - /** The proxy service used to perform REST calls. */ - private final IntegrationRuntimeObjectMetadatasService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of IntegrationRuntimeObjectMetadatasClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - IntegrationRuntimeObjectMetadatasClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeObjectMetadatasService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientIntegrationRuntimeObjectMetadatas to be - * used by the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface IntegrationRuntimeObjectMetadatasService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> refresh( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GetSsisObjectMetadataRequest getMetadataRequest, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .refresh( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .refresh( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the status of the operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SsisObjectMetadataStatusResponseInner> - beginRefreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { - Mono>> mono = - refreshWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SsisObjectMetadataStatusResponseInner.class, - SsisObjectMetadataStatusResponseInner.class, - this.client.getContext()); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the status of the operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SsisObjectMetadataStatusResponseInner> - beginRefreshAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - refreshWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SsisObjectMetadataStatusResponseInner.class, - SsisObjectMetadataStatusResponseInner.class, - context); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of the operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SsisObjectMetadataStatusResponseInner> - beginRefresh(String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginRefreshAsync(resourceGroupName, factoryName, integrationRuntimeName).getSyncPoller(); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of the operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SsisObjectMetadataStatusResponseInner> - beginRefresh(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginRefreshAsync(resourceGroupName, factoryName, integrationRuntimeName, context).getSyncPoller(); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginRefreshAsync(resourceGroupName, factoryName, integrationRuntimeName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginRefreshAsync(resourceGroupName, factoryName, integrationRuntimeName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return refreshAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return refreshAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); - } - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param getMetadataRequest The parameters for getting a SSIS object metadata. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (getMetadataRequest != null) { - getMetadataRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - getMetadataRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param getMetadataRequest The parameters for getting a SSIS object metadata. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (getMetadataRequest != null) { - getMetadataRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - getMetadataRequest, - accept, - context); - } - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param getMetadataRequest The parameters for getting a SSIS object metadata. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest) { - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, getMetadataRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - final GetSsisObjectMetadataRequest getMetadataRequest = null; - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, getMetadataRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SsisObjectMetadataListResponseInner get( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - final GetSsisObjectMetadataRequest getMetadataRequest = null; - return getAsync(resourceGroupName, factoryName, integrationRuntimeName, getMetadataRequest).block(); - } - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param getMetadataRequest The parameters for getting a SSIS object metadata. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, getMetadataRequest, context) - .block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasImpl.java deleted file mode 100644 index a1ace8fd4b12f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeObjectMetadatasClient; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeObjectMetadatas; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataListResponse; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataStatusResponse; - -public final class IntegrationRuntimeObjectMetadatasImpl implements IntegrationRuntimeObjectMetadatas { - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeObjectMetadatasImpl.class); - - private final IntegrationRuntimeObjectMetadatasClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public IntegrationRuntimeObjectMetadatasImpl( - IntegrationRuntimeObjectMetadatasClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - SsisObjectMetadataStatusResponseInner inner = - this.serviceClient().refresh(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new SsisObjectMetadataStatusResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - SsisObjectMetadataStatusResponseInner inner = - this.serviceClient().refresh(resourceGroupName, factoryName, integrationRuntimeName, context); - if (inner != null) { - return new SsisObjectMetadataStatusResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public SsisObjectMetadataListResponse get( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - SsisObjectMetadataListResponseInner inner = - this.serviceClient().get(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new SsisObjectMetadataListResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, getMetadataRequest, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new SsisObjectMetadataListResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - private IntegrationRuntimeObjectMetadatasClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl.java deleted file mode 100644 index 3e56348c525e9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; -import java.util.Collections; -import java.util.List; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl - implements IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse { - private IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl( - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeResourceImpl.java deleted file mode 100644 index 604e701e62e4a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeResourceImpl.java +++ /dev/null @@ -1,322 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeys; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeConnectionInfo; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeMonitoringData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest; - -public final class IntegrationRuntimeResourceImpl - implements IntegrationRuntimeResource, IntegrationRuntimeResource.Definition, IntegrationRuntimeResource.Update { - private IntegrationRuntimeResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public IntegrationRuntime properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public IntegrationRuntimeResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String integrationRuntimeName; - - private String createIfMatch; - - private UpdateIntegrationRuntimeRequest updateUpdateIntegrationRuntimeRequest; - - public IntegrationRuntimeResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public IntegrationRuntimeResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - integrationRuntimeName, - this.innerModel(), - createIfMatch, - Context.NONE) - .getValue(); - return this; - } - - public IntegrationRuntimeResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, integrationRuntimeName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - IntegrationRuntimeResourceImpl( - String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new IntegrationRuntimeResourceInner(); - this.serviceManager = serviceManager; - this.integrationRuntimeName = name; - this.createIfMatch = null; - } - - public IntegrationRuntimeResourceImpl update() { - this.updateUpdateIntegrationRuntimeRequest = new UpdateIntegrationRuntimeRequest(); - return this; - } - - public IntegrationRuntimeResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .updateWithResponse( - resourceGroupName, - factoryName, - integrationRuntimeName, - updateUpdateIntegrationRuntimeRequest, - Context.NONE) - .getValue(); - return this; - } - - public IntegrationRuntimeResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .updateWithResponse( - resourceGroupName, - factoryName, - integrationRuntimeName, - updateUpdateIntegrationRuntimeRequest, - context) - .getValue(); - return this; - } - - IntegrationRuntimeResourceImpl( - IntegrationRuntimeResourceInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.integrationRuntimeName = Utils.getValueFromIdByName(innerObject.id(), "integrationRuntimes"); - } - - public IntegrationRuntimeResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public IntegrationRuntimeResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public IntegrationRuntimeStatusResponse getStatus() { - return serviceManager.integrationRuntimes().getStatus(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response getStatusWithResponse(Context context) { - return serviceManager - .integrationRuntimes() - .getStatusWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public IntegrationRuntimeConnectionInfo getConnectionInfo() { - return serviceManager - .integrationRuntimes() - .getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response getConnectionInfoWithResponse(Context context) { - return serviceManager - .integrationRuntimes() - .getConnectionInfoWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public IntegrationRuntimeAuthKeys regenerateAuthKey( - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - return serviceManager - .integrationRuntimes() - .regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters); - } - - public Response regenerateAuthKeyWithResponse( - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context) { - return serviceManager - .integrationRuntimes() - .regenerateAuthKeyWithResponse( - resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, context); - } - - public IntegrationRuntimeAuthKeys listAuthKeys() { - return serviceManager - .integrationRuntimes() - .listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response listAuthKeysWithResponse(Context context) { - return serviceManager - .integrationRuntimes() - .listAuthKeysWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public IntegrationRuntimeStatusResponse start() { - return serviceManager.integrationRuntimes().start(resourceGroupName, factoryName, integrationRuntimeName); - } - - public IntegrationRuntimeStatusResponse start(Context context) { - return serviceManager - .integrationRuntimes() - .start(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public void stop() { - serviceManager.integrationRuntimes().stop(resourceGroupName, factoryName, integrationRuntimeName); - } - - public void stop(Context context) { - serviceManager.integrationRuntimes().stop(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public void syncCredentials() { - serviceManager.integrationRuntimes().syncCredentials(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response syncCredentialsWithResponse(Context context) { - return serviceManager - .integrationRuntimes() - .syncCredentialsWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public IntegrationRuntimeMonitoringData getMonitoringData() { - return serviceManager - .integrationRuntimes() - .getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response getMonitoringDataWithResponse(Context context) { - return serviceManager - .integrationRuntimes() - .getMonitoringDataWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public void upgrade() { - serviceManager.integrationRuntimes().upgrade(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response upgradeWithResponse(Context context) { - return serviceManager - .integrationRuntimes() - .upgradeWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public void removeLinks(LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest) { - serviceManager - .integrationRuntimes() - .removeLinks(resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest); - } - - public Response removeLinksWithResponse( - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, Context context) { - return serviceManager - .integrationRuntimes() - .removeLinksWithResponse( - resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest, context); - } - - public IntegrationRuntimeStatusResponse createLinkedIntegrationRuntime( - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { - return serviceManager - .integrationRuntimes() - .createLinkedIntegrationRuntime( - resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest); - } - - public Response createLinkedIntegrationRuntimeWithResponse( - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, Context context) { - return serviceManager - .integrationRuntimes() - .createLinkedIntegrationRuntimeWithResponse( - resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest, context); - } - - public IntegrationRuntimeResourceImpl withProperties(IntegrationRuntime properties) { - this.innerModel().withProperties(properties); - return this; - } - - public IntegrationRuntimeResourceImpl withIfMatch(String ifMatch) { - this.createIfMatch = ifMatch; - return this; - } - - public IntegrationRuntimeResourceImpl withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate) { - this.updateUpdateIntegrationRuntimeRequest.withAutoUpdate(autoUpdate); - return this; - } - - public IntegrationRuntimeResourceImpl withUpdateDelayOffset(String updateDelayOffset) { - this.updateUpdateIntegrationRuntimeRequest.withUpdateDelayOffset(updateDelayOffset); - return this; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeStatusResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeStatusResponseImpl.java deleted file mode 100644 index 663b6b0b1442f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeStatusResponseImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; - -public final class IntegrationRuntimeStatusResponseImpl implements IntegrationRuntimeStatusResponse { - private IntegrationRuntimeStatusResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - IntegrationRuntimeStatusResponseImpl( - IntegrationRuntimeStatusResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String name() { - return this.innerModel().name(); - } - - public IntegrationRuntimeStatus properties() { - return this.innerModel().properties(); - } - - public IntegrationRuntimeStatusResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java deleted file mode 100644 index 831f63338ed90..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java +++ /dev/null @@ -1,3831 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimesClient; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeListResponse; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ -public final class IntegrationRuntimesClientImpl implements IntegrationRuntimesClient { - /** The proxy service used to perform REST calls. */ - private final IntegrationRuntimesService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of IntegrationRuntimesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - IntegrationRuntimesClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(IntegrationRuntimesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientIntegrationRuntimes to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface IntegrationRuntimesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") IntegrationRuntimeResourceInner integrationRuntime, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getStatus( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - + "/outboundNetworkDependenciesEndpoints") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> - listOutboundNetworkDependenciesEndpoints( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getConnectionInfo( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> regenerateAuthKey( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAuthKeys( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> syncCredentials( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getMonitoringData( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> upgrade( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> removeLinks( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createLinkedIntegrationRuntime( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntime == null) { - return Mono - .error(new IllegalArgumentException("Parameter integrationRuntime is required and cannot be null.")); - } else { - integrationRuntime.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - ifMatch, - integrationRuntime, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntime == null) { - return Mono - .error(new IllegalArgumentException("Parameter integrationRuntime is required and cannot be null.")); - } else { - integrationRuntime.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - ifMatch, - integrationRuntime, - accept, - context); - } - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime) { - final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, ifMatch) - .block(); - } - - /** - * Creates or updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, ifMatch, context) - .block(); - } - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String ifNoneMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner get( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch).block(); - } - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String ifNoneMatch, - Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch, context) - .block(); - } - - /** - * Updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (updateIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); - } else { - updateIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - updateIntegrationRuntimeRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (updateIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); - } else { - updateIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - updateIntegrationRuntimeRequest, - accept, - context); - } - - /** - * Updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { - return updateWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner update( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { - return updateAsync(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest) - .block(); - } - - /** - * Updates an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - Context context) { - return updateWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest, context) - .block(); - } - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String integrationRuntimeName) { - deleteAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); - } - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getStatusWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getStatusWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getStatusAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return getStatusWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner getStatus( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return getStatusAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getStatusWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return getStatusWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); - } - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listOutboundNetworkDependenciesEndpointsWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listOutboundNetworkDependenciesEndpoints( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listOutboundNetworkDependenciesEndpointsWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listOutboundNetworkDependenciesEndpoints( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono - listOutboundNetworkDependenciesEndpointsAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return listOutboundNetworkDependenciesEndpointsWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return listOutboundNetworkDependenciesEndpointsAsync(resourceGroupName, factoryName, integrationRuntimeName) - .block(); - } - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return listOutboundNetworkDependenciesEndpointsWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, context) - .block(); - } - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getConnectionInfoWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getConnectionInfo( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getConnectionInfoWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getConnectionInfo( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getConnectionInfoAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return getConnectionInfoWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeConnectionInfoInner getConnectionInfo( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return getConnectionInfoAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getConnectionInfoWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return getConnectionInfoWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context) - .block(); - } - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> regenerateAuthKeyWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (regenerateKeyParameters == null) { - return Mono - .error( - new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); - } else { - regenerateKeyParameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .regenerateAuthKey( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - regenerateKeyParameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> regenerateAuthKeyWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (regenerateKeyParameters == null) { - return Mono - .error( - new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); - } else { - regenerateKeyParameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .regenerateAuthKey( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - regenerateKeyParameters, - accept, - context); - } - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono regenerateAuthKeyAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - return regenerateAuthKeyWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeAuthKeysInner regenerateAuthKey( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - return regenerateAuthKeyAsync(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters) - .block(); - } - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response regenerateAuthKeyWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context) { - return regenerateAuthKeyWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, context) - .block(); - } - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAuthKeysWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listAuthKeys( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAuthKeysWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listAuthKeys( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAuthKeysAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return listAuthKeysWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeAuthKeysInner listAuthKeys( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return listAuthKeysAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response listAuthKeysWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return listAuthKeysWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .start( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .start( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, IntegrationRuntimeStatusResponseInner> - beginStartAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { - Mono>> mono = - startWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IntegrationRuntimeStatusResponseInner.class, - IntegrationRuntimeStatusResponseInner.class, - this.client.getContext()); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, IntegrationRuntimeStatusResponseInner> - beginStartAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - startWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IntegrationRuntimeStatusResponseInner.class, - IntegrationRuntimeStatusResponseInner.class, - context); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IntegrationRuntimeStatusResponseInner> - beginStart(String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginStartAsync(resourceGroupName, factoryName, integrationRuntimeName).getSyncPoller(); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IntegrationRuntimeStatusResponseInner> - beginStart(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginStartAsync(resourceGroupName, factoryName, integrationRuntimeName, context).getSyncPoller(); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginStartAsync(resourceGroupName, factoryName, integrationRuntimeName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginStartAsync(resourceGroupName, factoryName, integrationRuntimeName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return startAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return startAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .stop( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .stop( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - Mono>> mono = - stopWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - stopWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginStopAsync(resourceGroupName, factoryName, integrationRuntimeName).getSyncPoller(); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginStopAsync(resourceGroupName, factoryName, integrationRuntimeName, context).getSyncPoller(); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginStopAsync(resourceGroupName, factoryName, integrationRuntimeName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginStopAsync(resourceGroupName, factoryName, integrationRuntimeName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String resourceGroupName, String factoryName, String integrationRuntimeName) { - stopAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - stopAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); - } - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> syncCredentialsWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .syncCredentials( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> syncCredentialsWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .syncCredentials( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono syncCredentialsAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return syncCredentialsWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void syncCredentials(String resourceGroupName, String factoryName, String integrationRuntimeName) { - syncCredentialsAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response syncCredentialsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return syncCredentialsWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context) - .block(); - } - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getMonitoringDataWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getMonitoringData( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getMonitoringDataWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getMonitoringData( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getMonitoringDataAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return getMonitoringDataWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeMonitoringDataInner getMonitoringData( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - return getMonitoringDataAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getMonitoringDataWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return getMonitoringDataWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context) - .block(); - } - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> upgradeWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .upgrade( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> upgradeWithResponseAsync( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .upgrade( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono upgradeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { - return upgradeWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void upgrade(String resourceGroupName, String factoryName, String integrationRuntimeName) { - upgradeAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); - } - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response upgradeWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return upgradeWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); - } - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> removeLinksWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (linkedIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter linkedIntegrationRuntimeRequest is required and cannot be null.")); - } else { - linkedIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .removeLinks( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - linkedIntegrationRuntimeRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> removeLinksWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (linkedIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter linkedIntegrationRuntimeRequest is required and cannot be null.")); - } else { - linkedIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .removeLinks( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - linkedIntegrationRuntimeRequest, - accept, - context); - } - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono removeLinksAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest) { - return removeLinksWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void removeLinks( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest) { - removeLinksAsync(resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest) - .block(); - } - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response removeLinksWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, - Context context) { - return removeLinksWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest, context) - .block(); - } - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createLinkedIntegrationRuntimeWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (createLinkedIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter createLinkedIntegrationRuntimeRequest is required and cannot be null.")); - } else { - createLinkedIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createLinkedIntegrationRuntime( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - createLinkedIntegrationRuntimeRequest, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createLinkedIntegrationRuntimeWithResponseAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (createLinkedIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter createLinkedIntegrationRuntimeRequest is required and cannot be null.")); - } else { - createLinkedIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createLinkedIntegrationRuntime( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - integrationRuntimeName, - this.client.getApiVersion(), - createLinkedIntegrationRuntimeRequest, - accept, - context); - } - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createLinkedIntegrationRuntimeAsync( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { - return createLinkedIntegrationRuntimeWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner createLinkedIntegrationRuntime( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { - return createLinkedIntegrationRuntimeAsync( - resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest) - .block(); - } - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createLinkedIntegrationRuntimeWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, - Context context) { - return createLinkedIntegrationRuntimeWithResponseAsync( - resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest, context) - .block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesImpl.java deleted file mode 100644 index 15ebd3b03c70d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesImpl.java +++ /dev/null @@ -1,521 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimesClient; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeys; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeConnectionInfo; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeMonitoringData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimes; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; - -public final class IntegrationRuntimesImpl implements IntegrationRuntimes { - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimesImpl.class); - - private final IntegrationRuntimesClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public IntegrationRuntimesImpl( - IntegrationRuntimesClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new IntegrationRuntimeResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new IntegrationRuntimeResourceImpl(inner1, this.manager())); - } - - public IntegrationRuntimeResource get(String resourceGroupName, String factoryName, String integrationRuntimeName) { - IntegrationRuntimeResourceInner inner = - this.serviceClient().get(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String ifNoneMatch, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String integrationRuntimeName) { - this.serviceClient().delete(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public IntegrationRuntimeStatusResponse getStatus( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - IntegrationRuntimeStatusResponseInner inner = - this.serviceClient().getStatus(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getStatusWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response inner = - this.serviceClient().getStatusWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeStatusResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner inner = - this - .serviceClient() - .listOutboundNetworkDependenciesEndpoints(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response inner = - this - .serviceClient() - .listOutboundNetworkDependenciesEndpointsWithResponse( - resourceGroupName, factoryName, integrationRuntimeName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl( - inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeConnectionInfo getConnectionInfo( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - IntegrationRuntimeConnectionInfoInner inner = - this.serviceClient().getConnectionInfo(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeConnectionInfoImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getConnectionInfoWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response inner = - this - .serviceClient() - .getConnectionInfoWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeConnectionInfoImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeAuthKeys regenerateAuthKey( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - IntegrationRuntimeAuthKeysInner inner = - this - .serviceClient() - .regenerateAuthKey(resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters); - if (inner != null) { - return new IntegrationRuntimeAuthKeysImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response regenerateAuthKeyWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context) { - Response inner = - this - .serviceClient() - .regenerateAuthKeyWithResponse( - resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeAuthKeysImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeAuthKeys listAuthKeys( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - IntegrationRuntimeAuthKeysInner inner = - this.serviceClient().listAuthKeys(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeAuthKeysImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response listAuthKeysWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response inner = - this - .serviceClient() - .listAuthKeysWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeAuthKeysImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeStatusResponse start( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - IntegrationRuntimeStatusResponseInner inner = - this.serviceClient().start(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public IntegrationRuntimeStatusResponse start( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - IntegrationRuntimeStatusResponseInner inner = - this.serviceClient().start(resourceGroupName, factoryName, integrationRuntimeName, context); - if (inner != null) { - return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public void stop(String resourceGroupName, String factoryName, String integrationRuntimeName) { - this.serviceClient().stop(resourceGroupName, factoryName, integrationRuntimeName); - } - - public void stop(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - this.serviceClient().stop(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public void syncCredentials(String resourceGroupName, String factoryName, String integrationRuntimeName) { - this.serviceClient().syncCredentials(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response syncCredentialsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return this - .serviceClient() - .syncCredentialsWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public IntegrationRuntimeMonitoringData getMonitoringData( - String resourceGroupName, String factoryName, String integrationRuntimeName) { - IntegrationRuntimeMonitoringDataInner inner = - this.serviceClient().getMonitoringData(resourceGroupName, factoryName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeMonitoringDataImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getMonitoringDataWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response inner = - this - .serviceClient() - .getMonitoringDataWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeMonitoringDataImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void upgrade(String resourceGroupName, String factoryName, String integrationRuntimeName) { - this.serviceClient().upgrade(resourceGroupName, factoryName, integrationRuntimeName); - } - - public Response upgradeWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return this - .serviceClient() - .upgradeWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - public void removeLinks( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest) { - this - .serviceClient() - .removeLinks(resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest); - } - - public Response removeLinksWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, - Context context) { - return this - .serviceClient() - .removeLinksWithResponse( - resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest, context); - } - - public IntegrationRuntimeStatusResponse createLinkedIntegrationRuntime( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { - IntegrationRuntimeStatusResponseInner inner = - this - .serviceClient() - .createLinkedIntegrationRuntime( - resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest); - if (inner != null) { - return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response createLinkedIntegrationRuntimeWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, - Context context) { - Response inner = - this - .serviceClient() - .createLinkedIntegrationRuntimeWithResponse( - resourceGroupName, - factoryName, - integrationRuntimeName, - createLinkedIntegrationRuntimeRequest, - context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeStatusResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); - if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); - if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); - } - return this.getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); - if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, integrationRuntimeName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); - if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - } - - private IntegrationRuntimesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public IntegrationRuntimeResourceImpl define(String name) { - return new IntegrationRuntimeResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServiceResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServiceResourceImpl.java deleted file mode 100644 index 6e757a8a76f85..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServiceResourceImpl.java +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; - -public final class LinkedServiceResourceImpl - implements LinkedServiceResource, LinkedServiceResource.Definition, LinkedServiceResource.Update { - private LinkedServiceResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public LinkedService properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public LinkedServiceResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String linkedServiceName; - - private String createIfMatch; - - private String updateIfMatch; - - public LinkedServiceResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public LinkedServiceResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getLinkedServices() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, linkedServiceName, this.innerModel(), createIfMatch, Context.NONE) - .getValue(); - return this; - } - - public LinkedServiceResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getLinkedServices() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, linkedServiceName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - LinkedServiceResourceImpl(String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new LinkedServiceResourceInner(); - this.serviceManager = serviceManager; - this.linkedServiceName = name; - this.createIfMatch = null; - } - - public LinkedServiceResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public LinkedServiceResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getLinkedServices() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, linkedServiceName, this.innerModel(), updateIfMatch, Context.NONE) - .getValue(); - return this; - } - - public LinkedServiceResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getLinkedServices() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, linkedServiceName, this.innerModel(), updateIfMatch, context) - .getValue(); - return this; - } - - LinkedServiceResourceImpl( - LinkedServiceResourceInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.linkedServiceName = Utils.getValueFromIdByName(innerObject.id(), "linkedservices"); - } - - public LinkedServiceResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getLinkedServices() - .getWithResponse(resourceGroupName, factoryName, linkedServiceName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public LinkedServiceResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getLinkedServices() - .getWithResponse(resourceGroupName, factoryName, linkedServiceName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public LinkedServiceResourceImpl withProperties(LinkedService properties) { - this.innerModel().withProperties(properties); - return this; - } - - public LinkedServiceResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java deleted file mode 100644 index b45514d3913c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java +++ /dev/null @@ -1,1001 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.LinkedServicesClient; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.LinkedServiceListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in LinkedServicesClient. */ -public final class LinkedServicesClientImpl implements LinkedServicesClient { - /** The proxy service used to perform REST calls. */ - private final LinkedServicesService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of LinkedServicesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - LinkedServicesClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(LinkedServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientLinkedServices to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface LinkedServicesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices/{linkedServiceName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("linkedServiceName") String linkedServiceName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") LinkedServiceResourceInner linkedService, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices/{linkedServiceName}") - @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("linkedServiceName") String linkedServiceName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices/{linkedServiceName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("linkedServiceName") String linkedServiceName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - if (linkedService == null) { - return Mono.error(new IllegalArgumentException("Parameter linkedService is required and cannot be null.")); - } else { - linkedService.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - linkedServiceName, - this.client.getApiVersion(), - ifMatch, - linkedService, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - if (linkedService == null) { - return Mono.error(new IllegalArgumentException("Parameter linkedService is required and cannot be null.")); - } else { - linkedService.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - linkedServiceName, - this.client.getApiVersion(), - ifMatch, - linkedService, - accept, - context); - } - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService, - String ifMatch) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, linkedServiceName, linkedService, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, linkedServiceName, linkedService, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LinkedServiceResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService) { - final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, factoryName, linkedServiceName, linkedService, ifMatch).block(); - } - - /** - * Creates or updates a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param linkedService Linked service resource definition. - * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return linked service resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String linkedServiceName, - LinkedServiceResourceInner linkedService, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, linkedServiceName, linkedService, ifMatch, context) - .block(); - } - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - linkedServiceName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - linkedServiceName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String linkedServiceName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LinkedServiceResourceInner get(String resourceGroupName, String factoryName, String linkedServiceName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch).block(); - } - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch, context).block(); - } - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String linkedServiceName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - linkedServiceName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String linkedServiceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - linkedServiceName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String linkedServiceName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, linkedServiceName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String linkedServiceName) { - deleteAsync(resourceGroupName, factoryName, linkedServiceName).block(); - } - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, linkedServiceName, context).block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesImpl.java deleted file mode 100644 index 2c7fd309756d4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesImpl.java +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.LinkedServicesClient; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.LinkedServices; - -public final class LinkedServicesImpl implements LinkedServices { - private static final ClientLogger LOGGER = new ClientLogger(LinkedServicesImpl.class); - - private final LinkedServicesClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public LinkedServicesImpl( - LinkedServicesClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new LinkedServiceResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new LinkedServiceResourceImpl(inner1, this.manager())); - } - - public LinkedServiceResource get(String resourceGroupName, String factoryName, String linkedServiceName) { - LinkedServiceResourceInner inner = this.serviceClient().get(resourceGroupName, factoryName, linkedServiceName); - if (inner != null) { - return new LinkedServiceResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new LinkedServiceResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String linkedServiceName) { - this.serviceClient().delete(resourceGroupName, factoryName, linkedServiceName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, linkedServiceName, context); - } - - public LinkedServiceResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String linkedServiceName = Utils.getValueFromIdByName(id, "linkedservices"); - if (linkedServiceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'linkedservices'.", id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, linkedServiceName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String linkedServiceName = Utils.getValueFromIdByName(id, "linkedservices"); - if (linkedServiceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'linkedservices'.", id))); - } - return this.getWithResponse(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String linkedServiceName = Utils.getValueFromIdByName(id, "linkedservices"); - if (linkedServiceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'linkedservices'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, linkedServiceName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String linkedServiceName = Utils.getValueFromIdByName(id, "linkedservices"); - if (linkedServiceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'linkedservices'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, linkedServiceName, context); - } - - private LinkedServicesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public LinkedServiceResourceImpl define(String name) { - return new LinkedServiceResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointResourceImpl.java deleted file mode 100644 index d2e26249653c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointResourceImpl.java +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; - -public final class ManagedPrivateEndpointResourceImpl - implements ManagedPrivateEndpointResource, - ManagedPrivateEndpointResource.Definition, - ManagedPrivateEndpointResource.Update { - private ManagedPrivateEndpointResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public ManagedPrivateEndpoint properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public ManagedPrivateEndpointResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String managedVirtualNetworkName; - - private String managedPrivateEndpointName; - - private String createIfMatch; - - private String updateIfMatch; - - public ManagedPrivateEndpointResourceImpl withExistingManagedVirtualNetwork( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - this.managedVirtualNetworkName = managedVirtualNetworkName; - return this; - } - - public ManagedPrivateEndpointResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getManagedPrivateEndpoints() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.innerModel(), - createIfMatch, - Context.NONE) - .getValue(); - return this; - } - - public ManagedPrivateEndpointResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getManagedPrivateEndpoints() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.innerModel(), - createIfMatch, - context) - .getValue(); - return this; - } - - ManagedPrivateEndpointResourceImpl( - String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new ManagedPrivateEndpointResourceInner(); - this.serviceManager = serviceManager; - this.managedPrivateEndpointName = name; - this.createIfMatch = null; - } - - public ManagedPrivateEndpointResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public ManagedPrivateEndpointResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getManagedPrivateEndpoints() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.innerModel(), - updateIfMatch, - Context.NONE) - .getValue(); - return this; - } - - public ManagedPrivateEndpointResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getManagedPrivateEndpoints() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.innerModel(), - updateIfMatch, - context) - .getValue(); - return this; - } - - ManagedPrivateEndpointResourceImpl( - ManagedPrivateEndpointResourceInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.managedVirtualNetworkName = Utils.getValueFromIdByName(innerObject.id(), "managedVirtualNetworks"); - this.managedPrivateEndpointName = Utils.getValueFromIdByName(innerObject.id(), "managedPrivateEndpoints"); - } - - public ManagedPrivateEndpointResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getManagedPrivateEndpoints() - .getWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - localIfNoneMatch, - Context.NONE) - .getValue(); - return this; - } - - public ManagedPrivateEndpointResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getManagedPrivateEndpoints() - .getWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - localIfNoneMatch, - context) - .getValue(); - return this; - } - - public ManagedPrivateEndpointResourceImpl withProperties(ManagedPrivateEndpoint properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ManagedPrivateEndpointResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java deleted file mode 100644 index e5d4245f248fe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java +++ /dev/null @@ -1,1196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.ManagedPrivateEndpointsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in ManagedPrivateEndpointsClient. */ -public final class ManagedPrivateEndpointsClientImpl implements ManagedPrivateEndpointsClient { - /** The proxy service used to perform REST calls. */ - private final ManagedPrivateEndpointsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of ManagedPrivateEndpointsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ManagedPrivateEndpointsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create(ManagedPrivateEndpointsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientManagedPrivateEndpoints to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface ManagedPrivateEndpointsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - + "/{managedPrivateEndpointName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @PathParam("managedPrivateEndpointName") String managedPrivateEndpointName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") ManagedPrivateEndpointResourceInner managedPrivateEndpoint, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - + "/{managedPrivateEndpointName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @PathParam("managedPrivateEndpointName") String managedPrivateEndpointName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - + "/{managedPrivateEndpointName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @PathParam("managedPrivateEndpointName") String managedPrivateEndpointName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, managedVirtualNetworkName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, managedVirtualNetworkName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, managedVirtualNetworkName)); - } - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context) { - return new PagedIterable<>( - listByFactoryAsync(resourceGroupName, factoryName, managedVirtualNetworkName, context)); - } - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - if (managedPrivateEndpoint == null) { - return Mono - .error( - new IllegalArgumentException("Parameter managedPrivateEndpoint is required and cannot be null.")); - } else { - managedPrivateEndpoint.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.client.getApiVersion(), - ifMatch, - managedPrivateEndpoint, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - if (managedPrivateEndpoint == null) { - return Mono - .error( - new IllegalArgumentException("Parameter managedPrivateEndpoint is required and cannot be null.")); - } else { - managedPrivateEndpoint.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.client.getApiVersion(), - ifMatch, - managedPrivateEndpoint, - accept, - context); - } - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint, - String ifMatch) { - return createOrUpdateWithResponseAsync( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - managedPrivateEndpoint, - ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - managedPrivateEndpoint, - ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedPrivateEndpointResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint) { - final String ifMatch = null; - return createOrUpdateAsync( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - managedPrivateEndpoint, - ifMatch) - .block(); - } - - /** - * Creates or updates a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param managedPrivateEndpoint Managed private endpoint resource definition. - * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed private endpoint resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - ManagedPrivateEndpointResourceInner managedPrivateEndpoint, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - managedPrivateEndpoint, - ifMatch, - context) - .block(); - } - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - String ifNoneMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - String ifNoneMatch) { - return getWithResponseAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName) { - final String ifNoneMatch = null; - return getWithResponseAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedPrivateEndpointResourceInner get( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName) { - final String ifNoneMatch = null; - return getAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, ifNoneMatch) - .block(); - } - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - String ifNoneMatch, - Context context) { - return getWithResponseAsync( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - ifNoneMatch, - context) - .block(); - } - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName) { - return deleteWithResponseAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName) { - deleteAsync(resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName).block(); - } - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - Context context) { - return deleteWithResponseAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, context) - .block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsImpl.java deleted file mode 100644 index 8f34e93226ff7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsImpl.java +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.ManagedPrivateEndpointsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoints; - -public final class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints { - private static final ClientLogger LOGGER = new ClientLogger(ManagedPrivateEndpointsImpl.class); - - private final ManagedPrivateEndpointsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public ManagedPrivateEndpointsImpl( - ManagedPrivateEndpointsClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, managedVirtualNetworkName); - return Utils.mapPage(inner, inner1 -> new ManagedPrivateEndpointResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, managedVirtualNetworkName, context); - return Utils.mapPage(inner, inner1 -> new ManagedPrivateEndpointResourceImpl(inner1, this.manager())); - } - - public ManagedPrivateEndpointResource get( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName) { - ManagedPrivateEndpointResourceInner inner = - this - .serviceClient() - .get(resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName); - if (inner != null) { - return new ManagedPrivateEndpointResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - String ifNoneMatch, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - ifNoneMatch, - context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ManagedPrivateEndpointResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName) { - this - .serviceClient() - .delete(resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName); - } - - public Response deleteWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - Context context) { - return this - .serviceClient() - .deleteWithResponse( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, context); - } - - public ManagedPrivateEndpointResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String managedVirtualNetworkName = Utils.getValueFromIdByName(id, "managedVirtualNetworks"); - if (managedVirtualNetworkName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedVirtualNetworks'.", - id))); - } - String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); - if (managedPrivateEndpointName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.", - id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - localIfNoneMatch, - Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse( - String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String managedVirtualNetworkName = Utils.getValueFromIdByName(id, "managedVirtualNetworks"); - if (managedVirtualNetworkName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedVirtualNetworks'.", - id))); - } - String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); - if (managedPrivateEndpointName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.", - id))); - } - return this - .getWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - managedPrivateEndpointName, - ifNoneMatch, - context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String managedVirtualNetworkName = Utils.getValueFromIdByName(id, "managedVirtualNetworks"); - if (managedVirtualNetworkName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedVirtualNetworks'.", - id))); - } - String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); - if (managedPrivateEndpointName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.", - id))); - } - this - .deleteWithResponse( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String managedVirtualNetworkName = Utils.getValueFromIdByName(id, "managedVirtualNetworks"); - if (managedVirtualNetworkName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedVirtualNetworks'.", - id))); - } - String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); - if (managedPrivateEndpointName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.", - id))); - } - return this - .deleteWithResponse( - resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, context); - } - - private ManagedPrivateEndpointsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public ManagedPrivateEndpointResourceImpl define(String name) { - return new ManagedPrivateEndpointResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworkResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworkResourceImpl.java deleted file mode 100644 index 77f617d40bf2b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworkResourceImpl.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; - -public final class ManagedVirtualNetworkResourceImpl - implements ManagedVirtualNetworkResource, - ManagedVirtualNetworkResource.Definition, - ManagedVirtualNetworkResource.Update { - private ManagedVirtualNetworkResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public ManagedVirtualNetwork properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public ManagedVirtualNetworkResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String managedVirtualNetworkName; - - private String createIfMatch; - - private String updateIfMatch; - - public ManagedVirtualNetworkResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public ManagedVirtualNetworkResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getManagedVirtualNetworks() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.innerModel(), - createIfMatch, - Context.NONE) - .getValue(); - return this; - } - - public ManagedVirtualNetworkResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getManagedVirtualNetworks() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.innerModel(), - createIfMatch, - context) - .getValue(); - return this; - } - - ManagedVirtualNetworkResourceImpl( - String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new ManagedVirtualNetworkResourceInner(); - this.serviceManager = serviceManager; - this.managedVirtualNetworkName = name; - this.createIfMatch = null; - } - - public ManagedVirtualNetworkResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public ManagedVirtualNetworkResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getManagedVirtualNetworks() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.innerModel(), - updateIfMatch, - Context.NONE) - .getValue(); - return this; - } - - public ManagedVirtualNetworkResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getManagedVirtualNetworks() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.innerModel(), - updateIfMatch, - context) - .getValue(); - return this; - } - - ManagedVirtualNetworkResourceImpl( - ManagedVirtualNetworkResourceInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.managedVirtualNetworkName = Utils.getValueFromIdByName(innerObject.id(), "managedVirtualNetworks"); - } - - public ManagedVirtualNetworkResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getManagedVirtualNetworks() - .getWithResponse( - resourceGroupName, factoryName, managedVirtualNetworkName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public ManagedVirtualNetworkResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getManagedVirtualNetworks() - .getWithResponse(resourceGroupName, factoryName, managedVirtualNetworkName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public ManagedVirtualNetworkResourceImpl withProperties(ManagedVirtualNetwork properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ManagedVirtualNetworkResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java deleted file mode 100644 index 45eb9c657f3c3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java +++ /dev/null @@ -1,855 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.ManagedVirtualNetworksClient; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in ManagedVirtualNetworksClient. */ -public final class ManagedVirtualNetworksClientImpl implements ManagedVirtualNetworksClient { - /** The proxy service used to perform REST calls. */ - private final ManagedVirtualNetworksService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of ManagedVirtualNetworksClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ManagedVirtualNetworksClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create(ManagedVirtualNetworksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientManagedVirtualNetworks to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface ManagedVirtualNetworksService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") ManagedVirtualNetworkResourceInner managedVirtualNetwork, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedVirtualNetwork == null) { - return Mono - .error(new IllegalArgumentException("Parameter managedVirtualNetwork is required and cannot be null.")); - } else { - managedVirtualNetwork.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.client.getApiVersion(), - ifMatch, - managedVirtualNetwork, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedVirtualNetwork == null) { - return Mono - .error(new IllegalArgumentException("Parameter managedVirtualNetwork is required and cannot be null.")); - } else { - managedVirtualNetwork.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.client.getApiVersion(), - ifMatch, - managedVirtualNetwork, - accept, - context); - } - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork, - String ifMatch) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedVirtualNetwork, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedVirtualNetwork, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedVirtualNetworkResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork) { - final String ifMatch = null; - return createOrUpdateAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedVirtualNetwork, ifMatch) - .block(); - } - - /** - * Creates or updates a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedVirtualNetwork Managed Virtual Network resource definition. - * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Virtual Network resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - ManagedVirtualNetworkResourceInner managedVirtualNetwork, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, managedVirtualNetworkName, managedVirtualNetwork, ifMatch, context) - .block(); - } - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String ifNoneMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - managedVirtualNetworkName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedVirtualNetworkResourceInner get( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, managedVirtualNetworkName, ifNoneMatch).block(); - } - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String ifNoneMatch, - Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, ifNoneMatch, context) - .block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksImpl.java deleted file mode 100644 index 64acc609beb2d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksImpl.java +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.ManagedVirtualNetworksClient; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworks; - -public final class ManagedVirtualNetworksImpl implements ManagedVirtualNetworks { - private static final ClientLogger LOGGER = new ClientLogger(ManagedVirtualNetworksImpl.class); - - private final ManagedVirtualNetworksClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public ManagedVirtualNetworksImpl( - ManagedVirtualNetworksClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new ManagedVirtualNetworkResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new ManagedVirtualNetworkResourceImpl(inner1, this.manager())); - } - - public ManagedVirtualNetworkResource get( - String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - ManagedVirtualNetworkResourceInner inner = - this.serviceClient().get(resourceGroupName, factoryName, managedVirtualNetworkName); - if (inner != null) { - return new ManagedVirtualNetworkResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String ifNoneMatch, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, factoryName, managedVirtualNetworkName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ManagedVirtualNetworkResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public ManagedVirtualNetworkResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String managedVirtualNetworkName = Utils.getValueFromIdByName(id, "managedVirtualNetworks"); - if (managedVirtualNetworkName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedVirtualNetworks'.", - id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, managedVirtualNetworkName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String managedVirtualNetworkName = Utils.getValueFromIdByName(id, "managedVirtualNetworks"); - if (managedVirtualNetworkName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'managedVirtualNetworks'.", - id))); - } - return this.getWithResponse(resourceGroupName, factoryName, managedVirtualNetworkName, ifNoneMatch, context); - } - - private ManagedVirtualNetworksClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public ManagedVirtualNetworkResourceImpl define(String name) { - return new ManagedVirtualNetworkResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationImpl.java deleted file mode 100644 index 7c52e332861a8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.Operation; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; - -public final class OperationImpl implements Operation { - private OperationInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - OperationImpl(OperationInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String name() { - return this.innerModel().name(); - } - - public String origin() { - return this.innerModel().origin(); - } - - public OperationDisplay display() { - return this.innerModel().display(); - } - - public OperationServiceSpecification serviceSpecification() { - return this.innerModel().serviceSpecification(); - } - - public OperationInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java deleted file mode 100644 index 96070e3bee870..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java +++ /dev/null @@ -1,274 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.OperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.OperationListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in OperationsClient. */ -public final class OperationsClientImpl implements OperationsClient { - /** The proxy service used to perform REST calls. */ - private final OperationsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of OperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - OperationsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientOperations to be used by the proxy service - * to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface OperationsService { - @Headers({"Content-Type: application/json"}) - @Get("/providers/Microsoft.DataFactory/operations") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Lists the available Azure Data Factory API operations. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsImpl.java deleted file mode 100644 index 6244160755051..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.OperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.Operation; -import com.azure.resourcemanager.datafactory.models.Operations; - -public final class OperationsImpl implements Operations { - private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); - - private final OperationsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public OperationsImpl( - OperationsClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); - } - - private OperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineResourceImpl.java deleted file mode 100644 index 4b1b57cd4e0ae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineResourceImpl.java +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.CreateRunResponse; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -public final class PipelineResourceImpl - implements PipelineResource, PipelineResource.Definition, PipelineResource.Update { - private PipelineResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public String description() { - return this.innerModel().description(); - } - - public List activities() { - List inner = this.innerModel().activities(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public Map parameters() { - Map inner = this.innerModel().parameters(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public Map variables() { - Map inner = this.innerModel().variables(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public Integer concurrency() { - return this.innerModel().concurrency(); - } - - public List annotations() { - List inner = this.innerModel().annotations(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public Map runDimensions() { - Map inner = this.innerModel().runDimensions(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public PipelineFolder folder() { - return this.innerModel().folder(); - } - - public PipelinePolicy policy() { - return this.innerModel().policy(); - } - - public PipelineResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String pipelineName; - - private String createIfMatch; - - private String updateIfMatch; - - public PipelineResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public PipelineResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getPipelines() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, pipelineName, this.innerModel(), createIfMatch, Context.NONE) - .getValue(); - return this; - } - - public PipelineResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPipelines() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, pipelineName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - PipelineResourceImpl(String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new PipelineResourceInner(); - this.serviceManager = serviceManager; - this.pipelineName = name; - this.createIfMatch = null; - } - - public PipelineResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public PipelineResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getPipelines() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, pipelineName, this.innerModel(), updateIfMatch, Context.NONE) - .getValue(); - return this; - } - - public PipelineResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPipelines() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, pipelineName, this.innerModel(), updateIfMatch, context) - .getValue(); - return this; - } - - PipelineResourceImpl( - PipelineResourceInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.pipelineName = Utils.getValueFromIdByName(innerObject.id(), "pipelines"); - } - - public PipelineResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getPipelines() - .getWithResponse(resourceGroupName, factoryName, pipelineName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public PipelineResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getPipelines() - .getWithResponse(resourceGroupName, factoryName, pipelineName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public CreateRunResponse createRun() { - return serviceManager.pipelines().createRun(resourceGroupName, factoryName, pipelineName); - } - - public Response createRunWithResponse( - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters, - Context context) { - return serviceManager - .pipelines() - .createRunWithResponse( - resourceGroupName, - factoryName, - pipelineName, - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters, - context); - } - - public PipelineResourceImpl withAdditionalProperties(Map additionalProperties) { - this.innerModel().withAdditionalProperties(additionalProperties); - return this; - } - - public PipelineResourceImpl withDescription(String description) { - this.innerModel().withDescription(description); - return this; - } - - public PipelineResourceImpl withActivities(List activities) { - this.innerModel().withActivities(activities); - return this; - } - - public PipelineResourceImpl withParameters(Map parameters) { - this.innerModel().withParameters(parameters); - return this; - } - - public PipelineResourceImpl withVariables(Map variables) { - this.innerModel().withVariables(variables); - return this; - } - - public PipelineResourceImpl withConcurrency(Integer concurrency) { - this.innerModel().withConcurrency(concurrency); - return this; - } - - public PipelineResourceImpl withAnnotations(List annotations) { - this.innerModel().withAnnotations(annotations); - return this; - } - - public PipelineResourceImpl withRunDimensions(Map runDimensions) { - this.innerModel().withRunDimensions(runDimensions); - return this; - } - - public PipelineResourceImpl withFolder(PipelineFolder folder) { - this.innerModel().withFolder(folder); - return this; - } - - public PipelineResourceImpl withPolicy(PipelinePolicy policy) { - this.innerModel().withPolicy(policy); - return this; - } - - public PipelineResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunImpl.java deleted file mode 100644 index 843ee4ea51e62..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunImpl.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import com.azure.resourcemanager.datafactory.models.PipelineRun; -import com.azure.resourcemanager.datafactory.models.PipelineRunInvokedBy; -import java.time.OffsetDateTime; -import java.util.Collections; -import java.util.Map; - -public final class PipelineRunImpl implements PipelineRun { - private PipelineRunInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - PipelineRunImpl( - PipelineRunInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String runId() { - return this.innerModel().runId(); - } - - public String runGroupId() { - return this.innerModel().runGroupId(); - } - - public Boolean isLatest() { - return this.innerModel().isLatest(); - } - - public String pipelineName() { - return this.innerModel().pipelineName(); - } - - public Map parameters() { - Map inner = this.innerModel().parameters(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public Map runDimensions() { - Map inner = this.innerModel().runDimensions(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public PipelineRunInvokedBy invokedBy() { - return this.innerModel().invokedBy(); - } - - public OffsetDateTime lastUpdated() { - return this.innerModel().lastUpdated(); - } - - public OffsetDateTime runStart() { - return this.innerModel().runStart(); - } - - public OffsetDateTime runEnd() { - return this.innerModel().runEnd(); - } - - public Integer durationInMs() { - return this.innerModel().durationInMs(); - } - - public String status() { - return this.innerModel().status(); - } - - public String message() { - return this.innerModel().message(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public PipelineRunInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java deleted file mode 100644 index e998303b8a142..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java +++ /dev/null @@ -1,618 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.PipelineRunsClient; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in PipelineRunsClient. */ -public final class PipelineRunsClientImpl implements PipelineRunsClient { - /** The proxy service used to perform REST calls. */ - private final PipelineRunsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of PipelineRunsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - PipelineRunsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(PipelineRunsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientPipelineRuns to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface PipelineRunsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryPipelineRuns") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RunFilterParameters filterParameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelineruns/{runId}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("runId") String runId, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelineruns/{runId}/cancel") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> cancel( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("runId") String runId, - @QueryParam("isRecursive") Boolean isRecursive, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - filterParameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - filterParameters, - accept, - context); - } - - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono queryByFactoryAsync( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PipelineRunsQueryResponseInner queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - return queryByFactoryAsync(resourceGroupName, factoryName, filterParameters).block(); - } - - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters, context).block(); - } - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String runId) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - runId, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String runId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - runId, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String factoryName, String runId) { - return getWithResponseAsync(resourceGroupName, factoryName, runId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PipelineRunInner get(String resourceGroupName, String factoryName, String runId) { - return getAsync(resourceGroupName, factoryName, runId).block(); - } - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String runId, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, runId, context).block(); - } - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> cancelWithResponseAsync( - String resourceGroupName, String factoryName, String runId, Boolean isRecursive) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .cancel( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - runId, - isRecursive, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> cancelWithResponseAsync( - String resourceGroupName, String factoryName, String runId, Boolean isRecursive, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .cancel( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - runId, - isRecursive, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono cancelAsync(String resourceGroupName, String factoryName, String runId, Boolean isRecursive) { - return cancelWithResponseAsync(resourceGroupName, factoryName, runId, isRecursive) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono cancelAsync(String resourceGroupName, String factoryName, String runId) { - final Boolean isRecursive = null; - return cancelWithResponseAsync(resourceGroupName, factoryName, runId, isRecursive) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void cancel(String resourceGroupName, String factoryName, String runId) { - final Boolean isRecursive = null; - cancelAsync(resourceGroupName, factoryName, runId, isRecursive).block(); - } - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response cancelWithResponse( - String resourceGroupName, String factoryName, String runId, Boolean isRecursive, Context context) { - return cancelWithResponseAsync(resourceGroupName, factoryName, runId, isRecursive, context).block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsImpl.java deleted file mode 100644 index 8edf23685bcee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsImpl.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.PipelineRunsClient; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.PipelineRun; -import com.azure.resourcemanager.datafactory.models.PipelineRuns; -import com.azure.resourcemanager.datafactory.models.PipelineRunsQueryResponse; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; - -public final class PipelineRunsImpl implements PipelineRuns { - private static final ClientLogger LOGGER = new ClientLogger(PipelineRunsImpl.class); - - private final PipelineRunsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public PipelineRunsImpl( - PipelineRunsClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PipelineRunsQueryResponse queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - PipelineRunsQueryResponseInner inner = - this.serviceClient().queryByFactory(resourceGroupName, factoryName, filterParameters); - if (inner != null) { - return new PipelineRunsQueryResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - Response inner = - this.serviceClient().queryByFactoryWithResponse(resourceGroupName, factoryName, filterParameters, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new PipelineRunsQueryResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public PipelineRun get(String resourceGroupName, String factoryName, String runId) { - PipelineRunInner inner = this.serviceClient().get(resourceGroupName, factoryName, runId); - if (inner != null) { - return new PipelineRunImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String runId, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, factoryName, runId, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new PipelineRunImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void cancel(String resourceGroupName, String factoryName, String runId) { - this.serviceClient().cancel(resourceGroupName, factoryName, runId); - } - - public Response cancelWithResponse( - String resourceGroupName, String factoryName, String runId, Boolean isRecursive, Context context) { - return this.serviceClient().cancelWithResponse(resourceGroupName, factoryName, runId, isRecursive, context); - } - - private PipelineRunsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsQueryResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsQueryResponseImpl.java deleted file mode 100644 index 6a4ab845e77b2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsQueryResponseImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.PipelineRun; -import com.azure.resourcemanager.datafactory.models.PipelineRunsQueryResponse; -import java.util.Collections; -import java.util.List; -import java.util.stream.Collectors; - -public final class PipelineRunsQueryResponseImpl implements PipelineRunsQueryResponse { - private PipelineRunsQueryResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - PipelineRunsQueryResponseImpl( - PipelineRunsQueryResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new PipelineRunImpl(inner1, this.manager())) - .collect(Collectors.toList())); - } else { - return Collections.emptyList(); - } - } - - public String continuationToken() { - return this.innerModel().continuationToken(); - } - - public PipelineRunsQueryResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java deleted file mode 100644 index 67be758eb5c1c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java +++ /dev/null @@ -1,1318 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.PipelinesClient; -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.PipelineListResponse; -import java.util.Map; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in PipelinesClient. */ -public final class PipelinesClientImpl implements PipelinesClient { - /** The proxy service used to perform REST calls. */ - private final PipelinesService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of PipelinesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - PipelinesClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(PipelinesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientPipelines to be used by the proxy service - * to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface PipelinesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") PipelineResourceInner pipeline, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}") - @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}/createRun") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createRun( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, - @QueryParam("api-version") String apiVersion, - @QueryParam("referencePipelineRunId") String referencePipelineRunId, - @QueryParam("isRecovery") Boolean isRecovery, - @QueryParam("startActivityName") String startActivityName, - @QueryParam("startFromFailure") Boolean startFromFailure, - @BodyParam("application/json") Map parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String pipelineName, - PipelineResourceInner pipeline, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - if (pipeline == null) { - return Mono.error(new IllegalArgumentException("Parameter pipeline is required and cannot be null.")); - } else { - pipeline.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - ifMatch, - pipeline, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String pipelineName, - PipelineResourceInner pipeline, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - if (pipeline == null) { - return Mono.error(new IllegalArgumentException("Parameter pipeline is required and cannot be null.")); - } else { - pipeline.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - ifMatch, - pipeline, - accept, - context); - } - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String pipelineName, - PipelineResourceInner pipeline, - String ifMatch) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PipelineResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline) { - final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch).block(); - } - - /** - * Creates or updates a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param pipeline Pipeline resource definition. - * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return pipeline resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String pipelineName, - PipelineResourceInner pipeline, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch, context) - .block(); - } - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String factoryName, String pipelineName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PipelineResourceInner get(String resourceGroupName, String factoryName, String pipelineName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch).block(); - } - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch, context).block(); - } - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String pipelineName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String pipelineName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String pipelineName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, pipelineName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String pipelineName) { - deleteAsync(resourceGroupName, factoryName, pipelineName).block(); - } - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String pipelineName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, pipelineName, context).block(); - } - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified - * run will be used to create a new run. - * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and - * the new run will be grouped under the same groupId. - * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all - * activities will run. - * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The - * property will be used only if startActivityName is not specified. - * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not - * specified. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createRunWithResponseAsync( - String resourceGroupName, - String factoryName, - String pipelineName, - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createRun( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified - * run will be used to create a new run. - * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and - * the new run will be grouped under the same groupId. - * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all - * activities will run. - * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The - * property will be used only if startActivityName is not specified. - * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not - * specified. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createRunWithResponseAsync( - String resourceGroupName, - String factoryName, - String pipelineName, - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createRun( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - pipelineName, - this.client.getApiVersion(), - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters, - accept, - context); - } - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified - * run will be used to create a new run. - * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and - * the new run will be grouped under the same groupId. - * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all - * activities will run. - * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The - * property will be used only if startActivityName is not specified. - * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not - * specified. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createRunAsync( - String resourceGroupName, - String factoryName, - String pipelineName, - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters) { - return createRunWithResponseAsync( - resourceGroupName, - factoryName, - pipelineName, - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createRunAsync( - String resourceGroupName, String factoryName, String pipelineName) { - final String referencePipelineRunId = null; - final Boolean isRecovery = null; - final String startActivityName = null; - final Boolean startFromFailure = null; - final Map parameters = null; - return createRunWithResponseAsync( - resourceGroupName, - factoryName, - pipelineName, - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CreateRunResponseInner createRun(String resourceGroupName, String factoryName, String pipelineName) { - final String referencePipelineRunId = null; - final Boolean isRecovery = null; - final String startActivityName = null; - final Boolean startFromFailure = null; - final Map parameters = null; - return createRunAsync( - resourceGroupName, - factoryName, - pipelineName, - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters) - .block(); - } - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified - * run will be used to create a new run. - * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and - * the new run will be grouped under the same groupId. - * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all - * activities will run. - * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The - * property will be used only if startActivityName is not specified. - * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not - * specified. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createRunWithResponse( - String resourceGroupName, - String factoryName, - String pipelineName, - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters, - Context context) { - return createRunWithResponseAsync( - resourceGroupName, - factoryName, - pipelineName, - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters, - context) - .block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesImpl.java deleted file mode 100644 index 098a54d58ab70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesImpl.java +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.PipelinesClient; -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.CreateRunResponse; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.Pipelines; -import java.util.Map; - -public final class PipelinesImpl implements Pipelines { - private static final ClientLogger LOGGER = new ClientLogger(PipelinesImpl.class); - - private final PipelinesClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public PipelinesImpl( - PipelinesClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new PipelineResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new PipelineResourceImpl(inner1, this.manager())); - } - - public PipelineResource get(String resourceGroupName, String factoryName, String pipelineName) { - PipelineResourceInner inner = this.serviceClient().get(resourceGroupName, factoryName, pipelineName); - if (inner != null) { - return new PipelineResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, factoryName, pipelineName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new PipelineResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String pipelineName) { - this.serviceClient().delete(resourceGroupName, factoryName, pipelineName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String pipelineName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, pipelineName, context); - } - - public CreateRunResponse createRun(String resourceGroupName, String factoryName, String pipelineName) { - CreateRunResponseInner inner = this.serviceClient().createRun(resourceGroupName, factoryName, pipelineName); - if (inner != null) { - return new CreateRunResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response createRunWithResponse( - String resourceGroupName, - String factoryName, - String pipelineName, - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters, - Context context) { - Response inner = - this - .serviceClient() - .createRunWithResponse( - resourceGroupName, - factoryName, - pipelineName, - referencePipelineRunId, - isRecovery, - startActivityName, - startFromFailure, - parameters, - context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new CreateRunResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public PipelineResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String pipelineName = Utils.getValueFromIdByName(id, "pipelines"); - if (pipelineName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'pipelines'.", id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, pipelineName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String pipelineName = Utils.getValueFromIdByName(id, "pipelines"); - if (pipelineName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'pipelines'.", id))); - } - return this.getWithResponse(resourceGroupName, factoryName, pipelineName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String pipelineName = Utils.getValueFromIdByName(id, "pipelines"); - if (pipelineName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'pipelines'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, pipelineName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String pipelineName = Utils.getValueFromIdByName(id, "pipelines"); - if (pipelineName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'pipelines'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, pipelineName, context); - } - - private PipelinesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public PipelineResourceImpl define(String name) { - return new PipelineResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java deleted file mode 100644 index 4f1dc6a78c9d2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java +++ /dev/null @@ -1,345 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.PrivateEndPointConnectionsClient; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in PrivateEndPointConnectionsClient. */ -public final class PrivateEndPointConnectionsClientImpl implements PrivateEndPointConnectionsClient { - /** The proxy service used to perform REST calls. */ - private final PrivateEndPointConnectionsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of PrivateEndPointConnectionsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - PrivateEndPointConnectionsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create( - PrivateEndPointConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientPrivateEndPointConnections to be used by - * the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface PrivateEndPointConnectionsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndPointConnections") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsImpl.java deleted file mode 100644 index 8ff7c36cf372d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.PrivateEndPointConnectionsClient; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.PrivateEndPointConnections; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; - -public final class PrivateEndPointConnectionsImpl implements PrivateEndPointConnections { - private static final ClientLogger LOGGER = new ClientLogger(PrivateEndPointConnectionsImpl.class); - - private final PrivateEndPointConnectionsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public PrivateEndPointConnectionsImpl( - PrivateEndPointConnectionsClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionResourceImpl(inner1, this.manager())); - } - - private PrivateEndPointConnectionsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java deleted file mode 100644 index e5de832fc4d7a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java +++ /dev/null @@ -1,752 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.PrivateEndpointConnectionOperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionOperationsClient. - */ -public final class PrivateEndpointConnectionOperationsClientImpl implements PrivateEndpointConnectionOperationsClient { - /** The proxy service used to perform REST calls. */ - private final PrivateEndpointConnectionOperationsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of PrivateEndpointConnectionOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - PrivateEndpointConnectionOperationsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create( - PrivateEndpointConnectionOperationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientPrivateEndpointConnectionOperations to be - * used by the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface PrivateEndpointConnectionOperationsService { - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - if (privateEndpointWrapper == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateEndpointWrapper is required and cannot be null.")); - } else { - privateEndpointWrapper.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - privateEndpointConnectionName, - this.client.getApiVersion(), - ifMatch, - privateEndpointWrapper, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - if (privateEndpointWrapper == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateEndpointWrapper is required and cannot be null.")); - } else { - privateEndpointWrapper.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - privateEndpointConnectionName, - this.client.getApiVersion(), - ifMatch, - privateEndpointWrapper, - accept, - context); - } - - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, - String ifMatch) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper) { - final String ifMatch = null; - return createOrUpdateAsync( - resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, ifMatch) - .block(); - } - - /** - * Approves or rejects a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource. - * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private Endpoint Connection ARM resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, ifMatch, context) - .block(); - } - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String privateEndpointConnectionName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - privateEndpointConnectionName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - String ifNoneMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - privateEndpointConnectionName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String privateEndpointConnectionName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String privateEndpointConnectionName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionResourceInner get( - String resourceGroupName, String factoryName, String privateEndpointConnectionName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch).block(); - } - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - String ifNoneMatch, - Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch, context) - .block(); - } - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String privateEndpointConnectionName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - privateEndpointConnectionName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String privateEndpointConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - privateEndpointConnectionName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String privateEndpointConnectionName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String privateEndpointConnectionName) { - deleteAsync(resourceGroupName, factoryName, privateEndpointConnectionName).block(); - } - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String privateEndpointConnectionName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName, context).block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsImpl.java deleted file mode 100644 index 16addf55d25be..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsImpl.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.PrivateEndpointConnectionOperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionOperations; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; - -public final class PrivateEndpointConnectionOperationsImpl implements PrivateEndpointConnectionOperations { - private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionOperationsImpl.class); - - private final PrivateEndpointConnectionOperationsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public PrivateEndpointConnectionOperationsImpl( - PrivateEndpointConnectionOperationsClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PrivateEndpointConnectionResource get( - String resourceGroupName, String factoryName, String privateEndpointConnectionName) { - PrivateEndpointConnectionResourceInner inner = - this.serviceClient().get(resourceGroupName, factoryName, privateEndpointConnectionName); - if (inner != null) { - return new PrivateEndpointConnectionResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - String ifNoneMatch, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new PrivateEndpointConnectionResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String privateEndpointConnectionName) { - this.serviceClient().delete(resourceGroupName, factoryName, privateEndpointConnectionName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String privateEndpointConnectionName, Context context) { - return this - .serviceClient() - .deleteWithResponse(resourceGroupName, factoryName, privateEndpointConnectionName, context); - } - - public PrivateEndpointConnectionResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); - if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse( - resourceGroupName, factoryName, privateEndpointConnectionName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse( - String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); - if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); - } - return this - .getWithResponse(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); - if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, privateEndpointConnectionName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); - if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, privateEndpointConnectionName, context); - } - - private PrivateEndpointConnectionOperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public PrivateEndpointConnectionResourceImpl define(String name) { - return new PrivateEndpointConnectionResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionResourceImpl.java deleted file mode 100644 index 30cf1fe27abf5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionResourceImpl.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; - -public final class PrivateEndpointConnectionResourceImpl - implements PrivateEndpointConnectionResource, - PrivateEndpointConnectionResource.Definition, - PrivateEndpointConnectionResource.Update { - private PrivateEndpointConnectionResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public RemotePrivateEndpointConnection properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public PrivateEndpointConnectionResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String privateEndpointConnectionName; - - private String createIfMatch; - - private PrivateLinkConnectionApprovalRequestResource createPrivateEndpointWrapper; - - private String updateIfMatch; - - private PrivateLinkConnectionApprovalRequestResource updatePrivateEndpointWrapper; - - public PrivateEndpointConnectionResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public PrivateEndpointConnectionResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnectionOperations() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - privateEndpointConnectionName, - createPrivateEndpointWrapper, - createIfMatch, - Context.NONE) - .getValue(); - return this; - } - - public PrivateEndpointConnectionResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnectionOperations() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - privateEndpointConnectionName, - createPrivateEndpointWrapper, - createIfMatch, - context) - .getValue(); - return this; - } - - PrivateEndpointConnectionResourceImpl( - String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new PrivateEndpointConnectionResourceInner(); - this.serviceManager = serviceManager; - this.privateEndpointConnectionName = name; - this.createIfMatch = null; - this.createPrivateEndpointWrapper = new PrivateLinkConnectionApprovalRequestResource(); - } - - public PrivateEndpointConnectionResourceImpl update() { - this.updateIfMatch = null; - this.updatePrivateEndpointWrapper = new PrivateLinkConnectionApprovalRequestResource(); - return this; - } - - public PrivateEndpointConnectionResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnectionOperations() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - privateEndpointConnectionName, - updatePrivateEndpointWrapper, - updateIfMatch, - Context.NONE) - .getValue(); - return this; - } - - public PrivateEndpointConnectionResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnectionOperations() - .createOrUpdateWithResponse( - resourceGroupName, - factoryName, - privateEndpointConnectionName, - updatePrivateEndpointWrapper, - updateIfMatch, - context) - .getValue(); - return this; - } - - PrivateEndpointConnectionResourceImpl( - PrivateEndpointConnectionResourceInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.privateEndpointConnectionName = Utils.getValueFromIdByName(innerObject.id(), "privateEndpointConnections"); - } - - public PrivateEndpointConnectionResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnectionOperations() - .getWithResponse( - resourceGroupName, factoryName, privateEndpointConnectionName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public PrivateEndpointConnectionResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnectionOperations() - .getWithResponse( - resourceGroupName, factoryName, privateEndpointConnectionName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public PrivateEndpointConnectionResourceImpl withProperties(PrivateLinkConnectionApprovalRequest properties) { - if (isInCreateMode()) { - this.createPrivateEndpointWrapper.withProperties(properties); - return this; - } else { - this.updatePrivateEndpointWrapper.withProperties(properties); - return this; - } - } - - public PrivateEndpointConnectionResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java deleted file mode 100644 index 6731bb715e442..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.PrivateLinkResourcesClient; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ -public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient { - /** The proxy service used to perform REST calls. */ - private final PrivateLinkResourcesService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of PrivateLinkResourcesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - PrivateLinkResourcesClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create(PrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientPrivateLinkResources to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface PrivateLinkResourcesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateLinkResources") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String factoryName) { - return getWithResponseAsync(resourceGroupName, factoryName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourcesWrapperInner get(String resourceGroupName, String factoryName) { - return getAsync(resourceGroupName, factoryName).block(); - } - - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, context).block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesImpl.java deleted file mode 100644 index 53078ea3313e5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.PrivateLinkResourcesClient; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResources; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourcesWrapper; - -public final class PrivateLinkResourcesImpl implements PrivateLinkResources { - private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class); - - private final PrivateLinkResourcesClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public PrivateLinkResourcesImpl( - PrivateLinkResourcesClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PrivateLinkResourcesWrapper get(String resourceGroupName, String factoryName) { - PrivateLinkResourcesWrapperInner inner = this.serviceClient().get(resourceGroupName, factoryName); - if (inner != null) { - return new PrivateLinkResourcesWrapperImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, factoryName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new PrivateLinkResourcesWrapperImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - private PrivateLinkResourcesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesWrapperImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesWrapperImpl.java deleted file mode 100644 index 7dedeca43e712..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesWrapperImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourcesWrapper; -import java.util.Collections; -import java.util.List; - -public final class PrivateLinkResourcesWrapperImpl implements PrivateLinkResourcesWrapper { - private PrivateLinkResourcesWrapperInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - PrivateLinkResourcesWrapperImpl( - PrivateLinkResourcesWrapperInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public PrivateLinkResourcesWrapperInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SelfHostedIntegrationRuntimeNodeImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SelfHostedIntegrationRuntimeNodeImpl.java deleted file mode 100644 index fd35ba27201fb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SelfHostedIntegrationRuntimeNodeImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeUpdateResult; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNode; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus; -import java.time.OffsetDateTime; -import java.util.Collections; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeNodeImpl implements SelfHostedIntegrationRuntimeNode { - private SelfHostedIntegrationRuntimeNodeInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - SelfHostedIntegrationRuntimeNodeImpl( - SelfHostedIntegrationRuntimeNodeInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String nodeName() { - return this.innerModel().nodeName(); - } - - public String machineName() { - return this.innerModel().machineName(); - } - - public String hostServiceUri() { - return this.innerModel().hostServiceUri(); - } - - public SelfHostedIntegrationRuntimeNodeStatus status() { - return this.innerModel().status(); - } - - public Map capabilities() { - Map inner = this.innerModel().capabilities(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public String versionStatus() { - return this.innerModel().versionStatus(); - } - - public String version() { - return this.innerModel().version(); - } - - public OffsetDateTime registerTime() { - return this.innerModel().registerTime(); - } - - public OffsetDateTime lastConnectTime() { - return this.innerModel().lastConnectTime(); - } - - public OffsetDateTime expiryTime() { - return this.innerModel().expiryTime(); - } - - public OffsetDateTime lastStartTime() { - return this.innerModel().lastStartTime(); - } - - public OffsetDateTime lastStopTime() { - return this.innerModel().lastStopTime(); - } - - public IntegrationRuntimeUpdateResult lastUpdateResult() { - return this.innerModel().lastUpdateResult(); - } - - public OffsetDateTime lastStartUpdateTime() { - return this.innerModel().lastStartUpdateTime(); - } - - public OffsetDateTime lastEndUpdateTime() { - return this.innerModel().lastEndUpdateTime(); - } - - public Boolean isActiveDispatcher() { - return this.innerModel().isActiveDispatcher(); - } - - public Integer concurrentJobsLimit() { - return this.innerModel().concurrentJobsLimit(); - } - - public Integer maxConcurrentJobs() { - return this.innerModel().maxConcurrentJobs(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public SelfHostedIntegrationRuntimeNodeInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SsisObjectMetadataListResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SsisObjectMetadataListResponseImpl.java deleted file mode 100644 index edb4d409eb0b1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SsisObjectMetadataListResponseImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataListResponse; -import java.util.Collections; -import java.util.List; - -public final class SsisObjectMetadataListResponseImpl implements SsisObjectMetadataListResponse { - private SsisObjectMetadataListResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - SsisObjectMetadataListResponseImpl( - SsisObjectMetadataListResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public String nextLink() { - return this.innerModel().nextLink(); - } - - public SsisObjectMetadataListResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SsisObjectMetadataStatusResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SsisObjectMetadataStatusResponseImpl.java deleted file mode 100644 index ccabafd0f2563..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/SsisObjectMetadataStatusResponseImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataStatusResponse; - -public final class SsisObjectMetadataStatusResponseImpl implements SsisObjectMetadataStatusResponse { - private SsisObjectMetadataStatusResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - SsisObjectMetadataStatusResponseImpl( - SsisObjectMetadataStatusResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String status() { - return this.innerModel().status(); - } - - public String name() { - return this.innerModel().name(); - } - - public String properties() { - return this.innerModel().properties(); - } - - public String error() { - return this.innerModel().error(); - } - - public SsisObjectMetadataStatusResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerQueryResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerQueryResponseImpl.java deleted file mode 100644 index 31ddf70eb31a7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerQueryResponseImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.TriggerQueryResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.TriggerQueryResponse; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.util.Collections; -import java.util.List; -import java.util.stream.Collectors; - -public final class TriggerQueryResponseImpl implements TriggerQueryResponse { - private TriggerQueryResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - TriggerQueryResponseImpl( - TriggerQueryResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new TriggerResourceImpl(inner1, this.manager())) - .collect(Collectors.toList())); - } else { - return Collections.emptyList(); - } - } - - public String continuationToken() { - return this.innerModel().continuationToken(); - } - - public TriggerQueryResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerResourceImpl.java deleted file mode 100644 index 4f38fb40f159e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerResourceImpl.java +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; - -public final class TriggerResourceImpl implements TriggerResource, TriggerResource.Definition, TriggerResource.Update { - private TriggerResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public Trigger properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public TriggerResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String triggerName; - - private String createIfMatch; - - private String updateIfMatch; - - public TriggerResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public TriggerResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getTriggers() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, triggerName, this.innerModel(), createIfMatch, Context.NONE) - .getValue(); - return this; - } - - public TriggerResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getTriggers() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, triggerName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - TriggerResourceImpl(String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new TriggerResourceInner(); - this.serviceManager = serviceManager; - this.triggerName = name; - this.createIfMatch = null; - } - - public TriggerResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public TriggerResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getTriggers() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, triggerName, this.innerModel(), updateIfMatch, Context.NONE) - .getValue(); - return this; - } - - public TriggerResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getTriggers() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, triggerName, this.innerModel(), updateIfMatch, context) - .getValue(); - return this; - } - - TriggerResourceImpl( - TriggerResourceInner innerObject, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.triggerName = Utils.getValueFromIdByName(innerObject.id(), "triggers"); - } - - public TriggerResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getTriggers() - .getWithResponse(resourceGroupName, factoryName, triggerName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public TriggerResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getTriggers() - .getWithResponse(resourceGroupName, factoryName, triggerName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public TriggerSubscriptionOperationStatus subscribeToEvents() { - return serviceManager.triggers().subscribeToEvents(resourceGroupName, factoryName, triggerName); - } - - public TriggerSubscriptionOperationStatus subscribeToEvents(Context context) { - return serviceManager.triggers().subscribeToEvents(resourceGroupName, factoryName, triggerName, context); - } - - public TriggerSubscriptionOperationStatus getEventSubscriptionStatus() { - return serviceManager.triggers().getEventSubscriptionStatus(resourceGroupName, factoryName, triggerName); - } - - public Response getEventSubscriptionStatusWithResponse(Context context) { - return serviceManager - .triggers() - .getEventSubscriptionStatusWithResponse(resourceGroupName, factoryName, triggerName, context); - } - - public TriggerSubscriptionOperationStatus unsubscribeFromEvents() { - return serviceManager.triggers().unsubscribeFromEvents(resourceGroupName, factoryName, triggerName); - } - - public TriggerSubscriptionOperationStatus unsubscribeFromEvents(Context context) { - return serviceManager.triggers().unsubscribeFromEvents(resourceGroupName, factoryName, triggerName, context); - } - - public void start() { - serviceManager.triggers().start(resourceGroupName, factoryName, triggerName); - } - - public void start(Context context) { - serviceManager.triggers().start(resourceGroupName, factoryName, triggerName, context); - } - - public void stop() { - serviceManager.triggers().stop(resourceGroupName, factoryName, triggerName); - } - - public void stop(Context context) { - serviceManager.triggers().stop(resourceGroupName, factoryName, triggerName, context); - } - - public TriggerResourceImpl withProperties(Trigger properties) { - this.innerModel().withProperties(properties); - return this; - } - - public TriggerResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java deleted file mode 100644 index 3aae7d7b0c4bf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java +++ /dev/null @@ -1,610 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.TriggerRunsClient; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in TriggerRunsClient. */ -public final class TriggerRunsClientImpl implements TriggerRunsClient { - /** The proxy service used to perform REST calls. */ - private final TriggerRunsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of TriggerRunsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - TriggerRunsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy.create(TriggerRunsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientTriggerRuns to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface TriggerRunsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> rerun( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @PathParam("runId") String runId, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> cancel( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @PathParam("runId") String runId, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryTriggerRuns") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RunFilterParameters filterParameters, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> rerunWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, String runId) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .rerun( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - runId, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> rerunWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .rerun( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - runId, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono rerunAsync(String resourceGroupName, String factoryName, String triggerName, String runId) { - return rerunWithResponseAsync(resourceGroupName, factoryName, triggerName, runId) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void rerun(String resourceGroupName, String factoryName, String triggerName, String runId) { - rerunAsync(resourceGroupName, factoryName, triggerName, runId).block(); - } - - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response rerunWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - return rerunWithResponseAsync(resourceGroupName, factoryName, triggerName, runId, context).block(); - } - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> cancelWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, String runId) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .cancel( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - runId, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> cancelWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (runId == null) { - return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .cancel( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - runId, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono cancelAsync(String resourceGroupName, String factoryName, String triggerName, String runId) { - return cancelWithResponseAsync(resourceGroupName, factoryName, triggerName, runId) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void cancel(String resourceGroupName, String factoryName, String triggerName, String runId) { - cancelAsync(resourceGroupName, factoryName, triggerName, runId).block(); - } - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response cancelWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - return cancelWithResponseAsync(resourceGroupName, factoryName, triggerName, runId, context).block(); - } - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - filterParameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - filterParameters, - accept, - context); - } - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono queryByFactoryAsync( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerRunsQueryResponseInner queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - return queryByFactoryAsync(resourceGroupName, factoryName, filterParameters).block(); - } - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters, context).block(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsImpl.java deleted file mode 100644 index d2eb877834d11..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsImpl.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.TriggerRunsClient; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import com.azure.resourcemanager.datafactory.models.TriggerRuns; -import com.azure.resourcemanager.datafactory.models.TriggerRunsQueryResponse; - -public final class TriggerRunsImpl implements TriggerRuns { - private static final ClientLogger LOGGER = new ClientLogger(TriggerRunsImpl.class); - - private final TriggerRunsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public TriggerRunsImpl( - TriggerRunsClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public void rerun(String resourceGroupName, String factoryName, String triggerName, String runId) { - this.serviceClient().rerun(resourceGroupName, factoryName, triggerName, runId); - } - - public Response rerunWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - return this.serviceClient().rerunWithResponse(resourceGroupName, factoryName, triggerName, runId, context); - } - - public void cancel(String resourceGroupName, String factoryName, String triggerName, String runId) { - this.serviceClient().cancel(resourceGroupName, factoryName, triggerName, runId); - } - - public Response cancelWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - return this.serviceClient().cancelWithResponse(resourceGroupName, factoryName, triggerName, runId, context); - } - - public TriggerRunsQueryResponse queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { - TriggerRunsQueryResponseInner inner = - this.serviceClient().queryByFactory(resourceGroupName, factoryName, filterParameters); - if (inner != null) { - return new TriggerRunsQueryResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - Response inner = - this.serviceClient().queryByFactoryWithResponse(resourceGroupName, factoryName, filterParameters, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new TriggerRunsQueryResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - private TriggerRunsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsQueryResponseImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsQueryResponseImpl.java deleted file mode 100644 index 8a691d1283c04..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsQueryResponseImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner; -import com.azure.resourcemanager.datafactory.models.TriggerRun; -import com.azure.resourcemanager.datafactory.models.TriggerRunsQueryResponse; -import java.util.Collections; -import java.util.List; - -public final class TriggerRunsQueryResponseImpl implements TriggerRunsQueryResponse { - private TriggerRunsQueryResponseInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - TriggerRunsQueryResponseImpl( - TriggerRunsQueryResponseInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public String continuationToken() { - return this.innerModel().continuationToken(); - } - - public TriggerRunsQueryResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerSubscriptionOperationStatusImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerSubscriptionOperationStatusImpl.java deleted file mode 100644 index 7387bdc07d0fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerSubscriptionOperationStatusImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; -import com.azure.resourcemanager.datafactory.models.EventSubscriptionStatus; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; - -public final class TriggerSubscriptionOperationStatusImpl implements TriggerSubscriptionOperationStatus { - private TriggerSubscriptionOperationStatusInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - TriggerSubscriptionOperationStatusImpl( - TriggerSubscriptionOperationStatusInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String triggerName() { - return this.innerModel().triggerName(); - } - - public EventSubscriptionStatus status() { - return this.innerModel().status(); - } - - public TriggerSubscriptionOperationStatusInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java deleted file mode 100644 index 025cec522902d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java +++ /dev/null @@ -1,2463 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.datafactory.fluent.TriggersClient; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerQueryResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; -import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; -import com.azure.resourcemanager.datafactory.models.TriggerListResponse; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in TriggersClient. */ -public final class TriggersClientImpl implements TriggersClient { - /** The proxy service used to perform REST calls. */ - private final TriggersService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of TriggersClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - TriggersClientImpl(DataFactoryManagementClientImpl client) { - this.service = RestProxy.create(TriggersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientTriggers to be used by the proxy service - * to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - private interface TriggersService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/querytriggers") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TriggerFilterParameters filterParameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") TriggerResourceInner trigger, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}") - @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> subscribeToEvents( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getEventSubscriptionStatus( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> unsubscribeFromEvents( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/start") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/stop") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - filterParameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryByFactoryWithResponseAsync( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .queryByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - filterParameters, - accept, - context); - } - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono queryByFactoryAsync( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters) { - return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerQueryResponseInner queryByFactory( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters) { - return queryByFactoryAsync(resourceGroupName, factoryName, filterParameters).block(); - } - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, Context context) { - return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters, context).block(); - } - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String triggerName, - TriggerResourceInner trigger, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (trigger == null) { - return Mono.error(new IllegalArgumentException("Parameter trigger is required and cannot be null.")); - } else { - trigger.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - ifMatch, - trigger, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String triggerName, - TriggerResourceInner trigger, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (trigger == null) { - return Mono.error(new IllegalArgumentException("Parameter trigger is required and cannot be null.")); - } else { - trigger.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - ifMatch, - trigger, - accept, - context); - } - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String triggerName, - TriggerResourceInner trigger, - String ifMatch) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, triggerName, trigger, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, triggerName, trigger, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerResourceInner createOrUpdate( - String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger) { - final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, factoryName, triggerName, trigger, ifMatch).block(); - } - - /** - * Creates or updates a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param trigger Trigger resource definition. - * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return trigger resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String triggerName, - TriggerResourceInner trigger, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, triggerName, trigger, ifMatch, context) - .block(); - } - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch) { - return getWithResponseAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String factoryName, String triggerName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerResourceInner get(String resourceGroupName, String factoryName, String triggerName) { - final String ifNoneMatch = null; - return getAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch).block(); - } - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch, context).block(); - } - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String triggerName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, triggerName) - .flatMap((Response res) -> Mono.empty()); - } - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String triggerName) { - deleteAsync(resourceGroupName, factoryName, triggerName).block(); - } - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, triggerName, context).block(); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> subscribeToEventsWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .subscribeToEvents( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> subscribeToEventsWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .subscribeToEvents( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, TriggerSubscriptionOperationStatusInner> - beginSubscribeToEventsAsync(String resourceGroupName, String factoryName, String triggerName) { - Mono>> mono = - subscribeToEventsWithResponseAsync(resourceGroupName, factoryName, triggerName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - TriggerSubscriptionOperationStatusInner.class, - TriggerSubscriptionOperationStatusInner.class, - this.client.getContext()); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, TriggerSubscriptionOperationStatusInner> - beginSubscribeToEventsAsync(String resourceGroupName, String factoryName, String triggerName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - subscribeToEventsWithResponseAsync(resourceGroupName, factoryName, triggerName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - TriggerSubscriptionOperationStatusInner.class, - TriggerSubscriptionOperationStatusInner.class, - context); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, TriggerSubscriptionOperationStatusInner> - beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName) { - return beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, TriggerSubscriptionOperationStatusInner> - beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName, context).getSyncPoller(); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono subscribeToEventsAsync( - String resourceGroupName, String factoryName, String triggerName) { - return beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono subscribeToEventsAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerSubscriptionOperationStatusInner subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName) { - return subscribeToEventsAsync(resourceGroupName, factoryName, triggerName).block(); - } - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerSubscriptionOperationStatusInner subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return subscribeToEventsAsync(resourceGroupName, factoryName, triggerName, context).block(); - } - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getEventSubscriptionStatusWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getEventSubscriptionStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getEventSubscriptionStatusWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getEventSubscriptionStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getEventSubscriptionStatusAsync( - String resourceGroupName, String factoryName, String triggerName) { - return getEventSubscriptionStatusWithResponseAsync(resourceGroupName, factoryName, triggerName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerSubscriptionOperationStatusInner getEventSubscriptionStatus( - String resourceGroupName, String factoryName, String triggerName) { - return getEventSubscriptionStatusAsync(resourceGroupName, factoryName, triggerName).block(); - } - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getEventSubscriptionStatusWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return getEventSubscriptionStatusWithResponseAsync(resourceGroupName, factoryName, triggerName, context) - .block(); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> unsubscribeFromEventsWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .unsubscribeFromEvents( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> unsubscribeFromEventsWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .unsubscribeFromEvents( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, TriggerSubscriptionOperationStatusInner> - beginUnsubscribeFromEventsAsync(String resourceGroupName, String factoryName, String triggerName) { - Mono>> mono = - unsubscribeFromEventsWithResponseAsync(resourceGroupName, factoryName, triggerName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - TriggerSubscriptionOperationStatusInner.class, - TriggerSubscriptionOperationStatusInner.class, - this.client.getContext()); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, TriggerSubscriptionOperationStatusInner> - beginUnsubscribeFromEventsAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - unsubscribeFromEventsWithResponseAsync(resourceGroupName, factoryName, triggerName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - TriggerSubscriptionOperationStatusInner.class, - TriggerSubscriptionOperationStatusInner.class, - context); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, TriggerSubscriptionOperationStatusInner> - beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName) { - return beginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, TriggerSubscriptionOperationStatusInner> - beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName, context).getSyncPoller(); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono unsubscribeFromEventsAsync( - String resourceGroupName, String factoryName, String triggerName) { - return beginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono unsubscribeFromEventsAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerSubscriptionOperationStatusInner unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName) { - return unsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName).block(); - } - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TriggerSubscriptionOperationStatusInner unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return unsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName, context).block(); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .start( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .start( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStartAsync( - String resourceGroupName, String factoryName, String triggerName) { - Mono>> mono = startWithResponseAsync(resourceGroupName, factoryName, triggerName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStartAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - startWithResponseAsync(resourceGroupName, factoryName, triggerName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart( - String resourceGroupName, String factoryName, String triggerName) { - return beginStartAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginStartAsync(resourceGroupName, factoryName, triggerName, context).getSyncPoller(); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync(String resourceGroupName, String factoryName, String triggerName) { - return beginStartAsync(resourceGroupName, factoryName, triggerName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync(String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginStartAsync(resourceGroupName, factoryName, triggerName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void start(String resourceGroupName, String factoryName, String triggerName) { - startAsync(resourceGroupName, factoryName, triggerName).block(); - } - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void start(String resourceGroupName, String factoryName, String triggerName, Context context) { - startAsync(resourceGroupName, factoryName, triggerName, context).block(); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .stop( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .stop( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - triggerName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String resourceGroupName, String factoryName, String triggerName) { - Mono>> mono = stopWithResponseAsync(resourceGroupName, factoryName, triggerName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String resourceGroupName, String factoryName, String triggerName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - stopWithResponseAsync(resourceGroupName, factoryName, triggerName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String resourceGroupName, String factoryName, String triggerName) { - return beginStopAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginStopAsync(resourceGroupName, factoryName, triggerName, context).getSyncPoller(); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync(String resourceGroupName, String factoryName, String triggerName) { - return beginStopAsync(resourceGroupName, factoryName, triggerName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync(String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginStopAsync(resourceGroupName, factoryName, triggerName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String resourceGroupName, String factoryName, String triggerName) { - stopAsync(resourceGroupName, factoryName, triggerName).block(); - } - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String resourceGroupName, String factoryName, String triggerName, Context context) { - stopAsync(resourceGroupName, factoryName, triggerName, context).block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersImpl.java deleted file mode 100644 index 445f58744f5b1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersImpl.java +++ /dev/null @@ -1,311 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.TriggersClient; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerQueryResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; -import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; -import com.azure.resourcemanager.datafactory.models.TriggerQueryResponse; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; -import com.azure.resourcemanager.datafactory.models.Triggers; - -public final class TriggersImpl implements Triggers { - private static final ClientLogger LOGGER = new ClientLogger(TriggersImpl.class); - - private final TriggersClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public TriggersImpl( - TriggersClient innerClient, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - PagedIterable inner = this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new TriggerResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new TriggerResourceImpl(inner1, this.manager())); - } - - public TriggerQueryResponse queryByFactory( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters) { - TriggerQueryResponseInner inner = - this.serviceClient().queryByFactory(resourceGroupName, factoryName, filterParameters); - if (inner != null) { - return new TriggerQueryResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, Context context) { - Response inner = - this.serviceClient().queryByFactoryWithResponse(resourceGroupName, factoryName, filterParameters, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new TriggerQueryResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public TriggerResource get(String resourceGroupName, String factoryName, String triggerName) { - TriggerResourceInner inner = this.serviceClient().get(resourceGroupName, factoryName, triggerName); - if (inner != null) { - return new TriggerResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, factoryName, triggerName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new TriggerResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String factoryName, String triggerName) { - this.serviceClient().delete(resourceGroupName, factoryName, triggerName); - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, triggerName, context); - } - - public TriggerSubscriptionOperationStatus subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName) { - TriggerSubscriptionOperationStatusInner inner = - this.serviceClient().subscribeToEvents(resourceGroupName, factoryName, triggerName); - if (inner != null) { - return new TriggerSubscriptionOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - public TriggerSubscriptionOperationStatus subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName, Context context) { - TriggerSubscriptionOperationStatusInner inner = - this.serviceClient().subscribeToEvents(resourceGroupName, factoryName, triggerName, context); - if (inner != null) { - return new TriggerSubscriptionOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - public TriggerSubscriptionOperationStatus getEventSubscriptionStatus( - String resourceGroupName, String factoryName, String triggerName) { - TriggerSubscriptionOperationStatusInner inner = - this.serviceClient().getEventSubscriptionStatus(resourceGroupName, factoryName, triggerName); - if (inner != null) { - return new TriggerSubscriptionOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getEventSubscriptionStatusWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context) { - Response inner = - this - .serviceClient() - .getEventSubscriptionStatusWithResponse(resourceGroupName, factoryName, triggerName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new TriggerSubscriptionOperationStatusImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public TriggerSubscriptionOperationStatus unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName) { - TriggerSubscriptionOperationStatusInner inner = - this.serviceClient().unsubscribeFromEvents(resourceGroupName, factoryName, triggerName); - if (inner != null) { - return new TriggerSubscriptionOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - public TriggerSubscriptionOperationStatus unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName, Context context) { - TriggerSubscriptionOperationStatusInner inner = - this.serviceClient().unsubscribeFromEvents(resourceGroupName, factoryName, triggerName, context); - if (inner != null) { - return new TriggerSubscriptionOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - public void start(String resourceGroupName, String factoryName, String triggerName) { - this.serviceClient().start(resourceGroupName, factoryName, triggerName); - } - - public void start(String resourceGroupName, String factoryName, String triggerName, Context context) { - this.serviceClient().start(resourceGroupName, factoryName, triggerName, context); - } - - public void stop(String resourceGroupName, String factoryName, String triggerName) { - this.serviceClient().stop(resourceGroupName, factoryName, triggerName); - } - - public void stop(String resourceGroupName, String factoryName, String triggerName, Context context) { - this.serviceClient().stop(resourceGroupName, factoryName, triggerName, context); - } - - public TriggerResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String triggerName = Utils.getValueFromIdByName(id, "triggers"); - if (triggerName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'triggers'.", id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, triggerName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String triggerName = Utils.getValueFromIdByName(id, "triggers"); - if (triggerName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'triggers'.", id))); - } - return this.getWithResponse(resourceGroupName, factoryName, triggerName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String triggerName = Utils.getValueFromIdByName(id, "triggers"); - if (triggerName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'triggers'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, triggerName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String triggerName = Utils.getValueFromIdByName(id, "triggers"); - if (triggerName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'triggers'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, triggerName, context); - } - - private TriggersClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public TriggerResourceImpl define(String name) { - return new TriggerResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/Utils.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/Utils.java deleted file mode 100644 index 1bd12c0f321c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/Utils.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.util.CoreUtils; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.function.Function; -import java.util.stream.Collectors; -import java.util.stream.Stream; -import reactor.core.publisher.Flux; - -final class Utils { - static String getValueFromIdByName(String id, String name) { - if (id == null) { - return null; - } - Iterator itr = Arrays.stream(id.split("/")).iterator(); - while (itr.hasNext()) { - String part = itr.next(); - if (part != null && !part.trim().isEmpty()) { - if (part.equalsIgnoreCase(name)) { - if (itr.hasNext()) { - return itr.next(); - } else { - return null; - } - } - } - } - return null; - } - - static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) { - if (id == null || pathTemplate == null) { - return null; - } - String parameterNameParentheses = "{" + parameterName + "}"; - List idSegmentsReverted = Arrays.asList(id.split("/")); - List pathSegments = Arrays.asList(pathTemplate.split("/")); - Collections.reverse(idSegmentsReverted); - Iterator idItrReverted = idSegmentsReverted.iterator(); - int pathIndex = pathSegments.size(); - while (idItrReverted.hasNext() && pathIndex > 0) { - String idSegment = idItrReverted.next(); - String pathSegment = pathSegments.get(--pathIndex); - if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) { - if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) { - if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) { - List segments = new ArrayList<>(); - segments.add(idSegment); - idItrReverted.forEachRemaining(segments::add); - Collections.reverse(segments); - if (segments.size() > 0 && segments.get(0).isEmpty()) { - segments.remove(0); - } - return String.join("/", segments); - } else { - return idSegment; - } - } - } - } - return null; - } - - static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { - return new PagedIterableImpl(pageIterable, mapper); - } - - private static final class PagedIterableImpl extends PagedIterable { - - private final PagedIterable pagedIterable; - private final Function mapper; - private final Function, PagedResponse> pageMapper; - - private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) { - super( - PagedFlux - .create( - () -> - (continuationToken, pageSize) -> - Flux.fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); - this.pagedIterable = pagedIterable; - this.mapper = mapper; - this.pageMapper = getPageMapper(mapper); - } - - private static Function, PagedResponse> getPageMapper(Function mapper) { - return page -> - new PagedResponseBase( - page.getRequest(), - page.getStatusCode(), - page.getHeaders(), - page.getElements().stream().map(mapper).collect(Collectors.toList()), - page.getContinuationToken(), - null); - } - - @Override - public Stream stream() { - return pagedIterable.stream().map(mapper); - } - - @Override - public Stream> streamByPage() { - return pagedIterable.streamByPage().map(pageMapper); - } - - @Override - public Stream> streamByPage(String continuationToken) { - return pagedIterable.streamByPage(continuationToken).map(pageMapper); - } - - @Override - public Stream> streamByPage(int preferredPageSize) { - return pagedIterable.streamByPage(preferredPageSize).map(pageMapper); - } - - @Override - public Stream> streamByPage(String continuationToken, int preferredPageSize) { - return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper); - } - - @Override - public Iterator iterator() { - return new IteratorImpl(pagedIterable.iterator(), mapper); - } - - @Override - public Iterable> iterableByPage() { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper); - } - - @Override - public Iterable> iterableByPage(String continuationToken) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken), pageMapper); - } - - @Override - public Iterable> iterableByPage(int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(preferredPageSize), pageMapper); - } - - @Override - public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); - } - } - - private static final class IteratorImpl implements Iterator { - - private final Iterator iterator; - private final Function mapper; - - private IteratorImpl(Iterator iterator, Function mapper) { - this.iterator = iterator; - this.mapper = mapper; - } - - @Override - public boolean hasNext() { - return iterator.hasNext(); - } - - @Override - public S next() { - return mapper.apply(iterator.next()); - } - - @Override - public void remove() { - iterator.remove(); - } - } - - private static final class IterableImpl implements Iterable { - - private final Iterable iterable; - private final Function mapper; - - private IterableImpl(Iterable iterable, Function mapper) { - this.iterable = iterable; - this.mapper = mapper; - } - - @Override - public Iterator iterator() { - return new IteratorImpl(iterable.iterator(), mapper); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/package-info.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/package-info.java deleted file mode 100644 index 1638717d86f52..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/package-info.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * Package containing the implementations for DataFactoryManagementClient. The Azure Data Factory V2 management API - * provides a RESTful set of web services that interact with Azure Data Factory V2 services. - */ -package com.azure.resourcemanager.datafactory.implementation; diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AccessPolicyResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AccessPolicyResponse.java deleted file mode 100644 index c872ed07930cc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AccessPolicyResponse.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner; - -/** An immutable client-side representation of AccessPolicyResponse. */ -public interface AccessPolicyResponse { - /** - * Gets the policy property: The user access policy. - * - * @return the policy value. - */ - UserAccessPolicy policy(); - - /** - * Gets the accessToken property: Data Plane read only access token. - * - * @return the accessToken value. - */ - String accessToken(); - - /** - * Gets the dataPlaneUrl property: Data Plane service base URL. - * - * @return the dataPlaneUrl value. - */ - String dataPlaneUrl(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner object. - * - * @return the inner object. - */ - AccessPolicyResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Activity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Activity.java deleted file mode 100644 index 6960a6f021fa7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Activity.java +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** A pipeline activity. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = Activity.class) -@JsonTypeName("Activity") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Container", value = ControlActivity.class), - @JsonSubTypes.Type(name = "Execution", value = ExecutionActivity.class), - @JsonSubTypes.Type(name = "ExecuteWranglingDataflow", value = ExecuteWranglingDataflowActivity.class) -}) -@Fluent -public class Activity { - /* - * Activity name. - */ - @JsonProperty(value = "name", required = true) - private String name; - - /* - * Activity description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Activity depends on condition. - */ - @JsonProperty(value = "dependsOn") - private List dependsOn; - - /* - * Activity user properties. - */ - @JsonProperty(value = "userProperties") - private List userProperties; - - /* - * A pipeline activity. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the name property: Activity name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Activity name. - * - * @param name the name value to set. - * @return the Activity object itself. - */ - public Activity withName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Activity description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Activity description. - * - * @param description the description value to set. - * @return the Activity object itself. - */ - public Activity withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the dependsOn property: Activity depends on condition. - * - * @return the dependsOn value. - */ - public List dependsOn() { - return this.dependsOn; - } - - /** - * Set the dependsOn property: Activity depends on condition. - * - * @param dependsOn the dependsOn value to set. - * @return the Activity object itself. - */ - public Activity withDependsOn(List dependsOn) { - this.dependsOn = dependsOn; - return this; - } - - /** - * Get the userProperties property: Activity user properties. - * - * @return the userProperties value. - */ - public List userProperties() { - return this.userProperties; - } - - /** - * Set the userProperties property: Activity user properties. - * - * @param userProperties the userProperties value to set. - * @return the Activity object itself. - */ - public Activity withUserProperties(List userProperties) { - this.userProperties = userProperties; - return this; - } - - /** - * Get the additionalProperties property: A pipeline activity. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: A pipeline activity. - * - * @param additionalProperties the additionalProperties value to set. - * @return the Activity object itself. - */ - public Activity withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER - .logExceptionAsError(new IllegalArgumentException("Missing required property name in model Activity")); - } - if (dependsOn() != null) { - dependsOn().forEach(e -> e.validate()); - } - if (userProperties() != null) { - userProperties().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Activity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityDependency.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityDependency.java deleted file mode 100644 index 72bc22a858f10..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityDependency.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Activity dependency information. */ -@Fluent -public final class ActivityDependency { - /* - * Activity name. - */ - @JsonProperty(value = "activity", required = true) - private String activity; - - /* - * Match-Condition for the dependency. - */ - @JsonProperty(value = "dependencyConditions", required = true) - private List dependencyConditions; - - /* - * Activity dependency information. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the activity property: Activity name. - * - * @return the activity value. - */ - public String activity() { - return this.activity; - } - - /** - * Set the activity property: Activity name. - * - * @param activity the activity value to set. - * @return the ActivityDependency object itself. - */ - public ActivityDependency withActivity(String activity) { - this.activity = activity; - return this; - } - - /** - * Get the dependencyConditions property: Match-Condition for the dependency. - * - * @return the dependencyConditions value. - */ - public List dependencyConditions() { - return this.dependencyConditions; - } - - /** - * Set the dependencyConditions property: Match-Condition for the dependency. - * - * @param dependencyConditions the dependencyConditions value to set. - * @return the ActivityDependency object itself. - */ - public ActivityDependency withDependencyConditions(List dependencyConditions) { - this.dependencyConditions = dependencyConditions; - return this; - } - - /** - * Get the additionalProperties property: Activity dependency information. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Activity dependency information. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ActivityDependency object itself. - */ - public ActivityDependency withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (activity() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property activity in model ActivityDependency")); - } - if (dependencyConditions() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dependencyConditions in model ActivityDependency")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ActivityDependency.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityPolicy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityPolicy.java deleted file mode 100644 index 18203bbca4eaf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityPolicy.java +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Execution policy for an activity. */ -@Fluent -public final class ActivityPolicy { - /* - * Specifies the timeout for the activity to run. The default timeout is 7 - * days. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "timeout") - private Object timeout; - - /* - * Maximum ordinary retry attempts. Default is 0. Type: integer (or - * Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "retry") - private Object retry; - - /* - * Interval between each retry attempt (in seconds). The default is 30 sec. - */ - @JsonProperty(value = "retryIntervalInSeconds") - private Integer retryIntervalInSeconds; - - /* - * When set to true, Input from activity is considered as secure and will - * not be logged to monitoring. - */ - @JsonProperty(value = "secureInput") - private Boolean secureInput; - - /* - * When set to true, Output from activity is considered as secure and will - * not be logged to monitoring. - */ - @JsonProperty(value = "secureOutput") - private Boolean secureOutput; - - /* - * Execution policy for an activity. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the timeout property: Specifies the timeout for the activity to run. The default timeout is 7 days. 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 the timeout property: Specifies the timeout for the activity to run. The default timeout is 7 days. 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 ActivityPolicy object itself. - */ - public ActivityPolicy withTimeout(Object timeout) { - this.timeout = timeout; - return this; - } - - /** - * Get the retry property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @return the retry value. - */ - public Object retry() { - return this.retry; - } - - /** - * Set the retry property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @param retry the retry value to set. - * @return the ActivityPolicy object itself. - */ - public ActivityPolicy withRetry(Object retry) { - this.retry = retry; - return this; - } - - /** - * Get the retryIntervalInSeconds property: Interval between each retry attempt (in seconds). The default is 30 sec. - * - * @return the retryIntervalInSeconds value. - */ - public Integer retryIntervalInSeconds() { - return this.retryIntervalInSeconds; - } - - /** - * Set the retryIntervalInSeconds property: Interval between each retry attempt (in seconds). The default is 30 sec. - * - * @param retryIntervalInSeconds the retryIntervalInSeconds value to set. - * @return the ActivityPolicy object itself. - */ - public ActivityPolicy withRetryIntervalInSeconds(Integer retryIntervalInSeconds) { - this.retryIntervalInSeconds = retryIntervalInSeconds; - return this; - } - - /** - * Get the secureInput property: When set to true, Input from activity is considered as secure and will not be - * logged to monitoring. - * - * @return the secureInput value. - */ - public Boolean secureInput() { - return this.secureInput; - } - - /** - * Set the secureInput property: When set to true, Input from activity is considered as secure and will not be - * logged to monitoring. - * - * @param secureInput the secureInput value to set. - * @return the ActivityPolicy object itself. - */ - public ActivityPolicy withSecureInput(Boolean secureInput) { - this.secureInput = secureInput; - return this; - } - - /** - * Get the secureOutput property: When set to true, Output from activity is considered as secure and will not be - * logged to monitoring. - * - * @return the secureOutput value. - */ - public Boolean secureOutput() { - return this.secureOutput; - } - - /** - * Set the secureOutput property: When set to true, Output from activity is considered as secure and will not be - * logged to monitoring. - * - * @param secureOutput the secureOutput value to set. - * @return the ActivityPolicy object itself. - */ - public ActivityPolicy withSecureOutput(Boolean secureOutput) { - this.secureOutput = secureOutput; - return this; - } - - /** - * Get the additionalProperties property: Execution policy for an activity. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Execution policy for an activity. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ActivityPolicy object itself. - */ - public ActivityPolicy withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRun.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRun.java deleted file mode 100644 index 9af880daf3340..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRun.java +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; - -/** Information about an activity run in a pipeline. */ -@Fluent -public final class ActivityRun { - /* - * The name of the pipeline. - */ - @JsonProperty(value = "pipelineName", access = JsonProperty.Access.WRITE_ONLY) - private String pipelineName; - - /* - * The id of the pipeline run. - */ - @JsonProperty(value = "pipelineRunId", access = JsonProperty.Access.WRITE_ONLY) - private String pipelineRunId; - - /* - * The name of the activity. - */ - @JsonProperty(value = "activityName", access = JsonProperty.Access.WRITE_ONLY) - private String activityName; - - /* - * The type of the activity. - */ - @JsonProperty(value = "activityType", access = JsonProperty.Access.WRITE_ONLY) - private String activityType; - - /* - * The id of the activity run. - */ - @JsonProperty(value = "activityRunId", access = JsonProperty.Access.WRITE_ONLY) - private String activityRunId; - - /* - * The name of the compute linked service. - */ - @JsonProperty(value = "linkedServiceName", access = JsonProperty.Access.WRITE_ONLY) - private String linkedServiceName; - - /* - * The status of the activity run. - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private String status; - - /* - * The start time of the activity run in 'ISO 8601' format. - */ - @JsonProperty(value = "activityRunStart", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime activityRunStart; - - /* - * The end time of the activity run in 'ISO 8601' format. - */ - @JsonProperty(value = "activityRunEnd", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime activityRunEnd; - - /* - * The duration of the activity run. - */ - @JsonProperty(value = "durationInMs", access = JsonProperty.Access.WRITE_ONLY) - private Integer durationInMs; - - /* - * The input for the activity. - */ - @JsonProperty(value = "input", access = JsonProperty.Access.WRITE_ONLY) - private Object input; - - /* - * The output for the activity. - */ - @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY) - private Object output; - - /* - * The error if any from the activity run. - */ - @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) - private Object error; - - /* - * Information about an activity run in a pipeline. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the pipelineName property: The name of the pipeline. - * - * @return the pipelineName value. - */ - public String pipelineName() { - return this.pipelineName; - } - - /** - * Get the pipelineRunId property: The id of the pipeline run. - * - * @return the pipelineRunId value. - */ - public String pipelineRunId() { - return this.pipelineRunId; - } - - /** - * Get the activityName property: The name of the activity. - * - * @return the activityName value. - */ - public String activityName() { - return this.activityName; - } - - /** - * Get the activityType property: The type of the activity. - * - * @return the activityType value. - */ - public String activityType() { - return this.activityType; - } - - /** - * Get the activityRunId property: The id of the activity run. - * - * @return the activityRunId value. - */ - public String activityRunId() { - return this.activityRunId; - } - - /** - * Get the linkedServiceName property: The name of the compute linked service. - * - * @return the linkedServiceName value. - */ - public String linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Get the status property: The status of the activity run. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Get the activityRunStart property: The start time of the activity run in 'ISO 8601' format. - * - * @return the activityRunStart value. - */ - public OffsetDateTime activityRunStart() { - return this.activityRunStart; - } - - /** - * Get the activityRunEnd property: The end time of the activity run in 'ISO 8601' format. - * - * @return the activityRunEnd value. - */ - public OffsetDateTime activityRunEnd() { - return this.activityRunEnd; - } - - /** - * Get the durationInMs property: The duration of the activity run. - * - * @return the durationInMs value. - */ - public Integer durationInMs() { - return this.durationInMs; - } - - /** - * Get the input property: The input for the activity. - * - * @return the input value. - */ - public Object input() { - return this.input; - } - - /** - * Get the output property: The output for the activity. - * - * @return the output value. - */ - public Object output() { - return this.output; - } - - /** - * Get the error property: The error if any from the activity run. - * - * @return the error value. - */ - public Object error() { - return this.error; - } - - /** - * Get the additionalProperties property: Information about an activity run in a pipeline. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Information about an activity run in a pipeline. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ActivityRun object itself. - */ - public ActivityRun withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRuns.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRuns.java deleted file mode 100644 index 44b1e940aa6d7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRuns.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of ActivityRuns. */ -public interface ActivityRuns { - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs. - */ - ActivityRunsQueryResponse queryByPipelineRun( - String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters); - - /** - * Query activity runs based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param filterParameters Parameters to filter the activity runs. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list activity runs along with {@link Response}. - */ - Response queryByPipelineRunWithResponse( - String resourceGroupName, - String factoryName, - String runId, - RunFilterParameters filterParameters, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRunsQueryResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRunsQueryResponse.java deleted file mode 100644 index 1c89bfb12acba..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityRunsQueryResponse.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner; -import java.util.List; - -/** An immutable client-side representation of ActivityRunsQueryResponse. */ -public interface ActivityRunsQueryResponse { - /** - * Gets the value property: List of activity runs. - * - * @return the value value. - */ - List value(); - - /** - * Gets the continuationToken property: The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - * - * @return the continuationToken value. - */ - String continuationToken(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner object. - * - * @return the inner object. - */ - ActivityRunsQueryResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AddDataFlowToDebugSessionResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AddDataFlowToDebugSessionResponse.java deleted file mode 100644 index 8ed2b2a8f680e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AddDataFlowToDebugSessionResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; - -/** An immutable client-side representation of AddDataFlowToDebugSessionResponse. */ -public interface AddDataFlowToDebugSessionResponse { - /** - * Gets the jobVersion property: The ID of data flow debug job version. - * - * @return the jobVersion value. - */ - String jobVersion(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner object. - * - * @return the inner object. - */ - AddDataFlowToDebugSessionResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java deleted file mode 100644 index fb5b36fd7645c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java +++ /dev/null @@ -1,323 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonMwsLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Amazon Marketplace Web Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonMWS") -@Fluent -public final class AmazonMwsLinkedService extends LinkedService { - /* - * Amazon Marketplace Web Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonMwsLinkedServiceTypeProperties innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Amazon Marketplace Web Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private AmazonMwsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the endpoint property: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). - * - * @param endpoint the endpoint value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the marketplaceId property: The Amazon Marketplace ID you want to retrieve data from. To retrieve data from - * multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - * - * @return the marketplaceId value. - */ - public Object marketplaceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().marketplaceId(); - } - - /** - * Set the marketplaceId property: The Amazon Marketplace ID you want to retrieve data from. To retrieve data from - * multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - * - * @param marketplaceId the marketplaceId value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withMarketplaceId(Object marketplaceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMarketplaceId(marketplaceId); - return this; - } - - /** - * Get the sellerId property: The Amazon seller ID. - * - * @return the sellerId value. - */ - public Object sellerId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sellerId(); - } - - /** - * Set the sellerId property: The Amazon seller ID. - * - * @param sellerId the sellerId value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withSellerId(Object sellerId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSellerId(sellerId); - return this; - } - - /** - * Get the mwsAuthToken property: The Amazon MWS authentication token. - * - * @return the mwsAuthToken value. - */ - public SecretBase mwsAuthToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mwsAuthToken(); - } - - /** - * Set the mwsAuthToken property: The Amazon MWS authentication token. - * - * @param mwsAuthToken the mwsAuthToken value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withMwsAuthToken(SecretBase mwsAuthToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMwsAuthToken(mwsAuthToken); - return this; - } - - /** - * Get the accessKeyId property: The access key id used to access data. - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); - } - - /** - * Set the accessKeyId property: The access key id used to access data. - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); - return this; - } - - /** - * Get the secretKey property: The secret key used to access data. - * - * @return the secretKey value. - */ - public SecretBase secretKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretKey(); - } - - /** - * Set the secretKey property: The secret key used to access data. - * - * @param secretKey the secretKey value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withSecretKey(SecretBase secretKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretKey(secretKey); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonMwsLinkedService object itself. - */ - public AmazonMwsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonMwsLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonMwsLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java deleted file mode 100644 index d7362d09af680..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Amazon Marketplace Web Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonMWSObject") -@Fluent -public final class AmazonMwsObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the AmazonMwsObjectDataset object itself. - */ - public AmazonMwsObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsSource.java deleted file mode 100644 index 9e8537d2fda50..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Amazon Marketplace Web Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonMWSSource") -@Fluent -public final class AmazonMwsSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the AmazonMwsSource object itself. - */ - public AmazonMwsSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonMwsSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java deleted file mode 100644 index 1362467c18019..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** AmazonRdsForOracle database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRdsForOracle") -@Fluent -public final class AmazonRdsForOracleLinkedService extends LinkedService { - /* - * AmazonRdsForOracle database linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonRdsForLinkedServiceTypeProperties innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: AmazonRdsForOracle database linked service properties. - * - * @return the innerTypeProperties value. - */ - private AmazonRdsForLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AmazonRdsForOracleLinkedService object itself. - */ - public AmazonRdsForOracleLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AmazonRdsForOracleLinkedService object itself. - */ - public AmazonRdsForOracleLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRdsForOracleLinkedService object itself. - */ - public AmazonRdsForOracleLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonRdsForOracleLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForOracleLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOraclePartitionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOraclePartitionSettings.java deleted file mode 100644 index bf14f50d78b20..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOraclePartitionSettings.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The settings that will be leveraged for AmazonRdsForOracle source partitioning. */ -@Fluent -public final class AmazonRdsForOraclePartitionSettings { - /* - * Names of the physical partitions of AmazonRdsForOracle table. - */ - @JsonProperty(value = "partitionNames") - private Object partitionNames; - - /* - * The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionColumnName") - private Object partitionColumnName; - - /* - * The maximum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionUpperBound") - private Object partitionUpperBound; - - /* - * The minimum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionLowerBound") - private Object partitionLowerBound; - - /** - * Get the partitionNames property: Names of the physical partitions of AmazonRdsForOracle table. - * - * @return the partitionNames value. - */ - public Object partitionNames() { - return this.partitionNames; - } - - /** - * Set the partitionNames property: Names of the physical partitions of AmazonRdsForOracle table. - * - * @param partitionNames the partitionNames value to set. - * @return the AmazonRdsForOraclePartitionSettings object itself. - */ - public AmazonRdsForOraclePartitionSettings withPartitionNames(Object partitionNames) { - this.partitionNames = partitionNames; - return this; - } - - /** - * Get the partitionColumnName property: The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionColumnName value. - */ - public Object partitionColumnName() { - return this.partitionColumnName; - } - - /** - * Set the partitionColumnName property: The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionColumnName the partitionColumnName value to set. - * @return the AmazonRdsForOraclePartitionSettings object itself. - */ - public AmazonRdsForOraclePartitionSettings withPartitionColumnName(Object partitionColumnName) { - this.partitionColumnName = partitionColumnName; - return this; - } - - /** - * Get the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionUpperBound value. - */ - public Object partitionUpperBound() { - return this.partitionUpperBound; - } - - /** - * Set the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionUpperBound the partitionUpperBound value to set. - * @return the AmazonRdsForOraclePartitionSettings object itself. - */ - public AmazonRdsForOraclePartitionSettings withPartitionUpperBound(Object partitionUpperBound) { - this.partitionUpperBound = partitionUpperBound; - return this; - } - - /** - * Get the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionLowerBound value. - */ - public Object partitionLowerBound() { - return this.partitionLowerBound; - } - - /** - * Set the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionLowerBound the partitionLowerBound value to set. - * @return the AmazonRdsForOraclePartitionSettings object itself. - */ - public AmazonRdsForOraclePartitionSettings withPartitionLowerBound(Object partitionLowerBound) { - this.partitionLowerBound = partitionLowerBound; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleSource.java deleted file mode 100644 index 9d70f64a5639c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleSource.java +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity AmazonRdsForOracle source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRdsForOracleSource") -@Fluent -public final class AmazonRdsForOracleSource extends CopySource { - /* - * AmazonRdsForOracle reader query. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "oracleReaderQuery") - private Object oracleReaderQuery; - - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * The partition mechanism that will be used for AmazonRdsForOracle read in - * parallel. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for AmazonRdsForOracle source - * partitioning. - */ - @JsonProperty(value = "partitionSettings") - private AmazonRdsForOraclePartitionSettings partitionSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the oracleReaderQuery property: AmazonRdsForOracle reader query. Type: string (or Expression with resultType - * string). - * - * @return the oracleReaderQuery value. - */ - public Object oracleReaderQuery() { - return this.oracleReaderQuery; - } - - /** - * Set the oracleReaderQuery property: AmazonRdsForOracle reader query. Type: string (or Expression with resultType - * string). - * - * @param oracleReaderQuery the oracleReaderQuery value to set. - * @return the AmazonRdsForOracleSource object itself. - */ - public AmazonRdsForOracleSource withOracleReaderQuery(Object oracleReaderQuery) { - this.oracleReaderQuery = oracleReaderQuery; - return this; - } - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param queryTimeout the queryTimeout value to set. - * @return the AmazonRdsForOracleSource object itself. - */ - public AmazonRdsForOracleSource withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for AmazonRdsForOracle read in - * parallel. Type: string (or Expression with resultType string). - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for AmazonRdsForOracle read in - * parallel. Type: string (or Expression with resultType string). - * - * @param partitionOption the partitionOption value to set. - * @return the AmazonRdsForOracleSource object itself. - */ - public AmazonRdsForOracleSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for AmazonRdsForOracle source - * partitioning. - * - * @return the partitionSettings value. - */ - public AmazonRdsForOraclePartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for AmazonRdsForOracle source - * partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the AmazonRdsForOracleSource object itself. - */ - public AmazonRdsForOracleSource withPartitionSettings(AmazonRdsForOraclePartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the AmazonRdsForOracleSource object itself. - */ - public AmazonRdsForOracleSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java deleted file mode 100644 index fd8a9cd6f8b81..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForOracleTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The AmazonRdsForOracle database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRdsForOracleTable") -@Fluent -public final class AmazonRdsForOracleTableDataset extends Dataset { - /* - * AmazonRdsForOracle dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AmazonRdsForOracleTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: AmazonRdsForOracle dataset properties. - * - * @return the innerTypeProperties value. - */ - private AmazonRdsForOracleTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForOracleTableDataset object itself. - */ - public AmazonRdsForOracleTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForOracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AmazonRdsForOracleTableDataset object itself. - */ - public AmazonRdsForOracleTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForOracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java deleted file mode 100644 index 68f199ea6f830..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Amazon RDS for SQL Server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRdsForSqlServer") -@Fluent -public final class AmazonRdsForSqlServerLinkedService extends LinkedService { - /* - * Amazon RDS for SQL Server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonRdsForSqlServerLinkedServiceTypeProperties innerTypeProperties = - new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Amazon RDS for SQL Server linked service properties. - * - * @return the innerTypeProperties value. - */ - private AmazonRdsForSqlServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AmazonRdsForSqlServerLinkedService object itself. - */ - public AmazonRdsForSqlServerLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the AmazonRdsForSqlServerLinkedService object itself. - */ - public AmazonRdsForSqlServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The on-premises Windows authentication password. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The on-premises Windows authentication password. - * - * @param password the password value to set. - * @return the AmazonRdsForSqlServerLinkedService object itself. - */ - public AmazonRdsForSqlServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRdsForSqlServerLinkedService object itself. - */ - public AmazonRdsForSqlServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AmazonRdsForSqlServerLinkedService object itself. - */ - public AmazonRdsForSqlServerLinkedService withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonRdsForSqlServerLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForSqlServerLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java deleted file mode 100644 index 54713e9495e7c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity Amazon RDS for SQL Server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRdsForSqlServerSource") -@Fluent -public final class AmazonRdsForSqlServerSource extends TabularSource { - /* - * SQL reader query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sqlReaderQuery") - private Object sqlReaderQuery; - - /* - * Name of the stored procedure for a SQL Database source. This cannot be - * used at the same time as SqlReaderQuery. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sqlReaderStoredProcedureName") - private Object sqlReaderStoredProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * Which additional types to produce. - */ - @JsonProperty(value = "produceAdditionalTypes") - private Object produceAdditionalTypes; - - /* - * The partition mechanism that will be used for Sql read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Sql source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SqlPartitionSettings partitionSettings; - - /** - * Get the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @return the sqlReaderQuery value. - */ - public Object sqlReaderQuery() { - return this.sqlReaderQuery; - } - - /** - * Set the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @param sqlReaderQuery the sqlReaderQuery value to set. - * @return the AmazonRdsForSqlServerSource object itself. - */ - public AmazonRdsForSqlServerSource withSqlReaderQuery(Object sqlReaderQuery) { - this.sqlReaderQuery = sqlReaderQuery; - return this; - } - - /** - * Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @return the sqlReaderStoredProcedureName value. - */ - public Object sqlReaderStoredProcedureName() { - return this.sqlReaderStoredProcedureName; - } - - /** - * Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set. - * @return the AmazonRdsForSqlServerSource object itself. - */ - public AmazonRdsForSqlServerSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { - this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the AmazonRdsForSqlServerSource object itself. - */ - public AmazonRdsForSqlServerSource withStoredProcedureParameters( - Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the produceAdditionalTypes property: Which additional types to produce. - * - * @return the produceAdditionalTypes value. - */ - public Object produceAdditionalTypes() { - return this.produceAdditionalTypes; - } - - /** - * Set the produceAdditionalTypes property: Which additional types to produce. - * - * @param produceAdditionalTypes the produceAdditionalTypes value to set. - * @return the AmazonRdsForSqlServerSource object itself. - */ - public AmazonRdsForSqlServerSource withProduceAdditionalTypes(Object produceAdditionalTypes) { - this.produceAdditionalTypes = produceAdditionalTypes; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the AmazonRdsForSqlServerSource object itself. - */ - public AmazonRdsForSqlServerSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @return the partitionSettings value. - */ - public SqlPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the AmazonRdsForSqlServerSource object itself. - */ - public AmazonRdsForSqlServerSource withPartitionSettings(SqlPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java deleted file mode 100644 index 6d1c1823b1abc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Amazon RDS for SQL Server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRdsForSqlServerTable") -@Fluent -public final class AmazonRdsForSqlServerTableDataset extends Dataset { - /* - * The Amazon RDS for SQL Server dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AmazonRdsForSqlServerTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: The Amazon RDS for SQL Server dataset properties. - * - * @return the innerTypeProperties value. - */ - private AmazonRdsForSqlServerTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForSqlServerTableDataset object itself. - */ - public AmazonRdsForSqlServerTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AmazonRdsForSqlServerTableDataset object itself. - */ - public AmazonRdsForSqlServerTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java deleted file mode 100644 index 1f7e7816ea88c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Amazon Redshift. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRedshift") -@Fluent -public final class AmazonRedshiftLinkedService extends LinkedService { - /* - * Amazon Redshift linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonRedshiftLinkedServiceTypeProperties innerTypeProperties = - new AmazonRedshiftLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Amazon Redshift linked service properties. - * - * @return the innerTypeProperties value. - */ - private AmazonRedshiftLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the server property: The name of the Amazon Redshift server. Type: string (or Expression with resultType - * string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: The name of the Amazon Redshift server. Type: string (or Expression with resultType - * string). - * - * @param server the server value to set. - * @return the AmazonRedshiftLinkedService object itself. - */ - public AmazonRedshiftLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the username property: The username of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the AmazonRedshiftLinkedService object itself. - */ - public AmazonRedshiftLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password of the Amazon Redshift source. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password of the Amazon Redshift source. - * - * @param password the password value to set. - * @return the AmazonRedshiftLinkedService object itself. - */ - public AmazonRedshiftLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the database property: The database name of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The database name of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @param database the database value to set. - * @return the AmazonRedshiftLinkedService object itself. - */ - public AmazonRedshiftLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Get the port property: The TCP port number that the Amazon Redshift server uses to listen for client connections. - * The default value is 5439. Type: integer (or Expression with resultType integer). - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port number that the Amazon Redshift server uses to listen for client connections. - * The default value is 5439. Type: integer (or Expression with resultType integer). - * - * @param port the port value to set. - * @return the AmazonRedshiftLinkedService object itself. - */ - public AmazonRedshiftLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRedshiftLinkedService object itself. - */ - public AmazonRedshiftLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonRedshiftLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonRedshiftLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftSource.java deleted file mode 100644 index ce9c2eb3cbae5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftSource.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for Amazon Redshift Source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRedshiftSource") -@Fluent -public final class AmazonRedshiftSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The Amazon S3 settings needed for the interim Amazon S3 when copying - * from Amazon Redshift with unload. With this, data from Amazon Redshift - * source will be unloaded into S3 first and then copied into the targeted - * sink from the interim S3. - */ - @JsonProperty(value = "redshiftUnloadSettings") - private RedshiftUnloadSettings redshiftUnloadSettings; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the AmazonRedshiftSource object itself. - */ - public AmazonRedshiftSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the redshiftUnloadSettings property: The Amazon S3 settings needed for the interim Amazon S3 when copying - * from Amazon Redshift with unload. With this, data from Amazon Redshift source will be unloaded into S3 first and - * then copied into the targeted sink from the interim S3. - * - * @return the redshiftUnloadSettings value. - */ - public RedshiftUnloadSettings redshiftUnloadSettings() { - return this.redshiftUnloadSettings; - } - - /** - * Set the redshiftUnloadSettings property: The Amazon S3 settings needed for the interim Amazon S3 when copying - * from Amazon Redshift with unload. With this, data from Amazon Redshift source will be unloaded into S3 first and - * then copied into the targeted sink from the interim S3. - * - * @param redshiftUnloadSettings the redshiftUnloadSettings value to set. - * @return the AmazonRedshiftSource object itself. - */ - public AmazonRedshiftSource withRedshiftUnloadSettings(RedshiftUnloadSettings redshiftUnloadSettings) { - this.redshiftUnloadSettings = redshiftUnloadSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (redshiftUnloadSettings() != null) { - redshiftUnloadSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java deleted file mode 100644 index a6ede0d26d8a1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Amazon Redshift table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonRedshiftTable") -@Fluent -public final class AmazonRedshiftTableDataset extends Dataset { - /* - * Amazon Redshift table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AmazonRedshiftTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Amazon Redshift table dataset properties. - * - * @return the innerTypeProperties value. - */ - private AmazonRedshiftTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AmazonRedshiftTableDataset object itself. - */ - public AmazonRedshiftTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The Amazon Redshift table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The Amazon Redshift table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the AmazonRedshiftTableDataset object itself. - */ - public AmazonRedshiftTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the AmazonRedshiftTableDataset object itself. - */ - public AmazonRedshiftTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java deleted file mode 100644 index 33418f5c6e396..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonS3CompatibleLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Amazon S3 Compatible. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonS3Compatible") -@Fluent -public final class AmazonS3CompatibleLinkedService extends LinkedService { - /* - * Amazon S3 Compatible linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonS3CompatibleLinkedServiceTypeProperties innerTypeProperties = - new AmazonS3CompatibleLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Amazon S3 Compatible linked service properties. - * - * @return the innerTypeProperties value. - */ - private AmazonS3CompatibleLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the accessKeyId property: The access key identifier of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); - } - - /** - * Set the accessKeyId property: The access key identifier of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonS3CompatibleLinkedService object itself. - */ - public AmazonS3CompatibleLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); - } - - /** - * Set the secretAccessKey property: The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the AmazonS3CompatibleLinkedService object itself. - */ - public AmazonS3CompatibleLinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Amazon S3 Compatible Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Amazon S3 Compatible Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the AmazonS3CompatibleLinkedService object itself. - */ - public AmazonS3CompatibleLinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); - return this; - } - - /** - * Get the forcePathStyle property: If true, use S3 path-style access instead of virtual hosted-style access. - * Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the forcePathStyle value. - */ - public Object forcePathStyle() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().forcePathStyle(); - } - - /** - * Set the forcePathStyle property: If true, use S3 path-style access instead of virtual hosted-style access. - * Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param forcePathStyle the forcePathStyle value to set. - * @return the AmazonS3CompatibleLinkedService object itself. - */ - public AmazonS3CompatibleLinkedService withForcePathStyle(Object forcePathStyle) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withForcePathStyle(forcePathStyle); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonS3CompatibleLinkedService object itself. - */ - public AmazonS3CompatibleLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonS3CompatibleLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonS3CompatibleLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLocation.java deleted file mode 100644 index 7dffc4206e0fd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLocation.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of Amazon S3 Compatible dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonS3CompatibleLocation") -@Fluent -public final class AmazonS3CompatibleLocation extends DatasetLocation { - /* - * Specify the bucketName of Amazon S3 Compatible. Type: string (or - * Expression with resultType string) - */ - @JsonProperty(value = "bucketName") - private Object bucketName; - - /* - * Specify the version of Amazon S3 Compatible. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /** - * Get the bucketName property: Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with - * resultType string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.bucketName; - } - - /** - * Set the bucketName property: Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with - * resultType string). - * - * @param bucketName the bucketName value to set. - * @return the AmazonS3CompatibleLocation object itself. - */ - public AmazonS3CompatibleLocation withBucketName(Object bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Get the version property: Specify the version of Amazon S3 Compatible. Type: string (or Expression with - * resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Specify the version of Amazon S3 Compatible. Type: string (or Expression with - * resultType string). - * - * @param version the version value to set. - * @return the AmazonS3CompatibleLocation object itself. - */ - public AmazonS3CompatibleLocation withVersion(Object version) { - this.version = version; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleReadSettings.java deleted file mode 100644 index 0a2ab64b32650..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleReadSettings.java +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Amazon S3 Compatible read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonS3CompatibleReadSettings") -@Fluent -public final class AmazonS3CompatibleReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Amazon S3 Compatible wildcardFileName. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * The prefix filter for the S3 Compatible object name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Amazon S3 Compatible wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Amazon S3 Compatible wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the prefix property: The prefix filter for the S3 Compatible object name. Type: string (or Expression with - * resultType string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the S3 Compatible object name. Type: string (or Expression with - * resultType string). - * - * @param prefix the prefix value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AmazonS3CompatibleReadSettings object itself. - */ - public AmazonS3CompatibleReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java deleted file mode 100644 index a28227edcd611..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonS3DatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** A single Amazon Simple Storage Service (S3) object or a set of S3 objects. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonS3Object") -@Fluent -public final class AmazonS3Dataset extends Dataset { - /* - * Amazon S3 dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonS3DatasetTypeProperties innerTypeProperties = new AmazonS3DatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Amazon S3 dataset properties. - * - * @return the innerTypeProperties value. - */ - private AmazonS3DatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the bucketName property: The name of the Amazon S3 bucket. Type: string (or Expression with resultType - * string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().bucketName(); - } - - /** - * Set the bucketName property: The name of the Amazon S3 bucket. Type: string (or Expression with resultType - * string). - * - * @param bucketName the bucketName value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withBucketName(Object bucketName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withBucketName(bucketName); - return this; - } - - /** - * Get the key property: The key of the Amazon S3 object. Type: string (or Expression with resultType string). - * - * @return the key value. - */ - public Object key() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().key(); - } - - /** - * Set the key property: The key of the Amazon S3 object. Type: string (or Expression with resultType string). - * - * @param key the key value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withKey(Object key) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withKey(key); - return this; - } - - /** - * Get the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().prefix(); - } - - /** - * Set the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @param prefix the prefix value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withPrefix(Object prefix) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withPrefix(prefix); - return this; - } - - /** - * Get the version property: The version for the S3 object. Type: string (or Expression with resultType string). - * - * @return the version value. - */ - public Object version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); - } - - /** - * Set the version property: The version for the S3 object. Type: string (or Expression with resultType string). - * - * @param version the version value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withVersion(Object version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withVersion(version); - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeStart(); - } - - /** - * Set the modifiedDatetimeStart property: The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeStart(modifiedDatetimeStart); - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of S3 object's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeEnd(); - } - - /** - * Set the modifiedDatetimeEnd property: The end of S3 object's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeEnd(modifiedDatetimeEnd); - return this; - } - - /** - * Get the format property: The format of files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); - } - - /** - * Set the format property: The format of files. - * - * @param format the format value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); - return this; - } - - /** - * Get the compression property: The data compression method used for the Amazon S3 object. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the Amazon S3 object. - * - * @param compression the compression value to set. - * @return the AmazonS3Dataset object itself. - */ - public AmazonS3Dataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonS3Dataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonS3Dataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java deleted file mode 100644 index 1f52fa2639462..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonS3LinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Amazon S3. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonS3") -@Fluent -public final class AmazonS3LinkedService extends LinkedService { - /* - * Amazon S3 linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonS3LinkedServiceTypeProperties innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Amazon S3 linked service properties. - * - * @return the innerTypeProperties value. - */ - private AmazonS3LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the authenticationType property: The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the AmazonS3LinkedService object itself. - */ - public AmazonS3LinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the accessKeyId property: The access key identifier of the Amazon S3 Identity and Access Management (IAM) - * user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); - } - - /** - * Set the accessKeyId property: The access key identifier of the Amazon S3 Identity and Access Management (IAM) - * user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonS3LinkedService object itself. - */ - public AmazonS3LinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Amazon S3 Identity and Access Management (IAM) - * user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); - } - - /** - * Set the secretAccessKey property: The secret access key of the Amazon S3 Identity and Access Management (IAM) - * user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the AmazonS3LinkedService object itself. - */ - public AmazonS3LinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the S3 Connector. This is an - * optional property; change it only if you want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the S3 Connector. This is an - * optional property; change it only if you want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the AmazonS3LinkedService object itself. - */ - public AmazonS3LinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); - return this; - } - - /** - * Get the sessionToken property: The session token for the S3 temporary security credential. - * - * @return the sessionToken value. - */ - public SecretBase sessionToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sessionToken(); - } - - /** - * Set the sessionToken property: The session token for the S3 temporary security credential. - * - * @param sessionToken the sessionToken value to set. - * @return the AmazonS3LinkedService object itself. - */ - public AmazonS3LinkedService withSessionToken(SecretBase sessionToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSessionToken(sessionToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonS3LinkedService object itself. - */ - public AmazonS3LinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonS3LinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmazonS3LinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Location.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Location.java deleted file mode 100644 index e0e6a409a7682..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Location.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of amazon S3 dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonS3Location") -@Fluent -public final class AmazonS3Location extends DatasetLocation { - /* - * Specify the bucketName of amazon S3. Type: string (or Expression with - * resultType string) - */ - @JsonProperty(value = "bucketName") - private Object bucketName; - - /* - * Specify the version of amazon S3. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /** - * Get the bucketName property: Specify the bucketName of amazon S3. Type: string (or Expression with resultType - * string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.bucketName; - } - - /** - * Set the bucketName property: Specify the bucketName of amazon S3. Type: string (or Expression with resultType - * string). - * - * @param bucketName the bucketName value to set. - * @return the AmazonS3Location object itself. - */ - public AmazonS3Location withBucketName(Object bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Get the version property: Specify the version of amazon S3. Type: string (or Expression with resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Specify the version of amazon S3. Type: string (or Expression with resultType string). - * - * @param version the version value to set. - * @return the AmazonS3Location object itself. - */ - public AmazonS3Location withVersion(Object version) { - this.version = version; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Location withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Location withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3ReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3ReadSettings.java deleted file mode 100644 index 5c140c9188795..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3ReadSettings.java +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Amazon S3 read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AmazonS3ReadSettings") -@Fluent -public final class AmazonS3ReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * AmazonS3 wildcardFileName. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * The prefix filter for the S3 object name. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: AmazonS3 wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: AmazonS3 wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @param prefix the prefix value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AmazonS3ReadSettings object itself. - */ - public AmazonS3ReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3ReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3ReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java deleted file mode 100644 index 313aed06fb2c7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AppendVariableActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Append value for a Variable of type Array. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AppendVariable") -@Fluent -public final class AppendVariableActivity extends ControlActivity { - /* - * Append Variable activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AppendVariableActivityTypeProperties innerTypeProperties = new AppendVariableActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Append Variable activity properties. - * - * @return the innerTypeProperties value. - */ - private AppendVariableActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the variableName property: Name of the variable whose value needs to be appended to. - * - * @return the variableName value. - */ - public String variableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableName(); - } - - /** - * Set the variableName property: Name of the variable whose value needs to be appended to. - * - * @param variableName the variableName value to set. - * @return the AppendVariableActivity object itself. - */ - public AppendVariableActivity withVariableName(String variableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AppendVariableActivityTypeProperties(); - } - this.innerTypeProperties().withVariableName(variableName); - return this; - } - - /** - * Get the value property: Value to be appended. Could be a static value or Expression. - * - * @return the value value. - */ - public Object value() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().value(); - } - - /** - * Set the value property: Value to be appended. Could be a static value or Expression. - * - * @param value the value value to set. - * @return the AppendVariableActivity object itself. - */ - public AppendVariableActivity withValue(Object value) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AppendVariableActivityTypeProperties(); - } - this.innerTypeProperties().withValue(value); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AppendVariableActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AppendVariableActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ArmIdWrapper.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ArmIdWrapper.java deleted file mode 100644 index c63231a5e1e03..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ArmIdWrapper.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** A wrapper for an ARM resource id. */ -@Immutable -public final class ArmIdWrapper { - /* - * The id property. - */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) - private String id; - - /** - * Get the id property: The id property. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java deleted file mode 100644 index 63f0cc441507e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AvroDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Avro dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Avro") -@Fluent -public final class AvroDataset extends Dataset { - /* - * Avro dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AvroDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Avro dataset properties. - * - * @return the innerTypeProperties value. - */ - private AvroDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the avro storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the avro storage. - * - * @param location the location value to set. - * @return the AvroDataset object itself. - */ - public AvroDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AvroDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the avroCompressionCodec value. - */ - public Object avroCompressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().avroCompressionCodec(); - } - - /** - * Set the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @param avroCompressionCodec the avroCompressionCodec value to set. - * @return the AvroDataset object itself. - */ - public AvroDataset withAvroCompressionCodec(Object avroCompressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AvroDatasetTypeProperties(); - } - this.innerTypeProperties().withAvroCompressionCodec(avroCompressionCodec); - return this; - } - - /** - * Get the avroCompressionLevel property: The avroCompressionLevel property. - * - * @return the avroCompressionLevel value. - */ - public Integer avroCompressionLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().avroCompressionLevel(); - } - - /** - * Set the avroCompressionLevel property: The avroCompressionLevel property. - * - * @param avroCompressionLevel the avroCompressionLevel value to set. - * @return the AvroDataset object itself. - */ - public AvroDataset withAvroCompressionLevel(Integer avroCompressionLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AvroDatasetTypeProperties(); - } - this.innerTypeProperties().withAvroCompressionLevel(avroCompressionLevel); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java deleted file mode 100644 index 0f2865d73f1b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The data stored in Avro format. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AvroFormat") -@Fluent -public final class AvroFormat extends DatasetStorageFormat { - /** {@inheritDoc} */ - @Override - public AvroFormat withSerializer(Object serializer) { - super.withSerializer(serializer); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroFormat withDeserializer(Object deserializer) { - super.withDeserializer(deserializer); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSink.java deleted file mode 100644 index 81989701d8559..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSink.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Avro sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AvroSink") -@Fluent -public final class AvroSink extends CopySink { - /* - * Avro store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreWriteSettings storeSettings; - - /* - * Avro format settings. - */ - @JsonProperty(value = "formatSettings") - private AvroWriteSettings formatSettings; - - /** - * Get the storeSettings property: Avro store settings. - * - * @return the storeSettings value. - */ - public StoreWriteSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Avro store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the AvroSink object itself. - */ - public AvroSink withStoreSettings(StoreWriteSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: Avro format settings. - * - * @return the formatSettings value. - */ - public AvroWriteSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: Avro format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the AvroSink object itself. - */ - public AvroSink withFormatSettings(AvroWriteSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSource.java deleted file mode 100644 index c7429ad545660..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSource.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Avro source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AvroSource") -@Fluent -public final class AvroSource extends CopySource { - /* - * Avro store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the storeSettings property: Avro store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Avro store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the AvroSource object itself. - */ - public AvroSource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the AvroSource object itself. - */ - public AvroSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroWriteSettings.java deleted file mode 100644 index 202be46262d34..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroWriteSettings.java +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Avro write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AvroWriteSettings") -@Fluent -public final class AvroWriteSettings extends FormatWriteSettings { - /* - * Top level record name in write result, which is required in AVRO spec. - */ - @JsonProperty(value = "recordName") - private String recordName; - - /* - * Record namespace in the write result. - */ - @JsonProperty(value = "recordNamespace") - private String recordNamespace; - - /* - * Limit the written file's row count to be smaller than or equal to the - * specified count. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxRowsPerFile") - private Object maxRowsPerFile; - - /* - * Specifies the file name pattern - * _. when copy from non-file - * based store without partitionOptions. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileNamePrefix") - private Object fileNamePrefix; - - /** - * Get the recordName property: Top level record name in write result, which is required in AVRO spec. - * - * @return the recordName value. - */ - public String recordName() { - return this.recordName; - } - - /** - * Set the recordName property: Top level record name in write result, which is required in AVRO spec. - * - * @param recordName the recordName value to set. - * @return the AvroWriteSettings object itself. - */ - public AvroWriteSettings withRecordName(String recordName) { - this.recordName = recordName; - return this; - } - - /** - * Get the recordNamespace property: Record namespace in the write result. - * - * @return the recordNamespace value. - */ - public String recordNamespace() { - return this.recordNamespace; - } - - /** - * Set the recordNamespace property: Record namespace in the write result. - * - * @param recordNamespace the recordNamespace value to set. - * @return the AvroWriteSettings object itself. - */ - public AvroWriteSettings withRecordNamespace(String recordNamespace) { - this.recordNamespace = recordNamespace; - return this; - } - - /** - * Get the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @return the maxRowsPerFile value. - */ - public Object maxRowsPerFile() { - return this.maxRowsPerFile; - } - - /** - * Set the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @param maxRowsPerFile the maxRowsPerFile value to set. - * @return the AvroWriteSettings object itself. - */ - public AvroWriteSettings withMaxRowsPerFile(Object maxRowsPerFile) { - this.maxRowsPerFile = maxRowsPerFile; - return this; - } - - /** - * Get the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @return the fileNamePrefix value. - */ - public Object fileNamePrefix() { - return this.fileNamePrefix; - } - - /** - * Set the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @param fileNamePrefix the fileNamePrefix value to set. - * @return the AvroWriteSettings object itself. - */ - public AvroWriteSettings withFileNamePrefix(Object fileNamePrefix) { - this.fileNamePrefix = fileNamePrefix; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java deleted file mode 100644 index 8ef8f9b66e7c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzPowerShellSetupTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The express custom setup of installing Azure PowerShell. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzPowerShellSetup") -@Fluent -public final class AzPowerShellSetup extends CustomSetupBase { - /* - * Install Azure PowerShell type properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzPowerShellSetupTypeProperties innerTypeProperties = new AzPowerShellSetupTypeProperties(); - - /** - * Get the innerTypeProperties property: Install Azure PowerShell type properties. - * - * @return the innerTypeProperties value. - */ - private AzPowerShellSetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the version property: The required version of Azure PowerShell to install. - * - * @return the version value. - */ - public String version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); - } - - /** - * Set the version property: The required version of Azure PowerShell to install. - * - * @param version the version value to set. - * @return the AzPowerShellSetup object itself. - */ - public AzPowerShellSetup withVersion(String version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzPowerShellSetupTypeProperties(); - } - this.innerTypeProperties().withVersion(version); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzPowerShellSetup")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzPowerShellSetup.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java deleted file mode 100644 index abc786d673419..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBatchLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Batch linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBatch") -@Fluent -public final class AzureBatchLinkedService extends LinkedService { - /* - * Azure Batch linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureBatchLinkedServiceTypeProperties innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Batch linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureBatchLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountName(); - } - - /** - * Set the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureBatchLinkedService object itself. - */ - public AzureBatchLinkedService withAccountName(Object accountName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountName(accountName); - return this; - } - - /** - * Get the accessKey property: The Azure Batch account access key. - * - * @return the accessKey value. - */ - public SecretBase accessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKey(); - } - - /** - * Set the accessKey property: The Azure Batch account access key. - * - * @param accessKey the accessKey value to set. - * @return the AzureBatchLinkedService object itself. - */ - public AzureBatchLinkedService withAccessKey(SecretBase accessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKey(accessKey); - return this; - } - - /** - * Get the batchUri property: The Azure Batch URI. Type: string (or Expression with resultType string). - * - * @return the batchUri value. - */ - public Object batchUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().batchUri(); - } - - /** - * Set the batchUri property: The Azure Batch URI. Type: string (or Expression with resultType string). - * - * @param batchUri the batchUri value to set. - * @return the AzureBatchLinkedService object itself. - */ - public AzureBatchLinkedService withBatchUri(Object batchUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withBatchUri(batchUri); - return this; - } - - /** - * Get the poolName property: The Azure Batch pool name. Type: string (or Expression with resultType string). - * - * @return the poolName value. - */ - public Object poolName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().poolName(); - } - - /** - * Set the poolName property: The Azure Batch pool name. Type: string (or Expression with resultType string). - * - * @param poolName the poolName value to set. - * @return the AzureBatchLinkedService object itself. - */ - public AzureBatchLinkedService withPoolName(Object poolName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPoolName(poolName); - return this; - } - - /** - * Get the linkedServiceName property: The Azure Storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServiceName(); - } - - /** - * Set the linkedServiceName property: The Azure Storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the AzureBatchLinkedService object itself. - */ - public AzureBatchLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLinkedServiceName(linkedServiceName); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBatchLinkedService object itself. - */ - public AzureBatchLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBatchLinkedService object itself. - */ - public AzureBatchLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureBatchLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureBatchLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java deleted file mode 100644 index f3ddefd83f17d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure Blob storage. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlob") -@Fluent -public final class AzureBlobDataset extends Dataset { - /* - * Azure Blob dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AzureBlobDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Azure Blob dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureBlobDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the folderPath property: The path of the Azure Blob storage. Type: string (or Expression with resultType - * string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); - } - - /** - * Set the folderPath property: The path of the Azure Blob storage. Type: string (or Expression with resultType - * string). - * - * @param folderPath the folderPath value to set. - * @return the AzureBlobDataset object itself. - */ - public AzureBlobDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); - return this; - } - - /** - * Get the tableRootLocation property: The root of blob path. Type: string (or Expression with resultType string). - * - * @return the tableRootLocation value. - */ - public Object tableRootLocation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableRootLocation(); - } - - /** - * Set the tableRootLocation property: The root of blob path. Type: string (or Expression with resultType string). - * - * @param tableRootLocation the tableRootLocation value to set. - * @return the AzureBlobDataset object itself. - */ - public AzureBlobDataset withTableRootLocation(Object tableRootLocation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withTableRootLocation(tableRootLocation); - return this; - } - - /** - * Get the fileName property: The name of the Azure Blob. Type: string (or Expression with resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); - } - - /** - * Set the fileName property: The name of the Azure Blob. Type: string (or Expression with resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureBlobDataset object itself. - */ - public AzureBlobDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeStart(); - } - - /** - * Set the modifiedDatetimeStart property: The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AzureBlobDataset object itself. - */ - public AzureBlobDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeStart(modifiedDatetimeStart); - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of Azure Blob's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeEnd(); - } - - /** - * Set the modifiedDatetimeEnd property: The end of Azure Blob's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AzureBlobDataset object itself. - */ - public AzureBlobDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeEnd(modifiedDatetimeEnd); - return this; - } - - /** - * Get the format property: The format of the Azure Blob storage. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); - } - - /** - * Set the format property: The format of the Azure Blob storage. - * - * @param format the format value to set. - * @return the AzureBlobDataset object itself. - */ - public AzureBlobDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); - return this; - } - - /** - * Get the compression property: The data compression method used for the blob storage. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the blob storage. - * - * @param compression the compression value to set. - * @return the AzureBlobDataset object itself. - */ - public AzureBlobDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java deleted file mode 100644 index 52cd0a6fb3703..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure Data Lake Storage Gen2 storage. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobFSFile") -@Fluent -public final class AzureBlobFSDataset extends Dataset { - /* - * Azure Data Lake Storage Gen2 dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AzureBlobFSDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Azure Data Lake Storage Gen2 dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureBlobFSDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the folderPath property: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression - * with resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); - } - - /** - * Set the folderPath property: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression - * with resultType string). - * - * @param folderPath the folderPath value to set. - * @return the AzureBlobFSDataset object itself. - */ - public AzureBlobFSDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); - return this; - } - - /** - * Get the fileName property: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with - * resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); - } - - /** - * Set the fileName property: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with - * resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureBlobFSDataset object itself. - */ - public AzureBlobFSDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); - return this; - } - - /** - * Get the format property: The format of the Azure Data Lake Storage Gen2 storage. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); - } - - /** - * Set the format property: The format of the Azure Data Lake Storage Gen2 storage. - * - * @param format the format value to set. - * @return the AzureBlobFSDataset object itself. - */ - public AzureBlobFSDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); - return this; - } - - /** - * Get the compression property: The data compression method used for the blob storage. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the blob storage. - * - * @param compression the compression value to set. - * @return the AzureBlobFSDataset object itself. - */ - public AzureBlobFSDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java deleted file mode 100644 index 98a265c7da72b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java +++ /dev/null @@ -1,339 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Data Lake Storage Gen2 linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobFS") -@Fluent -public final class AzureBlobFSLinkedService extends LinkedService { - /* - * Azure Data Lake Storage Gen2 linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureBlobFSLinkedServiceTypeProperties innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Data Lake Storage Gen2 linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureBlobFSLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with - * resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with - * resultType string). - * - * @param url the url value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the accountKey property: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - * - * @return the accountKey value. - */ - public Object accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); - } - - /** - * Set the accountKey property: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - * - * @param accountKey the accountKey value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withAccountKey(Object accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureBlobFSLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureBlobFSLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLocation.java deleted file mode 100644 index 7c048ee515868..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLocation.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of azure blobFS dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobFSLocation") -@Fluent -public final class AzureBlobFSLocation extends DatasetLocation { - /* - * Specify the fileSystem of azure blobFS. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileSystem") - private Object fileSystem; - - /** - * Get the fileSystem property: Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType - * string). - * - * @return the fileSystem value. - */ - public Object fileSystem() { - return this.fileSystem; - } - - /** - * Set the fileSystem property: Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType - * string). - * - * @param fileSystem the fileSystem value to set. - * @return the AzureBlobFSLocation object itself. - */ - public AzureBlobFSLocation withFileSystem(Object fileSystem) { - this.fileSystem = fileSystem; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSReadSettings.java deleted file mode 100644 index 336e8b3f6afbe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSReadSettings.java +++ /dev/null @@ -1,300 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure blobFS read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobFSReadSettings") -@Fluent -public final class AzureBlobFSReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Azure blobFS wildcardFolderPath. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Azure blobFS wildcardFileName. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Azure blobFS wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Azure blobFS wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AzureBlobFSReadSettings object itself. - */ - public AzureBlobFSReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSink.java deleted file mode 100644 index 563a9332ec07e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSink.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** A copy activity Azure Data Lake Storage Gen2 sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobFSSink") -@Fluent -public final class AzureBlobFSSink extends CopySink { - /* - * The type of copy behavior for copy sink. - */ - @JsonProperty(value = "copyBehavior") - private Object copyBehavior; - - /* - * Specify the custom metadata to be added to sink data. Type: array of - * objects (or Expression with resultType array of objects). - */ - @JsonProperty(value = "metadata") - private List metadata; - - /** - * Get the copyBehavior property: The type of copy behavior for copy sink. - * - * @return the copyBehavior value. - */ - public Object copyBehavior() { - return this.copyBehavior; - } - - /** - * Set the copyBehavior property: The type of copy behavior for copy sink. - * - * @param copyBehavior the copyBehavior value to set. - * @return the AzureBlobFSSink object itself. - */ - public AzureBlobFSSink withCopyBehavior(Object copyBehavior) { - this.copyBehavior = copyBehavior; - return this; - } - - /** - * Get the metadata property: Specify the custom metadata to be added to sink data. Type: array of objects (or - * Expression with resultType array of objects). - * - * @return the metadata value. - */ - public List metadata() { - return this.metadata; - } - - /** - * Set the metadata property: Specify the custom metadata to be added to sink data. Type: array of objects (or - * Expression with resultType array of objects). - * - * @param metadata the metadata value to set. - * @return the AzureBlobFSSink object itself. - */ - public AzureBlobFSSink withMetadata(List metadata) { - this.metadata = metadata; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (metadata() != null) { - metadata().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSource.java deleted file mode 100644 index 1b1b10aa357a0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSource.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure BlobFS source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobFSSource") -@Fluent -public final class AzureBlobFSSource extends CopySource { - /* - * Treat empty as null. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "treatEmptyAsNull") - private Object treatEmptyAsNull; - - /* - * Number of header lines to skip from each blob. Type: integer (or - * Expression with resultType integer). - */ - @JsonProperty(value = "skipHeaderLineCount") - private Object skipHeaderLineCount; - - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /** - * Get the treatEmptyAsNull property: Treat empty as null. Type: boolean (or Expression with resultType boolean). - * - * @return the treatEmptyAsNull value. - */ - public Object treatEmptyAsNull() { - return this.treatEmptyAsNull; - } - - /** - * Set the treatEmptyAsNull property: Treat empty as null. Type: boolean (or Expression with resultType boolean). - * - * @param treatEmptyAsNull the treatEmptyAsNull value to set. - * @return the AzureBlobFSSource object itself. - */ - public AzureBlobFSSource withTreatEmptyAsNull(Object treatEmptyAsNull) { - this.treatEmptyAsNull = treatEmptyAsNull; - return this; - } - - /** - * Get the skipHeaderLineCount property: Number of header lines to skip from each blob. Type: integer (or Expression - * with resultType integer). - * - * @return the skipHeaderLineCount value. - */ - public Object skipHeaderLineCount() { - return this.skipHeaderLineCount; - } - - /** - * Set the skipHeaderLineCount property: Number of header lines to skip from each blob. Type: integer (or Expression - * with resultType integer). - * - * @param skipHeaderLineCount the skipHeaderLineCount value to set. - * @return the AzureBlobFSSource object itself. - */ - public AzureBlobFSSource withSkipHeaderLineCount(Object skipHeaderLineCount) { - this.skipHeaderLineCount = skipHeaderLineCount; - return this; - } - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AzureBlobFSSource object itself. - */ - public AzureBlobFSSource withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSWriteSettings.java deleted file mode 100644 index 8ffa4a6a142ef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSWriteSettings.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure blobFS write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobFSWriteSettings") -@Fluent -public final class AzureBlobFSWriteSettings extends StoreWriteSettings { - /* - * Indicates the block size(MB) when writing data to blob. Type: integer - * (or Expression with resultType integer). - */ - @JsonProperty(value = "blockSizeInMB") - private Object blockSizeInMB; - - /** - * Get the blockSizeInMB property: Indicates the block size(MB) when writing data to blob. Type: integer (or - * Expression with resultType integer). - * - * @return the blockSizeInMB value. - */ - public Object blockSizeInMB() { - return this.blockSizeInMB; - } - - /** - * Set the blockSizeInMB property: Indicates the block size(MB) when writing data to blob. Type: integer (or - * Expression with resultType integer). - * - * @param blockSizeInMB the blockSizeInMB value to set. - * @return the AzureBlobFSWriteSettings object itself. - */ - public AzureBlobFSWriteSettings withBlockSizeInMB(Object blockSizeInMB) { - this.blockSizeInMB = blockSizeInMB; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSWriteSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSWriteSettings withCopyBehavior(Object copyBehavior) { - super.withCopyBehavior(copyBehavior); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java deleted file mode 100644 index 52016e4f97cc1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java +++ /dev/null @@ -1,382 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobStorageLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The azure blob storage linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobStorage") -@Fluent -public final class AzureBlobStorageLinkedService extends LinkedService { - /* - * Azure Blob Storage linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureBlobStorageLinkedServiceTypeProperties innerTypeProperties = - new AzureBlobStorageLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Blob Storage linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureBlobStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - * connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); - } - - /** - * Set the sasUri property: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - * connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); - return this; - } - - /** - * Get the serviceEndpoint property: Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - * - * @return the serviceEndpoint value. - */ - public String serviceEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceEndpoint(); - } - - /** - * Set the serviceEndpoint property: Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - * - * @param serviceEndpoint the serviceEndpoint value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withServiceEndpoint(String serviceEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceEndpoint(serviceEndpoint); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the accountKind property: Specify the kind of your storage account. Allowed values are: Storage (general - * purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with - * resultType string). - * - * @return the accountKind value. - */ - public String accountKind() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKind(); - } - - /** - * Set the accountKind property: Specify the kind of your storage account. Allowed values are: Storage (general - * purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with - * resultType string). - * - * @param accountKind the accountKind value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withAccountKind(String accountKind) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKind(accountKind); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureBlobStorageLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureBlobStorageLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLocation.java deleted file mode 100644 index ffaeed3660835..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLocation.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of azure blob dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobStorageLocation") -@Fluent -public final class AzureBlobStorageLocation extends DatasetLocation { - /* - * Specify the container of azure blob. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "container") - private Object container; - - /** - * Get the container property: Specify the container of azure blob. Type: string (or Expression with resultType - * string). - * - * @return the container value. - */ - public Object container() { - return this.container; - } - - /** - * Set the container property: Specify the container of azure blob. Type: string (or Expression with resultType - * string). - * - * @param container the container value to set. - * @return the AzureBlobStorageLocation object itself. - */ - public AzureBlobStorageLocation withContainer(Object container) { - this.container = container; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageReadSettings.java deleted file mode 100644 index ff2e36e18d355..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageReadSettings.java +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure blob read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobStorageReadSettings") -@Fluent -public final class AzureBlobStorageReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Azure blob wildcardFolderPath. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Azure blob wildcardFileName. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * The prefix filter for the Azure Blob name. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Azure blob wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Azure blob wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Azure blob wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Azure blob wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the prefix property: The prefix filter for the Azure Blob name. Type: string (or Expression with resultType - * string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the Azure Blob name. Type: string (or Expression with resultType - * string). - * - * @param prefix the prefix value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AzureBlobStorageReadSettings object itself. - */ - public AzureBlobStorageReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageWriteSettings.java deleted file mode 100644 index e6ab4b00f5bf8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageWriteSettings.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure blob write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureBlobStorageWriteSettings") -@Fluent -public final class AzureBlobStorageWriteSettings extends StoreWriteSettings { - /* - * Indicates the block size(MB) when writing data to blob. Type: integer - * (or Expression with resultType integer). - */ - @JsonProperty(value = "blockSizeInMB") - private Object blockSizeInMB; - - /** - * Get the blockSizeInMB property: Indicates the block size(MB) when writing data to blob. Type: integer (or - * Expression with resultType integer). - * - * @return the blockSizeInMB value. - */ - public Object blockSizeInMB() { - return this.blockSizeInMB; - } - - /** - * Set the blockSizeInMB property: Indicates the block size(MB) when writing data to blob. Type: integer (or - * Expression with resultType integer). - * - * @param blockSizeInMB the blockSizeInMB value to set. - * @return the AzureBlobStorageWriteSettings object itself. - */ - public AzureBlobStorageWriteSettings withBlockSizeInMB(Object blockSizeInMB) { - this.blockSizeInMB = blockSizeInMB; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageWriteSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobStorageWriteSettings withCopyBehavior(Object copyBehavior) { - super.withCopyBehavior(copyBehavior); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java deleted file mode 100644 index 54ab5a942f909..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerCommandActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Azure Data Explorer command activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataExplorerCommand") -@Fluent -public final class AzureDataExplorerCommandActivity extends ExecutionActivity { - /* - * Azure Data Explorer command activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataExplorerCommandActivityTypeProperties innerTypeProperties = - new AzureDataExplorerCommandActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Data Explorer command activity properties. - * - * @return the innerTypeProperties value. - */ - private AzureDataExplorerCommandActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerCommandActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerCommandActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerCommandActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerCommandActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerCommandActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerCommandActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @return the command value. - */ - public Object command() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().command(); - } - - /** - * Set the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @param command the command value to set. - * @return the AzureDataExplorerCommandActivity object itself. - */ - public AzureDataExplorerCommandActivity withCommand(Object command) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerCommandActivityTypeProperties(); - } - this.innerTypeProperties().withCommand(command); - return this; - } - - /** - * Get the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @return the commandTimeout value. - */ - public Object commandTimeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().commandTimeout(); - } - - /** - * Set the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @param commandTimeout the commandTimeout value to set. - * @return the AzureDataExplorerCommandActivity object itself. - */ - public AzureDataExplorerCommandActivity withCommandTimeout(Object commandTimeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerCommandActivityTypeProperties(); - } - this.innerTypeProperties().withCommandTimeout(commandTimeout); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataExplorerCommandActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerCommandActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java deleted file mode 100644 index 206ce2b206c56..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Data Explorer (Kusto) linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataExplorer") -@Fluent -public final class AzureDataExplorerLinkedService extends LinkedService { - /* - * Azure Data Explorer (Kusto) linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataExplorerLinkedServiceTypeProperties innerTypeProperties = - new AzureDataExplorerLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Data Explorer (Kusto) linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureDataExplorerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format - * https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType - * string). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format - * https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType - * string). - * - * @param endpoint the endpoint value to set. - * @return the AzureDataExplorerLinkedService object itself. - */ - public AzureDataExplorerLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataExplorerLinkedService object itself. - */ - public AzureDataExplorerLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Kusto. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Kusto. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataExplorerLinkedService object itself. - */ - public AzureDataExplorerLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the AzureDataExplorerLinkedService object itself. - */ - public AzureDataExplorerLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataExplorerLinkedService object itself. - */ - public AzureDataExplorerLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDataExplorerLinkedService object itself. - */ - public AzureDataExplorerLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataExplorerLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSink.java deleted file mode 100644 index 54e92cffb90eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSink.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Data Explorer sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataExplorerSink") -@Fluent -public final class AzureDataExplorerSink extends CopySink { - /* - * A name of a pre-created csv mapping that was defined on the target Kusto - * table. Type: string. - */ - @JsonProperty(value = "ingestionMappingName") - private Object ingestionMappingName; - - /* - * An explicit column mapping description provided in a json format. Type: - * string. - */ - @JsonProperty(value = "ingestionMappingAsJson") - private Object ingestionMappingAsJson; - - /* - * If set to true, any aggregation will be skipped. Default is false. Type: - * boolean. - */ - @JsonProperty(value = "flushImmediately") - private Object flushImmediately; - - /** - * Get the ingestionMappingName property: A name of a pre-created csv mapping that was defined on the target Kusto - * table. Type: string. - * - * @return the ingestionMappingName value. - */ - public Object ingestionMappingName() { - return this.ingestionMappingName; - } - - /** - * Set the ingestionMappingName property: A name of a pre-created csv mapping that was defined on the target Kusto - * table. Type: string. - * - * @param ingestionMappingName the ingestionMappingName value to set. - * @return the AzureDataExplorerSink object itself. - */ - public AzureDataExplorerSink withIngestionMappingName(Object ingestionMappingName) { - this.ingestionMappingName = ingestionMappingName; - return this; - } - - /** - * Get the ingestionMappingAsJson property: An explicit column mapping description provided in a json format. Type: - * string. - * - * @return the ingestionMappingAsJson value. - */ - public Object ingestionMappingAsJson() { - return this.ingestionMappingAsJson; - } - - /** - * Set the ingestionMappingAsJson property: An explicit column mapping description provided in a json format. Type: - * string. - * - * @param ingestionMappingAsJson the ingestionMappingAsJson value to set. - * @return the AzureDataExplorerSink object itself. - */ - public AzureDataExplorerSink withIngestionMappingAsJson(Object ingestionMappingAsJson) { - this.ingestionMappingAsJson = ingestionMappingAsJson; - return this; - } - - /** - * Get the flushImmediately property: If set to true, any aggregation will be skipped. Default is false. Type: - * boolean. - * - * @return the flushImmediately value. - */ - public Object flushImmediately() { - return this.flushImmediately; - } - - /** - * Set the flushImmediately property: If set to true, any aggregation will be skipped. Default is false. Type: - * boolean. - * - * @param flushImmediately the flushImmediately value to set. - * @return the AzureDataExplorerSink object itself. - */ - public AzureDataExplorerSink withFlushImmediately(Object flushImmediately) { - this.flushImmediately = flushImmediately; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSource.java deleted file mode 100644 index 1dfaaab791ee0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSource.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Data Explorer (Kusto) source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataExplorerSource") -@Fluent -public final class AzureDataExplorerSource extends CopySource { - /* - * Database query. Should be a Kusto Query Language (KQL) query. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "query", required = true) - private Object query; - - /* - * The name of the Boolean option that controls whether truncation is - * applied to result-sets that go beyond a certain row-count limit. - */ - @JsonProperty(value = "noTruncation") - private Object noTruncation; - - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression - * with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression - * with resultType string). - * - * @param query the query value to set. - * @return the AzureDataExplorerSource object itself. - */ - public AzureDataExplorerSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the noTruncation property: The name of the Boolean option that controls whether truncation is applied to - * result-sets that go beyond a certain row-count limit. - * - * @return the noTruncation value. - */ - public Object noTruncation() { - return this.noTruncation; - } - - /** - * Set the noTruncation property: The name of the Boolean option that controls whether truncation is applied to - * result-sets that go beyond a certain row-count limit. - * - * @param noTruncation the noTruncation value to set. - * @return the AzureDataExplorerSource object itself. - */ - public AzureDataExplorerSource withNoTruncation(Object noTruncation) { - this.noTruncation = noTruncation; - return this; - } - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - * - * @param queryTimeout the queryTimeout value to set. - * @return the AzureDataExplorerSource object itself. - */ - public AzureDataExplorerSource withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the AzureDataExplorerSource object itself. - */ - public AzureDataExplorerSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (query() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property query in model AzureDataExplorerSource")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerSource.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java deleted file mode 100644 index 70f7e16c444c6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure Data Explorer (Kusto) dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataExplorerTable") -@Fluent -public final class AzureDataExplorerTableDataset extends Dataset { - /* - * Azure Data Explorer (Kusto) dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataExplorerDatasetTypeProperties innerTypeProperties = new AzureDataExplorerDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Data Explorer (Kusto) dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureDataExplorerDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataExplorerTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzureDataExplorerTableDataset object itself. - */ - public AzureDataExplorerTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataExplorerTableDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerTableDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java deleted file mode 100644 index eef0001957427..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeAnalyticsLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Data Lake Analytics linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeAnalytics") -@Fluent -public final class AzureDataLakeAnalyticsLinkedService extends LinkedService { - /* - * Azure Data Lake Analytics linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataLakeAnalyticsLinkedServiceTypeProperties innerTypeProperties = - new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Data Lake Analytics linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureDataLakeAnalyticsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the accountName property: The Azure Data Lake Analytics account name. Type: string (or Expression with - * resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountName(); - } - - /** - * Set the accountName property: The Azure Data Lake Analytics account name. Type: string (or Expression with - * resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withAccountName(Object accountName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountName(accountName); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Analytics account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Analytics account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Analytics account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Analytics account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the subscriptionId property: Data Lake Analytics account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subscriptionId(); - } - - /** - * Set the subscriptionId property: Data Lake Analytics account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withSubscriptionId(Object subscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubscriptionId(subscriptionId); - return this; - } - - /** - * Get the resourceGroupName property: Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceGroupName(); - } - - /** - * Set the resourceGroupName property: Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withResourceGroupName(Object resourceGroupName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceGroupName(resourceGroupName); - return this; - } - - /** - * Get the dataLakeAnalyticsUri property: Azure Data Lake Analytics URI Type: string (or Expression with resultType - * string). - * - * @return the dataLakeAnalyticsUri value. - */ - public Object dataLakeAnalyticsUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataLakeAnalyticsUri(); - } - - /** - * Set the dataLakeAnalyticsUri property: Azure Data Lake Analytics URI Type: string (or Expression with resultType - * string). - * - * @param dataLakeAnalyticsUri the dataLakeAnalyticsUri value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withDataLakeAnalyticsUri(Object dataLakeAnalyticsUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDataLakeAnalyticsUri(dataLakeAnalyticsUri); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDataLakeAnalyticsLinkedService object itself. - */ - public AzureDataLakeAnalyticsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataLakeAnalyticsLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeAnalyticsLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java deleted file mode 100644 index afff4cb8099fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Data Lake Store dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeStoreFile") -@Fluent -public final class AzureDataLakeStoreDataset extends Dataset { - /* - * Azure Data Lake Store dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AzureDataLakeStoreDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Azure Data Lake Store dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureDataLakeStoreDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the folderPath property: Path to the folder in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); - } - - /** - * Set the folderPath property: Path to the folder in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @param folderPath the folderPath value to set. - * @return the AzureDataLakeStoreDataset object itself. - */ - public AzureDataLakeStoreDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); - return this; - } - - /** - * Get the fileName property: The name of the file in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); - } - - /** - * Set the fileName property: The name of the file in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureDataLakeStoreDataset object itself. - */ - public AzureDataLakeStoreDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); - return this; - } - - /** - * Get the format property: The format of the Data Lake Store. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); - } - - /** - * Set the format property: The format of the Data Lake Store. - * - * @param format the format value to set. - * @return the AzureDataLakeStoreDataset object itself. - */ - public AzureDataLakeStoreDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); - return this; - } - - /** - * Get the compression property: The data compression method used for the item(s) in the Azure Data Lake Store. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the item(s) in the Azure Data Lake Store. - * - * @param compression the compression value to set. - * @return the AzureDataLakeStoreDataset object itself. - */ - public AzureDataLakeStoreDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java deleted file mode 100644 index 29567cbf27c3e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Data Lake Store linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeStore") -@Fluent -public final class AzureDataLakeStoreLinkedService extends LinkedService { - /* - * Azure Data Lake Store linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataLakeStoreLinkedServiceTypeProperties innerTypeProperties = - new AzureDataLakeStoreLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Data Lake Store linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureDataLakeStoreLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the dataLakeStoreUri property: Data Lake Store service URI. Type: string (or Expression with resultType - * string). - * - * @return the dataLakeStoreUri value. - */ - public Object dataLakeStoreUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataLakeStoreUri(); - } - - /** - * Set the dataLakeStoreUri property: Data Lake Store service URI. Type: string (or Expression with resultType - * string). - * - * @param dataLakeStoreUri the dataLakeStoreUri value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withDataLakeStoreUri(Object dataLakeStoreUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDataLakeStoreUri(dataLakeStoreUri); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Store account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Store account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Store account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Store account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the accountName property: Data Lake Store account name. Type: string (or Expression with resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountName(); - } - - /** - * Set the accountName property: Data Lake Store account name. Type: string (or Expression with resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withAccountName(Object accountName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountName(accountName); - return this; - } - - /** - * Get the subscriptionId property: Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subscriptionId(); - } - - /** - * Set the subscriptionId property: Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withSubscriptionId(Object subscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubscriptionId(subscriptionId); - return this; - } - - /** - * Get the resourceGroupName property: Data Lake Store account resource group name (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceGroupName(); - } - - /** - * Set the resourceGroupName property: Data Lake Store account resource group name (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withResourceGroupName(Object resourceGroupName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceGroupName(resourceGroupName); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDataLakeStoreLinkedService object itself. - */ - public AzureDataLakeStoreLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataLakeStoreLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeStoreLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLocation.java deleted file mode 100644 index b29453ef66341..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLocation.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of azure data lake store dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeStoreLocation") -@Fluent -public final class AzureDataLakeStoreLocation extends DatasetLocation { - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreReadSettings.java deleted file mode 100644 index 72c3269a3fe5d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreReadSettings.java +++ /dev/null @@ -1,364 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure data lake store read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeStoreReadSettings") -@Fluent -public final class AzureDataLakeStoreReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * ADLS wildcardFolderPath. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * ADLS wildcardFileName. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Lists files after the value (exclusive) based on file/folder names’ - * lexicographical order. Applies under the folderPath in data set, and - * filter files/sub-folders under the folderPath. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "listAfter") - private Object listAfter; - - /* - * Lists files before the value (inclusive) based on file/folder names’ - * lexicographical order. Applies under the folderPath in data set, and - * filter files/sub-folders under the folderPath. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "listBefore") - private Object listBefore; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: ADLS wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: ADLS wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: ADLS wildcardFileName. Type: string (or Expression with resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: ADLS wildcardFileName. Type: string (or Expression with resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the listAfter property: Lists files after the value (exclusive) based on file/folder names’ lexicographical - * order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string - * (or Expression with resultType string). - * - * @return the listAfter value. - */ - public Object listAfter() { - return this.listAfter; - } - - /** - * Set the listAfter property: Lists files after the value (exclusive) based on file/folder names’ lexicographical - * order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string - * (or Expression with resultType string). - * - * @param listAfter the listAfter value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withListAfter(Object listAfter) { - this.listAfter = listAfter; - return this; - } - - /** - * Get the listBefore property: Lists files before the value (inclusive) based on file/folder names’ lexicographical - * order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string - * (or Expression with resultType string). - * - * @return the listBefore value. - */ - public Object listBefore() { - return this.listBefore; - } - - /** - * Set the listBefore property: Lists files before the value (inclusive) based on file/folder names’ lexicographical - * order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string - * (or Expression with resultType string). - * - * @param listBefore the listBefore value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withListBefore(Object listBefore) { - this.listBefore = listBefore; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AzureDataLakeStoreReadSettings object itself. - */ - public AzureDataLakeStoreReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSink.java deleted file mode 100644 index e7fbfb9715cd3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSink.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Data Lake Store sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeStoreSink") -@Fluent -public final class AzureDataLakeStoreSink extends CopySink { - /* - * The type of copy behavior for copy sink. - */ - @JsonProperty(value = "copyBehavior") - private Object copyBehavior; - - /* - * Single File Parallel. - */ - @JsonProperty(value = "enableAdlsSingleFileParallel") - private Object enableAdlsSingleFileParallel; - - /** - * Get the copyBehavior property: The type of copy behavior for copy sink. - * - * @return the copyBehavior value. - */ - public Object copyBehavior() { - return this.copyBehavior; - } - - /** - * Set the copyBehavior property: The type of copy behavior for copy sink. - * - * @param copyBehavior the copyBehavior value to set. - * @return the AzureDataLakeStoreSink object itself. - */ - public AzureDataLakeStoreSink withCopyBehavior(Object copyBehavior) { - this.copyBehavior = copyBehavior; - return this; - } - - /** - * Get the enableAdlsSingleFileParallel property: Single File Parallel. - * - * @return the enableAdlsSingleFileParallel value. - */ - public Object enableAdlsSingleFileParallel() { - return this.enableAdlsSingleFileParallel; - } - - /** - * Set the enableAdlsSingleFileParallel property: Single File Parallel. - * - * @param enableAdlsSingleFileParallel the enableAdlsSingleFileParallel value to set. - * @return the AzureDataLakeStoreSink object itself. - */ - public AzureDataLakeStoreSink withEnableAdlsSingleFileParallel(Object enableAdlsSingleFileParallel) { - this.enableAdlsSingleFileParallel = enableAdlsSingleFileParallel; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSource.java deleted file mode 100644 index dfbe99e330594..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSource.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Data Lake source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeStoreSource") -@Fluent -public final class AzureDataLakeStoreSource extends CopySource { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AzureDataLakeStoreSource object itself. - */ - public AzureDataLakeStoreSource withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreWriteSettings.java deleted file mode 100644 index d7352b1b16cd4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreWriteSettings.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure data lake store write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDataLakeStoreWriteSettings") -@Fluent -public final class AzureDataLakeStoreWriteSettings extends StoreWriteSettings { - /* - * Specifies the expiry time of the written files. The time is applied to - * the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value - * is NULL. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "expiryDateTime") - private Object expiryDateTime; - - /** - * Get the expiryDateTime property: Specifies the expiry time of the written files. The time is applied to the UTC - * time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: integer (or Expression with - * resultType integer). - * - * @return the expiryDateTime value. - */ - public Object expiryDateTime() { - return this.expiryDateTime; - } - - /** - * Set the expiryDateTime property: Specifies the expiry time of the written files. The time is applied to the UTC - * time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: integer (or Expression with - * resultType integer). - * - * @param expiryDateTime the expiryDateTime value to set. - * @return the AzureDataLakeStoreWriteSettings object itself. - */ - public AzureDataLakeStoreWriteSettings withExpiryDateTime(Object expiryDateTime) { - this.expiryDateTime = expiryDateTime; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreWriteSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreWriteSettings withCopyBehavior(Object copyBehavior) { - super.withCopyBehavior(copyBehavior); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java deleted file mode 100644 index 4633cc54cb76e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDeltaLakeDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Databricks Delta Lake dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDatabricksDeltaLakeDataset") -@Fluent -public final class AzureDatabricksDeltaLakeDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private AzureDatabricksDeltaLakeDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private AzureDatabricksDeltaLakeDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the AzureDatabricksDeltaLakeDataset object itself. - */ - public AzureDatabricksDeltaLakeDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDeltaLakeDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the AzureDatabricksDeltaLakeDataset object itself. - */ - public AzureDatabricksDeltaLakeDataset withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDeltaLakeDatasetTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeExportCommand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeExportCommand.java deleted file mode 100644 index 1282bf4acd1ae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeExportCommand.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure Databricks Delta Lake export command settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDatabricksDeltaLakeExportCommand") -@Fluent -public final class AzureDatabricksDeltaLakeExportCommand extends ExportSettings { - /* - * Specify the date format for the csv in Azure Databricks Delta Lake Copy. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "dateFormat") - private Object dateFormat; - - /* - * Specify the timestamp format for the csv in Azure Databricks Delta Lake - * Copy. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "timestampFormat") - private Object timestampFormat; - - /** - * Get the dateFormat property: Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: - * string (or Expression with resultType string). - * - * @return the dateFormat value. - */ - public Object dateFormat() { - return this.dateFormat; - } - - /** - * Set the dateFormat property: Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: - * string (or Expression with resultType string). - * - * @param dateFormat the dateFormat value to set. - * @return the AzureDatabricksDeltaLakeExportCommand object itself. - */ - public AzureDatabricksDeltaLakeExportCommand withDateFormat(Object dateFormat) { - this.dateFormat = dateFormat; - return this; - } - - /** - * Get the timestampFormat property: Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. - * Type: string (or Expression with resultType string). - * - * @return the timestampFormat value. - */ - public Object timestampFormat() { - return this.timestampFormat; - } - - /** - * Set the timestampFormat property: Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. - * Type: string (or Expression with resultType string). - * - * @param timestampFormat the timestampFormat value to set. - * @return the AzureDatabricksDeltaLakeExportCommand object itself. - */ - public AzureDatabricksDeltaLakeExportCommand withTimestampFormat(Object timestampFormat) { - this.timestampFormat = timestampFormat; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeImportCommand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeImportCommand.java deleted file mode 100644 index 3b19bbf09e985..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeImportCommand.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure Databricks Delta Lake import command settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDatabricksDeltaLakeImportCommand") -@Fluent -public final class AzureDatabricksDeltaLakeImportCommand extends ImportSettings { - /* - * Specify the date format for csv in Azure Databricks Delta Lake Copy. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "dateFormat") - private Object dateFormat; - - /* - * Specify the timestamp format for csv in Azure Databricks Delta Lake - * Copy. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "timestampFormat") - private Object timestampFormat; - - /** - * Get the dateFormat property: Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string - * (or Expression with resultType string). - * - * @return the dateFormat value. - */ - public Object dateFormat() { - return this.dateFormat; - } - - /** - * Set the dateFormat property: Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string - * (or Expression with resultType string). - * - * @param dateFormat the dateFormat value to set. - * @return the AzureDatabricksDeltaLakeImportCommand object itself. - */ - public AzureDatabricksDeltaLakeImportCommand withDateFormat(Object dateFormat) { - this.dateFormat = dateFormat; - return this; - } - - /** - * Get the timestampFormat property: Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: - * string (or Expression with resultType string). - * - * @return the timestampFormat value. - */ - public Object timestampFormat() { - return this.timestampFormat; - } - - /** - * Set the timestampFormat property: Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: - * string (or Expression with resultType string). - * - * @param timestampFormat the timestampFormat value to set. - * @return the AzureDatabricksDeltaLakeImportCommand object itself. - */ - public AzureDatabricksDeltaLakeImportCommand withTimestampFormat(Object timestampFormat) { - this.timestampFormat = timestampFormat; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java deleted file mode 100644 index 3e8e53575c55f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDetltaLakeLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Databricks Delta Lake linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDatabricksDeltaLake") -@Fluent -public final class AzureDatabricksDeltaLakeLinkedService extends LinkedService { - /* - * Azure Databricks Delta Lake linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDatabricksDetltaLakeLinkedServiceTypeProperties innerTypeProperties = - new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Databricks Delta Lake linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureDatabricksDetltaLakeLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @return the domain value. - */ - public Object domain() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().domain(); - } - - /** - * Set the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @param domain the domain value to set. - * @return the AzureDatabricksDeltaLakeLinkedService object itself. - */ - public AzureDatabricksDeltaLakeLinkedService withDomain(Object domain) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDomain(domain); - return this; - } - - /** - * Get the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); - } - - /** - * Set the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param accessToken the accessToken value to set. - * @return the AzureDatabricksDeltaLakeLinkedService object itself. - */ - public AzureDatabricksDeltaLakeLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); - return this; - } - - /** - * Get the clusterId property: The id of an existing interactive cluster that will be used for all runs of this job. - * Type: string (or Expression with resultType string). - * - * @return the clusterId value. - */ - public Object clusterId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterId(); - } - - /** - * Set the clusterId property: The id of an existing interactive cluster that will be used for all runs of this job. - * Type: string (or Expression with resultType string). - * - * @param clusterId the clusterId value to set. - * @return the AzureDatabricksDeltaLakeLinkedService object itself. - */ - public AzureDatabricksDeltaLakeLinkedService withClusterId(Object clusterId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterId(clusterId); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDatabricksDeltaLakeLinkedService object itself. - */ - public AzureDatabricksDeltaLakeLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDatabricksDeltaLakeLinkedService object itself. - */ - public AzureDatabricksDeltaLakeLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Get the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @return the workspaceResourceId value. - */ - public Object workspaceResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().workspaceResourceId(); - } - - /** - * Set the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @param workspaceResourceId the workspaceResourceId value to set. - * @return the AzureDatabricksDeltaLakeLinkedService object itself. - */ - public AzureDatabricksDeltaLakeLinkedService withWorkspaceResourceId(Object workspaceResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withWorkspaceResourceId(workspaceResourceId); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model" - + " AzureDatabricksDeltaLakeLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDatabricksDeltaLakeLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSink.java deleted file mode 100644 index 20a8787d7ae0e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSink.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Databricks Delta Lake sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDatabricksDeltaLakeSink") -@Fluent -public final class AzureDatabricksDeltaLakeSink extends CopySink { - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /* - * Azure Databricks Delta Lake import settings. - */ - @JsonProperty(value = "importSettings") - private AzureDatabricksDeltaLakeImportCommand importSettings; - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the AzureDatabricksDeltaLakeSink object itself. - */ - public AzureDatabricksDeltaLakeSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** - * Get the importSettings property: Azure Databricks Delta Lake import settings. - * - * @return the importSettings value. - */ - public AzureDatabricksDeltaLakeImportCommand importSettings() { - return this.importSettings; - } - - /** - * Set the importSettings property: Azure Databricks Delta Lake import settings. - * - * @param importSettings the importSettings value to set. - * @return the AzureDatabricksDeltaLakeSink object itself. - */ - public AzureDatabricksDeltaLakeSink withImportSettings(AzureDatabricksDeltaLakeImportCommand importSettings) { - this.importSettings = importSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (importSettings() != null) { - importSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSource.java deleted file mode 100644 index df2ab8eda1cac..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSource.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Databricks Delta Lake source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDatabricksDeltaLakeSource") -@Fluent -public final class AzureDatabricksDeltaLakeSource extends CopySource { - /* - * Azure Databricks Delta Lake Sql query. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Azure Databricks Delta Lake export settings. - */ - @JsonProperty(value = "exportSettings") - private AzureDatabricksDeltaLakeExportCommand exportSettings; - - /** - * Get the query property: Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the AzureDatabricksDeltaLakeSource object itself. - */ - public AzureDatabricksDeltaLakeSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the exportSettings property: Azure Databricks Delta Lake export settings. - * - * @return the exportSettings value. - */ - public AzureDatabricksDeltaLakeExportCommand exportSettings() { - return this.exportSettings; - } - - /** - * Set the exportSettings property: Azure Databricks Delta Lake export settings. - * - * @param exportSettings the exportSettings value to set. - * @return the AzureDatabricksDeltaLakeSource object itself. - */ - public AzureDatabricksDeltaLakeSource withExportSettings(AzureDatabricksDeltaLakeExportCommand exportSettings) { - this.exportSettings = exportSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (exportSettings() != null) { - exportSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java deleted file mode 100644 index 05a650e404b80..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java +++ /dev/null @@ -1,569 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Databricks linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureDatabricks") -@Fluent -public final class AzureDatabricksLinkedService extends LinkedService { - /* - * Azure Databricks linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDatabricksLinkedServiceTypeProperties innerTypeProperties = - new AzureDatabricksLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Databricks linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureDatabricksLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @return the domain value. - */ - public Object domain() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().domain(); - } - - /** - * Set the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @param domain the domain value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withDomain(Object domain) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDomain(domain); - return this; - } - - /** - * Get the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType - * string). - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); - } - - /** - * Set the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType - * string). - * - * @param accessToken the accessToken value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); - return this; - } - - /** - * Get the authentication property: Required to specify MSI, if using Workspace resource id for databricks REST API. - * Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); - } - - /** - * Set the authentication property: Required to specify MSI, if using Workspace resource id for databricks REST API. - * Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withAuthentication(Object authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); - return this; - } - - /** - * Get the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @return the workspaceResourceId value. - */ - public Object workspaceResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().workspaceResourceId(); - } - - /** - * Set the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @param workspaceResourceId the workspaceResourceId value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withWorkspaceResourceId(Object workspaceResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withWorkspaceResourceId(workspaceResourceId); - return this; - } - - /** - * Get the existingClusterId property: The id of an existing interactive cluster that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - * - * @return the existingClusterId value. - */ - public Object existingClusterId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().existingClusterId(); - } - - /** - * Set the existingClusterId property: The id of an existing interactive cluster that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - * - * @param existingClusterId the existingClusterId value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withExistingClusterId(Object existingClusterId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withExistingClusterId(existingClusterId); - return this; - } - - /** - * Get the instancePoolId property: The id of an existing instance pool that will be used for all runs of this - * activity. Type: string (or Expression with resultType string). - * - * @return the instancePoolId value. - */ - public Object instancePoolId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().instancePoolId(); - } - - /** - * Set the instancePoolId property: The id of an existing instance pool that will be used for all runs of this - * activity. Type: string (or Expression with resultType string). - * - * @param instancePoolId the instancePoolId value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withInstancePoolId(Object instancePoolId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withInstancePoolId(instancePoolId); - return this; - } - - /** - * Get the newClusterVersion property: If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run of this activity. Required if - * instancePoolId is specified. Type: string (or Expression with resultType string). - * - * @return the newClusterVersion value. - */ - public Object newClusterVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterVersion(); - } - - /** - * Set the newClusterVersion property: If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run of this activity. Required if - * instancePoolId is specified. Type: string (or Expression with resultType string). - * - * @param newClusterVersion the newClusterVersion value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterVersion(Object newClusterVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterVersion(newClusterVersion); - return this; - } - - /** - * Get the newClusterNumOfWorker property: If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new job clusters, this a string-formatted - * Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, - * this is a string-formatted Int32, and can only specify a fixed number of worker nodes, such as '2'. Required if - * newClusterVersion is specified. Type: string (or Expression with resultType string). - * - * @return the newClusterNumOfWorker value. - */ - public Object newClusterNumOfWorker() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterNumOfWorker(); - } - - /** - * Set the newClusterNumOfWorker property: If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new job clusters, this a string-formatted - * Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, - * this is a string-formatted Int32, and can only specify a fixed number of worker nodes, such as '2'. Required if - * newClusterVersion is specified. Type: string (or Expression with resultType string). - * - * @param newClusterNumOfWorker the newClusterNumOfWorker value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterNumOfWorker(Object newClusterNumOfWorker) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterNumOfWorker(newClusterNumOfWorker); - return this; - } - - /** - * Get the newClusterNodeType property: The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is specified, this property - * is ignored. Type: string (or Expression with resultType string). - * - * @return the newClusterNodeType value. - */ - public Object newClusterNodeType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterNodeType(); - } - - /** - * Set the newClusterNodeType property: The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is specified, this property - * is ignored. Type: string (or Expression with resultType string). - * - * @param newClusterNodeType the newClusterNodeType value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterNodeType(Object newClusterNodeType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterNodeType(newClusterNodeType); - return this; - } - - /** - * Get the newClusterSparkConf property: A set of optional, user-specified Spark configuration key-value pairs. - * - * @return the newClusterSparkConf value. - */ - public Map newClusterSparkConf() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterSparkConf(); - } - - /** - * Set the newClusterSparkConf property: A set of optional, user-specified Spark configuration key-value pairs. - * - * @param newClusterSparkConf the newClusterSparkConf value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterSparkConf(Map newClusterSparkConf) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterSparkConf(newClusterSparkConf); - return this; - } - - /** - * Get the newClusterSparkEnvVars property: A set of optional, user-specified Spark environment variables key-value - * pairs. - * - * @return the newClusterSparkEnvVars value. - */ - public Map newClusterSparkEnvVars() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterSparkEnvVars(); - } - - /** - * Set the newClusterSparkEnvVars property: A set of optional, user-specified Spark environment variables key-value - * pairs. - * - * @param newClusterSparkEnvVars the newClusterSparkEnvVars value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterSparkEnvVars(Map newClusterSparkEnvVars) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterSparkEnvVars(newClusterSparkEnvVars); - return this; - } - - /** - * Get the newClusterCustomTags property: Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - * - * @return the newClusterCustomTags value. - */ - public Map newClusterCustomTags() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterCustomTags(); - } - - /** - * Set the newClusterCustomTags property: Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - * - * @param newClusterCustomTags the newClusterCustomTags value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterCustomTags(Map newClusterCustomTags) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterCustomTags(newClusterCustomTags); - return this; - } - - /** - * Get the newClusterLogDestination property: Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - * - * @return the newClusterLogDestination value. - */ - public Object newClusterLogDestination() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterLogDestination(); - } - - /** - * Set the newClusterLogDestination property: Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - * - * @param newClusterLogDestination the newClusterLogDestination value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterLogDestination(Object newClusterLogDestination) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterLogDestination(newClusterLogDestination); - return this; - } - - /** - * Get the newClusterDriverNodeType property: The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with resultType string). - * - * @return the newClusterDriverNodeType value. - */ - public Object newClusterDriverNodeType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterDriverNodeType(); - } - - /** - * Set the newClusterDriverNodeType property: The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with resultType string). - * - * @param newClusterDriverNodeType the newClusterDriverNodeType value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterDriverNodeType(Object newClusterDriverNodeType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterDriverNodeType(newClusterDriverNodeType); - return this; - } - - /** - * Get the newClusterInitScripts property: User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - * - * @return the newClusterInitScripts value. - */ - public Object newClusterInitScripts() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterInitScripts(); - } - - /** - * Set the newClusterInitScripts property: User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - * - * @param newClusterInitScripts the newClusterInitScripts value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterInitScripts(Object newClusterInitScripts) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterInitScripts(newClusterInitScripts); - return this; - } - - /** - * Get the newClusterEnableElasticDisk property: Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks (elastic disks are always enabled). Type: - * boolean (or Expression with resultType boolean). - * - * @return the newClusterEnableElasticDisk value. - */ - public Object newClusterEnableElasticDisk() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterEnableElasticDisk(); - } - - /** - * Set the newClusterEnableElasticDisk property: Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks (elastic disks are always enabled). Type: - * boolean (or Expression with resultType boolean). - * - * @param newClusterEnableElasticDisk the newClusterEnableElasticDisk value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withNewClusterEnableElasticDisk(Object newClusterEnableElasticDisk) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterEnableElasticDisk(newClusterEnableElasticDisk); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the policyId property: The policy id for limiting the ability to configure clusters based on a user defined - * set of rules. Type: string (or Expression with resultType string). - * - * @return the policyId value. - */ - public Object policyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().policyId(); - } - - /** - * Set the policyId property: The policy id for limiting the ability to configure clusters based on a user defined - * set of rules. Type: string (or Expression with resultType string). - * - * @param policyId the policyId value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withPolicyId(Object policyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPolicyId(policyId); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDatabricksLinkedService object itself. - */ - public AzureDatabricksLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDatabricksLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureDatabricksLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java deleted file mode 100644 index 172d70dd24680..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java +++ /dev/null @@ -1,324 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFileStorageLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure File Storage linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureFileStorage") -@Fluent -public final class AzureFileStorageLinkedService extends LinkedService { - /* - * Azure File Storage linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureFileStorageLinkedServiceTypeProperties innerTypeProperties = - new AzureFileStorageLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure File Storage linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureFileStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @return the userId value. - */ - public Object userId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().userId(); - } - - /** - * Set the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @param userId the userId value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withUserId(Object userId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUserId(userId); - return this; - } - - /** - * Get the password property: Password to logon the server. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to logon the server. - * - * @param password the password value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure File resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); - } - - /** - * Set the sasUri property: SAS URI of the Azure File resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); - return this; - } - - /** - * Get the fileShare property: The azure file share name. It is required when auth with accountKey/sasToken. Type: - * string (or Expression with resultType string). - * - * @return the fileShare value. - */ - public Object fileShare() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileShare(); - } - - /** - * Set the fileShare property: The azure file share name. It is required when auth with accountKey/sasToken. Type: - * string (or Expression with resultType string). - * - * @param fileShare the fileShare value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withFileShare(Object fileShare) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFileShare(fileShare); - return this; - } - - /** - * Get the snapshot property: The azure file share snapshot version. Type: string (or Expression with resultType - * string). - * - * @return the snapshot value. - */ - public Object snapshot() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().snapshot(); - } - - /** - * Set the snapshot property: The azure file share snapshot version. Type: string (or Expression with resultType - * string). - * - * @param snapshot the snapshot value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withSnapshot(Object snapshot) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSnapshot(snapshot); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureFileStorageLinkedService object itself. - */ - public AzureFileStorageLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureFileStorageLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureFileStorageLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLocation.java deleted file mode 100644 index 0f4dffc6aede2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLocation.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of file server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureFileStorageLocation") -@Fluent -public final class AzureFileStorageLocation extends DatasetLocation { - /** {@inheritDoc} */ - @Override - public AzureFileStorageLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageReadSettings.java deleted file mode 100644 index 1c0e4ee08ffde..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageReadSettings.java +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure File Storage read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureFileStorageReadSettings") -@Fluent -public final class AzureFileStorageReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Azure File Storage wildcardFolderPath. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Azure File Storage wildcardFileName. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * The prefix filter for the Azure File name starting from root path. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Azure File Storage wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Azure File Storage wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Azure File Storage wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Azure File Storage wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the prefix property: The prefix filter for the Azure File name starting from root path. Type: string (or - * Expression with resultType string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the Azure File name starting from root path. Type: string (or - * Expression with resultType string). - * - * @param prefix the prefix value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AzureFileStorageReadSettings object itself. - */ - public AzureFileStorageReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageWriteSettings.java deleted file mode 100644 index d62b2b6618717..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageWriteSettings.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure File Storage write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureFileStorageWriteSettings") -@Fluent -public final class AzureFileStorageWriteSettings extends StoreWriteSettings { - /** {@inheritDoc} */ - @Override - public AzureFileStorageWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageWriteSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFileStorageWriteSettings withCopyBehavior(Object copyBehavior) { - super.withCopyBehavior(copyBehavior); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java deleted file mode 100644 index 5481b885c72b7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Azure Function activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureFunctionActivity") -@Fluent -public final class AzureFunctionActivity extends ExecutionActivity { - /* - * Azure Function activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureFunctionActivityTypeProperties innerTypeProperties = new AzureFunctionActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Function activity properties. - * - * @return the innerTypeProperties value. - */ - private AzureFunctionActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public AzureFunctionActivityMethod method() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().method(); - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the AzureFunctionActivity object itself. - */ - public AzureFunctionActivity withMethod(AzureFunctionActivityMethod method) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withMethod(method); - return this; - } - - /** - * Get the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or - * Expression with resultType string). - * - * @return the functionName value. - */ - public Object functionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().functionName(); - } - - /** - * Set the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or - * Expression with resultType string). - * - * @param functionName the functionName value to set. - * @return the AzureFunctionActivity object itself. - */ - public AzureFunctionActivity withFunctionName(Object functionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withFunctionName(functionName); - return this; - } - - /** - * Get the headers property: 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.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); - } - - /** - * Set the headers property: 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 AzureFunctionActivity object itself. - */ - public AzureFunctionActivity withHeaders(Object headers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withHeaders(headers); - return this; - } - - /** - * Get the body property: 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.innerTypeProperties() == null ? null : this.innerTypeProperties().body(); - } - - /** - * Set the body property: 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 AzureFunctionActivity object itself. - */ - public AzureFunctionActivity withBody(Object body) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withBody(body); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureFunctionActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivityMethod.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivityMethod.java deleted file mode 100644 index 21a97b32f9b38..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivityMethod.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for AzureFunctionActivityMethod. */ -public final class AzureFunctionActivityMethod extends ExpandableStringEnum { - /** Static value GET for AzureFunctionActivityMethod. */ - public static final AzureFunctionActivityMethod GET = fromString("GET"); - - /** Static value POST for AzureFunctionActivityMethod. */ - public static final AzureFunctionActivityMethod POST = fromString("POST"); - - /** Static value PUT for AzureFunctionActivityMethod. */ - public static final AzureFunctionActivityMethod PUT = fromString("PUT"); - - /** Static value DELETE for AzureFunctionActivityMethod. */ - public static final AzureFunctionActivityMethod DELETE = fromString("DELETE"); - - /** Static value OPTIONS for AzureFunctionActivityMethod. */ - public static final AzureFunctionActivityMethod OPTIONS = fromString("OPTIONS"); - - /** Static value HEAD for AzureFunctionActivityMethod. */ - public static final AzureFunctionActivityMethod HEAD = fromString("HEAD"); - - /** Static value TRACE for AzureFunctionActivityMethod. */ - public static final AzureFunctionActivityMethod TRACE = fromString("TRACE"); - - /** - * Creates or finds a AzureFunctionActivityMethod from its string representation. - * - * @param name a name to look for. - * @return the corresponding AzureFunctionActivityMethod. - */ - @JsonCreator - public static AzureFunctionActivityMethod fromString(String name) { - return fromString(name, AzureFunctionActivityMethod.class); - } - - /** @return known AzureFunctionActivityMethod values. */ - public static Collection values() { - return values(AzureFunctionActivityMethod.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java deleted file mode 100644 index 0210999126585..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Function linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureFunction") -@Fluent -public final class AzureFunctionLinkedService extends LinkedService { - /* - * Azure Function linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureFunctionLinkedServiceTypeProperties innerTypeProperties = - new AzureFunctionLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Function linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureFunctionLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format - * https://<accountName>.azurewebsites.net. - * - * @return the functionAppUrl value. - */ - public Object functionAppUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().functionAppUrl(); - } - - /** - * Set the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format - * https://<accountName>.azurewebsites.net. - * - * @param functionAppUrl the functionAppUrl value to set. - * @return the AzureFunctionLinkedService object itself. - */ - public AzureFunctionLinkedService withFunctionAppUrl(Object functionAppUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFunctionAppUrl(functionAppUrl); - return this; - } - - /** - * Get the functionKey property: Function or Host key for Azure Function App. - * - * @return the functionKey value. - */ - public SecretBase functionKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().functionKey(); - } - - /** - * Set the functionKey property: Function or Host key for Azure Function App. - * - * @param functionKey the functionKey value to set. - * @return the AzureFunctionLinkedService object itself. - */ - public AzureFunctionLinkedService withFunctionKey(SecretBase functionKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFunctionKey(functionKey); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureFunctionLinkedService object itself. - */ - public AzureFunctionLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureFunctionLinkedService object itself. - */ - public AzureFunctionLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Get the resourceId property: Allowed token audiences for azure function. - * - * @return the resourceId value. - */ - public Object resourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceId(); - } - - /** - * Set the resourceId property: Allowed token audiences for azure function. - * - * @param resourceId the resourceId value to set. - * @return the AzureFunctionLinkedService object itself. - */ - public AzureFunctionLinkedService withResourceId(Object resourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceId(resourceId); - return this; - } - - /** - * Get the authentication property: Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); - } - - /** - * Set the authentication property: Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureFunctionLinkedService object itself. - */ - public AzureFunctionLinkedService withAuthentication(Object authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureFunctionLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java deleted file mode 100644 index 5af675558f884..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureKeyVaultLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Key Vault linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureKeyVault") -@Fluent -public final class AzureKeyVaultLinkedService extends LinkedService { - /* - * Azure Key Vault linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureKeyVaultLinkedServiceTypeProperties innerTypeProperties = - new AzureKeyVaultLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Key Vault linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureKeyVaultLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the baseUrl property: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string - * (or Expression with resultType string). - * - * @return the baseUrl value. - */ - public Object baseUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().baseUrl(); - } - - /** - * Set the baseUrl property: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string - * (or Expression with resultType string). - * - * @param baseUrl the baseUrl value to set. - * @return the AzureKeyVaultLinkedService object itself. - */ - public AzureKeyVaultLinkedService withBaseUrl(Object baseUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureKeyVaultLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withBaseUrl(baseUrl); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureKeyVaultLinkedService object itself. - */ - public AzureKeyVaultLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureKeyVaultLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureKeyVaultLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureKeyVaultLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultSecretReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultSecretReference.java deleted file mode 100644 index 748f7d94754b5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultSecretReference.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Azure Key Vault secret reference. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureKeyVaultSecret") -@Fluent -public final class AzureKeyVaultSecretReference extends SecretBase { - /* - * The Azure Key Vault linked service reference. - */ - @JsonProperty(value = "store", required = true) - private LinkedServiceReference store; - - /* - * The name of the secret in Azure Key Vault. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "secretName", required = true) - private Object secretName; - - /* - * The version of the secret in Azure Key Vault. The default value is the - * latest version of the secret. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "secretVersion") - private Object secretVersion; - - /** - * Get the store property: The Azure Key Vault linked service reference. - * - * @return the store value. - */ - public LinkedServiceReference store() { - return this.store; - } - - /** - * Set the store property: The Azure Key Vault linked service reference. - * - * @param store the store value to set. - * @return the AzureKeyVaultSecretReference object itself. - */ - public AzureKeyVaultSecretReference withStore(LinkedServiceReference store) { - this.store = store; - return this; - } - - /** - * Get the secretName property: The name of the secret in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @return the secretName value. - */ - public Object secretName() { - return this.secretName; - } - - /** - * Set the secretName property: The name of the secret in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @param secretName the secretName value to set. - * @return the AzureKeyVaultSecretReference object itself. - */ - public AzureKeyVaultSecretReference withSecretName(Object secretName) { - this.secretName = secretName; - return this; - } - - /** - * Get the secretVersion property: The version of the secret in Azure Key Vault. The default value is the latest - * version of the secret. Type: string (or Expression with resultType string). - * - * @return the secretVersion value. - */ - public Object secretVersion() { - return this.secretVersion; - } - - /** - * Set the secretVersion property: The version of the secret in Azure Key Vault. The default value is the latest - * version of the secret. Type: string (or Expression with resultType string). - * - * @param secretVersion the secretVersion value to set. - * @return the AzureKeyVaultSecretReference object itself. - */ - public AzureKeyVaultSecretReference withSecretVersion(Object secretVersion) { - this.secretVersion = secretVersion; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (store() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property store in model AzureKeyVaultSecretReference")); - } else { - store().validate(); - } - if (secretName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property secretName in model AzureKeyVaultSecretReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureKeyVaultSecretReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java deleted file mode 100644 index bf2bbb23ee6bd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLBatchExecutionActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure ML Batch Execution activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMLBatchExecution") -@Fluent -public final class AzureMLBatchExecutionActivity extends ExecutionActivity { - /* - * Azure ML Batch Execution activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLBatchExecutionActivityTypeProperties innerTypeProperties = - new AzureMLBatchExecutionActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure ML Batch Execution activity properties. - * - * @return the innerTypeProperties value. - */ - private AzureMLBatchExecutionActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the globalParameters property: Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. - * Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be - * passed in the GlobalParameters property of the Azure ML batch execution request. - * - * @return the globalParameters value. - */ - public Map globalParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().globalParameters(); - } - - /** - * Set the globalParameters property: Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. - * Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be - * passed in the GlobalParameters property of the Azure ML batch execution request. - * - * @param globalParameters the globalParameters value to set. - * @return the AzureMLBatchExecutionActivity object itself. - */ - public AzureMLBatchExecutionActivity withGlobalParameters(Map globalParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLBatchExecutionActivityTypeProperties(); - } - this.innerTypeProperties().withGlobalParameters(globalParameters); - return this; - } - - /** - * Get the webServiceOutputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs - * to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the - * WebServiceOutputs property of the Azure ML batch execution request. - * - * @return the webServiceOutputs value. - */ - public Map webServiceOutputs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().webServiceOutputs(); - } - - /** - * Set the webServiceOutputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs - * to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the - * WebServiceOutputs property of the Azure ML batch execution request. - * - * @param webServiceOutputs the webServiceOutputs value to set. - * @return the AzureMLBatchExecutionActivity object itself. - */ - public AzureMLBatchExecutionActivity withWebServiceOutputs(Map webServiceOutputs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLBatchExecutionActivityTypeProperties(); - } - this.innerTypeProperties().withWebServiceOutputs(webServiceOutputs); - return this; - } - - /** - * Get the webServiceInputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs - * to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the - * WebServiceInputs property of the Azure ML batch execution request. - * - * @return the webServiceInputs value. - */ - public Map webServiceInputs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().webServiceInputs(); - } - - /** - * Set the webServiceInputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs - * to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the - * WebServiceInputs property of the Azure ML batch execution request. - * - * @param webServiceInputs the webServiceInputs value to set. - * @return the AzureMLBatchExecutionActivity object itself. - */ - public AzureMLBatchExecutionActivity withWebServiceInputs(Map webServiceInputs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLBatchExecutionActivityTypeProperties(); - } - this.innerTypeProperties().withWebServiceInputs(webServiceInputs); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLBatchExecutionActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLBatchExecutionActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java deleted file mode 100644 index deaa2438b0add..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLExecutePipelineActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Azure ML Execute Pipeline activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMLExecutePipeline") -@Fluent -public final class AzureMLExecutePipelineActivity extends ExecutionActivity { - /* - * Azure ML Execute Pipeline activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLExecutePipelineActivityTypeProperties innerTypeProperties = - new AzureMLExecutePipelineActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure ML Execute Pipeline activity properties. - * - * @return the innerTypeProperties value. - */ - private AzureMLExecutePipelineActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the mlPipelineId property: ID of the published Azure ML pipeline. Type: string (or Expression with resultType - * string). - * - * @return the mlPipelineId value. - */ - public Object mlPipelineId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlPipelineId(); - } - - /** - * Set the mlPipelineId property: ID of the published Azure ML pipeline. Type: string (or Expression with resultType - * string). - * - * @param mlPipelineId the mlPipelineId value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withMlPipelineId(Object mlPipelineId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlPipelineId(mlPipelineId); - return this; - } - - /** - * Get the mlPipelineEndpointId property: ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - * - * @return the mlPipelineEndpointId value. - */ - public Object mlPipelineEndpointId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlPipelineEndpointId(); - } - - /** - * Set the mlPipelineEndpointId property: ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - * - * @param mlPipelineEndpointId the mlPipelineEndpointId value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withMlPipelineEndpointId(Object mlPipelineEndpointId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlPipelineEndpointId(mlPipelineEndpointId); - return this; - } - - /** - * Get the version property: Version of the published Azure ML pipeline endpoint. Type: string (or Expression with - * resultType string). - * - * @return the version value. - */ - public Object version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); - } - - /** - * Set the version property: Version of the published Azure ML pipeline endpoint. Type: string (or Expression with - * resultType string). - * - * @param version the version value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withVersion(Object version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withVersion(version); - return this; - } - - /** - * Get the experimentName property: Run history experiment name of the pipeline run. This information will be passed - * in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with - * resultType string). - * - * @return the experimentName value. - */ - public Object experimentName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().experimentName(); - } - - /** - * Set the experimentName property: Run history experiment name of the pipeline run. This information will be passed - * in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with - * resultType string). - * - * @param experimentName the experimentName value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withExperimentName(Object experimentName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withExperimentName(experimentName); - return this; - } - - /** - * Get the mlPipelineParameters property: Key,Value pairs to be passed to the published Azure ML pipeline endpoint. - * Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or - * Expression with resultType object). - * - * @return the mlPipelineParameters value. - */ - public Object mlPipelineParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlPipelineParameters(); - } - - /** - * Set the mlPipelineParameters property: Key,Value pairs to be passed to the published Azure ML pipeline endpoint. - * Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or - * Expression with resultType object). - * - * @param mlPipelineParameters the mlPipelineParameters value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withMlPipelineParameters(Object mlPipelineParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlPipelineParameters(mlPipelineParameters); - return this; - } - - /** - * Get the dataPathAssignments property: Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: - * object with key value pairs (or Expression with resultType object). - * - * @return the dataPathAssignments value. - */ - public Object dataPathAssignments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataPathAssignments(); - } - - /** - * Set the dataPathAssignments property: Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: - * object with key value pairs (or Expression with resultType object). - * - * @param dataPathAssignments the dataPathAssignments value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withDataPathAssignments(Object dataPathAssignments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withDataPathAssignments(dataPathAssignments); - return this; - } - - /** - * Get the mlParentRunId property: The parent Azure ML Service pipeline run id. This information will be passed in - * the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType - * string). - * - * @return the mlParentRunId value. - */ - public Object mlParentRunId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlParentRunId(); - } - - /** - * Set the mlParentRunId property: The parent Azure ML Service pipeline run id. This information will be passed in - * the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType - * string). - * - * @param mlParentRunId the mlParentRunId value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withMlParentRunId(Object mlParentRunId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlParentRunId(mlParentRunId); - return this; - } - - /** - * Get the continueOnStepFailure property: Whether to continue execution of other steps in the PipelineRun if a step - * fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution - * request. Type: boolean (or Expression with resultType boolean). - * - * @return the continueOnStepFailure value. - */ - public Object continueOnStepFailure() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().continueOnStepFailure(); - } - - /** - * Set the continueOnStepFailure property: Whether to continue execution of other steps in the PipelineRun if a step - * fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution - * request. Type: boolean (or Expression with resultType boolean). - * - * @param continueOnStepFailure the continueOnStepFailure value to set. - * @return the AzureMLExecutePipelineActivity object itself. - */ - public AzureMLExecutePipelineActivity withContinueOnStepFailure(Object continueOnStepFailure) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withContinueOnStepFailure(continueOnStepFailure); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLExecutePipelineActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLExecutePipelineActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java deleted file mode 100644 index ecb4acb8fd5bf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java +++ /dev/null @@ -1,281 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure ML Studio Web Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureML") -@Fluent -public final class AzureMLLinkedService extends LinkedService { - /* - * Azure ML Studio Web Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLLinkedServiceTypeProperties innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure ML Studio Web Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureMLLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the mlEndpoint property: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: - * string (or Expression with resultType string). - * - * @return the mlEndpoint value. - */ - public Object mlEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlEndpoint(); - } - - /** - * Set the mlEndpoint property: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: - * string (or Expression with resultType string). - * - * @param mlEndpoint the mlEndpoint value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withMlEndpoint(Object mlEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMlEndpoint(mlEndpoint); - return this; - } - - /** - * Get the apiKey property: The API key for accessing the Azure ML model endpoint. - * - * @return the apiKey value. - */ - public SecretBase apiKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiKey(); - } - - /** - * Set the apiKey property: The API key for accessing the Azure ML model endpoint. - * - * @param apiKey the apiKey value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withApiKey(SecretBase apiKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiKey(apiKey); - return this; - } - - /** - * Get the updateResourceEndpoint property: The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - * - * @return the updateResourceEndpoint value. - */ - public Object updateResourceEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().updateResourceEndpoint(); - } - - /** - * Set the updateResourceEndpoint property: The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - * - * @param updateResourceEndpoint the updateResourceEndpoint value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withUpdateResourceEndpoint(Object updateResourceEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUpdateResourceEndpoint(updateResourceEndpoint); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the authentication property: Type of authentication (Required to specify MSI) used to connect to AzureML. - * Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); - } - - /** - * Set the authentication property: Type of authentication (Required to specify MSI) used to connect to AzureML. - * Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureMLLinkedService object itself. - */ - public AzureMLLinkedService withAuthentication(Object authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java deleted file mode 100644 index 1cd7e0f0e6b89..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLServiceLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure ML Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMLService") -@Fluent -public final class AzureMLServiceLinkedService extends LinkedService { - /* - * Azure ML Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLServiceLinkedServiceTypeProperties innerTypeProperties = - new AzureMLServiceLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure ML Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureMLServiceLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the subscriptionId property: Azure ML Service workspace subscription ID. Type: string (or Expression with - * resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subscriptionId(); - } - - /** - * Set the subscriptionId property: Azure ML Service workspace subscription ID. Type: string (or Expression with - * resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureMLServiceLinkedService object itself. - */ - public AzureMLServiceLinkedService withSubscriptionId(Object subscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubscriptionId(subscriptionId); - return this; - } - - /** - * Get the resourceGroupName property: Azure ML Service workspace resource group name. Type: string (or Expression - * with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceGroupName(); - } - - /** - * Set the resourceGroupName property: Azure ML Service workspace resource group name. Type: string (or Expression - * with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureMLServiceLinkedService object itself. - */ - public AzureMLServiceLinkedService withResourceGroupName(Object resourceGroupName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceGroupName(resourceGroupName); - return this; - } - - /** - * Get the mlWorkspaceName property: Azure ML Service workspace name. Type: string (or Expression with resultType - * string). - * - * @return the mlWorkspaceName value. - */ - public Object mlWorkspaceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlWorkspaceName(); - } - - /** - * Set the mlWorkspaceName property: Azure ML Service workspace name. Type: string (or Expression with resultType - * string). - * - * @param mlWorkspaceName the mlWorkspaceName value to set. - * @return the AzureMLServiceLinkedService object itself. - */ - public AzureMLServiceLinkedService withMlWorkspaceName(Object mlWorkspaceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMlWorkspaceName(mlWorkspaceName); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against the endpoint of - * a published Azure ML Service pipeline. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against the endpoint of - * a published Azure ML Service pipeline. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureMLServiceLinkedService object itself. - */ - public AzureMLServiceLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against the endpoint - * of a published Azure ML Service pipeline. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against the endpoint - * of a published Azure ML Service pipeline. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureMLServiceLinkedService object itself. - */ - public AzureMLServiceLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureMLServiceLinkedService object itself. - */ - public AzureMLServiceLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMLServiceLinkedService object itself. - */ - public AzureMLServiceLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLServiceLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLServiceLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java deleted file mode 100644 index 7663d73f58449..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLUpdateResourceActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Azure ML Update Resource management activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMLUpdateResource") -@Fluent -public final class AzureMLUpdateResourceActivity extends ExecutionActivity { - /* - * Azure ML Update Resource management activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLUpdateResourceActivityTypeProperties innerTypeProperties = - new AzureMLUpdateResourceActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure ML Update Resource management activity properties. - * - * @return the innerTypeProperties value. - */ - private AzureMLUpdateResourceActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated. - * Type: string (or Expression with resultType string). - * - * @return the trainedModelName value. - */ - public Object trainedModelName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trainedModelName(); - } - - /** - * Set the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated. - * Type: string (or Expression with resultType string). - * - * @param trainedModelName the trainedModelName value to set. - * @return the AzureMLUpdateResourceActivity object itself. - */ - public AzureMLUpdateResourceActivity withTrainedModelName(Object trainedModelName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLUpdateResourceActivityTypeProperties(); - } - this.innerTypeProperties().withTrainedModelName(trainedModelName); - return this; - } - - /** - * Get the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file - * that will be uploaded by the update operation. - * - * @return the trainedModelLinkedServiceName value. - */ - public LinkedServiceReference trainedModelLinkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trainedModelLinkedServiceName(); - } - - /** - * Set the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file - * that will be uploaded by the update operation. - * - * @param trainedModelLinkedServiceName the trainedModelLinkedServiceName value to set. - * @return the AzureMLUpdateResourceActivity object itself. - */ - public AzureMLUpdateResourceActivity withTrainedModelLinkedServiceName( - LinkedServiceReference trainedModelLinkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLUpdateResourceActivityTypeProperties(); - } - this.innerTypeProperties().withTrainedModelLinkedServiceName(trainedModelLinkedServiceName); - return this; - } - - /** - * Get the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType - * string). - * - * @return the trainedModelFilePath value. - */ - public Object trainedModelFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trainedModelFilePath(); - } - - /** - * Set the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType - * string). - * - * @param trainedModelFilePath the trainedModelFilePath value to set. - * @return the AzureMLUpdateResourceActivity object itself. - */ - public AzureMLUpdateResourceActivity withTrainedModelFilePath(Object trainedModelFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLUpdateResourceActivityTypeProperties(); - } - this.innerTypeProperties().withTrainedModelFilePath(trainedModelFilePath); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLUpdateResourceActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLUpdateResourceActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLWebServiceFile.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLWebServiceFile.java deleted file mode 100644 index 52b48b016478d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLWebServiceFile.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML WebService Input/Output file. */ -@Fluent -public final class AzureMLWebServiceFile { - /* - * The relative file path, including container name, in the Azure Blob - * Storage specified by the LinkedService. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "filePath", required = true) - private Object filePath; - - /* - * Reference to an Azure Storage LinkedService, where Azure ML WebService - * Input/Output file located. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /** - * Get the filePath property: The relative file path, including container name, in the Azure Blob Storage specified - * by the LinkedService. Type: string (or Expression with resultType string). - * - * @return the filePath value. - */ - public Object filePath() { - return this.filePath; - } - - /** - * Set the filePath property: The relative file path, including container name, in the Azure Blob Storage specified - * by the LinkedService. Type: string (or Expression with resultType string). - * - * @param filePath the filePath value to set. - * @return the AzureMLWebServiceFile object itself. - */ - public AzureMLWebServiceFile withFilePath(Object filePath) { - this.filePath = filePath; - return this; - } - - /** - * Get the linkedServiceName property: Reference to an Azure Storage LinkedService, where Azure ML WebService - * Input/Output file located. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Reference to an Azure Storage LinkedService, where Azure ML WebService - * Input/Output file located. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the AzureMLWebServiceFile object itself. - */ - public AzureMLWebServiceFile withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (filePath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property filePath in model AzureMLWebServiceFile")); - } - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model AzureMLWebServiceFile")); - } else { - linkedServiceName().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMLWebServiceFile.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java deleted file mode 100644 index 1e80460c419f1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMariaDBLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Database for MariaDB linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMariaDB") -@Fluent -public final class AzureMariaDBLinkedService extends LinkedService { - /* - * Azure Database for MariaDB linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMariaDBLinkedServiceTypeProperties innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Database for MariaDB linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureMariaDBLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureMariaDBLinkedService object itself. - */ - public AzureMariaDBLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the AzureMariaDBLinkedService object itself. - */ - public AzureMariaDBLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMariaDBLinkedService object itself. - */ - public AzureMariaDBLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMariaDBLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMariaDBLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBSource.java deleted file mode 100644 index 1f3f15e761e8a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure MariaDB source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMariaDBSource") -@Fluent -public final class AzureMariaDBSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the AzureMariaDBSource object itself. - */ - public AzureMariaDBSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java deleted file mode 100644 index 1a06e4c74d49f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure Database for MariaDB dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMariaDBTable") -@Fluent -public final class AzureMariaDBTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the AzureMariaDBTableDataset object itself. - */ - public AzureMariaDBTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java deleted file mode 100644 index 5e058e7500757..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure MySQL database linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMySql") -@Fluent -public final class AzureMySqlLinkedService extends LinkedService { - /* - * Azure MySQL database linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMySqlLinkedServiceTypeProperties innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure MySQL database linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureMySqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureMySqlLinkedService object itself. - */ - public AzureMySqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureMySqlLinkedService object itself. - */ - public AzureMySqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMySqlLinkedService object itself. - */ - public AzureMySqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMySqlLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMySqlLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSink.java deleted file mode 100644 index 27eddb7b299ee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSink.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure MySql sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMySqlSink") -@Fluent -public final class AzureMySqlSink extends CopySink { - /* - * A query to execute before starting the copy. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /** - * Get the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the AzureMySqlSink object itself. - */ - public AzureMySqlSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSource.java deleted file mode 100644 index 8fb94f33258f6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSource.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure MySQL source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMySqlSource") -@Fluent -public final class AzureMySqlSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the AzureMySqlSource object itself. - */ - public AzureMySqlSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java deleted file mode 100644 index c07f40c56bc78..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure MySQL database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureMySqlTable") -@Fluent -public final class AzureMySqlTableDataset extends Dataset { - /* - * Azure MySQL database dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMySqlTableDatasetTypeProperties innerTypeProperties = new AzureMySqlTableDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure MySQL database dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureMySqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the AzureMySqlTableDataset object itself. - */ - public AzureMySqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AzureMySqlTableDataset object itself. - */ - public AzureMySqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMySqlTableDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureMySqlTableDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java deleted file mode 100644 index 4f4cafb8a100a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure PostgreSQL linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzurePostgreSql") -@Fluent -public final class AzurePostgreSqlLinkedService extends LinkedService { - /* - * Azure PostgreSQL linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzurePostgreSqlLinkedServiceTypeProperties innerTypeProperties = - new AzurePostgreSqlLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure PostgreSQL linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzurePostgreSqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzurePostgreSqlLinkedService object itself. - */ - public AzurePostgreSqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzurePostgreSqlLinkedService object itself. - */ - public AzurePostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzurePostgreSqlLinkedService object itself. - */ - public AzurePostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzurePostgreSqlLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzurePostgreSqlLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSink.java deleted file mode 100644 index 28440d838cdab..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSink.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure PostgreSQL sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzurePostgreSqlSink") -@Fluent -public final class AzurePostgreSqlSink extends CopySink { - /* - * A query to execute before starting the copy. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /** - * Get the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the AzurePostgreSqlSink object itself. - */ - public AzurePostgreSqlSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSource.java deleted file mode 100644 index 0eaf1de495276..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure PostgreSQL source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzurePostgreSqlSource") -@Fluent -public final class AzurePostgreSqlSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the AzurePostgreSqlSource object itself. - */ - public AzurePostgreSqlSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java deleted file mode 100644 index b30f36aac23c3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure PostgreSQL dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzurePostgreSqlTable") -@Fluent -public final class AzurePostgreSqlTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private AzurePostgreSqlTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private AzurePostgreSqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name of the Azure PostgreSQL database which includes both schema and table. - * Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name of the Azure PostgreSQL database which includes both schema and table. - * Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the AzurePostgreSqlTableDataset object itself. - */ - public AzurePostgreSqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzurePostgreSqlTableDataset object itself. - */ - public AzurePostgreSqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzurePostgreSqlTableDataset object itself. - */ - public AzurePostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureQueueSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureQueueSink.java deleted file mode 100644 index 8b4e1c0bc34db..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureQueueSink.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Queue sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureQueueSink") -@Fluent -public final class AzureQueueSink extends CopySink { - /** {@inheritDoc} */ - @Override - public AzureQueueSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureQueueSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureQueueSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureQueueSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureQueueSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureQueueSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java deleted file mode 100644 index c2e0209fa5ca6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSearchIndexDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure Search Index. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSearchIndex") -@Fluent -public final class AzureSearchIndexDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSearchIndexDatasetTypeProperties innerTypeProperties = new AzureSearchIndexDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private AzureSearchIndexDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @return the indexName value. - */ - public Object indexName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().indexName(); - } - - /** - * Set the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @param indexName the indexName value to set. - * @return the AzureSearchIndexDataset object itself. - */ - public AzureSearchIndexDataset withIndexName(Object indexName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchIndexDatasetTypeProperties(); - } - this.innerTypeProperties().withIndexName(indexName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSearchIndexDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSearchIndexDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexSink.java deleted file mode 100644 index d89aa52ec62f4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexSink.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Search Index sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSearchIndexSink") -@Fluent -public final class AzureSearchIndexSink extends CopySink { - /* - * Specify the write behavior when upserting documents into Azure Search - * Index. - */ - @JsonProperty(value = "writeBehavior") - private AzureSearchIndexWriteBehaviorType writeBehavior; - - /** - * Get the writeBehavior property: Specify the write behavior when upserting documents into Azure Search Index. - * - * @return the writeBehavior value. - */ - public AzureSearchIndexWriteBehaviorType writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Specify the write behavior when upserting documents into Azure Search Index. - * - * @param writeBehavior the writeBehavior value to set. - * @return the AzureSearchIndexSink object itself. - */ - public AzureSearchIndexSink withWriteBehavior(AzureSearchIndexWriteBehaviorType writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchIndexSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexWriteBehaviorType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexWriteBehaviorType.java deleted file mode 100644 index bf5d65e0cbf1c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexWriteBehaviorType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for AzureSearchIndexWriteBehaviorType. */ -public final class AzureSearchIndexWriteBehaviorType extends ExpandableStringEnum { - /** Static value Merge for AzureSearchIndexWriteBehaviorType. */ - public static final AzureSearchIndexWriteBehaviorType MERGE = fromString("Merge"); - - /** Static value Upload for AzureSearchIndexWriteBehaviorType. */ - public static final AzureSearchIndexWriteBehaviorType UPLOAD = fromString("Upload"); - - /** - * Creates or finds a AzureSearchIndexWriteBehaviorType from its string representation. - * - * @param name a name to look for. - * @return the corresponding AzureSearchIndexWriteBehaviorType. - */ - @JsonCreator - public static AzureSearchIndexWriteBehaviorType fromString(String name) { - return fromString(name, AzureSearchIndexWriteBehaviorType.class); - } - - /** @return known AzureSearchIndexWriteBehaviorType values. */ - public static Collection values() { - return values(AzureSearchIndexWriteBehaviorType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java deleted file mode 100644 index e45138dae408a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSearchLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Windows Azure Search Service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSearch") -@Fluent -public final class AzureSearchLinkedService extends LinkedService { - /* - * Windows Azure Search Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSearchLinkedServiceTypeProperties innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Windows Azure Search Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureSearchLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: URL for Azure Search service. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: URL for Azure Search service. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the AzureSearchLinkedService object itself. - */ - public AzureSearchLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the key property: Admin Key for Azure Search service. - * - * @return the key value. - */ - public SecretBase key() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().key(); - } - - /** - * Set the key property: Admin Key for Azure Search service. - * - * @param key the key value to set. - * @return the AzureSearchLinkedService object itself. - */ - public AzureSearchLinkedService withKey(SecretBase key) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withKey(key); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSearchLinkedService object itself. - */ - public AzureSearchLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSearchLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSearchLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java deleted file mode 100644 index 3cebc71e1bbef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java +++ /dev/null @@ -1,281 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure SQL Data Warehouse linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlDW") -@Fluent -public final class AzureSqlDWLinkedService extends LinkedService { - /* - * Azure SQL Data Warehouse linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSqlDWLinkedServiceTypeProperties innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure SQL Data Warehouse linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureSqlDWLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlDWLinkedService object itself. - */ - public AzureSqlDWLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSqlDWLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSqlDWLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java deleted file mode 100644 index 42e5017514fec..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure SQL Data Warehouse dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlDWTable") -@Fluent -public final class AzureSqlDWTableDataset extends Dataset { - /* - * Azure SQL Data Warehouse dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AzureSqlDWTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Azure SQL Data Warehouse dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureSqlDWTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlDWTableDataset object itself. - */ - public AzureSqlDWTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzureSqlDWTableDataset object itself. - */ - public AzureSqlDWTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzureSqlDWTableDataset object itself. - */ - public AzureSqlDWTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java deleted file mode 100644 index b9dfe2586d285..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java +++ /dev/null @@ -1,306 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDatabaseLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Microsoft Azure SQL Database linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlDatabase") -@Fluent -public final class AzureSqlDatabaseLinkedService extends LinkedService { - /* - * Azure SQL Database linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSqlDatabaseLinkedServiceTypeProperties innerTypeProperties = - new AzureSqlDatabaseLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure SQL Database linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureSqlDatabaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Database. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Database. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlDatabaseLinkedService object itself. - */ - public AzureSqlDatabaseLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSqlDatabaseLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSqlDatabaseLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java deleted file mode 100644 index 1bf57a83c6c23..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java +++ /dev/null @@ -1,304 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMILinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Azure SQL Managed Instance linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlMI") -@Fluent -public final class AzureSqlMILinkedService extends LinkedService { - /* - * Azure SQL Managed Instance linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSqlMILinkedServiceTypeProperties innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure SQL Managed Instance linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureSqlMILinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withAlwaysEncryptedSettings(SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlMILinkedService object itself. - */ - public AzureSqlMILinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSqlMILinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSqlMILinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java deleted file mode 100644 index 25b114e9e32fb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMITableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure SQL Managed Instance dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlMITable") -@Fluent -public final class AzureSqlMITableDataset extends Dataset { - /* - * Azure SQL Managed Instance dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AzureSqlMITableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Azure SQL Managed Instance dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureSqlMITableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlMITableDataset object itself. - */ - public AzureSqlMITableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMITableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzureSqlMITableDataset object itself. - */ - public AzureSqlMITableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMITableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression - * with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression - * with resultType string). - * - * @param table the table value to set. - * @return the AzureSqlMITableDataset object itself. - */ - public AzureSqlMITableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMITableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java deleted file mode 100644 index 0febab8d81b85..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java +++ /dev/null @@ -1,337 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity Azure SQL sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlSink") -@Fluent -public final class AzureSqlSink extends CopySink { - /* - * SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "sqlWriterStoredProcedureName") - private Object sqlWriterStoredProcedureName; - - /* - * SQL writer table type. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "sqlWriterTableType") - private Object sqlWriterTableType; - - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /* - * SQL stored procedure parameters. - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * The stored procedure parameter name of the table type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "storedProcedureTableTypeParameterName") - private Object storedProcedureTableTypeParameterName; - - /* - * The option to handle sink table, such as autoCreate. For now only - * 'autoCreate' value is supported. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableOption") - private Object tableOption; - - /* - * Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "sqlWriterUseTableLock") - private Object sqlWriterUseTableLock; - - /* - * Write behavior when copying data into Azure SQL. Type: - * SqlWriteBehaviorEnum (or Expression with resultType - * SqlWriteBehaviorEnum) - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /* - * SQL upsert settings. - */ - @JsonProperty(value = "upsertSettings") - private SqlUpsertSettings upsertSettings; - - /** - * Get the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @return the sqlWriterStoredProcedureName value. - */ - public Object sqlWriterStoredProcedureName() { - return this.sqlWriterStoredProcedureName; - } - - /** - * Set the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { - this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; - return this; - } - - /** - * Get the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @return the sqlWriterTableType value. - */ - public Object sqlWriterTableType() { - return this.sqlWriterTableType; - } - - /** - * Set the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @param sqlWriterTableType the sqlWriterTableType value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withSqlWriterTableType(Object sqlWriterTableType) { - this.sqlWriterTableType = sqlWriterTableType; - return this; - } - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** - * Get the storedProcedureParameters property: SQL stored procedure parameters. - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: SQL stored procedure parameters. - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withStoredProcedureParameters(Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @return the storedProcedureTableTypeParameterName value. - */ - public Object storedProcedureTableTypeParameterName() { - return this.storedProcedureTableTypeParameterName; - } - - /** - * Set the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { - this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - return this; - } - - /** - * Get the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @return the tableOption value. - */ - public Object tableOption() { - return this.tableOption; - } - - /** - * Set the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @param tableOption the tableOption value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withTableOption(Object tableOption) { - this.tableOption = tableOption; - return this; - } - - /** - * Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @return the sqlWriterUseTableLock value. - */ - public Object sqlWriterUseTableLock() { - return this.sqlWriterUseTableLock; - } - - /** - * Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @param sqlWriterUseTableLock the sqlWriterUseTableLock value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withSqlWriterUseTableLock(Object sqlWriterUseTableLock) { - this.sqlWriterUseTableLock = sqlWriterUseTableLock; - return this; - } - - /** - * Get the writeBehavior property: Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or - * Expression with resultType SqlWriteBehaviorEnum). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or - * Expression with resultType SqlWriteBehaviorEnum). - * - * @param writeBehavior the writeBehavior value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the upsertSettings property: SQL upsert settings. - * - * @return the upsertSettings value. - */ - public SqlUpsertSettings upsertSettings() { - return this.upsertSettings; - } - - /** - * Set the upsertSettings property: SQL upsert settings. - * - * @param upsertSettings the upsertSettings value to set. - * @return the AzureSqlSink object itself. - */ - public AzureSqlSink withUpsertSettings(SqlUpsertSettings upsertSettings) { - this.upsertSettings = upsertSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (upsertSettings() != null) { - upsertSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java deleted file mode 100644 index eeb523e85e40e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity Azure SQL source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlSource") -@Fluent -public final class AzureSqlSource extends TabularSource { - /* - * SQL reader query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sqlReaderQuery") - private Object sqlReaderQuery; - - /* - * Name of the stored procedure for a SQL Database source. This cannot be - * used at the same time as SqlReaderQuery. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sqlReaderStoredProcedureName") - private Object sqlReaderStoredProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * Which additional types to produce. - */ - @JsonProperty(value = "produceAdditionalTypes") - private Object produceAdditionalTypes; - - /* - * The partition mechanism that will be used for Sql read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Sql source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SqlPartitionSettings partitionSettings; - - /** - * Get the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @return the sqlReaderQuery value. - */ - public Object sqlReaderQuery() { - return this.sqlReaderQuery; - } - - /** - * Set the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @param sqlReaderQuery the sqlReaderQuery value to set. - * @return the AzureSqlSource object itself. - */ - public AzureSqlSource withSqlReaderQuery(Object sqlReaderQuery) { - this.sqlReaderQuery = sqlReaderQuery; - return this; - } - - /** - * Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @return the sqlReaderStoredProcedureName value. - */ - public Object sqlReaderStoredProcedureName() { - return this.sqlReaderStoredProcedureName; - } - - /** - * Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set. - * @return the AzureSqlSource object itself. - */ - public AzureSqlSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { - this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the AzureSqlSource object itself. - */ - public AzureSqlSource withStoredProcedureParameters( - Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the produceAdditionalTypes property: Which additional types to produce. - * - * @return the produceAdditionalTypes value. - */ - public Object produceAdditionalTypes() { - return this.produceAdditionalTypes; - } - - /** - * Set the produceAdditionalTypes property: Which additional types to produce. - * - * @param produceAdditionalTypes the produceAdditionalTypes value to set. - * @return the AzureSqlSource object itself. - */ - public AzureSqlSource withProduceAdditionalTypes(Object produceAdditionalTypes) { - this.produceAdditionalTypes = produceAdditionalTypes; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the AzureSqlSource object itself. - */ - public AzureSqlSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @return the partitionSettings value. - */ - public SqlPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the AzureSqlSource object itself. - */ - public AzureSqlSource withPartitionSettings(SqlPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java deleted file mode 100644 index 4c751c37c5cda..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure SQL Server database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureSqlTable") -@Fluent -public final class AzureSqlTableDataset extends Dataset { - /* - * Azure SQL dataset properties. - */ - @JsonProperty(value = "typeProperties") - private AzureSqlTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Azure SQL dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureSqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlTableDataset object itself. - */ - public AzureSqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the AzureSqlTableDataset object itself. - */ - public AzureSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AzureSqlTableDataset object itself. - */ - public AzureSqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java deleted file mode 100644 index 5f46fa85293c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureStorageLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The storage account linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureStorage") -@Fluent -public final class AzureStorageLinkedService extends LinkedService { - /* - * Azure Storage linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureStorageLinkedServiceTypeProperties innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Storage linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureStorageLinkedService object itself. - */ - public AzureStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureStorageLinkedService object itself. - */ - public AzureStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); - } - - /** - * Set the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureStorageLinkedService object itself. - */ - public AzureStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureStorageLinkedService object itself. - */ - public AzureStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureStorageLinkedService object itself. - */ - public AzureStorageLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureStorageLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureStorageLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java deleted file mode 100644 index 979d133b8f913..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Azure Table storage dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureTable") -@Fluent -public final class AzureTableDataset extends Dataset { - /* - * Azure Table dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureTableDatasetTypeProperties innerTypeProperties = new AzureTableDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Table dataset properties. - * - * @return the innerTypeProperties value. - */ - private AzureTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the AzureTableDataset object itself. - */ - public AzureTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureTableDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureTableDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSink.java deleted file mode 100644 index 1c70d6e85ffbe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSink.java +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Table sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureTableSink") -@Fluent -public final class AzureTableSink extends CopySink { - /* - * Azure Table default partition key value. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "azureTableDefaultPartitionKeyValue") - private Object azureTableDefaultPartitionKeyValue; - - /* - * Azure Table partition key name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "azureTablePartitionKeyName") - private Object azureTablePartitionKeyName; - - /* - * Azure Table row key name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "azureTableRowKeyName") - private Object azureTableRowKeyName; - - /* - * Azure Table insert type. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "azureTableInsertType") - private Object azureTableInsertType; - - /** - * Get the azureTableDefaultPartitionKeyValue property: Azure Table default partition key value. Type: string (or - * Expression with resultType string). - * - * @return the azureTableDefaultPartitionKeyValue value. - */ - public Object azureTableDefaultPartitionKeyValue() { - return this.azureTableDefaultPartitionKeyValue; - } - - /** - * Set the azureTableDefaultPartitionKeyValue property: Azure Table default partition key value. Type: string (or - * Expression with resultType string). - * - * @param azureTableDefaultPartitionKeyValue the azureTableDefaultPartitionKeyValue value to set. - * @return the AzureTableSink object itself. - */ - public AzureTableSink withAzureTableDefaultPartitionKeyValue(Object azureTableDefaultPartitionKeyValue) { - this.azureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue; - return this; - } - - /** - * Get the azureTablePartitionKeyName property: Azure Table partition key name. Type: string (or Expression with - * resultType string). - * - * @return the azureTablePartitionKeyName value. - */ - public Object azureTablePartitionKeyName() { - return this.azureTablePartitionKeyName; - } - - /** - * Set the azureTablePartitionKeyName property: Azure Table partition key name. Type: string (or Expression with - * resultType string). - * - * @param azureTablePartitionKeyName the azureTablePartitionKeyName value to set. - * @return the AzureTableSink object itself. - */ - public AzureTableSink withAzureTablePartitionKeyName(Object azureTablePartitionKeyName) { - this.azureTablePartitionKeyName = azureTablePartitionKeyName; - return this; - } - - /** - * Get the azureTableRowKeyName property: Azure Table row key name. Type: string (or Expression with resultType - * string). - * - * @return the azureTableRowKeyName value. - */ - public Object azureTableRowKeyName() { - return this.azureTableRowKeyName; - } - - /** - * Set the azureTableRowKeyName property: Azure Table row key name. Type: string (or Expression with resultType - * string). - * - * @param azureTableRowKeyName the azureTableRowKeyName value to set. - * @return the AzureTableSink object itself. - */ - public AzureTableSink withAzureTableRowKeyName(Object azureTableRowKeyName) { - this.azureTableRowKeyName = azureTableRowKeyName; - return this; - } - - /** - * Get the azureTableInsertType property: Azure Table insert type. Type: string (or Expression with resultType - * string). - * - * @return the azureTableInsertType value. - */ - public Object azureTableInsertType() { - return this.azureTableInsertType; - } - - /** - * Set the azureTableInsertType property: Azure Table insert type. Type: string (or Expression with resultType - * string). - * - * @param azureTableInsertType the azureTableInsertType value to set. - * @return the AzureTableSink object itself. - */ - public AzureTableSink withAzureTableInsertType(Object azureTableInsertType) { - this.azureTableInsertType = azureTableInsertType; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSource.java deleted file mode 100644 index 07253fb946c0c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSource.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Table source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureTableSource") -@Fluent -public final class AzureTableSource extends TabularSource { - /* - * Azure Table source query. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "azureTableSourceQuery") - private Object azureTableSourceQuery; - - /* - * Azure Table source ignore table not found. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "azureTableSourceIgnoreTableNotFound") - private Object azureTableSourceIgnoreTableNotFound; - - /** - * Get the azureTableSourceQuery property: Azure Table source query. Type: string (or Expression with resultType - * string). - * - * @return the azureTableSourceQuery value. - */ - public Object azureTableSourceQuery() { - return this.azureTableSourceQuery; - } - - /** - * Set the azureTableSourceQuery property: Azure Table source query. Type: string (or Expression with resultType - * string). - * - * @param azureTableSourceQuery the azureTableSourceQuery value to set. - * @return the AzureTableSource object itself. - */ - public AzureTableSource withAzureTableSourceQuery(Object azureTableSourceQuery) { - this.azureTableSourceQuery = azureTableSourceQuery; - return this; - } - - /** - * Get the azureTableSourceIgnoreTableNotFound property: Azure Table source ignore table not found. Type: boolean - * (or Expression with resultType boolean). - * - * @return the azureTableSourceIgnoreTableNotFound value. - */ - public Object azureTableSourceIgnoreTableNotFound() { - return this.azureTableSourceIgnoreTableNotFound; - } - - /** - * Set the azureTableSourceIgnoreTableNotFound property: Azure Table source ignore table not found. Type: boolean - * (or Expression with resultType boolean). - * - * @param azureTableSourceIgnoreTableNotFound the azureTableSourceIgnoreTableNotFound value to set. - * @return the AzureTableSource object itself. - */ - public AzureTableSource withAzureTableSourceIgnoreTableNotFound(Object azureTableSourceIgnoreTableNotFound) { - this.azureTableSourceIgnoreTableNotFound = azureTableSourceIgnoreTableNotFound; - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java deleted file mode 100644 index 7868aac891c63..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureStorageLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The azure table storage linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("AzureTableStorage") -@Fluent -public final class AzureTableStorageLinkedService extends LinkedService { - /* - * Azure Table Storage linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private AzureStorageLinkedServiceTypeProperties innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Azure Table Storage linked service properties. - * - * @return the innerTypeProperties value. - */ - private AzureStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureTableStorageLinkedService object itself. - */ - public AzureTableStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureTableStorageLinkedService object itself. - */ - public AzureTableStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); - } - - /** - * Set the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureTableStorageLinkedService object itself. - */ - public AzureTableStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureTableStorageLinkedService object itself. - */ - public AzureTableStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureTableStorageLinkedService object itself. - */ - public AzureTableStorageLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureTableStorageLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureTableStorageLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java deleted file mode 100644 index b063e039e6ac4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.BinaryDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Binary dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Binary") -@Fluent -public final class BinaryDataset extends Dataset { - /* - * Binary dataset properties. - */ - @JsonProperty(value = "typeProperties") - private BinaryDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Binary dataset properties. - * - * @return the innerTypeProperties value. - */ - private BinaryDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public BinaryDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinaryDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinaryDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinaryDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinaryDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinaryDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinaryDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the Binary storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the Binary storage. - * - * @param location the location value to set. - * @return the BinaryDataset object itself. - */ - public BinaryDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BinaryDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the compression property: The data compression method used for the binary dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the binary dataset. - * - * @param compression the compression value to set. - * @return the BinaryDataset object itself. - */ - public BinaryDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BinaryDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryReadSettings.java deleted file mode 100644 index 83449db7ee329..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryReadSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Binary read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("BinaryReadSettings") -@Fluent -public final class BinaryReadSettings extends FormatReadSettings { - /* - * Compression settings. - */ - @JsonProperty(value = "compressionProperties") - private CompressionReadSettings compressionProperties; - - /** - * Get the compressionProperties property: Compression settings. - * - * @return the compressionProperties value. - */ - public CompressionReadSettings compressionProperties() { - return this.compressionProperties; - } - - /** - * Set the compressionProperties property: Compression settings. - * - * @param compressionProperties the compressionProperties value to set. - * @return the BinaryReadSettings object itself. - */ - public BinaryReadSettings withCompressionProperties(CompressionReadSettings compressionProperties) { - this.compressionProperties = compressionProperties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (compressionProperties() != null) { - compressionProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySink.java deleted file mode 100644 index 4eda52f9880cb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySink.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Binary sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("BinarySink") -@Fluent -public final class BinarySink extends CopySink { - /* - * Binary store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreWriteSettings storeSettings; - - /** - * Get the storeSettings property: Binary store settings. - * - * @return the storeSettings value. - */ - public StoreWriteSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Binary store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the BinarySink object itself. - */ - public BinarySink withStoreSettings(StoreWriteSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySource.java deleted file mode 100644 index bdcb045052b77..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySource.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Binary source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("BinarySource") -@Fluent -public final class BinarySource extends CopySource { - /* - * Binary store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * Binary format settings. - */ - @JsonProperty(value = "formatSettings") - private BinaryReadSettings formatSettings; - - /** - * Get the storeSettings property: Binary store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Binary store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the BinarySource object itself. - */ - public BinarySource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: Binary format settings. - * - * @return the formatSettings value. - */ - public BinaryReadSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: Binary format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the BinarySource object itself. - */ - public BinarySource withFormatSettings(BinaryReadSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public BinarySource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventTypes.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventTypes.java deleted file mode 100644 index 1a8c93e09ca2e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventTypes.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for BlobEventTypes. */ -public final class BlobEventTypes extends ExpandableStringEnum { - /** Static value Microsoft.Storage.BlobCreated for BlobEventTypes. */ - public static final BlobEventTypes MICROSOFT_STORAGE_BLOB_CREATED = fromString("Microsoft.Storage.BlobCreated"); - - /** Static value Microsoft.Storage.BlobDeleted for BlobEventTypes. */ - public static final BlobEventTypes MICROSOFT_STORAGE_BLOB_DELETED = fromString("Microsoft.Storage.BlobDeleted"); - - /** - * Creates or finds a BlobEventTypes from its string representation. - * - * @param name a name to look for. - * @return the corresponding BlobEventTypes. - */ - @JsonCreator - public static BlobEventTypes fromString(String name) { - return fromString(name, BlobEventTypes.class); - } - - /** @return known BlobEventTypes values. */ - public static Collection values() { - return values(BlobEventTypes.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java deleted file mode 100644 index c08c234c3675e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.BlobEventsTriggerTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Trigger that runs every time a Blob event occurs. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("BlobEventsTrigger") -@Fluent -public final class BlobEventsTrigger extends MultiplePipelineTrigger { - /* - * Blob Events Trigger properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private BlobEventsTriggerTypeProperties innerTypeProperties = new BlobEventsTriggerTypeProperties(); - - /** - * Get the innerTypeProperties property: Blob Events Trigger properties. - * - * @return the innerTypeProperties value. - */ - private BlobEventsTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public BlobEventsTrigger withPipelines(List pipelines) { - super.withPipelines(pipelines); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobEventsTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobEventsTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the blobPathBeginsWith property: The blob path must begin with the pattern provided for trigger to fire. For - * example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records - * container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @return the blobPathBeginsWith value. - */ - public String blobPathBeginsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().blobPathBeginsWith(); - } - - /** - * Set the blobPathBeginsWith property: The blob path must begin with the pattern provided for trigger to fire. For - * example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records - * container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @param blobPathBeginsWith the blobPathBeginsWith value to set. - * @return the BlobEventsTrigger object itself. - */ - public BlobEventsTrigger withBlobPathBeginsWith(String blobPathBeginsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withBlobPathBeginsWith(blobPathBeginsWith); - return this; - } - - /** - * Get the blobPathEndsWith property: The blob path must end with the pattern provided for trigger to fire. For - * example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @return the blobPathEndsWith value. - */ - public String blobPathEndsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().blobPathEndsWith(); - } - - /** - * Set the blobPathEndsWith property: The blob path must end with the pattern provided for trigger to fire. For - * example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @param blobPathEndsWith the blobPathEndsWith value to set. - * @return the BlobEventsTrigger object itself. - */ - public BlobEventsTrigger withBlobPathEndsWith(String blobPathEndsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withBlobPathEndsWith(blobPathEndsWith); - return this; - } - - /** - * Get the ignoreEmptyBlobs property: If set to true, blobs with zero bytes will be ignored. - * - * @return the ignoreEmptyBlobs value. - */ - public Boolean ignoreEmptyBlobs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ignoreEmptyBlobs(); - } - - /** - * Set the ignoreEmptyBlobs property: If set to true, blobs with zero bytes will be ignored. - * - * @param ignoreEmptyBlobs the ignoreEmptyBlobs value to set. - * @return the BlobEventsTrigger object itself. - */ - public BlobEventsTrigger withIgnoreEmptyBlobs(Boolean ignoreEmptyBlobs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withIgnoreEmptyBlobs(ignoreEmptyBlobs); - return this; - } - - /** - * Get the events property: The type of events that cause this trigger to fire. - * - * @return the events value. - */ - public List events() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().events(); - } - - /** - * Set the events property: The type of events that cause this trigger to fire. - * - * @param events the events value to set. - * @return the BlobEventsTrigger object itself. - */ - public BlobEventsTrigger withEvents(List events) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withEvents(events); - return this; - } - - /** - * Get the scope property: The ARM resource ID of the Storage Account. - * - * @return the scope value. - */ - public String scope() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scope(); - } - - /** - * Set the scope property: The ARM resource ID of the Storage Account. - * - * @param scope the scope value to set. - * @return the BlobEventsTrigger object itself. - */ - public BlobEventsTrigger withScope(String scope) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withScope(scope); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model BlobEventsTrigger")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(BlobEventsTrigger.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSink.java deleted file mode 100644 index e15fa3d243c3a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSink.java +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** A copy activity Azure Blob sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("BlobSink") -@Fluent -public final class BlobSink extends CopySink { - /* - * Blob writer overwrite files. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "blobWriterOverwriteFiles") - private Object blobWriterOverwriteFiles; - - /* - * Blob writer date time format. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "blobWriterDateTimeFormat") - private Object blobWriterDateTimeFormat; - - /* - * Blob writer add header. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "blobWriterAddHeader") - private Object blobWriterAddHeader; - - /* - * The type of copy behavior for copy sink. - */ - @JsonProperty(value = "copyBehavior") - private Object copyBehavior; - - /* - * Specify the custom metadata to be added to sink data. Type: array of - * objects (or Expression with resultType array of objects). - */ - @JsonProperty(value = "metadata") - private List metadata; - - /** - * Get the blobWriterOverwriteFiles property: Blob writer overwrite files. Type: boolean (or Expression with - * resultType boolean). - * - * @return the blobWriterOverwriteFiles value. - */ - public Object blobWriterOverwriteFiles() { - return this.blobWriterOverwriteFiles; - } - - /** - * Set the blobWriterOverwriteFiles property: Blob writer overwrite files. Type: boolean (or Expression with - * resultType boolean). - * - * @param blobWriterOverwriteFiles the blobWriterOverwriteFiles value to set. - * @return the BlobSink object itself. - */ - public BlobSink withBlobWriterOverwriteFiles(Object blobWriterOverwriteFiles) { - this.blobWriterOverwriteFiles = blobWriterOverwriteFiles; - return this; - } - - /** - * Get the blobWriterDateTimeFormat property: Blob writer date time format. Type: string (or Expression with - * resultType string). - * - * @return the blobWriterDateTimeFormat value. - */ - public Object blobWriterDateTimeFormat() { - return this.blobWriterDateTimeFormat; - } - - /** - * Set the blobWriterDateTimeFormat property: Blob writer date time format. Type: string (or Expression with - * resultType string). - * - * @param blobWriterDateTimeFormat the blobWriterDateTimeFormat value to set. - * @return the BlobSink object itself. - */ - public BlobSink withBlobWriterDateTimeFormat(Object blobWriterDateTimeFormat) { - this.blobWriterDateTimeFormat = blobWriterDateTimeFormat; - return this; - } - - /** - * Get the blobWriterAddHeader property: Blob writer add header. Type: boolean (or Expression with resultType - * boolean). - * - * @return the blobWriterAddHeader value. - */ - public Object blobWriterAddHeader() { - return this.blobWriterAddHeader; - } - - /** - * Set the blobWriterAddHeader property: Blob writer add header. Type: boolean (or Expression with resultType - * boolean). - * - * @param blobWriterAddHeader the blobWriterAddHeader value to set. - * @return the BlobSink object itself. - */ - public BlobSink withBlobWriterAddHeader(Object blobWriterAddHeader) { - this.blobWriterAddHeader = blobWriterAddHeader; - return this; - } - - /** - * Get the copyBehavior property: The type of copy behavior for copy sink. - * - * @return the copyBehavior value. - */ - public Object copyBehavior() { - return this.copyBehavior; - } - - /** - * Set the copyBehavior property: The type of copy behavior for copy sink. - * - * @param copyBehavior the copyBehavior value to set. - * @return the BlobSink object itself. - */ - public BlobSink withCopyBehavior(Object copyBehavior) { - this.copyBehavior = copyBehavior; - return this; - } - - /** - * Get the metadata property: Specify the custom metadata to be added to sink data. Type: array of objects (or - * Expression with resultType array of objects). - * - * @return the metadata value. - */ - public List metadata() { - return this.metadata; - } - - /** - * Set the metadata property: Specify the custom metadata to be added to sink data. Type: array of objects (or - * Expression with resultType array of objects). - * - * @param metadata the metadata value to set. - * @return the BlobSink object itself. - */ - public BlobSink withMetadata(List metadata) { - this.metadata = metadata; - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (metadata() != null) { - metadata().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSource.java deleted file mode 100644 index 755eb4d4646eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSource.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure Blob source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("BlobSource") -@Fluent -public final class BlobSource extends CopySource { - /* - * Treat empty as null. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "treatEmptyAsNull") - private Object treatEmptyAsNull; - - /* - * Number of header lines to skip from each blob. Type: integer (or - * Expression with resultType integer). - */ - @JsonProperty(value = "skipHeaderLineCount") - private Object skipHeaderLineCount; - - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /** - * Get the treatEmptyAsNull property: Treat empty as null. Type: boolean (or Expression with resultType boolean). - * - * @return the treatEmptyAsNull value. - */ - public Object treatEmptyAsNull() { - return this.treatEmptyAsNull; - } - - /** - * Set the treatEmptyAsNull property: Treat empty as null. Type: boolean (or Expression with resultType boolean). - * - * @param treatEmptyAsNull the treatEmptyAsNull value to set. - * @return the BlobSource object itself. - */ - public BlobSource withTreatEmptyAsNull(Object treatEmptyAsNull) { - this.treatEmptyAsNull = treatEmptyAsNull; - return this; - } - - /** - * Get the skipHeaderLineCount property: Number of header lines to skip from each blob. Type: integer (or Expression - * with resultType integer). - * - * @return the skipHeaderLineCount value. - */ - public Object skipHeaderLineCount() { - return this.skipHeaderLineCount; - } - - /** - * Set the skipHeaderLineCount property: Number of header lines to skip from each blob. Type: integer (or Expression - * with resultType integer). - * - * @param skipHeaderLineCount the skipHeaderLineCount value to set. - * @return the BlobSource object itself. - */ - public BlobSource withSkipHeaderLineCount(Object skipHeaderLineCount) { - this.skipHeaderLineCount = skipHeaderLineCount; - return this; - } - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the BlobSource object itself. - */ - public BlobSource withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java deleted file mode 100644 index 22db7c8352981..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.BlobTriggerTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Trigger that runs every time the selected Blob container changes. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("BlobTrigger") -@Fluent -public final class BlobTrigger extends MultiplePipelineTrigger { - /* - * Blob Trigger properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private BlobTriggerTypeProperties innerTypeProperties = new BlobTriggerTypeProperties(); - - /** - * Get the innerTypeProperties property: Blob Trigger properties. - * - * @return the innerTypeProperties value. - */ - private BlobTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public BlobTrigger withPipelines(List pipelines) { - super.withPipelines(pipelines); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the folderPath property: The path of the container/folder that will trigger the pipeline. - * - * @return the folderPath value. - */ - public String folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); - } - - /** - * Set the folderPath property: The path of the container/folder that will trigger the pipeline. - * - * @param folderPath the folderPath value to set. - * @return the BlobTrigger object itself. - */ - public BlobTrigger withFolderPath(String folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobTriggerTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); - return this; - } - - /** - * Get the maxConcurrency property: The max number of parallel files to handle when it is triggered. - * - * @return the maxConcurrency value. - */ - public int maxConcurrency() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().maxConcurrency(); - } - - /** - * Set the maxConcurrency property: The max number of parallel files to handle when it is triggered. - * - * @param maxConcurrency the maxConcurrency value to set. - * @return the BlobTrigger object itself. - */ - public BlobTrigger withMaxConcurrency(int maxConcurrency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobTriggerTypeProperties(); - } - this.innerTypeProperties().withMaxConcurrency(maxConcurrency); - return this; - } - - /** - * Get the linkedService property: The Azure Storage linked service reference. - * - * @return the linkedService value. - */ - public LinkedServiceReference linkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedService(); - } - - /** - * Set the linkedService property: The Azure Storage linked service reference. - * - * @param linkedService the linkedService value to set. - * @return the BlobTrigger object itself. - */ - public BlobTrigger withLinkedService(LinkedServiceReference linkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobTriggerTypeProperties(); - } - this.innerTypeProperties().withLinkedService(linkedService); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property innerTypeProperties in model BlobTrigger")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(BlobTrigger.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java deleted file mode 100644 index ce1d5d511de4d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CassandraLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Cassandra data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Cassandra") -@Fluent -public final class CassandraLinkedService extends LinkedService { - /* - * Cassandra linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CassandraLinkedServiceTypeProperties innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Cassandra linked service properties. - * - * @return the innerTypeProperties value. - */ - private CassandraLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: Host name for connection. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: Host name for connection. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the CassandraLinkedService object itself. - */ - public CassandraLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. Type: string (or Expression - * with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. Type: string (or Expression - * with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the CassandraLinkedService object itself. - */ - public CassandraLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the port property: The port for the connection. Type: integer (or Expression with resultType integer). - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The port for the connection. Type: integer (or Expression with resultType integer). - * - * @param port the port value to set. - * @return the CassandraLinkedService object itself. - */ - public CassandraLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the CassandraLinkedService object itself. - */ - public CassandraLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the CassandraLinkedService object itself. - */ - public CassandraLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CassandraLinkedService object itself. - */ - public CassandraLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CassandraLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CassandraLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSource.java deleted file mode 100644 index 6a202952a82c1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSource.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for a Cassandra database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CassandraSource") -@Fluent -public final class CassandraSource extends TabularSource { - /* - * Database query. Should be a SQL-92 query expression or Cassandra Query - * Language (CQL) command. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The consistency level specifies how many Cassandra servers must respond - * to a read request before returning data to the client application. - * Cassandra checks the specified number of Cassandra servers for data to - * satisfy the read request. Must be one of - * cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is - * case-insensitive. - */ - @JsonProperty(value = "consistencyLevel") - private CassandraSourceReadConsistencyLevels consistencyLevel; - - /** - * Get the query property: Database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) - * command. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) - * command. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the CassandraSource object itself. - */ - public CassandraSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the consistencyLevel property: The consistency level specifies how many Cassandra servers must respond to a - * read request before returning data to the client application. Cassandra checks the specified number of Cassandra - * servers for data to satisfy the read request. Must be one of cassandraSourceReadConsistencyLevels. The default - * value is 'ONE'. It is case-insensitive. - * - * @return the consistencyLevel value. - */ - public CassandraSourceReadConsistencyLevels consistencyLevel() { - return this.consistencyLevel; - } - - /** - * Set the consistencyLevel property: The consistency level specifies how many Cassandra servers must respond to a - * read request before returning data to the client application. Cassandra checks the specified number of Cassandra - * servers for data to satisfy the read request. Must be one of cassandraSourceReadConsistencyLevels. The default - * value is 'ONE'. It is case-insensitive. - * - * @param consistencyLevel the consistencyLevel value to set. - * @return the CassandraSource object itself. - */ - public CassandraSource withConsistencyLevel(CassandraSourceReadConsistencyLevels consistencyLevel) { - this.consistencyLevel = consistencyLevel; - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSourceReadConsistencyLevels.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSourceReadConsistencyLevels.java deleted file mode 100644 index 7c6c11657476c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSourceReadConsistencyLevels.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for CassandraSourceReadConsistencyLevels. */ -public final class CassandraSourceReadConsistencyLevels - extends ExpandableStringEnum { - /** Static value ALL for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels ALL = fromString("ALL"); - - /** Static value EACH_QUORUM for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels EACH_QUORUM = fromString("EACH_QUORUM"); - - /** Static value QUORUM for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels QUORUM = fromString("QUORUM"); - - /** Static value LOCAL_QUORUM for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels LOCAL_QUORUM = fromString("LOCAL_QUORUM"); - - /** Static value ONE for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels ONE = fromString("ONE"); - - /** Static value TWO for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels TWO = fromString("TWO"); - - /** Static value THREE for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels THREE = fromString("THREE"); - - /** Static value LOCAL_ONE for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels LOCAL_ONE = fromString("LOCAL_ONE"); - - /** Static value SERIAL for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels SERIAL = fromString("SERIAL"); - - /** Static value LOCAL_SERIAL for CassandraSourceReadConsistencyLevels. */ - public static final CassandraSourceReadConsistencyLevels LOCAL_SERIAL = fromString("LOCAL_SERIAL"); - - /** - * Creates or finds a CassandraSourceReadConsistencyLevels from its string representation. - * - * @param name a name to look for. - * @return the corresponding CassandraSourceReadConsistencyLevels. - */ - @JsonCreator - public static CassandraSourceReadConsistencyLevels fromString(String name) { - return fromString(name, CassandraSourceReadConsistencyLevels.class); - } - - /** @return known CassandraSourceReadConsistencyLevels values. */ - public static Collection values() { - return values(CassandraSourceReadConsistencyLevels.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java deleted file mode 100644 index b780829c60a23..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.CassandraTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Cassandra database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CassandraTable") -@Fluent -public final class CassandraTableDataset extends Dataset { - /* - * Cassandra dataset properties. - */ - @JsonProperty(value = "typeProperties") - private CassandraTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Cassandra dataset properties. - * - * @return the innerTypeProperties value. - */ - private CassandraTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CassandraTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public CassandraTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the CassandraTableDataset object itself. - */ - public CassandraTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the keyspace value. - */ - public Object keyspace() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().keyspace(); - } - - /** - * Set the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param keyspace the keyspace value to set. - * @return the CassandraTableDataset object itself. - */ - public CassandraTableDataset withKeyspace(Object keyspace) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraTableDatasetTypeProperties(); - } - this.innerTypeProperties().withKeyspace(keyspace); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java deleted file mode 100644 index e30d09acc165b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ChainingTriggerTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** - * Trigger that allows the referenced pipeline to depend on other pipeline runs based on runDimension Name/Value pairs. - * Upstream pipelines should declare the same runDimension Name and their runs should have the values for those - * runDimensions. The referenced pipeline run would be triggered if the values for the runDimension match for all - * upstream pipeline runs. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ChainingTrigger") -@Fluent -public final class ChainingTrigger extends Trigger { - /* - * Pipeline for which runs are created when all upstream pipelines complete - * successfully. - */ - @JsonProperty(value = "pipeline", required = true) - private TriggerPipelineReference pipeline; - - /* - * Chaining Trigger properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ChainingTriggerTypeProperties innerTypeProperties = new ChainingTriggerTypeProperties(); - - /** - * Get the pipeline property: Pipeline for which runs are created when all upstream pipelines complete successfully. - * - * @return the pipeline value. - */ - public TriggerPipelineReference pipeline() { - return this.pipeline; - } - - /** - * Set the pipeline property: Pipeline for which runs are created when all upstream pipelines complete successfully. - * - * @param pipeline the pipeline value to set. - * @return the ChainingTrigger object itself. - */ - public ChainingTrigger withPipeline(TriggerPipelineReference pipeline) { - this.pipeline = pipeline; - return this; - } - - /** - * Get the innerTypeProperties property: Chaining Trigger properties. - * - * @return the innerTypeProperties value. - */ - private ChainingTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ChainingTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ChainingTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the dependsOn property: Upstream Pipelines. - * - * @return the dependsOn value. - */ - public List dependsOn() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dependsOn(); - } - - /** - * Set the dependsOn property: Upstream Pipelines. - * - * @param dependsOn the dependsOn value to set. - * @return the ChainingTrigger object itself. - */ - public ChainingTrigger withDependsOn(List dependsOn) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ChainingTriggerTypeProperties(); - } - this.innerTypeProperties().withDependsOn(dependsOn); - return this; - } - - /** - * Get the runDimension property: Run Dimension property that needs to be emitted by upstream pipelines. - * - * @return the runDimension value. - */ - public String runDimension() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runDimension(); - } - - /** - * Set the runDimension property: Run Dimension property that needs to be emitted by upstream pipelines. - * - * @param runDimension the runDimension value to set. - * @return the ChainingTrigger object itself. - */ - public ChainingTrigger withRunDimension(String runDimension) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ChainingTriggerTypeProperties(); - } - this.innerTypeProperties().withRunDimension(runDimension); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (pipeline() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property pipeline in model ChainingTrigger")); - } else { - pipeline().validate(); - } - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ChainingTrigger")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ChainingTrigger.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java deleted file mode 100644 index 28296230433cd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CmdkeySetupTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The custom setup of running cmdkey commands. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CmdkeySetup") -@Fluent -public final class CmdkeySetup extends CustomSetupBase { - /* - * Cmdkey command custom setup type properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CmdkeySetupTypeProperties innerTypeProperties = new CmdkeySetupTypeProperties(); - - /** - * Get the innerTypeProperties property: Cmdkey command custom setup type properties. - * - * @return the innerTypeProperties value. - */ - private CmdkeySetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the targetName property: The server name of data source access. - * - * @return the targetName value. - */ - public Object targetName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().targetName(); - } - - /** - * Set the targetName property: The server name of data source access. - * - * @param targetName the targetName value to set. - * @return the CmdkeySetup object itself. - */ - public CmdkeySetup withTargetName(Object targetName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CmdkeySetupTypeProperties(); - } - this.innerTypeProperties().withTargetName(targetName); - return this; - } - - /** - * Get the username property: The user name of data source access. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name of data source access. - * - * @param username the username value to set. - * @return the CmdkeySetup object itself. - */ - public CmdkeySetup withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CmdkeySetupTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password of data source access. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password of data source access. - * - * @param password the password value to set. - * @return the CmdkeySetup object itself. - */ - public CmdkeySetup withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CmdkeySetupTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property innerTypeProperties in model CmdkeySetup")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CmdkeySetup.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmkIdentityDefinition.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmkIdentityDefinition.java deleted file mode 100644 index 706be7c23deac..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmkIdentityDefinition.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Managed Identity used for CMK. */ -@Fluent -public final class CmkIdentityDefinition { - /* - * The resource id of the user assigned identity to authenticate to - * customer's key vault. - */ - @JsonProperty(value = "userAssignedIdentity") - private String userAssignedIdentity; - - /** - * Get the userAssignedIdentity property: The resource id of the user assigned identity to authenticate to - * customer's key vault. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The resource id of the user assigned identity to authenticate to - * customer's key vault. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the CmkIdentityDefinition object itself. - */ - public CmkIdentityDefinition withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java deleted file mode 100644 index e4915a2c22c89..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsEntityDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Common Data Service for Apps entity dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CommonDataServiceForAppsEntity") -@Fluent -public final class CommonDataServiceForAppsEntityDataset extends Dataset { - /* - * Common Data Service for Apps entity dataset properties. - */ - @JsonProperty(value = "typeProperties") - private CommonDataServiceForAppsEntityDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Common Data Service for Apps entity dataset properties. - * - * @return the innerTypeProperties value. - */ - private CommonDataServiceForAppsEntityDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsEntityDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsEntityDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsEntityDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsEntityDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsEntityDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsEntityDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsEntityDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entityName(); - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the CommonDataServiceForAppsEntityDataset object itself. - */ - public CommonDataServiceForAppsEntityDataset withEntityName(Object entityName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsEntityDatasetTypeProperties(); - } - this.innerTypeProperties().withEntityName(entityName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java deleted file mode 100644 index 348c31d8ee53b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java +++ /dev/null @@ -1,398 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Common Data Service for Apps linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CommonDataServiceForApps") -@Fluent -public final class CommonDataServiceForAppsLinkedService extends LinkedService { - /* - * Common Data Service for Apps linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CommonDataServiceForAppsLinkedServiceTypeProperties innerTypeProperties = - new CommonDataServiceForAppsLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Common Data Service for Apps linked service properties. - * - * @return the innerTypeProperties value. - */ - private CommonDataServiceForAppsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the deploymentType property: The deployment type of the Common Data Service for Apps instance. 'Online' for - * Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with - * Ifd. Type: string (or Expression with resultType string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().deploymentType(); - } - - /** - * Set the deploymentType property: The deployment type of the Common Data Service for Apps instance. 'Online' for - * Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with - * Ifd. Type: string (or Expression with resultType string). - * - * @param deploymentType the deploymentType value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withDeploymentType(Object deploymentType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeploymentType(deploymentType); - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Common Data Service for Apps server. The property is - * required for on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostname(); - } - - /** - * Set the hostname property: The host name of the on-premises Common Data Service for Apps server. The property is - * required for on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withHostname(Object hostname) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostname(hostname); - return this; - } - - /** - * Get the port property: The port of on-premises Common Data Service for Apps server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The port of on-premises Common Data Service for Apps server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @param port the port value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Common Data Service for Apps server. The property is - * required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUri(); - } - - /** - * Set the serviceUri property: The URL to the Microsoft Common Data Service for Apps server. The property is - * required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withServiceUri(Object serviceUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUri(serviceUri); - return this; - } - - /** - * Get the organizationName property: The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are more than one Common Data Service for - * Apps instances associated with the user. Type: string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().organizationName(); - } - - /** - * Set the organizationName property: The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are more than one Common Data Service for - * Apps instances associated with the user. Type: string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withOrganizationName(Object organizationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOrganizationName(organizationName); - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Common Data Service for Apps server. - * 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for - * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to connect to Common Data Service for Apps server. - * 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for - * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: User name to access the Common Data Service for Apps instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name to access the Common Data Service for Apps instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to access the Common Data Service for Apps instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to access the Common Data Service for Apps instance. - * - * @param password the password value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CommonDataServiceForAppsLinkedService object itself. - */ - public CommonDataServiceForAppsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model" - + " CommonDataServiceForAppsLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CommonDataServiceForAppsLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSink.java deleted file mode 100644 index c298fb495de29..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSink.java +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Common Data Service for Apps sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CommonDataServiceForAppsSink") -@Fluent -public final class CommonDataServiceForAppsSink extends CopySink { - /* - * The write behavior for the operation. - */ - @JsonProperty(value = "writeBehavior", required = true) - private DynamicsSinkWriteBehavior writeBehavior; - - /* - * The flag indicating whether to ignore null values from input dataset - * (except key fields) during write operation. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "ignoreNullValues") - private Object ignoreNullValues; - - /* - * The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "alternateKeyName") - private Object alternateKeyName; - - /** - * Get the writeBehavior property: The write behavior for the operation. - * - * @return the writeBehavior value. - */ - public DynamicsSinkWriteBehavior writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: The write behavior for the operation. - * - * @param writeBehavior the writeBehavior value to set. - * @return the CommonDataServiceForAppsSink object itself. - */ - public CommonDataServiceForAppsSink withWriteBehavior(DynamicsSinkWriteBehavior writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the ignoreNullValues property: The flag indicating whether to ignore null values from input dataset (except - * key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the ignoreNullValues value. - */ - public Object ignoreNullValues() { - return this.ignoreNullValues; - } - - /** - * Set the ignoreNullValues property: The flag indicating whether to ignore null values from input dataset (except - * key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param ignoreNullValues the ignoreNullValues value to set. - * @return the CommonDataServiceForAppsSink object itself. - */ - public CommonDataServiceForAppsSink withIgnoreNullValues(Object ignoreNullValues) { - this.ignoreNullValues = ignoreNullValues; - return this; - } - - /** - * Get the alternateKeyName property: The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - * - * @return the alternateKeyName value. - */ - public Object alternateKeyName() { - return this.alternateKeyName; - } - - /** - * Set the alternateKeyName property: The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - * - * @param alternateKeyName the alternateKeyName value to set. - * @return the CommonDataServiceForAppsSink object itself. - */ - public CommonDataServiceForAppsSink withAlternateKeyName(Object alternateKeyName) { - this.alternateKeyName = alternateKeyName; - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (writeBehavior() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property writeBehavior in model CommonDataServiceForAppsSink")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CommonDataServiceForAppsSink.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSource.java deleted file mode 100644 index cf960e0c137d5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSource.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Common Data Service for Apps source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CommonDataServiceForAppsSource") -@Fluent -public final class CommonDataServiceForAppsSource extends CopySource { - /* - * FetchXML is a proprietary query language that is used in Microsoft - * Common Data Service for Apps (online & on-premises). Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: FetchXML is a proprietary query language that is used in Microsoft Common Data Service - * for Apps (online & on-premises). Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: FetchXML is a proprietary query language that is used in Microsoft Common Data Service - * for Apps (online & on-premises). Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the CommonDataServiceForAppsSource object itself. - */ - public CommonDataServiceForAppsSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the CommonDataServiceForAppsSource object itself. - */ - public CommonDataServiceForAppsSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java deleted file mode 100644 index c1c2cc256ce23..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.LicensedComponentSetupTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The custom setup of installing 3rd party components. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ComponentSetup") -@Fluent -public final class ComponentSetup extends CustomSetupBase { - /* - * Install 3rd party component type properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private LicensedComponentSetupTypeProperties innerTypeProperties = new LicensedComponentSetupTypeProperties(); - - /** - * Get the innerTypeProperties property: Install 3rd party component type properties. - * - * @return the innerTypeProperties value. - */ - private LicensedComponentSetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the componentName property: The name of the 3rd party component. - * - * @return the componentName value. - */ - public String componentName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().componentName(); - } - - /** - * Set the componentName property: The name of the 3rd party component. - * - * @param componentName the componentName value to set. - * @return the ComponentSetup object itself. - */ - public ComponentSetup withComponentName(String componentName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LicensedComponentSetupTypeProperties(); - } - this.innerTypeProperties().withComponentName(componentName); - return this; - } - - /** - * Get the licenseKey property: The license key to activate the component. - * - * @return the licenseKey value. - */ - public SecretBase licenseKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().licenseKey(); - } - - /** - * Set the licenseKey property: The license key to activate the component. - * - * @param licenseKey the licenseKey value to set. - * @return the ComponentSetup object itself. - */ - public ComponentSetup withLicenseKey(SecretBase licenseKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LicensedComponentSetupTypeProperties(); - } - this.innerTypeProperties().withLicenseKey(licenseKey); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ComponentSetup")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ComponentSetup.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CompressionReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CompressionReadSettings.java deleted file mode 100644 index 731dffdad6046..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CompressionReadSettings.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Compression read settings. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = CompressionReadSettings.class) -@JsonTypeName("CompressionReadSettings") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "ZipDeflateReadSettings", value = ZipDeflateReadSettings.class), - @JsonSubTypes.Type(name = "TarReadSettings", value = TarReadSettings.class), - @JsonSubTypes.Type(name = "TarGZipReadSettings", value = TarGZipReadSettings.class) -}) -@Fluent -public class CompressionReadSettings { - /* - * Compression read settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the additionalProperties property: Compression read settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Compression read settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the CompressionReadSettings object itself. - */ - public CompressionReadSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java deleted file mode 100644 index 430eed2e5fbee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ConcurLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Concur Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Concur") -@Fluent -public final class ConcurLinkedService extends LinkedService { - /* - * Concur Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ConcurLinkedServiceTypeProperties innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Concur Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private ConcurLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionProperties property: Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); - } - - /** - * Set the connectionProperties property: Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); - return this; - } - - /** - * Get the clientId property: Application client_id supplied by Concur App Management. - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: Application client_id supplied by Concur App Management. - * - * @param clientId the clientId value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the username property: The user name that you use to access Concur Service. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name that you use to access Concur Service. - * - * @param username the username value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username field. - * - * @param password the password value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ConcurLinkedService object itself. - */ - public ConcurLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ConcurLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ConcurLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java deleted file mode 100644 index f720ffde0f42b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Concur Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ConcurObject") -@Fluent -public final class ConcurObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ConcurObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ConcurObjectDataset object itself. - */ - public ConcurObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurSource.java deleted file mode 100644 index 0e321c2b8b805..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Concur Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ConcurSource") -@Fluent -public final class ConcurSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the ConcurSource object itself. - */ - public ConcurSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ConcurSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConnectionStateProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConnectionStateProperties.java deleted file mode 100644 index a1a7e702994ef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConnectionStateProperties.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The connection state of a managed private endpoint. */ -@Immutable -public final class ConnectionStateProperties { - /* - * The actions required on the managed private endpoint - */ - @JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY) - private String actionsRequired; - - /* - * The managed private endpoint description - */ - @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) - private String description; - - /* - * The approval status - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private String status; - - /** - * Get the actionsRequired property: The actions required on the managed private endpoint. - * - * @return the actionsRequired value. - */ - public String actionsRequired() { - return this.actionsRequired; - } - - /** - * Get the description property: The managed private endpoint description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Get the status property: The approval status. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ControlActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ControlActivity.java deleted file mode 100644 index 6fd6cb3de92eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ControlActivity.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Base class for all control activities like IfCondition, ForEach , Until. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = ControlActivity.class) -@JsonTypeName("Container") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "ExecutePipeline", value = ExecutePipelineActivity.class), - @JsonSubTypes.Type(name = "IfCondition", value = IfConditionActivity.class), - @JsonSubTypes.Type(name = "Switch", value = SwitchActivity.class), - @JsonSubTypes.Type(name = "ForEach", value = ForEachActivity.class), - @JsonSubTypes.Type(name = "Wait", value = WaitActivity.class), - @JsonSubTypes.Type(name = "Fail", value = FailActivity.class), - @JsonSubTypes.Type(name = "Until", value = UntilActivity.class), - @JsonSubTypes.Type(name = "Validation", value = ValidationActivity.class), - @JsonSubTypes.Type(name = "Filter", value = FilterActivity.class), - @JsonSubTypes.Type(name = "SetVariable", value = SetVariableActivity.class), - @JsonSubTypes.Type(name = "AppendVariable", value = AppendVariableActivity.class), - @JsonSubTypes.Type(name = "WebHook", value = WebhookActivity.class) -}) -@Fluent -public class ControlActivity extends Activity { - /** {@inheritDoc} */ - @Override - public ControlActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ControlActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ControlActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ControlActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java deleted file mode 100644 index 25f95061eb762..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java +++ /dev/null @@ -1,514 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CopyActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Copy activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Copy") -@Fluent -public final class CopyActivity extends ExecutionActivity { - /* - * Copy activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CopyActivityTypeProperties innerTypeProperties = new CopyActivityTypeProperties(); - - /* - * List of inputs for the activity. - */ - @JsonProperty(value = "inputs") - private List inputs; - - /* - * List of outputs for the activity. - */ - @JsonProperty(value = "outputs") - private List outputs; - - /** - * Get the innerTypeProperties property: Copy activity properties. - * - * @return the innerTypeProperties value. - */ - private CopyActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the inputs property: List of inputs for the activity. - * - * @return the inputs value. - */ - public List inputs() { - return this.inputs; - } - - /** - * Set the inputs property: List of inputs for the activity. - * - * @param inputs the inputs value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withInputs(List inputs) { - this.inputs = inputs; - return this; - } - - /** - * Get the outputs property: List of outputs for the activity. - * - * @return the outputs value. - */ - public List outputs() { - return this.outputs; - } - - /** - * Set the outputs property: List of outputs for the activity. - * - * @param outputs the outputs value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withOutputs(List outputs) { - this.outputs = outputs; - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the source property: Copy activity source. - * - * @return the source value. - */ - public CopySource source() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().source(); - } - - /** - * Set the source property: Copy activity source. - * - * @param source the source value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withSource(CopySource source) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withSource(source); - return this; - } - - /** - * Get the sink property: Copy activity sink. - * - * @return the sink value. - */ - public CopySink sink() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sink(); - } - - /** - * Set the sink property: Copy activity sink. - * - * @param sink the sink value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withSink(CopySink sink) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withSink(sink); - return this; - } - - /** - * Get the translator property: Copy activity translator. If not specified, tabular translator is used. - * - * @return the translator value. - */ - public Object translator() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().translator(); - } - - /** - * Set the translator property: Copy activity translator. If not specified, tabular translator is used. - * - * @param translator the translator value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withTranslator(Object translator) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withTranslator(translator); - return this; - } - - /** - * Get the enableStaging property: Specifies whether to copy data via an interim staging. Default value is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the enableStaging value. - */ - public Object enableStaging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableStaging(); - } - - /** - * Set the enableStaging property: Specifies whether to copy data via an interim staging. Default value is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param enableStaging the enableStaging value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withEnableStaging(Object enableStaging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withEnableStaging(enableStaging); - return this; - } - - /** - * Get the stagingSettings property: Specifies interim staging settings when EnableStaging is true. - * - * @return the stagingSettings value. - */ - public StagingSettings stagingSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().stagingSettings(); - } - - /** - * Set the stagingSettings property: Specifies interim staging settings when EnableStaging is true. - * - * @param stagingSettings the stagingSettings value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withStagingSettings(StagingSettings stagingSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withStagingSettings(stagingSettings); - return this; - } - - /** - * Get the parallelCopies property: Maximum number of concurrent sessions opened on the source or sink to avoid - * overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the parallelCopies value. - */ - public Object parallelCopies() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parallelCopies(); - } - - /** - * Set the parallelCopies property: Maximum number of concurrent sessions opened on the source or sink to avoid - * overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param parallelCopies the parallelCopies value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withParallelCopies(Object parallelCopies) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withParallelCopies(parallelCopies); - return this; - } - - /** - * Get the dataIntegrationUnits property: Maximum number of data integration units that can be used to perform this - * data movement. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the dataIntegrationUnits value. - */ - public Object dataIntegrationUnits() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataIntegrationUnits(); - } - - /** - * Set the dataIntegrationUnits property: Maximum number of data integration units that can be used to perform this - * data movement. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param dataIntegrationUnits the dataIntegrationUnits value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withDataIntegrationUnits(Object dataIntegrationUnits) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withDataIntegrationUnits(dataIntegrationUnits); - return this; - } - - /** - * Get the enableSkipIncompatibleRow property: Whether to skip incompatible row. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the enableSkipIncompatibleRow value. - */ - public Object enableSkipIncompatibleRow() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSkipIncompatibleRow(); - } - - /** - * Set the enableSkipIncompatibleRow property: Whether to skip incompatible row. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param enableSkipIncompatibleRow the enableSkipIncompatibleRow value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withEnableSkipIncompatibleRow(Object enableSkipIncompatibleRow) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withEnableSkipIncompatibleRow(enableSkipIncompatibleRow); - return this; - } - - /** - * Get the redirectIncompatibleRowSettings property: Redirect incompatible row settings when - * EnableSkipIncompatibleRow is true. - * - * @return the redirectIncompatibleRowSettings value. - */ - public RedirectIncompatibleRowSettings redirectIncompatibleRowSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().redirectIncompatibleRowSettings(); - } - - /** - * Set the redirectIncompatibleRowSettings property: Redirect incompatible row settings when - * EnableSkipIncompatibleRow is true. - * - * @param redirectIncompatibleRowSettings the redirectIncompatibleRowSettings value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withRedirectIncompatibleRowSettings( - RedirectIncompatibleRowSettings redirectIncompatibleRowSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withRedirectIncompatibleRowSettings(redirectIncompatibleRowSettings); - return this; - } - - /** - * Get the logStorageSettings property: (Deprecated. Please use LogSettings) Log storage settings customer need to - * provide when enabling session log. - * - * @return the logStorageSettings value. - */ - public LogStorageSettings logStorageSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logStorageSettings(); - } - - /** - * Set the logStorageSettings property: (Deprecated. Please use LogSettings) Log storage settings customer need to - * provide when enabling session log. - * - * @param logStorageSettings the logStorageSettings value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withLogStorageSettings(LogStorageSettings logStorageSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withLogStorageSettings(logStorageSettings); - return this; - } - - /** - * Get the logSettings property: Log settings customer needs provide when enabling log. - * - * @return the logSettings value. - */ - public LogSettings logSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logSettings(); - } - - /** - * Set the logSettings property: Log settings customer needs provide when enabling log. - * - * @param logSettings the logSettings value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withLogSettings(LogSettings logSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withLogSettings(logSettings); - return this; - } - - /** - * Get the preserveRules property: Preserve Rules. - * - * @return the preserveRules value. - */ - public List preserveRules() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().preserveRules(); - } - - /** - * Set the preserveRules property: Preserve Rules. - * - * @param preserveRules the preserveRules value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withPreserveRules(List preserveRules) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withPreserveRules(preserveRules); - return this; - } - - /** - * Get the preserve property: Preserve rules. - * - * @return the preserve value. - */ - public List preserve() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().preserve(); - } - - /** - * Set the preserve property: Preserve rules. - * - * @param preserve the preserve value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withPreserve(List preserve) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withPreserve(preserve); - return this; - } - - /** - * Get the validateDataConsistency property: Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - * - * @return the validateDataConsistency value. - */ - public Object validateDataConsistency() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().validateDataConsistency(); - } - - /** - * Set the validateDataConsistency property: Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - * - * @param validateDataConsistency the validateDataConsistency value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withValidateDataConsistency(Object validateDataConsistency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withValidateDataConsistency(validateDataConsistency); - return this; - } - - /** - * Get the skipErrorFile property: Specify the fault tolerance for data consistency. - * - * @return the skipErrorFile value. - */ - public SkipErrorFile skipErrorFile() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().skipErrorFile(); - } - - /** - * Set the skipErrorFile property: Specify the fault tolerance for data consistency. - * - * @param skipErrorFile the skipErrorFile value to set. - * @return the CopyActivity object itself. - */ - public CopyActivity withSkipErrorFile(SkipErrorFile skipErrorFile) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withSkipErrorFile(skipErrorFile); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CopyActivity")); - } else { - innerTypeProperties().validate(); - } - if (inputs() != null) { - inputs().forEach(e -> e.validate()); - } - if (outputs() != null) { - outputs().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CopyActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivityLogSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivityLogSettings.java deleted file mode 100644 index 8c0c4b175d378..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivityLogSettings.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Settings for copy activity log. */ -@Fluent -public final class CopyActivityLogSettings { - /* - * Gets or sets the log level, support: Info, Warning. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "logLevel") - private Object logLevel; - - /* - * Specifies whether to enable reliable logging. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "enableReliableLogging") - private Object enableReliableLogging; - - /** - * Get the logLevel property: Gets or sets the log level, support: Info, Warning. Type: string (or Expression with - * resultType string). - * - * @return the logLevel value. - */ - public Object logLevel() { - return this.logLevel; - } - - /** - * Set the logLevel property: Gets or sets the log level, support: Info, Warning. Type: string (or Expression with - * resultType string). - * - * @param logLevel the logLevel value to set. - * @return the CopyActivityLogSettings object itself. - */ - public CopyActivityLogSettings withLogLevel(Object logLevel) { - this.logLevel = logLevel; - return this; - } - - /** - * Get the enableReliableLogging property: Specifies whether to enable reliable logging. Type: boolean (or - * Expression with resultType boolean). - * - * @return the enableReliableLogging value. - */ - public Object enableReliableLogging() { - return this.enableReliableLogging; - } - - /** - * Set the enableReliableLogging property: Specifies whether to enable reliable logging. Type: boolean (or - * Expression with resultType boolean). - * - * @param enableReliableLogging the enableReliableLogging value to set. - * @return the CopyActivityLogSettings object itself. - */ - public CopyActivityLogSettings withEnableReliableLogging(Object enableReliableLogging) { - this.enableReliableLogging = enableReliableLogging; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java deleted file mode 100644 index 8849d36bf9072..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java +++ /dev/null @@ -1,280 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** A copy activity sink. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = CopySink.class) -@JsonTypeName("CopySink") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "DelimitedTextSink", value = DelimitedTextSink.class), - @JsonSubTypes.Type(name = "JsonSink", value = JsonSink.class), - @JsonSubTypes.Type(name = "OrcSink", value = OrcSink.class), - @JsonSubTypes.Type(name = "RestSink", value = RestSink.class), - @JsonSubTypes.Type(name = "AzurePostgreSqlSink", value = AzurePostgreSqlSink.class), - @JsonSubTypes.Type(name = "AzureMySqlSink", value = AzureMySqlSink.class), - @JsonSubTypes.Type(name = "AzureDatabricksDeltaLakeSink", value = AzureDatabricksDeltaLakeSink.class), - @JsonSubTypes.Type(name = "SapCloudForCustomerSink", value = SapCloudForCustomerSink.class), - @JsonSubTypes.Type(name = "AzureQueueSink", value = AzureQueueSink.class), - @JsonSubTypes.Type(name = "AzureTableSink", value = AzureTableSink.class), - @JsonSubTypes.Type(name = "AvroSink", value = AvroSink.class), - @JsonSubTypes.Type(name = "ParquetSink", value = ParquetSink.class), - @JsonSubTypes.Type(name = "BinarySink", value = BinarySink.class), - @JsonSubTypes.Type(name = "BlobSink", value = BlobSink.class), - @JsonSubTypes.Type(name = "FileSystemSink", value = FileSystemSink.class), - @JsonSubTypes.Type(name = "DocumentDbCollectionSink", value = DocumentDbCollectionSink.class), - @JsonSubTypes.Type(name = "CosmosDbSqlApiSink", value = CosmosDbSqlApiSink.class), - @JsonSubTypes.Type(name = "SqlSink", value = SqlSink.class), - @JsonSubTypes.Type(name = "SqlServerSink", value = SqlServerSink.class), - @JsonSubTypes.Type(name = "AzureSqlSink", value = AzureSqlSink.class), - @JsonSubTypes.Type(name = "SqlMISink", value = SqlMISink.class), - @JsonSubTypes.Type(name = "SqlDWSink", value = SqlDWSink.class), - @JsonSubTypes.Type(name = "SnowflakeSink", value = SnowflakeSink.class), - @JsonSubTypes.Type(name = "OracleSink", value = OracleSink.class), - @JsonSubTypes.Type(name = "AzureDataLakeStoreSink", value = AzureDataLakeStoreSink.class), - @JsonSubTypes.Type(name = "AzureBlobFSSink", value = AzureBlobFSSink.class), - @JsonSubTypes.Type(name = "AzureSearchIndexSink", value = AzureSearchIndexSink.class), - @JsonSubTypes.Type(name = "OdbcSink", value = OdbcSink.class), - @JsonSubTypes.Type(name = "InformixSink", value = InformixSink.class), - @JsonSubTypes.Type(name = "MicrosoftAccessSink", value = MicrosoftAccessSink.class), - @JsonSubTypes.Type(name = "DynamicsSink", value = DynamicsSink.class), - @JsonSubTypes.Type(name = "DynamicsCrmSink", value = DynamicsCrmSink.class), - @JsonSubTypes.Type(name = "CommonDataServiceForAppsSink", value = CommonDataServiceForAppsSink.class), - @JsonSubTypes.Type(name = "AzureDataExplorerSink", value = AzureDataExplorerSink.class), - @JsonSubTypes.Type(name = "SalesforceSink", value = SalesforceSink.class), - @JsonSubTypes.Type(name = "SalesforceServiceCloudSink", value = SalesforceServiceCloudSink.class), - @JsonSubTypes.Type(name = "MongoDbAtlasSink", value = MongoDbAtlasSink.class), - @JsonSubTypes.Type(name = "MongoDbV2Sink", value = MongoDbV2Sink.class), - @JsonSubTypes.Type(name = "CosmosDbMongoDbApiSink", value = CosmosDbMongoDbApiSink.class) -}) -@Fluent -public class CopySink { - /* - * Write batch size. Type: integer (or Expression with resultType integer), - * minimum: 0. - */ - @JsonProperty(value = "writeBatchSize") - private Object writeBatchSize; - - /* - * Write batch timeout. Type: string (or Expression with resultType - * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "writeBatchTimeout") - private Object writeBatchTimeout; - - /* - * Sink retry count. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "sinkRetryCount") - private Object sinkRetryCount; - - /* - * Sink retry wait. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "sinkRetryWait") - private Object sinkRetryWait; - - /* - * The maximum concurrent connection count for the sink data store. Type: - * integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxConcurrentConnections") - private Object maxConcurrentConnections; - - /* - * If true, disable data store metrics collection. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "disableMetricsCollection") - private Object disableMetricsCollection; - - /* - * A copy activity sink. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the writeBatchSize property: Write batch size. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @return the writeBatchSize value. - */ - public Object writeBatchSize() { - return this.writeBatchSize; - } - - /** - * Set the writeBatchSize property: Write batch size. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @param writeBatchSize the writeBatchSize value to set. - * @return the CopySink object itself. - */ - public CopySink withWriteBatchSize(Object writeBatchSize) { - this.writeBatchSize = writeBatchSize; - return this; - } - - /** - * Get the writeBatchTimeout property: Write batch timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the writeBatchTimeout value. - */ - public Object writeBatchTimeout() { - return this.writeBatchTimeout; - } - - /** - * Set the writeBatchTimeout property: Write batch timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param writeBatchTimeout the writeBatchTimeout value to set. - * @return the CopySink object itself. - */ - public CopySink withWriteBatchTimeout(Object writeBatchTimeout) { - this.writeBatchTimeout = writeBatchTimeout; - return this; - } - - /** - * Get the sinkRetryCount property: Sink retry count. Type: integer (or Expression with resultType integer). - * - * @return the sinkRetryCount value. - */ - public Object sinkRetryCount() { - return this.sinkRetryCount; - } - - /** - * Set the sinkRetryCount property: Sink retry count. Type: integer (or Expression with resultType integer). - * - * @param sinkRetryCount the sinkRetryCount value to set. - * @return the CopySink object itself. - */ - public CopySink withSinkRetryCount(Object sinkRetryCount) { - this.sinkRetryCount = sinkRetryCount; - return this; - } - - /** - * Get the sinkRetryWait property: Sink retry wait. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the sinkRetryWait value. - */ - public Object sinkRetryWait() { - return this.sinkRetryWait; - } - - /** - * Set the sinkRetryWait property: Sink retry wait. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param sinkRetryWait the sinkRetryWait value to set. - * @return the CopySink object itself. - */ - public CopySink withSinkRetryWait(Object sinkRetryWait) { - this.sinkRetryWait = sinkRetryWait; - return this; - } - - /** - * Get the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store. Type: - * integer (or Expression with resultType integer). - * - * @return the maxConcurrentConnections value. - */ - public Object maxConcurrentConnections() { - return this.maxConcurrentConnections; - } - - /** - * Set the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store. Type: - * integer (or Expression with resultType integer). - * - * @param maxConcurrentConnections the maxConcurrentConnections value to set. - * @return the CopySink object itself. - */ - public CopySink withMaxConcurrentConnections(Object maxConcurrentConnections) { - this.maxConcurrentConnections = maxConcurrentConnections; - return this; - } - - /** - * Get the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the disableMetricsCollection value. - */ - public Object disableMetricsCollection() { - return this.disableMetricsCollection; - } - - /** - * Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param disableMetricsCollection the disableMetricsCollection value to set. - * @return the CopySink object itself. - */ - public CopySink withDisableMetricsCollection(Object disableMetricsCollection) { - this.disableMetricsCollection = disableMetricsCollection; - return this; - } - - /** - * Get the additionalProperties property: A copy activity sink. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: A copy activity sink. - * - * @param additionalProperties the additionalProperties value to set. - * @return the CopySink object itself. - */ - public CopySink withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySource.java deleted file mode 100644 index 7a1bd78e4b9d1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySource.java +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** A copy activity source. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = CopySource.class) -@JsonTypeName("CopySource") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "AvroSource", value = AvroSource.class), - @JsonSubTypes.Type(name = "ExcelSource", value = ExcelSource.class), - @JsonSubTypes.Type(name = "ParquetSource", value = ParquetSource.class), - @JsonSubTypes.Type(name = "DelimitedTextSource", value = DelimitedTextSource.class), - @JsonSubTypes.Type(name = "JsonSource", value = JsonSource.class), - @JsonSubTypes.Type(name = "XmlSource", value = XmlSource.class), - @JsonSubTypes.Type(name = "OrcSource", value = OrcSource.class), - @JsonSubTypes.Type(name = "BinarySource", value = BinarySource.class), - @JsonSubTypes.Type(name = "TabularSource", value = TabularSource.class), - @JsonSubTypes.Type(name = "BlobSource", value = BlobSource.class), - @JsonSubTypes.Type(name = "DocumentDbCollectionSource", value = DocumentDbCollectionSource.class), - @JsonSubTypes.Type(name = "CosmosDbSqlApiSource", value = CosmosDbSqlApiSource.class), - @JsonSubTypes.Type(name = "DynamicsSource", value = DynamicsSource.class), - @JsonSubTypes.Type(name = "DynamicsCrmSource", value = DynamicsCrmSource.class), - @JsonSubTypes.Type(name = "CommonDataServiceForAppsSource", value = CommonDataServiceForAppsSource.class), - @JsonSubTypes.Type(name = "RelationalSource", value = RelationalSource.class), - @JsonSubTypes.Type(name = "MicrosoftAccessSource", value = MicrosoftAccessSource.class), - @JsonSubTypes.Type(name = "ODataSource", value = ODataSource.class), - @JsonSubTypes.Type(name = "SalesforceServiceCloudSource", value = SalesforceServiceCloudSource.class), - @JsonSubTypes.Type(name = "RestSource", value = RestSource.class), - @JsonSubTypes.Type(name = "FileSystemSource", value = FileSystemSource.class), - @JsonSubTypes.Type(name = "HdfsSource", value = HdfsSource.class), - @JsonSubTypes.Type(name = "AzureDataExplorerSource", value = AzureDataExplorerSource.class), - @JsonSubTypes.Type(name = "OracleSource", value = OracleSource.class), - @JsonSubTypes.Type(name = "AmazonRdsForOracleSource", value = AmazonRdsForOracleSource.class), - @JsonSubTypes.Type(name = "WebSource", value = WebSource.class), - @JsonSubTypes.Type(name = "MongoDbSource", value = MongoDbSource.class), - @JsonSubTypes.Type(name = "MongoDbAtlasSource", value = MongoDbAtlasSource.class), - @JsonSubTypes.Type(name = "MongoDbV2Source", value = MongoDbV2Source.class), - @JsonSubTypes.Type(name = "CosmosDbMongoDbApiSource", value = CosmosDbMongoDbApiSource.class), - @JsonSubTypes.Type(name = "Office365Source", value = Office365Source.class), - @JsonSubTypes.Type(name = "AzureDataLakeStoreSource", value = AzureDataLakeStoreSource.class), - @JsonSubTypes.Type(name = "AzureBlobFSSource", value = AzureBlobFSSource.class), - @JsonSubTypes.Type(name = "HttpSource", value = HttpSource.class), - @JsonSubTypes.Type(name = "SnowflakeSource", value = SnowflakeSource.class), - @JsonSubTypes.Type(name = "AzureDatabricksDeltaLakeSource", value = AzureDatabricksDeltaLakeSource.class), - @JsonSubTypes.Type(name = "SharePointOnlineListSource", value = SharePointOnlineListSource.class) -}) -@Fluent -public class CopySource { - /* - * Source retry count. Type: integer (or Expression with resultType - * integer). - */ - @JsonProperty(value = "sourceRetryCount") - private Object sourceRetryCount; - - /* - * Source retry wait. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "sourceRetryWait") - private Object sourceRetryWait; - - /* - * The maximum concurrent connection count for the source data store. Type: - * integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxConcurrentConnections") - private Object maxConcurrentConnections; - - /* - * If true, disable data store metrics collection. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "disableMetricsCollection") - private Object disableMetricsCollection; - - /* - * A copy activity source. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer). - * - * @return the sourceRetryCount value. - */ - public Object sourceRetryCount() { - return this.sourceRetryCount; - } - - /** - * Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer). - * - * @param sourceRetryCount the sourceRetryCount value to set. - * @return the CopySource object itself. - */ - public CopySource withSourceRetryCount(Object sourceRetryCount) { - this.sourceRetryCount = sourceRetryCount; - return this; - } - - /** - * Get the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the sourceRetryWait value. - */ - public Object sourceRetryWait() { - return this.sourceRetryWait; - } - - /** - * Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param sourceRetryWait the sourceRetryWait value to set. - * @return the CopySource object itself. - */ - public CopySource withSourceRetryWait(Object sourceRetryWait) { - this.sourceRetryWait = sourceRetryWait; - return this; - } - - /** - * Get the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. - * Type: integer (or Expression with resultType integer). - * - * @return the maxConcurrentConnections value. - */ - public Object maxConcurrentConnections() { - return this.maxConcurrentConnections; - } - - /** - * Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. - * Type: integer (or Expression with resultType integer). - * - * @param maxConcurrentConnections the maxConcurrentConnections value to set. - * @return the CopySource object itself. - */ - public CopySource withMaxConcurrentConnections(Object maxConcurrentConnections) { - this.maxConcurrentConnections = maxConcurrentConnections; - return this; - } - - /** - * Get the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the disableMetricsCollection value. - */ - public Object disableMetricsCollection() { - return this.disableMetricsCollection; - } - - /** - * Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param disableMetricsCollection the disableMetricsCollection value to set. - * @return the CopySource object itself. - */ - public CopySource withDisableMetricsCollection(Object disableMetricsCollection) { - this.disableMetricsCollection = disableMetricsCollection; - return this; - } - - /** - * Get the additionalProperties property: A copy activity source. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: A copy activity source. - * - * @param additionalProperties the additionalProperties value to set. - * @return the CopySource object itself. - */ - public CopySource withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyTranslator.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyTranslator.java deleted file mode 100644 index 6096484f8422d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyTranslator.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** A copy activity translator. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = CopyTranslator.class) -@JsonTypeName("CopyTranslator") -@JsonSubTypes({@JsonSubTypes.Type(name = "TabularTranslator", value = TabularTranslator.class)}) -@Fluent -public class CopyTranslator { - /* - * A copy activity translator. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the additionalProperties property: A copy activity translator. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: A copy activity translator. - * - * @param additionalProperties the additionalProperties value to set. - * @return the CopyTranslator object itself. - */ - public CopyTranslator withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbConnectionMode.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbConnectionMode.java deleted file mode 100644 index 9261375719f7d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbConnectionMode.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for CosmosDbConnectionMode. */ -public final class CosmosDbConnectionMode extends ExpandableStringEnum { - /** Static value Gateway for CosmosDbConnectionMode. */ - public static final CosmosDbConnectionMode GATEWAY = fromString("Gateway"); - - /** Static value Direct for CosmosDbConnectionMode. */ - public static final CosmosDbConnectionMode DIRECT = fromString("Direct"); - - /** - * Creates or finds a CosmosDbConnectionMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding CosmosDbConnectionMode. - */ - @JsonCreator - public static CosmosDbConnectionMode fromString(String name) { - return fromString(name, CosmosDbConnectionMode.class); - } - - /** @return known CosmosDbConnectionMode values. */ - public static Collection values() { - return values(CosmosDbConnectionMode.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java deleted file mode 100644 index d9d53383e5ec9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java +++ /dev/null @@ -1,388 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Microsoft Azure Cosmos Database (CosmosDB) linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDb") -@Fluent -public final class CosmosDbLinkedService extends LinkedService { - /* - * CosmosDB linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbLinkedServiceTypeProperties innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: CosmosDB linked service properties. - * - * @return the innerTypeProperties value. - */ - private CosmosDbLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with - * resultType string). - * - * @return the accountEndpoint value. - */ - public Object accountEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountEndpoint(); - } - - /** - * Set the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with - * resultType string). - * - * @param accountEndpoint the accountEndpoint value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withAccountEndpoint(Object accountEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountEndpoint(accountEndpoint); - return this; - } - - /** - * Get the database property: The name of the database. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The name of the database. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Get the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - * - * @return the accountKey value. - */ - public SecretBase accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); - } - - /** - * Set the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - * - * @param accountKey the accountKey value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withAccountKey(SecretBase accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withServicePrincipalCredentialType( - CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression - * with resultType string). - * - * @return the connectionMode value. - */ - public CosmosDbConnectionMode connectionMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionMode(); - } - - /** - * Set the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression - * with resultType string). - * - * @param connectionMode the connectionMode value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withConnectionMode(CosmosDbConnectionMode connectionMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionMode(connectionMode); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the CosmosDbLinkedService object itself. - */ - public CosmosDbLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CosmosDbLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java deleted file mode 100644 index 04b5fbe0c5c36..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The CosmosDB (MongoDB API) database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDbMongoDbApiCollection") -@Fluent -public final class CosmosDbMongoDbApiCollectionDataset extends Dataset { - /* - * CosmosDB (MongoDB API) database dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbMongoDbApiCollectionDatasetTypeProperties innerTypeProperties = - new CosmosDbMongoDbApiCollectionDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: CosmosDB (MongoDB API) database dataset properties. - * - * @return the innerTypeProperties value. - */ - private CosmosDbMongoDbApiCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiCollectionDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiCollectionDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiCollectionDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiCollectionDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiCollectionDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiCollectionDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiCollectionDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collection(); - } - - /** - * Set the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @param collection the collection value to set. - * @return the CosmosDbMongoDbApiCollectionDataset object itself. - */ - public CosmosDbMongoDbApiCollectionDataset withCollection(Object collection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollection(collection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbMongoDbApiCollectionDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CosmosDbMongoDbApiCollectionDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java deleted file mode 100644 index 80e37a0173306..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for CosmosDB (MongoDB API) data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDbMongoDbApi") -@Fluent -public final class CosmosDbMongoDbApiLinkedService extends LinkedService { - /* - * CosmosDB (MongoDB API) linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbMongoDbApiLinkedServiceTypeProperties innerTypeProperties = - new CosmosDbMongoDbApiLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: CosmosDB (MongoDB API) linked service properties. - * - * @return the innerTypeProperties value. - */ - private CosmosDbMongoDbApiLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the isServerVersionAbove32 property: Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the isServerVersionAbove32 value. - */ - public Object isServerVersionAbove32() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().isServerVersionAbove32(); - } - - /** - * Set the isServerVersionAbove32 property: Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param isServerVersionAbove32 the isServerVersionAbove32 value to set. - * @return the CosmosDbMongoDbApiLinkedService object itself. - */ - public CosmosDbMongoDbApiLinkedService withIsServerVersionAbove32(Object isServerVersionAbove32) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withIsServerVersionAbove32(isServerVersionAbove32); - return this; - } - - /** - * Get the connectionString property: The CosmosDB (MongoDB API) connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The CosmosDB (MongoDB API) connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CosmosDbMongoDbApiLinkedService object itself. - */ - public CosmosDbMongoDbApiLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the database property: The name of the CosmosDB (MongoDB API) database that you want to access. Type: string - * (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The name of the CosmosDB (MongoDB API) database that you want to access. Type: string - * (or Expression with resultType string). - * - * @param database the database value to set. - * @return the CosmosDbMongoDbApiLinkedService object itself. - */ - public CosmosDbMongoDbApiLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbMongoDbApiLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CosmosDbMongoDbApiLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSink.java deleted file mode 100644 index fa70c6e4ae744..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSink.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity sink for a CosmosDB (MongoDB API) database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDbMongoDbApiSink") -@Fluent -public final class CosmosDbMongoDbApiSink extends CopySink { - /* - * Specifies whether the document with same key to be overwritten (upsert) - * rather than throw exception (insert). The default value is "insert". - * Type: string (or Expression with resultType string). Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /** - * Get the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather - * than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType - * string). Type: string (or Expression with resultType string). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather - * than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType - * string). Type: string (or Expression with resultType string). - * - * @param writeBehavior the writeBehavior value to set. - * @return the CosmosDbMongoDbApiSink object itself. - */ - public CosmosDbMongoDbApiSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSource.java deleted file mode 100644 index 3a4577a43651b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSource.java +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for a CosmosDB (MongoDB API) database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDbMongoDbApiSource") -@Fluent -public final class CosmosDbMongoDbApiSource extends CopySource { - /* - * Specifies selection filter using query operators. To return all - * documents in a collection, omit this parameter or pass an empty document - * ({}). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "filter") - private Object filter; - - /* - * Cursor methods for Mongodb query. - */ - @JsonProperty(value = "cursorMethods") - private MongoDbCursorMethodsProperties cursorMethods; - - /* - * Specifies the number of documents to return in each batch of the - * response from MongoDB instance. In most cases, modifying the batch size - * will not affect the user or the application. This property's main - * purpose is to avoid hit the limitation of response size. Type: integer - * (or Expression with resultType integer). - */ - @JsonProperty(value = "batchSize") - private Object batchSize; - - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the filter property: Specifies selection filter using query operators. To return all documents in a - * collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType - * string). - * - * @return the filter value. - */ - public Object filter() { - return this.filter; - } - - /** - * Set the filter property: Specifies selection filter using query operators. To return all documents in a - * collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType - * string). - * - * @param filter the filter value to set. - * @return the CosmosDbMongoDbApiSource object itself. - */ - public CosmosDbMongoDbApiSource withFilter(Object filter) { - this.filter = filter; - return this; - } - - /** - * Get the cursorMethods property: Cursor methods for Mongodb query. - * - * @return the cursorMethods value. - */ - public MongoDbCursorMethodsProperties cursorMethods() { - return this.cursorMethods; - } - - /** - * Set the cursorMethods property: Cursor methods for Mongodb query. - * - * @param cursorMethods the cursorMethods value to set. - * @return the CosmosDbMongoDbApiSource object itself. - */ - public CosmosDbMongoDbApiSource withCursorMethods(MongoDbCursorMethodsProperties cursorMethods) { - this.cursorMethods = cursorMethods; - return this; - } - - /** - * Get the batchSize property: Specifies the number of documents to return in each batch of the response from - * MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This - * property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with - * resultType integer). - * - * @return the batchSize value. - */ - public Object batchSize() { - return this.batchSize; - } - - /** - * Set the batchSize property: Specifies the number of documents to return in each batch of the response from - * MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This - * property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with - * resultType integer). - * - * @param batchSize the batchSize value to set. - * @return the CosmosDbMongoDbApiSource object itself. - */ - public CosmosDbMongoDbApiSource withBatchSize(Object batchSize) { - this.batchSize = batchSize; - return this; - } - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param queryTimeout the queryTimeout value to set. - * @return the CosmosDbMongoDbApiSource object itself. - */ - public CosmosDbMongoDbApiSource withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the CosmosDbMongoDbApiSource object itself. - */ - public CosmosDbMongoDbApiSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (cursorMethods() != null) { - cursorMethods().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbServicePrincipalCredentialType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbServicePrincipalCredentialType.java deleted file mode 100644 index 04fddfdbba23b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbServicePrincipalCredentialType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for CosmosDbServicePrincipalCredentialType. */ -public final class CosmosDbServicePrincipalCredentialType - extends ExpandableStringEnum { - /** Static value ServicePrincipalKey for CosmosDbServicePrincipalCredentialType. */ - public static final CosmosDbServicePrincipalCredentialType SERVICE_PRINCIPAL_KEY = - fromString("ServicePrincipalKey"); - - /** Static value ServicePrincipalCert for CosmosDbServicePrincipalCredentialType. */ - public static final CosmosDbServicePrincipalCredentialType SERVICE_PRINCIPAL_CERT = - fromString("ServicePrincipalCert"); - - /** - * Creates or finds a CosmosDbServicePrincipalCredentialType from its string representation. - * - * @param name a name to look for. - * @return the corresponding CosmosDbServicePrincipalCredentialType. - */ - @JsonCreator - public static CosmosDbServicePrincipalCredentialType fromString(String name) { - return fromString(name, CosmosDbServicePrincipalCredentialType.class); - } - - /** @return known CosmosDbServicePrincipalCredentialType values. */ - public static Collection values() { - return values(CosmosDbServicePrincipalCredentialType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java deleted file mode 100644 index f223470eadde8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbSqlApiCollectionDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Microsoft Azure CosmosDB (SQL API) Collection dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDbSqlApiCollection") -@Fluent -public final class CosmosDbSqlApiCollectionDataset extends Dataset { - /* - * CosmosDB (SQL API) Collection dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbSqlApiCollectionDatasetTypeProperties innerTypeProperties = - new CosmosDbSqlApiCollectionDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: CosmosDB (SQL API) Collection dataset properties. - * - * @return the innerTypeProperties value. - */ - private CosmosDbSqlApiCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiCollectionDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiCollectionDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiCollectionDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiCollectionDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiCollectionDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiCollectionDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiCollectionDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collectionName(); - } - - /** - * Set the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the CosmosDbSqlApiCollectionDataset object itself. - */ - public CosmosDbSqlApiCollectionDataset withCollectionName(Object collectionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbSqlApiCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollectionName(collectionName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbSqlApiCollectionDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CosmosDbSqlApiCollectionDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSink.java deleted file mode 100644 index c3bbb35896cd5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSink.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure CosmosDB (SQL API) Collection sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDbSqlApiSink") -@Fluent -public final class CosmosDbSqlApiSink extends CopySink { - /* - * Describes how to write data to Azure Cosmos DB. Type: string (or - * Expression with resultType string). Allowed values: insert and upsert. - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /** - * Get the writeBehavior property: Describes how to write data to Azure Cosmos DB. Type: string (or Expression with - * resultType string). Allowed values: insert and upsert. - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Describes how to write data to Azure Cosmos DB. Type: string (or Expression with - * resultType string). Allowed values: insert and upsert. - * - * @param writeBehavior the writeBehavior value to set. - * @return the CosmosDbSqlApiSink object itself. - */ - public CosmosDbSqlApiSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSource.java deleted file mode 100644 index 9ef459b62def8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSource.java +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Azure CosmosDB (SQL API) Collection source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CosmosDbSqlApiSource") -@Fluent -public final class CosmosDbSqlApiSource extends CopySource { - /* - * SQL API query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Page size of the result. Type: integer (or Expression with resultType - * integer). - */ - @JsonProperty(value = "pageSize") - private Object pageSize; - - /* - * Preferred regions. Type: array of strings (or Expression with resultType - * array of strings). - */ - @JsonProperty(value = "preferredRegions") - private Object preferredRegions; - - /* - * Whether detect primitive values as datetime values. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "detectDatetime") - private Object detectDatetime; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: SQL API query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: SQL API query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the CosmosDbSqlApiSource object itself. - */ - public CosmosDbSqlApiSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the pageSize property: Page size of the result. Type: integer (or Expression with resultType integer). - * - * @return the pageSize value. - */ - public Object pageSize() { - return this.pageSize; - } - - /** - * Set the pageSize property: Page size of the result. Type: integer (or Expression with resultType integer). - * - * @param pageSize the pageSize value to set. - * @return the CosmosDbSqlApiSource object itself. - */ - public CosmosDbSqlApiSource withPageSize(Object pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Get the preferredRegions property: Preferred regions. Type: array of strings (or Expression with resultType array - * of strings). - * - * @return the preferredRegions value. - */ - public Object preferredRegions() { - return this.preferredRegions; - } - - /** - * Set the preferredRegions property: Preferred regions. Type: array of strings (or Expression with resultType array - * of strings). - * - * @param preferredRegions the preferredRegions value to set. - * @return the CosmosDbSqlApiSource object itself. - */ - public CosmosDbSqlApiSource withPreferredRegions(Object preferredRegions) { - this.preferredRegions = preferredRegions; - return this; - } - - /** - * Get the detectDatetime property: Whether detect primitive values as datetime values. Type: boolean (or Expression - * with resultType boolean). - * - * @return the detectDatetime value. - */ - public Object detectDatetime() { - return this.detectDatetime; - } - - /** - * Set the detectDatetime property: Whether detect primitive values as datetime values. Type: boolean (or Expression - * with resultType boolean). - * - * @param detectDatetime the detectDatetime value to set. - * @return the CosmosDbSqlApiSource object itself. - */ - public CosmosDbSqlApiSource withDetectDatetime(Object detectDatetime) { - this.detectDatetime = detectDatetime; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the CosmosDbSqlApiSource object itself. - */ - public CosmosDbSqlApiSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbSqlApiSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java deleted file mode 100644 index 6123572ef4f9d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CouchbaseLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Couchbase server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Couchbase") -@Fluent -public final class CouchbaseLinkedService extends LinkedService { - /* - * Couchbase server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CouchbaseLinkedServiceTypeProperties innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Couchbase server linked service properties. - * - * @return the innerTypeProperties value. - */ - private CouchbaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CouchbaseLinkedService object itself. - */ - public CouchbaseLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the credString property: The Azure key vault secret reference of credString in connection string. - * - * @return the credString value. - */ - public AzureKeyVaultSecretReference credString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credString(); - } - - /** - * Set the credString property: The Azure key vault secret reference of credString in connection string. - * - * @param credString the credString value to set. - * @return the CouchbaseLinkedService object itself. - */ - public CouchbaseLinkedService withCredString(AzureKeyVaultSecretReference credString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredString(credString); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CouchbaseLinkedService object itself. - */ - public CouchbaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CouchbaseLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CouchbaseLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseSource.java deleted file mode 100644 index 9fdeebd3b874f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Couchbase server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CouchbaseSource") -@Fluent -public final class CouchbaseSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the CouchbaseSource object itself. - */ - public CouchbaseSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java deleted file mode 100644 index a7cf5ef1a5072..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Couchbase server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CouchbaseTable") -@Fluent -public final class CouchbaseTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the CouchbaseTableDataset object itself. - */ - public CouchbaseTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateDataFlowDebugSessionRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateDataFlowDebugSessionRequest.java deleted file mode 100644 index 4d3ab59ffcb04..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateDataFlowDebugSessionRequest.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Request body structure for creating data flow debug session. */ -@Fluent -public final class CreateDataFlowDebugSessionRequest { - /* - * Compute type of the cluster. The value will be overwritten by the same - * setting in integration runtime if provided. - */ - @JsonProperty(value = "computeType") - private String computeType; - - /* - * Core count of the cluster. The value will be overwritten by the same - * setting in integration runtime if provided. - */ - @JsonProperty(value = "coreCount") - private Integer coreCount; - - /* - * Time to live setting of the cluster in minutes. - */ - @JsonProperty(value = "timeToLive") - private Integer timeToLive; - - /* - * Set to use integration runtime setting for data flow debug session. - */ - @JsonProperty(value = "integrationRuntime") - private IntegrationRuntimeDebugResource integrationRuntime; - - /** - * Get the computeType property: Compute type of the cluster. The value will be overwritten by the same setting in - * integration runtime if provided. - * - * @return the computeType value. - */ - public String computeType() { - return this.computeType; - } - - /** - * Set the computeType property: Compute type of the cluster. The value will be overwritten by the same setting in - * integration runtime if provided. - * - * @param computeType the computeType value to set. - * @return the CreateDataFlowDebugSessionRequest object itself. - */ - public CreateDataFlowDebugSessionRequest withComputeType(String computeType) { - this.computeType = computeType; - return this; - } - - /** - * Get the coreCount property: Core count of the cluster. The value will be overwritten by the same setting in - * integration runtime if provided. - * - * @return the coreCount value. - */ - public Integer coreCount() { - return this.coreCount; - } - - /** - * Set the coreCount property: Core count of the cluster. The value will be overwritten by the same setting in - * integration runtime if provided. - * - * @param coreCount the coreCount value to set. - * @return the CreateDataFlowDebugSessionRequest object itself. - */ - public CreateDataFlowDebugSessionRequest withCoreCount(Integer coreCount) { - this.coreCount = coreCount; - return this; - } - - /** - * Get the timeToLive property: Time to live setting of the cluster in minutes. - * - * @return the timeToLive value. - */ - public Integer timeToLive() { - return this.timeToLive; - } - - /** - * Set the timeToLive property: Time to live setting of the cluster in minutes. - * - * @param timeToLive the timeToLive value to set. - * @return the CreateDataFlowDebugSessionRequest object itself. - */ - public CreateDataFlowDebugSessionRequest withTimeToLive(Integer timeToLive) { - this.timeToLive = timeToLive; - return this; - } - - /** - * Get the integrationRuntime property: Set to use integration runtime setting for data flow debug session. - * - * @return the integrationRuntime value. - */ - public IntegrationRuntimeDebugResource integrationRuntime() { - return this.integrationRuntime; - } - - /** - * Set the integrationRuntime property: Set to use integration runtime setting for data flow debug session. - * - * @param integrationRuntime the integrationRuntime value to set. - * @return the CreateDataFlowDebugSessionRequest object itself. - */ - public CreateDataFlowDebugSessionRequest withIntegrationRuntime( - IntegrationRuntimeDebugResource integrationRuntime) { - this.integrationRuntime = integrationRuntime; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (integrationRuntime() != null) { - integrationRuntime().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateDataFlowDebugSessionResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateDataFlowDebugSessionResponse.java deleted file mode 100644 index e6adbaf92fb09..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateDataFlowDebugSessionResponse.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; - -/** An immutable client-side representation of CreateDataFlowDebugSessionResponse. */ -public interface CreateDataFlowDebugSessionResponse { - /** - * Gets the status property: The state of the debug session. - * - * @return the status value. - */ - String status(); - - /** - * Gets the sessionId property: The ID of data flow debug session. - * - * @return the sessionId value. - */ - String sessionId(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner - * object. - * - * @return the inner object. - */ - CreateDataFlowDebugSessionResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateLinkedIntegrationRuntimeRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateLinkedIntegrationRuntimeRequest.java deleted file mode 100644 index fb4d193b94fa8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateLinkedIntegrationRuntimeRequest.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The linked integration runtime information. */ -@Fluent -public final class CreateLinkedIntegrationRuntimeRequest { - /* - * The name of the linked integration runtime. - */ - @JsonProperty(value = "name") - private String name; - - /* - * The ID of the subscription that the linked integration runtime belongs - * to. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /* - * The name of the data factory that the linked integration runtime belongs - * to. - */ - @JsonProperty(value = "dataFactoryName") - private String dataFactoryName; - - /* - * The location of the data factory that the linked integration runtime - * belongs to. - */ - @JsonProperty(value = "dataFactoryLocation") - private String dataFactoryLocation; - - /** - * Get the name property: The name of the linked integration runtime. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the linked integration runtime. - * - * @param name the name value to set. - * @return the CreateLinkedIntegrationRuntimeRequest object itself. - */ - public CreateLinkedIntegrationRuntimeRequest withName(String name) { - this.name = name; - return this; - } - - /** - * Get the subscriptionId property: The ID of the subscription that the linked integration runtime belongs to. - * - * @return the subscriptionId value. - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscriptionId property: The ID of the subscription that the linked integration runtime belongs to. - * - * @param subscriptionId the subscriptionId value to set. - * @return the CreateLinkedIntegrationRuntimeRequest object itself. - */ - public CreateLinkedIntegrationRuntimeRequest withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the dataFactoryName property: The name of the data factory that the linked integration runtime belongs to. - * - * @return the dataFactoryName value. - */ - public String dataFactoryName() { - return this.dataFactoryName; - } - - /** - * Set the dataFactoryName property: The name of the data factory that the linked integration runtime belongs to. - * - * @param dataFactoryName the dataFactoryName value to set. - * @return the CreateLinkedIntegrationRuntimeRequest object itself. - */ - public CreateLinkedIntegrationRuntimeRequest withDataFactoryName(String dataFactoryName) { - this.dataFactoryName = dataFactoryName; - return this; - } - - /** - * Get the dataFactoryLocation property: The location of the data factory that the linked integration runtime - * belongs to. - * - * @return the dataFactoryLocation value. - */ - public String dataFactoryLocation() { - return this.dataFactoryLocation; - } - - /** - * Set the dataFactoryLocation property: The location of the data factory that the linked integration runtime - * belongs to. - * - * @param dataFactoryLocation the dataFactoryLocation value to set. - * @return the CreateLinkedIntegrationRuntimeRequest object itself. - */ - public CreateLinkedIntegrationRuntimeRequest withDataFactoryLocation(String dataFactoryLocation) { - this.dataFactoryLocation = dataFactoryLocation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateRunResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateRunResponse.java deleted file mode 100644 index cdda7b0ec2aac..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CreateRunResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; - -/** An immutable client-side representation of CreateRunResponse. */ -public interface CreateRunResponse { - /** - * Gets the runId property: Identifier of a run. - * - * @return the runId value. - */ - String runId(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner object. - * - * @return the inner object. - */ - CreateRunResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Credential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Credential.java deleted file mode 100644 index 129660f520b4f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Credential.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The Azure Data Factory nested object which contains the information and credential which can be used to connect with - * related store or compute resource. - */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = Credential.class) -@JsonTypeName("Credential") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "ServicePrincipal", value = ServicePrincipalCredential.class), - @JsonSubTypes.Type(name = "ManagedIdentity", value = ManagedIdentityCredential.class) -}) -@Fluent -public class Credential { - /* - * Credential description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * List of tags that can be used for describing the Credential. - */ - @JsonProperty(value = "annotations") - private List annotations; - - /* - * The Azure Data Factory nested object which contains the information and - * credential which can be used to connect with related store or compute - * resource. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the description property: Credential description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Credential description. - * - * @param description the description value to set. - * @return the Credential object itself. - */ - public Credential withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the annotations property: List of tags that can be used for describing the Credential. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: List of tags that can be used for describing the Credential. - * - * @param annotations the annotations value to set. - * @return the Credential object itself. - */ - public Credential withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the additionalProperties property: The Azure Data Factory nested object which contains the information and - * credential which can be used to connect with related store or compute resource. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The Azure Data Factory nested object which contains the information and - * credential which can be used to connect with related store or compute resource. - * - * @param additionalProperties the additionalProperties value to set. - * @return the Credential object itself. - */ - public Credential withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialReference.java deleted file mode 100644 index 16440b82de58b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialReference.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Credential reference type. */ -@Fluent -public final class CredentialReference { - /* - * Credential reference type. - */ - @JsonProperty(value = "type", required = true) - private String type = "CredentialReference"; - - /* - * Reference credential name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /* - * Credential reference type. - */ - @JsonIgnore private Map additionalProperties; - - /** Creates an instance of CredentialReference class. */ - public CredentialReference() { - type = "CredentialReference"; - } - - /** - * Get the type property: Credential reference type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Credential reference type. - * - * @param type the type value to set. - * @return the CredentialReference object itself. - */ - public CredentialReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference credential name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference credential name. - * - * @param referenceName the referenceName value to set. - * @return the CredentialReference object itself. - */ - public CredentialReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Get the additionalProperties property: Credential reference type. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Credential reference type. - * - * @param additionalProperties the additionalProperties value to set. - * @return the CredentialReference object itself. - */ - public CredentialReference withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property referenceName in model CredentialReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CredentialReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java deleted file mode 100644 index 27fb922b63761..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java +++ /dev/null @@ -1,266 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CustomActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Custom activity type. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Custom") -@Fluent -public final class CustomActivity extends ExecutionActivity { - /* - * Custom activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CustomActivityTypeProperties innerTypeProperties = new CustomActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Custom activity properties. - * - * @return the innerTypeProperties value. - */ - private CustomActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CustomActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the command property: Command for custom activity Type: string (or Expression with resultType string). - * - * @return the command value. - */ - public Object command() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().command(); - } - - /** - * Set the command property: Command for custom activity Type: string (or Expression with resultType string). - * - * @param command the command value to set. - * @return the CustomActivity object itself. - */ - public CustomActivity withCommand(Object command) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withCommand(command); - return this; - } - - /** - * Get the resourceLinkedService property: Resource linked service reference. - * - * @return the resourceLinkedService value. - */ - public LinkedServiceReference resourceLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceLinkedService(); - } - - /** - * Set the resourceLinkedService property: Resource linked service reference. - * - * @param resourceLinkedService the resourceLinkedService value to set. - * @return the CustomActivity object itself. - */ - public CustomActivity withResourceLinkedService(LinkedServiceReference resourceLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withResourceLinkedService(resourceLinkedService); - return this; - } - - /** - * Get the folderPath property: Folder path for resource files Type: string (or Expression with resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); - } - - /** - * Set the folderPath property: Folder path for resource files Type: string (or Expression with resultType string). - * - * @param folderPath the folderPath value to set. - * @return the CustomActivity object itself. - */ - public CustomActivity withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); - return this; - } - - /** - * Get the referenceObjects property: Reference objects. - * - * @return the referenceObjects value. - */ - public CustomActivityReferenceObject referenceObjects() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().referenceObjects(); - } - - /** - * Set the referenceObjects property: Reference objects. - * - * @param referenceObjects the referenceObjects value to set. - * @return the CustomActivity object itself. - */ - public CustomActivity withReferenceObjects(CustomActivityReferenceObject referenceObjects) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withReferenceObjects(referenceObjects); - return this; - } - - /** - * Get the extendedProperties property: User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full responsibility to consume and interpret the - * content defined. - * - * @return the extendedProperties value. - */ - public Map extendedProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().extendedProperties(); - } - - /** - * Set the extendedProperties property: User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full responsibility to consume and interpret the - * content defined. - * - * @param extendedProperties the extendedProperties value to set. - * @return the CustomActivity object itself. - */ - public CustomActivity withExtendedProperties(Map extendedProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withExtendedProperties(extendedProperties); - return this; - } - - /** - * Get the retentionTimeInDays property: The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - * - * @return the retentionTimeInDays value. - */ - public Object retentionTimeInDays() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().retentionTimeInDays(); - } - - /** - * Set the retentionTimeInDays property: The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - * - * @param retentionTimeInDays the retentionTimeInDays value to set. - * @return the CustomActivity object itself. - */ - public CustomActivity withRetentionTimeInDays(Object retentionTimeInDays) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withRetentionTimeInDays(retentionTimeInDays); - return this; - } - - /** - * Get the autoUserSpecification property: Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - * - * @return the autoUserSpecification value. - */ - public Object autoUserSpecification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().autoUserSpecification(); - } - - /** - * Set the autoUserSpecification property: Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - * - * @param autoUserSpecification the autoUserSpecification value to set. - * @return the CustomActivity object itself. - */ - public CustomActivity withAutoUserSpecification(Object autoUserSpecification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withAutoUserSpecification(autoUserSpecification); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CustomActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CustomActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivityReferenceObject.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivityReferenceObject.java deleted file mode 100644 index 95a3f16e3f405..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivityReferenceObject.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Reference objects for custom activity. */ -@Fluent -public final class CustomActivityReferenceObject { - /* - * Linked service references. - */ - @JsonProperty(value = "linkedServices") - private List linkedServices; - - /* - * Dataset references. - */ - @JsonProperty(value = "datasets") - private List datasets; - - /** - * Get the linkedServices property: Linked service references. - * - * @return the linkedServices value. - */ - public List linkedServices() { - return this.linkedServices; - } - - /** - * Set the linkedServices property: Linked service references. - * - * @param linkedServices the linkedServices value to set. - * @return the CustomActivityReferenceObject object itself. - */ - public CustomActivityReferenceObject withLinkedServices(List linkedServices) { - this.linkedServices = linkedServices; - return this; - } - - /** - * Get the datasets property: Dataset references. - * - * @return the datasets value. - */ - public List datasets() { - return this.datasets; - } - - /** - * Set the datasets property: Dataset references. - * - * @param datasets the datasets value to set. - * @return the CustomActivityReferenceObject object itself. - */ - public CustomActivityReferenceObject withDatasets(List datasets) { - this.datasets = datasets; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedServices() != null) { - linkedServices().forEach(e -> e.validate()); - } - if (datasets() != null) { - datasets().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataSourceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataSourceLinkedService.java deleted file mode 100644 index cf288aad89598..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataSourceLinkedService.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Custom linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CustomDataSource") -@Fluent -public final class CustomDataSourceLinkedService extends LinkedService { - /* - * Custom linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private Object typeProperties; - - /** - * Get the typeProperties property: Custom linked service properties. - * - * @return the typeProperties value. - */ - public Object typeProperties() { - return this.typeProperties; - } - - /** - * Set the typeProperties property: Custom linked service properties. - * - * @param typeProperties the typeProperties value to set. - * @return the CustomDataSourceLinkedService object itself. - */ - public CustomDataSourceLinkedService withTypeProperties(Object typeProperties) { - this.typeProperties = typeProperties; - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataSourceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataSourceLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataSourceLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataSourceLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (typeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property typeProperties in model CustomDataSourceLinkedService")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CustomDataSourceLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataset.java deleted file mode 100644 index 7c7a1e74884c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataset.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The custom dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CustomDataset") -@Fluent -public final class CustomDataset extends Dataset { - /* - * Custom dataset properties. - */ - @JsonProperty(value = "typeProperties") - private Object typeProperties; - - /** - * Get the typeProperties property: Custom dataset properties. - * - * @return the typeProperties value. - */ - public Object typeProperties() { - return this.typeProperties; - } - - /** - * Set the typeProperties property: Custom dataset properties. - * - * @param typeProperties the typeProperties value to set. - * @return the CustomDataset object itself. - */ - public CustomDataset withTypeProperties(Object typeProperties) { - this.typeProperties = typeProperties; - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java deleted file mode 100644 index 1be34505d471f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CustomEventsTriggerTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Trigger that runs every time a custom event is received. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("CustomEventsTrigger") -@Fluent -public final class CustomEventsTrigger extends MultiplePipelineTrigger { - /* - * Custom Events Trigger properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CustomEventsTriggerTypeProperties innerTypeProperties = new CustomEventsTriggerTypeProperties(); - - /** - * Get the innerTypeProperties property: Custom Events Trigger properties. - * - * @return the innerTypeProperties value. - */ - private CustomEventsTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CustomEventsTrigger withPipelines(List pipelines) { - super.withPipelines(pipelines); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomEventsTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomEventsTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the subjectBeginsWith property: The event subject must begin with the pattern provided for trigger to fire. - * At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @return the subjectBeginsWith value. - */ - public String subjectBeginsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subjectBeginsWith(); - } - - /** - * Set the subjectBeginsWith property: The event subject must begin with the pattern provided for trigger to fire. - * At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @param subjectBeginsWith the subjectBeginsWith value to set. - * @return the CustomEventsTrigger object itself. - */ - public CustomEventsTrigger withSubjectBeginsWith(String subjectBeginsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withSubjectBeginsWith(subjectBeginsWith); - return this; - } - - /** - * Get the subjectEndsWith property: The event subject must end with the pattern provided for trigger to fire. At - * least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @return the subjectEndsWith value. - */ - public String subjectEndsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subjectEndsWith(); - } - - /** - * Set the subjectEndsWith property: The event subject must end with the pattern provided for trigger to fire. At - * least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @param subjectEndsWith the subjectEndsWith value to set. - * @return the CustomEventsTrigger object itself. - */ - public CustomEventsTrigger withSubjectEndsWith(String subjectEndsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withSubjectEndsWith(subjectEndsWith); - return this; - } - - /** - * Get the events property: The list of event types that cause this trigger to fire. - * - * @return the events value. - */ - public List events() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().events(); - } - - /** - * Set the events property: The list of event types that cause this trigger to fire. - * - * @param events the events value to set. - * @return the CustomEventsTrigger object itself. - */ - public CustomEventsTrigger withEvents(List events) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withEvents(events); - return this; - } - - /** - * Get the scope property: The ARM resource ID of the Azure Event Grid Topic. - * - * @return the scope value. - */ - public String scope() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scope(); - } - - /** - * Set the scope property: The ARM resource ID of the Azure Event Grid Topic. - * - * @param scope the scope value to set. - * @return the CustomEventsTrigger object itself. - */ - public CustomEventsTrigger withScope(String scope) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withScope(scope); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CustomEventsTrigger")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CustomEventsTrigger.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomSetupBase.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomSetupBase.java deleted file mode 100644 index 3b9f654af7ed1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomSetupBase.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The base definition of the custom setup. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = CustomSetupBase.class) -@JsonTypeName("CustomSetupBase") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "CmdkeySetup", value = CmdkeySetup.class), - @JsonSubTypes.Type(name = "EnvironmentVariableSetup", value = EnvironmentVariableSetup.class), - @JsonSubTypes.Type(name = "ComponentSetup", value = ComponentSetup.class), - @JsonSubTypes.Type(name = "AzPowerShellSetup", value = AzPowerShellSetup.class) -}) -@Immutable -public class CustomSetupBase { - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DWCopyCommandDefaultValue.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DWCopyCommandDefaultValue.java deleted file mode 100644 index 99ad253828c07..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DWCopyCommandDefaultValue.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Default value. */ -@Fluent -public final class DWCopyCommandDefaultValue { - /* - * Column name. Type: object (or Expression with resultType string). - */ - @JsonProperty(value = "columnName") - private Object columnName; - - /* - * The default value of the column. Type: object (or Expression with - * resultType string). - */ - @JsonProperty(value = "defaultValue") - private Object defaultValue; - - /** - * Get the columnName property: Column name. Type: object (or Expression with resultType string). - * - * @return the columnName value. - */ - public Object columnName() { - return this.columnName; - } - - /** - * Set the columnName property: Column name. Type: object (or Expression with resultType string). - * - * @param columnName the columnName value to set. - * @return the DWCopyCommandDefaultValue object itself. - */ - public DWCopyCommandDefaultValue withColumnName(Object columnName) { - this.columnName = columnName; - return this; - } - - /** - * Get the defaultValue property: The default value of the column. Type: object (or Expression with resultType - * string). - * - * @return the defaultValue value. - */ - public Object defaultValue() { - return this.defaultValue; - } - - /** - * Set the defaultValue property: The default value of the column. Type: object (or Expression with resultType - * string). - * - * @param defaultValue the defaultValue value to set. - * @return the DWCopyCommandDefaultValue object itself. - */ - public DWCopyCommandDefaultValue withDefaultValue(Object defaultValue) { - this.defaultValue = defaultValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DWCopyCommandSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DWCopyCommandSettings.java deleted file mode 100644 index 2e523c91c44da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DWCopyCommandSettings.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** DW Copy Command settings. */ -@Fluent -public final class DWCopyCommandSettings { - /* - * Specifies the default values for each target column in SQL DW. The - * default values in the property overwrite the DEFAULT constraint set in - * the DB, and identity column cannot have a default value. Type: array of - * objects (or Expression with resultType array of objects). - */ - @JsonProperty(value = "defaultValues") - private List defaultValues; - - /* - * Additional options directly passed to SQL DW in Copy Command. Type: key - * value pairs (value should be string type) (or Expression with resultType - * object). Example: "additionalOptions": { "MAXERRORS": "1000", - * "DATEFORMAT": "'ymd'" } - */ - @JsonProperty(value = "additionalOptions") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map additionalOptions; - - /** - * Get the defaultValues property: Specifies the default values for each target column in SQL DW. The default values - * in the property overwrite the DEFAULT constraint set in the DB, and identity column cannot have a default value. - * Type: array of objects (or Expression with resultType array of objects). - * - * @return the defaultValues value. - */ - public List defaultValues() { - return this.defaultValues; - } - - /** - * Set the defaultValues property: Specifies the default values for each target column in SQL DW. The default values - * in the property overwrite the DEFAULT constraint set in the DB, and identity column cannot have a default value. - * Type: array of objects (or Expression with resultType array of objects). - * - * @param defaultValues the defaultValues value to set. - * @return the DWCopyCommandSettings object itself. - */ - public DWCopyCommandSettings withDefaultValues(List defaultValues) { - this.defaultValues = defaultValues; - return this; - } - - /** - * Get the additionalOptions property: Additional options directly passed to SQL DW in Copy Command. Type: key value - * pairs (value should be string type) (or Expression with resultType object). Example: "additionalOptions": { - * "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" }. - * - * @return the additionalOptions value. - */ - public Map additionalOptions() { - return this.additionalOptions; - } - - /** - * Set the additionalOptions property: Additional options directly passed to SQL DW in Copy Command. Type: key value - * pairs (value should be string type) (or Expression with resultType object). Example: "additionalOptions": { - * "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" }. - * - * @param additionalOptions the additionalOptions value to set. - * @return the DWCopyCommandSettings object itself. - */ - public DWCopyCommandSettings withAdditionalOptions(Map additionalOptions) { - this.additionalOptions = additionalOptions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (defaultValues() != null) { - defaultValues().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlow.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlow.java deleted file mode 100644 index eb37270c9cf88..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlow.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Azure Data Factory nested object which contains a flow with data movements and transformations. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = DataFlow.class) -@JsonTypeName("DataFlow") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "MappingDataFlow", value = MappingDataFlow.class), - @JsonSubTypes.Type(name = "Flowlet", value = Flowlet.class), - @JsonSubTypes.Type(name = "WranglingDataFlow", value = WranglingDataFlow.class) -}) -@Fluent -public class DataFlow { - /* - * The description of the data flow. - */ - @JsonProperty(value = "description") - private String description; - - /* - * List of tags that can be used for describing the data flow. - */ - @JsonProperty(value = "annotations") - private List annotations; - - /* - * The folder that this data flow is in. If not specified, Data flow will - * appear at the root level. - */ - @JsonProperty(value = "folder") - private DataFlowFolder folder; - - /** - * Get the description property: The description of the data flow. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The description of the data flow. - * - * @param description the description value to set. - * @return the DataFlow object itself. - */ - public DataFlow withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the annotations property: List of tags that can be used for describing the data flow. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: List of tags that can be used for describing the data flow. - * - * @param annotations the annotations value to set. - * @return the DataFlow object itself. - */ - public DataFlow withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the folder property: The folder that this data flow is in. If not specified, Data flow will appear at the - * root level. - * - * @return the folder value. - */ - public DataFlowFolder folder() { - return this.folder; - } - - /** - * Set the folder property: The folder that this data flow is in. If not specified, Data flow will appear at the - * root level. - * - * @param folder the folder value to set. - * @return the DataFlow object itself. - */ - public DataFlow withFolder(DataFlowFolder folder) { - this.folder = folder; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (folder() != null) { - folder().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowComputeType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowComputeType.java deleted file mode 100644 index 37a8e4003c4c7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowComputeType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for DataFlowComputeType. */ -public final class DataFlowComputeType extends ExpandableStringEnum { - /** Static value General for DataFlowComputeType. */ - public static final DataFlowComputeType GENERAL = fromString("General"); - - /** Static value MemoryOptimized for DataFlowComputeType. */ - public static final DataFlowComputeType MEMORY_OPTIMIZED = fromString("MemoryOptimized"); - - /** Static value ComputeOptimized for DataFlowComputeType. */ - public static final DataFlowComputeType COMPUTE_OPTIMIZED = fromString("ComputeOptimized"); - - /** - * Creates or finds a DataFlowComputeType from its string representation. - * - * @param name a name to look for. - * @return the corresponding DataFlowComputeType. - */ - @JsonCreator - public static DataFlowComputeType fromString(String name) { - return fromString(name, DataFlowComputeType.class); - } - - /** @return known DataFlowComputeType values. */ - public static Collection values() { - return values(DataFlowComputeType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandPayload.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandPayload.java deleted file mode 100644 index 4a65ea95a0d80..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandPayload.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Structure of command payload. */ -@Fluent -public final class DataFlowDebugCommandPayload { - /* - * The stream name which is used for preview. - */ - @JsonProperty(value = "streamName", required = true) - private String streamName; - - /* - * Row limits for preview response. - */ - @JsonProperty(value = "rowLimits") - private Integer rowLimits; - - /* - * Array of column names. - */ - @JsonProperty(value = "columns") - private List columns; - - /* - * The expression which is used for preview. - */ - @JsonProperty(value = "expression") - private String expression; - - /** - * Get the streamName property: The stream name which is used for preview. - * - * @return the streamName value. - */ - public String streamName() { - return this.streamName; - } - - /** - * Set the streamName property: The stream name which is used for preview. - * - * @param streamName the streamName value to set. - * @return the DataFlowDebugCommandPayload object itself. - */ - public DataFlowDebugCommandPayload withStreamName(String streamName) { - this.streamName = streamName; - return this; - } - - /** - * Get the rowLimits property: Row limits for preview response. - * - * @return the rowLimits value. - */ - public Integer rowLimits() { - return this.rowLimits; - } - - /** - * Set the rowLimits property: Row limits for preview response. - * - * @param rowLimits the rowLimits value to set. - * @return the DataFlowDebugCommandPayload object itself. - */ - public DataFlowDebugCommandPayload withRowLimits(Integer rowLimits) { - this.rowLimits = rowLimits; - return this; - } - - /** - * Get the columns property: Array of column names. - * - * @return the columns value. - */ - public List columns() { - return this.columns; - } - - /** - * Set the columns property: Array of column names. - * - * @param columns the columns value to set. - * @return the DataFlowDebugCommandPayload object itself. - */ - public DataFlowDebugCommandPayload withColumns(List columns) { - this.columns = columns; - return this; - } - - /** - * Get the expression property: The expression which is used for preview. - * - * @return the expression value. - */ - public String expression() { - return this.expression; - } - - /** - * Set the expression property: The expression which is used for preview. - * - * @param expression the expression value to set. - * @return the DataFlowDebugCommandPayload object itself. - */ - public DataFlowDebugCommandPayload withExpression(String expression) { - this.expression = expression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (streamName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property streamName in model DataFlowDebugCommandPayload")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataFlowDebugCommandPayload.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandRequest.java deleted file mode 100644 index 4d48fecabaa7d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandRequest.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Request body structure for data flow debug command. */ -@Fluent -public final class DataFlowDebugCommandRequest { - /* - * The ID of data flow debug session. - */ - @JsonProperty(value = "sessionId") - private String sessionId; - - /* - * The command type. - */ - @JsonProperty(value = "command") - private DataFlowDebugCommandType command; - - /* - * The command payload object. - */ - @JsonProperty(value = "commandPayload") - private DataFlowDebugCommandPayload commandPayload; - - /** - * Get the sessionId property: The ID of data flow debug session. - * - * @return the sessionId value. - */ - public String sessionId() { - return this.sessionId; - } - - /** - * Set the sessionId property: The ID of data flow debug session. - * - * @param sessionId the sessionId value to set. - * @return the DataFlowDebugCommandRequest object itself. - */ - public DataFlowDebugCommandRequest withSessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * Get the command property: The command type. - * - * @return the command value. - */ - public DataFlowDebugCommandType command() { - return this.command; - } - - /** - * Set the command property: The command type. - * - * @param command the command value to set. - * @return the DataFlowDebugCommandRequest object itself. - */ - public DataFlowDebugCommandRequest withCommand(DataFlowDebugCommandType command) { - this.command = command; - return this; - } - - /** - * Get the commandPayload property: The command payload object. - * - * @return the commandPayload value. - */ - public DataFlowDebugCommandPayload commandPayload() { - return this.commandPayload; - } - - /** - * Set the commandPayload property: The command payload object. - * - * @param commandPayload the commandPayload value to set. - * @return the DataFlowDebugCommandRequest object itself. - */ - public DataFlowDebugCommandRequest withCommandPayload(DataFlowDebugCommandPayload commandPayload) { - this.commandPayload = commandPayload; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (commandPayload() != null) { - commandPayload().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandResponse.java deleted file mode 100644 index 21d4eea512ee1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandResponse.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; - -/** An immutable client-side representation of DataFlowDebugCommandResponse. */ -public interface DataFlowDebugCommandResponse { - /** - * Gets the status property: The run status of data preview, statistics or expression preview. - * - * @return the status value. - */ - String status(); - - /** - * Gets the data property: The result data of data preview, statistics or expression preview. - * - * @return the data value. - */ - String data(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner object. - * - * @return the inner object. - */ - DataFlowDebugCommandResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandType.java deleted file mode 100644 index e9af57e9f6d52..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugCommandType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for DataFlowDebugCommandType. */ -public final class DataFlowDebugCommandType extends ExpandableStringEnum { - /** Static value executePreviewQuery for DataFlowDebugCommandType. */ - public static final DataFlowDebugCommandType EXECUTE_PREVIEW_QUERY = fromString("executePreviewQuery"); - - /** Static value executeStatisticsQuery for DataFlowDebugCommandType. */ - public static final DataFlowDebugCommandType EXECUTE_STATISTICS_QUERY = fromString("executeStatisticsQuery"); - - /** Static value executeExpressionQuery for DataFlowDebugCommandType. */ - public static final DataFlowDebugCommandType EXECUTE_EXPRESSION_QUERY = fromString("executeExpressionQuery"); - - /** - * Creates or finds a DataFlowDebugCommandType from its string representation. - * - * @param name a name to look for. - * @return the corresponding DataFlowDebugCommandType. - */ - @JsonCreator - public static DataFlowDebugCommandType fromString(String name) { - return fromString(name, DataFlowDebugCommandType.class); - } - - /** @return known DataFlowDebugCommandType values. */ - public static Collection values() { - return values(DataFlowDebugCommandType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackage.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackage.java deleted file mode 100644 index b8a81e6e039a4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackage.java +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Request body structure for starting data flow debug session. */ -@Fluent -public final class DataFlowDebugPackage { - /* - * The ID of data flow debug session. - */ - @JsonProperty(value = "sessionId") - private String sessionId; - - /* - * Data flow instance. - */ - @JsonProperty(value = "dataFlow") - private DataFlowDebugResource dataFlow; - - /* - * List of Data flows - */ - @JsonProperty(value = "dataFlows") - private List dataFlows; - - /* - * List of datasets. - */ - @JsonProperty(value = "datasets") - private List datasets; - - /* - * List of linked services. - */ - @JsonProperty(value = "linkedServices") - private List linkedServices; - - /* - * Staging info for debug session. - */ - @JsonProperty(value = "staging") - private DataFlowStagingInfo staging; - - /* - * Data flow debug settings. - */ - @JsonProperty(value = "debugSettings") - private DataFlowDebugPackageDebugSettings debugSettings; - - /* - * Request body structure for starting data flow debug session. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the sessionId property: The ID of data flow debug session. - * - * @return the sessionId value. - */ - public String sessionId() { - return this.sessionId; - } - - /** - * Set the sessionId property: The ID of data flow debug session. - * - * @param sessionId the sessionId value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withSessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * Get the dataFlow property: Data flow instance. - * - * @return the dataFlow value. - */ - public DataFlowDebugResource dataFlow() { - return this.dataFlow; - } - - /** - * Set the dataFlow property: Data flow instance. - * - * @param dataFlow the dataFlow value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withDataFlow(DataFlowDebugResource dataFlow) { - this.dataFlow = dataFlow; - return this; - } - - /** - * Get the dataFlows property: List of Data flows. - * - * @return the dataFlows value. - */ - public List dataFlows() { - return this.dataFlows; - } - - /** - * Set the dataFlows property: List of Data flows. - * - * @param dataFlows the dataFlows value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withDataFlows(List dataFlows) { - this.dataFlows = dataFlows; - return this; - } - - /** - * Get the datasets property: List of datasets. - * - * @return the datasets value. - */ - public List datasets() { - return this.datasets; - } - - /** - * Set the datasets property: List of datasets. - * - * @param datasets the datasets value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withDatasets(List datasets) { - this.datasets = datasets; - return this; - } - - /** - * Get the linkedServices property: List of linked services. - * - * @return the linkedServices value. - */ - public List linkedServices() { - return this.linkedServices; - } - - /** - * Set the linkedServices property: List of linked services. - * - * @param linkedServices the linkedServices value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withLinkedServices(List linkedServices) { - this.linkedServices = linkedServices; - return this; - } - - /** - * Get the staging property: Staging info for debug session. - * - * @return the staging value. - */ - public DataFlowStagingInfo staging() { - return this.staging; - } - - /** - * Set the staging property: Staging info for debug session. - * - * @param staging the staging value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withStaging(DataFlowStagingInfo staging) { - this.staging = staging; - return this; - } - - /** - * Get the debugSettings property: Data flow debug settings. - * - * @return the debugSettings value. - */ - public DataFlowDebugPackageDebugSettings debugSettings() { - return this.debugSettings; - } - - /** - * Set the debugSettings property: Data flow debug settings. - * - * @param debugSettings the debugSettings value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withDebugSettings(DataFlowDebugPackageDebugSettings debugSettings) { - this.debugSettings = debugSettings; - return this; - } - - /** - * Get the additionalProperties property: Request body structure for starting data flow debug session. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Request body structure for starting data flow debug session. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DataFlowDebugPackage object itself. - */ - public DataFlowDebugPackage withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataFlow() != null) { - dataFlow().validate(); - } - if (dataFlows() != null) { - dataFlows().forEach(e -> e.validate()); - } - if (datasets() != null) { - datasets().forEach(e -> e.validate()); - } - if (linkedServices() != null) { - linkedServices().forEach(e -> e.validate()); - } - if (staging() != null) { - staging().validate(); - } - if (debugSettings() != null) { - debugSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackageDebugSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackageDebugSettings.java deleted file mode 100644 index faa97fbf26b19..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackageDebugSettings.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Data flow debug settings. */ -@Fluent -public final class DataFlowDebugPackageDebugSettings { - /* - * Source setting for data flow debug. - */ - @JsonProperty(value = "sourceSettings") - private List sourceSettings; - - /* - * Data flow parameters. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * Parameters for dataset. - */ - @JsonProperty(value = "datasetParameters") - private Object datasetParameters; - - /** - * Get the sourceSettings property: Source setting for data flow debug. - * - * @return the sourceSettings value. - */ - public List sourceSettings() { - return this.sourceSettings; - } - - /** - * Set the sourceSettings property: Source setting for data flow debug. - * - * @param sourceSettings the sourceSettings value to set. - * @return the DataFlowDebugPackageDebugSettings object itself. - */ - public DataFlowDebugPackageDebugSettings withSourceSettings(List sourceSettings) { - this.sourceSettings = sourceSettings; - return this; - } - - /** - * Get the parameters property: Data flow parameters. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Data flow parameters. - * - * @param parameters the parameters value to set. - * @return the DataFlowDebugPackageDebugSettings object itself. - */ - public DataFlowDebugPackageDebugSettings withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the datasetParameters property: Parameters for dataset. - * - * @return the datasetParameters value. - */ - public Object datasetParameters() { - return this.datasetParameters; - } - - /** - * Set the datasetParameters property: Parameters for dataset. - * - * @param datasetParameters the datasetParameters value to set. - * @return the DataFlowDebugPackageDebugSettings object itself. - */ - public DataFlowDebugPackageDebugSettings withDatasetParameters(Object datasetParameters) { - this.datasetParameters = datasetParameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sourceSettings() != null) { - sourceSettings().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugResource.java deleted file mode 100644 index 2ff3c6a0d10be..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugResource.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Data flow debug resource. */ -@Fluent -public final class DataFlowDebugResource extends SubResourceDebugResource { - /* - * Data flow properties. - */ - @JsonProperty(value = "properties", required = true) - private DataFlow properties; - - /** - * Get the properties property: Data flow properties. - * - * @return the properties value. - */ - public DataFlow properties() { - return this.properties; - } - - /** - * Set the properties property: Data flow properties. - * - * @param properties the properties value to set. - * @return the DataFlowDebugResource object itself. - */ - public DataFlowDebugResource withProperties(DataFlow properties) { - this.properties = properties; - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowDebugResource withName(String name) { - super.withName(name); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model DataFlowDebugResource")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataFlowDebugResource.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionInfo.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionInfo.java deleted file mode 100644 index 15fcee1eb7623..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionInfo.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import java.util.Map; - -/** An immutable client-side representation of DataFlowDebugSessionInfo. */ -public interface DataFlowDebugSessionInfo { - /** - * Gets the dataFlowName property: The name of the data flow. - * - * @return the dataFlowName value. - */ - String dataFlowName(); - - /** - * Gets the computeType property: Compute type of the cluster. - * - * @return the computeType value. - */ - String computeType(); - - /** - * Gets the coreCount property: Core count of the cluster. - * - * @return the coreCount value. - */ - Integer coreCount(); - - /** - * Gets the nodeCount property: Node count of the cluster. (deprecated property). - * - * @return the nodeCount value. - */ - Integer nodeCount(); - - /** - * Gets the integrationRuntimeName property: Attached integration runtime name of data flow debug session. - * - * @return the integrationRuntimeName value. - */ - String integrationRuntimeName(); - - /** - * Gets the sessionId property: The ID of data flow debug session. - * - * @return the sessionId value. - */ - String sessionId(); - - /** - * Gets the startTime property: Start time of data flow debug session. - * - * @return the startTime value. - */ - String startTime(); - - /** - * Gets the timeToLiveInMinutes property: Compute type of the cluster. - * - * @return the timeToLiveInMinutes value. - */ - Integer timeToLiveInMinutes(); - - /** - * Gets the lastActivityTime property: Last activity time of data flow debug session. - * - * @return the lastActivityTime value. - */ - String lastActivityTime(); - - /** - * Gets the additionalProperties property: Data flow debug session info. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner object. - * - * @return the inner object. - */ - DataFlowDebugSessionInfoInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessions.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessions.java deleted file mode 100644 index 8391c27c376c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessions.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of DataFlowDebugSessions. */ -public interface DataFlowDebugSessions { - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session. - */ - CreateDataFlowDebugSessionResponse create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request); - - /** - * Creates a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session. - */ - CreateDataFlowDebugSessionResponse create( - String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context); - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedIterable}. - */ - PagedIterable queryByFactory(String resourceGroupName, String factoryName); - - /** - * Query all active data flow debug sessions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedIterable}. - */ - PagedIterable queryByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session. - */ - AddDataFlowToDebugSessionResponse addDataFlow( - String resourceGroupName, String factoryName, DataFlowDebugPackage request); - - /** - * Add a data flow into debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition with debug content. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for starting data flow debug session along with {@link Response}. - */ - Response addDataFlowWithResponse( - String resourceGroupName, String factoryName, DataFlowDebugPackage request, Context context); - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request); - - /** - * Deletes a data flow debug session. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug session definition for deletion. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request, Context context); - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview. - */ - DataFlowDebugCommandResponse executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request); - - /** - * Execute a data flow debug command. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param request Data flow debug command definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview. - */ - DataFlowDebugCommandResponse executeCommand( - String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsCreateHeaders.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsCreateHeaders.java deleted file mode 100644 index a558faf8589cf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsCreateHeaders.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The DataFlowDebugSessionsCreateHeaders model. */ -@Fluent -public final class DataFlowDebugSessionsCreateHeaders { - /* - * The location property. - */ - @JsonProperty(value = "location") - private String location; - - /** - * Get the location property: The location property. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The location property. - * - * @param location the location value to set. - * @return the DataFlowDebugSessionsCreateHeaders object itself. - */ - public DataFlowDebugSessionsCreateHeaders withLocation(String location) { - this.location = location; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsCreateResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsCreateResponse.java deleted file mode 100644 index 3604c91c4dc6b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsCreateResponse.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; - -/** Contains all response data for the create operation. */ -public final class DataFlowDebugSessionsCreateResponse - extends ResponseBase { - /** - * Creates an instance of DataFlowDebugSessionsCreateResponse. - * - * @param request the request which resulted in this DataFlowDebugSessionsCreateResponse. - * @param statusCode the status code of the HTTP response. - * @param rawHeaders the raw headers of the HTTP response. - * @param value the deserialized value of the HTTP response. - * @param headers the deserialized headers of the HTTP response. - */ - public DataFlowDebugSessionsCreateResponse( - HttpRequest request, - int statusCode, - HttpHeaders rawHeaders, - CreateDataFlowDebugSessionResponseInner value, - DataFlowDebugSessionsCreateHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } - - /** @return the deserialized response body. */ - @Override - public CreateDataFlowDebugSessionResponseInner getValue() { - return super.getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsExecuteCommandHeaders.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsExecuteCommandHeaders.java deleted file mode 100644 index dc457b7a86efd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsExecuteCommandHeaders.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The DataFlowDebugSessionsExecuteCommandHeaders model. */ -@Fluent -public final class DataFlowDebugSessionsExecuteCommandHeaders { - /* - * The location property. - */ - @JsonProperty(value = "location") - private String location; - - /** - * Get the location property: The location property. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The location property. - * - * @param location the location value to set. - * @return the DataFlowDebugSessionsExecuteCommandHeaders object itself. - */ - public DataFlowDebugSessionsExecuteCommandHeaders withLocation(String location) { - this.location = location; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsExecuteCommandResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsExecuteCommandResponse.java deleted file mode 100644 index 794bbd99a726e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessionsExecuteCommandResponse.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; - -/** Contains all response data for the executeCommand operation. */ -public final class DataFlowDebugSessionsExecuteCommandResponse - extends ResponseBase { - /** - * Creates an instance of DataFlowDebugSessionsExecuteCommandResponse. - * - * @param request the request which resulted in this DataFlowDebugSessionsExecuteCommandResponse. - * @param statusCode the status code of the HTTP response. - * @param rawHeaders the raw headers of the HTTP response. - * @param value the deserialized value of the HTTP response. - * @param headers the deserialized headers of the HTTP response. - */ - public DataFlowDebugSessionsExecuteCommandResponse( - HttpRequest request, - int statusCode, - HttpHeaders rawHeaders, - DataFlowDebugCommandResponseInner value, - DataFlowDebugSessionsExecuteCommandHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } - - /** @return the deserialized response body. */ - @Override - public DataFlowDebugCommandResponseInner getValue() { - return super.getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowFolder.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowFolder.java deleted file mode 100644 index 368ad8f14beb2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowFolder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The folder that this data flow is in. If not specified, Data flow will appear at the root level. */ -@Fluent -public final class DataFlowFolder { - /* - * The name of the folder that this data flow is in. - */ - @JsonProperty(value = "name") - private String name; - - /** - * Get the name property: The name of the folder that this data flow is in. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the folder that this data flow is in. - * - * @param name the name value to set. - * @return the DataFlowFolder object itself. - */ - public DataFlowFolder withName(String name) { - this.name = name; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowListResponse.java deleted file mode 100644 index de1f619d5b07f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowListResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of data flow resources. */ -@Fluent -public final class DataFlowListResponse { - /* - * List of data flows. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of data flows. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of data flows. - * - * @param value the value value to set. - * @return the DataFlowListResponse object itself. - */ - public DataFlowListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the DataFlowListResponse object itself. - */ - public DataFlowListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model DataFlowListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataFlowListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowReference.java deleted file mode 100644 index e803d37c60fe3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowReference.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Data flow reference type. */ -@Fluent -public final class DataFlowReference { - /* - * Data flow reference type. - */ - @JsonProperty(value = "type", required = true) - private String type = "DataFlowReference"; - - /* - * Reference data flow name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /* - * Reference data flow parameters from dataset. - */ - @JsonProperty(value = "datasetParameters") - private Object datasetParameters; - - /* - * Data flow parameters - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * Data flow reference type. - */ - @JsonIgnore private Map additionalProperties; - - /** Creates an instance of DataFlowReference class. */ - public DataFlowReference() { - type = "DataFlowReference"; - } - - /** - * Get the type property: Data flow reference type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Data flow reference type. - * - * @param type the type value to set. - * @return the DataFlowReference object itself. - */ - public DataFlowReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference data flow name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference data flow name. - * - * @param referenceName the referenceName value to set. - * @return the DataFlowReference object itself. - */ - public DataFlowReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Get the datasetParameters property: Reference data flow parameters from dataset. - * - * @return the datasetParameters value. - */ - public Object datasetParameters() { - return this.datasetParameters; - } - - /** - * Set the datasetParameters property: Reference data flow parameters from dataset. - * - * @param datasetParameters the datasetParameters value to set. - * @return the DataFlowReference object itself. - */ - public DataFlowReference withDatasetParameters(Object datasetParameters) { - this.datasetParameters = datasetParameters; - return this; - } - - /** - * Get the parameters property: Data flow parameters. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Data flow parameters. - * - * @param parameters the parameters value to set. - * @return the DataFlowReference object itself. - */ - public DataFlowReference withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the additionalProperties property: Data flow reference type. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Data flow reference type. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DataFlowReference object itself. - */ - public DataFlowReference withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property referenceName in model DataFlowReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataFlowReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowResource.java deleted file mode 100644 index dd48147fe91a8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowResource.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; - -/** An immutable client-side representation of DataFlowResource. */ -public interface DataFlowResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Data flow properties. - * - * @return the properties value. - */ - DataFlow properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner object. - * - * @return the inner object. - */ - DataFlowResourceInner innerModel(); - - /** The entirety of the DataFlowResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The DataFlowResource definition stages. */ - interface DefinitionStages { - /** The first stage of the DataFlowResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the DataFlowResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithProperties withExistingFactory(String resourceGroupName, String factoryName); - } - /** The stage of the DataFlowResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Data flow properties.. - * - * @param properties Data flow properties. - * @return the next definition stage. - */ - WithCreate withProperties(DataFlow properties); - } - /** - * The stage of the DataFlowResource definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - DataFlowResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - DataFlowResource create(Context context); - } - /** The stage of the DataFlowResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the data flow entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the DataFlowResource resource. - * - * @return the stage of resource update. - */ - DataFlowResource.Update update(); - - /** The template for DataFlowResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - DataFlowResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - DataFlowResource apply(Context context); - } - /** The DataFlowResource update stages. */ - interface UpdateStages { - /** The stage of the DataFlowResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Data flow properties.. - * - * @param properties Data flow properties. - * @return the next definition stage. - */ - Update withProperties(DataFlow properties); - } - /** The stage of the DataFlowResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the data flow entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - DataFlowResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - DataFlowResource refresh(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSink.java deleted file mode 100644 index c4f7758d6c24f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSink.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Transformation for data flow sink. */ -@Fluent -public class DataFlowSink extends Transformation { - /* - * Schema linked service reference. - */ - @JsonProperty(value = "schemaLinkedService") - private LinkedServiceReference schemaLinkedService; - - /** - * Get the schemaLinkedService property: Schema linked service reference. - * - * @return the schemaLinkedService value. - */ - public LinkedServiceReference schemaLinkedService() { - return this.schemaLinkedService; - } - - /** - * Set the schemaLinkedService property: Schema linked service reference. - * - * @param schemaLinkedService the schemaLinkedService value to set. - * @return the DataFlowSink object itself. - */ - public DataFlowSink withSchemaLinkedService(LinkedServiceReference schemaLinkedService) { - this.schemaLinkedService = schemaLinkedService; - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSink withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSink withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSink withDataset(DatasetReference dataset) { - super.withDataset(dataset); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSink withLinkedService(LinkedServiceReference linkedService) { - super.withLinkedService(linkedService); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSink withFlowlet(DataFlowReference flowlet) { - super.withFlowlet(flowlet); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (schemaLinkedService() != null) { - schemaLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSource.java deleted file mode 100644 index 89255dc7c19fd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSource.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Transformation for data flow source. */ -@Fluent -public class DataFlowSource extends Transformation { - /* - * Schema linked service reference. - */ - @JsonProperty(value = "schemaLinkedService") - private LinkedServiceReference schemaLinkedService; - - /** - * Get the schemaLinkedService property: Schema linked service reference. - * - * @return the schemaLinkedService value. - */ - public LinkedServiceReference schemaLinkedService() { - return this.schemaLinkedService; - } - - /** - * Set the schemaLinkedService property: Schema linked service reference. - * - * @param schemaLinkedService the schemaLinkedService value to set. - * @return the DataFlowSource object itself. - */ - public DataFlowSource withSchemaLinkedService(LinkedServiceReference schemaLinkedService) { - this.schemaLinkedService = schemaLinkedService; - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSource withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSource withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSource withDataset(DatasetReference dataset) { - super.withDataset(dataset); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSource withLinkedService(LinkedServiceReference linkedService) { - super.withLinkedService(linkedService); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataFlowSource withFlowlet(DataFlowReference flowlet) { - super.withFlowlet(flowlet); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (schemaLinkedService() != null) { - schemaLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSourceSetting.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSourceSetting.java deleted file mode 100644 index 58aaebcbd5250..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSourceSetting.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Definition of data flow source setting for debug. */ -@Fluent -public final class DataFlowSourceSetting { - /* - * The data flow source name. - */ - @JsonProperty(value = "sourceName") - private String sourceName; - - /* - * Defines the row limit of data flow source in debug. - */ - @JsonProperty(value = "rowLimit") - private Integer rowLimit; - - /* - * Definition of data flow source setting for debug. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the sourceName property: The data flow source name. - * - * @return the sourceName value. - */ - public String sourceName() { - return this.sourceName; - } - - /** - * Set the sourceName property: The data flow source name. - * - * @param sourceName the sourceName value to set. - * @return the DataFlowSourceSetting object itself. - */ - public DataFlowSourceSetting withSourceName(String sourceName) { - this.sourceName = sourceName; - return this; - } - - /** - * Get the rowLimit property: Defines the row limit of data flow source in debug. - * - * @return the rowLimit value. - */ - public Integer rowLimit() { - return this.rowLimit; - } - - /** - * Set the rowLimit property: Defines the row limit of data flow source in debug. - * - * @param rowLimit the rowLimit value to set. - * @return the DataFlowSourceSetting object itself. - */ - public DataFlowSourceSetting withRowLimit(Integer rowLimit) { - this.rowLimit = rowLimit; - return this; - } - - /** - * Get the additionalProperties property: Definition of data flow source setting for debug. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Definition of data flow source setting for debug. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DataFlowSourceSetting object itself. - */ - public DataFlowSourceSetting withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowStagingInfo.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowStagingInfo.java deleted file mode 100644 index 86a9ec618551c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowStagingInfo.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Staging info for execute data flow activity. */ -@Fluent -public final class DataFlowStagingInfo { - /* - * Staging linked service reference. - */ - @JsonProperty(value = "linkedService") - private LinkedServiceReference linkedService; - - /* - * Folder path for staging blob. Type: string (or Expression with - * resultType string) - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /** - * Get the linkedService property: Staging linked service reference. - * - * @return the linkedService value. - */ - public LinkedServiceReference linkedService() { - return this.linkedService; - } - - /** - * Set the linkedService property: Staging linked service reference. - * - * @param linkedService the linkedService value to set. - * @return the DataFlowStagingInfo object itself. - */ - public DataFlowStagingInfo withLinkedService(LinkedServiceReference linkedService) { - this.linkedService = linkedService; - return this; - } - - /** - * Get the folderPath property: Folder path for staging blob. Type: string (or Expression with resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: Folder path for staging blob. Type: string (or Expression with resultType string). - * - * @param folderPath the folderPath value to set. - * @return the DataFlowStagingInfo object itself. - */ - public DataFlowStagingInfo withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedService() != null) { - linkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlows.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlows.java deleted file mode 100644 index 1ccb4daef27bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlows.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of DataFlows. */ -public interface DataFlows { - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow. - */ - DataFlowResource get(String resourceGroupName, String factoryName, String dataFlowName); - - /** - * Gets a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch, Context context); - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String dataFlowName); - - /** - * Deletes a data flow. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param dataFlowName The data flow name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String dataFlowName, Context context); - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists data flows. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Gets a data flow. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow along with {@link Response}. - */ - DataFlowResource getById(String id); - - /** - * Gets a data flow. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data flow along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a data flow. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a data flow. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new DataFlowResource resource. - * - * @param name resource name. - * @return the first stage of the new DataFlowResource definition. - */ - DataFlowResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java deleted file mode 100644 index 0dc972cf6110a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java +++ /dev/null @@ -1,271 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DataLakeAnalyticsUsqlActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Data Lake Analytics U-SQL activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DataLakeAnalyticsU-SQL") -@Fluent -public final class DataLakeAnalyticsUsqlActivity extends ExecutionActivity { - /* - * Data Lake Analytics U-SQL activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DataLakeAnalyticsUsqlActivityTypeProperties innerTypeProperties = - new DataLakeAnalyticsUsqlActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Data Lake Analytics U-SQL activity properties. - * - * @return the innerTypeProperties value. - */ - private DataLakeAnalyticsUsqlActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the scriptPath property: Case-sensitive path to folder that contains the U-SQL script. Type: string (or - * Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptPath(); - } - - /** - * Set the scriptPath property: Case-sensitive path to folder that contains the U-SQL script. Type: string (or - * Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the DataLakeAnalyticsUsqlActivity object itself. - */ - public DataLakeAnalyticsUsqlActivity withScriptPath(Object scriptPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withScriptPath(scriptPath); - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptLinkedService(); - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the DataLakeAnalyticsUsqlActivity object itself. - */ - public DataLakeAnalyticsUsqlActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withScriptLinkedService(scriptLinkedService); - return this; - } - - /** - * Get the degreeOfParallelism property: The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - * - * @return the degreeOfParallelism value. - */ - public Object degreeOfParallelism() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().degreeOfParallelism(); - } - - /** - * Set the degreeOfParallelism property: The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - * - * @param degreeOfParallelism the degreeOfParallelism value to set. - * @return the DataLakeAnalyticsUsqlActivity object itself. - */ - public DataLakeAnalyticsUsqlActivity withDegreeOfParallelism(Object degreeOfParallelism) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withDegreeOfParallelism(degreeOfParallelism); - return this; - } - - /** - * Get the priority property: Determines which jobs out of all that are queued should be selected to run first. The - * lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType - * integer), minimum: 1. - * - * @return the priority value. - */ - public Object priority() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().priority(); - } - - /** - * Set the priority property: Determines which jobs out of all that are queued should be selected to run first. The - * lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType - * integer), minimum: 1. - * - * @param priority the priority value to set. - * @return the DataLakeAnalyticsUsqlActivity object itself. - */ - public DataLakeAnalyticsUsqlActivity withPriority(Object priority) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withPriority(priority); - return this; - } - - /** - * Get the parameters property: Parameters for U-SQL job request. - * - * @return the parameters value. - */ - public Map parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); - } - - /** - * Set the parameters property: Parameters for U-SQL job request. - * - * @param parameters the parameters value to set. - * @return the DataLakeAnalyticsUsqlActivity object itself. - */ - public DataLakeAnalyticsUsqlActivity withParameters(Map parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); - return this; - } - - /** - * Get the runtimeVersion property: Runtime version of the U-SQL engine to use. Type: string (or Expression with - * resultType string). - * - * @return the runtimeVersion value. - */ - public Object runtimeVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runtimeVersion(); - } - - /** - * Set the runtimeVersion property: Runtime version of the U-SQL engine to use. Type: string (or Expression with - * resultType string). - * - * @param runtimeVersion the runtimeVersion value to set. - * @return the DataLakeAnalyticsUsqlActivity object itself. - */ - public DataLakeAnalyticsUsqlActivity withRuntimeVersion(Object runtimeVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withRuntimeVersion(runtimeVersion); - return this; - } - - /** - * Get the compilationMode property: Compilation mode of U-SQL. Must be one of these values : Semantic, Full and - * SingleBox. Type: string (or Expression with resultType string). - * - * @return the compilationMode value. - */ - public Object compilationMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compilationMode(); - } - - /** - * Set the compilationMode property: Compilation mode of U-SQL. Must be one of these values : Semantic, Full and - * SingleBox. Type: string (or Expression with resultType string). - * - * @param compilationMode the compilationMode value to set. - * @return the DataLakeAnalyticsUsqlActivity object itself. - */ - public DataLakeAnalyticsUsqlActivity withCompilationMode(Object compilationMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withCompilationMode(compilationMode); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DataLakeAnalyticsUsqlActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataLakeAnalyticsUsqlActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java deleted file mode 100644 index e5b0c5c0fc442..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksNotebookActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** DatabricksNotebook activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DatabricksNotebook") -@Fluent -public final class DatabricksNotebookActivity extends ExecutionActivity { - /* - * Databricks Notebook activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DatabricksNotebookActivityTypeProperties innerTypeProperties = - new DatabricksNotebookActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Databricks Notebook activity properties. - * - * @return the innerTypeProperties value. - */ - private DatabricksNotebookActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path - * must begin with a slash. Type: string (or Expression with resultType string). - * - * @return the notebookPath value. - */ - public Object notebookPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().notebookPath(); - } - - /** - * Set the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path - * must begin with a slash. Type: string (or Expression with resultType string). - * - * @param notebookPath the notebookPath value to set. - * @return the DatabricksNotebookActivity object itself. - */ - public DatabricksNotebookActivity withNotebookPath(Object notebookPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties(); - } - this.innerTypeProperties().withNotebookPath(notebookPath); - return this; - } - - /** - * Get the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a - * parameter that is not specified, the default value from the notebook will be used. - * - * @return the baseParameters value. - */ - public Map baseParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().baseParameters(); - } - - /** - * Set the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a - * parameter that is not specified, the default value from the notebook will be used. - * - * @param baseParameters the baseParameters value to set. - * @return the DatabricksNotebookActivity object itself. - */ - public DatabricksNotebookActivity withBaseParameters(Map baseParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties(); - } - this.innerTypeProperties().withBaseParameters(baseParameters); - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().libraries(); - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksNotebookActivity object itself. - */ - public DatabricksNotebookActivity withLibraries(List> libraries) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties(); - } - this.innerTypeProperties().withLibraries(libraries); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DatabricksNotebookActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabricksNotebookActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java deleted file mode 100644 index 910bfce9e3782..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkJarActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** DatabricksSparkJar activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DatabricksSparkJar") -@Fluent -public final class DatabricksSparkJarActivity extends ExecutionActivity { - /* - * Databricks SparkJar activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DatabricksSparkJarActivityTypeProperties innerTypeProperties = - new DatabricksSparkJarActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Databricks SparkJar activity properties. - * - * @return the innerTypeProperties value. - */ - private DatabricksSparkJarActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the mainClassName property: The full name of the class containing the main method to be executed. This class - * must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). - * - * @return the mainClassName value. - */ - public Object mainClassName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mainClassName(); - } - - /** - * Set the mainClassName property: The full name of the class containing the main method to be executed. This class - * must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). - * - * @param mainClassName the mainClassName value to set. - * @return the DatabricksSparkJarActivity object itself. - */ - public DatabricksSparkJarActivity withMainClassName(Object mainClassName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkJarActivityTypeProperties(); - } - this.innerTypeProperties().withMainClassName(mainClassName); - return this; - } - - /** - * Get the parameters property: Parameters that will be passed to the main method. - * - * @return the parameters value. - */ - public List parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); - } - - /** - * Set the parameters property: Parameters that will be passed to the main method. - * - * @param parameters the parameters value to set. - * @return the DatabricksSparkJarActivity object itself. - */ - public DatabricksSparkJarActivity withParameters(List parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkJarActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().libraries(); - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksSparkJarActivity object itself. - */ - public DatabricksSparkJarActivity withLibraries(List> libraries) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkJarActivityTypeProperties(); - } - this.innerTypeProperties().withLibraries(libraries); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DatabricksSparkJarActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabricksSparkJarActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java deleted file mode 100644 index bfa77cea89e0b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkPythonActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** DatabricksSparkPython activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DatabricksSparkPython") -@Fluent -public final class DatabricksSparkPythonActivity extends ExecutionActivity { - /* - * Databricks SparkPython activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DatabricksSparkPythonActivityTypeProperties innerTypeProperties = - new DatabricksSparkPythonActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Databricks SparkPython activity properties. - * - * @return the innerTypeProperties value. - */ - private DatabricksSparkPythonActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string - * (or Expression with resultType string). - * - * @return the pythonFile value. - */ - public Object pythonFile() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pythonFile(); - } - - /** - * Set the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string - * (or Expression with resultType string). - * - * @param pythonFile the pythonFile value to set. - * @return the DatabricksSparkPythonActivity object itself. - */ - public DatabricksSparkPythonActivity withPythonFile(Object pythonFile) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkPythonActivityTypeProperties(); - } - this.innerTypeProperties().withPythonFile(pythonFile); - return this; - } - - /** - * Get the parameters property: Command line parameters that will be passed to the Python file. - * - * @return the parameters value. - */ - public List parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); - } - - /** - * Set the parameters property: Command line parameters that will be passed to the Python file. - * - * @param parameters the parameters value to set. - * @return the DatabricksSparkPythonActivity object itself. - */ - public DatabricksSparkPythonActivity withParameters(List parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkPythonActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().libraries(); - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksSparkPythonActivity object itself. - */ - public DatabricksSparkPythonActivity withLibraries(List> libraries) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkPythonActivityTypeProperties(); - } - this.innerTypeProperties().withLibraries(libraries); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DatabricksSparkPythonActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabricksSparkPythonActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Dataset.java deleted file mode 100644 index 382da887b5b84..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Dataset.java +++ /dev/null @@ -1,389 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The Azure Data Factory nested object which identifies data within different data stores, such as tables, files, - * folders, and documents. - */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = Dataset.class) -@JsonTypeName("Dataset") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "AmazonS3Object", value = AmazonS3Dataset.class), - @JsonSubTypes.Type(name = "Avro", value = AvroDataset.class), - @JsonSubTypes.Type(name = "Excel", value = ExcelDataset.class), - @JsonSubTypes.Type(name = "Parquet", value = ParquetDataset.class), - @JsonSubTypes.Type(name = "DelimitedText", value = DelimitedTextDataset.class), - @JsonSubTypes.Type(name = "Json", value = JsonDataset.class), - @JsonSubTypes.Type(name = "Xml", value = XmlDataset.class), - @JsonSubTypes.Type(name = "Orc", value = OrcDataset.class), - @JsonSubTypes.Type(name = "Binary", value = BinaryDataset.class), - @JsonSubTypes.Type(name = "AzureBlob", value = AzureBlobDataset.class), - @JsonSubTypes.Type(name = "AzureTable", value = AzureTableDataset.class), - @JsonSubTypes.Type(name = "AzureSqlTable", value = AzureSqlTableDataset.class), - @JsonSubTypes.Type(name = "AzureSqlMITable", value = AzureSqlMITableDataset.class), - @JsonSubTypes.Type(name = "AzureSqlDWTable", value = AzureSqlDWTableDataset.class), - @JsonSubTypes.Type(name = "CassandraTable", value = CassandraTableDataset.class), - @JsonSubTypes.Type(name = "CustomDataset", value = CustomDataset.class), - @JsonSubTypes.Type(name = "CosmosDbSqlApiCollection", value = CosmosDbSqlApiCollectionDataset.class), - @JsonSubTypes.Type(name = "DocumentDbCollection", value = DocumentDbCollectionDataset.class), - @JsonSubTypes.Type(name = "DynamicsEntity", value = DynamicsEntityDataset.class), - @JsonSubTypes.Type(name = "DynamicsCrmEntity", value = DynamicsCrmEntityDataset.class), - @JsonSubTypes.Type(name = "CommonDataServiceForAppsEntity", value = CommonDataServiceForAppsEntityDataset.class), - @JsonSubTypes.Type(name = "AzureDataLakeStoreFile", value = AzureDataLakeStoreDataset.class), - @JsonSubTypes.Type(name = "AzureBlobFSFile", value = AzureBlobFSDataset.class), - @JsonSubTypes.Type(name = "Office365Table", value = Office365Dataset.class), - @JsonSubTypes.Type(name = "FileShare", value = FileShareDataset.class), - @JsonSubTypes.Type(name = "MongoDbCollection", value = MongoDbCollectionDataset.class), - @JsonSubTypes.Type(name = "MongoDbAtlasCollection", value = MongoDbAtlasCollectionDataset.class), - @JsonSubTypes.Type(name = "MongoDbV2Collection", value = MongoDbV2CollectionDataset.class), - @JsonSubTypes.Type(name = "CosmosDbMongoDbApiCollection", value = CosmosDbMongoDbApiCollectionDataset.class), - @JsonSubTypes.Type(name = "ODataResource", value = ODataResourceDataset.class), - @JsonSubTypes.Type(name = "OracleTable", value = OracleTableDataset.class), - @JsonSubTypes.Type(name = "AmazonRdsForOracleTable", value = AmazonRdsForOracleTableDataset.class), - @JsonSubTypes.Type(name = "TeradataTable", value = TeradataTableDataset.class), - @JsonSubTypes.Type(name = "AzureMySqlTable", value = AzureMySqlTableDataset.class), - @JsonSubTypes.Type(name = "AmazonRedshiftTable", value = AmazonRedshiftTableDataset.class), - @JsonSubTypes.Type(name = "Db2Table", value = Db2TableDataset.class), - @JsonSubTypes.Type(name = "RelationalTable", value = RelationalTableDataset.class), - @JsonSubTypes.Type(name = "InformixTable", value = InformixTableDataset.class), - @JsonSubTypes.Type(name = "OdbcTable", value = OdbcTableDataset.class), - @JsonSubTypes.Type(name = "MySqlTable", value = MySqlTableDataset.class), - @JsonSubTypes.Type(name = "PostgreSqlTable", value = PostgreSqlTableDataset.class), - @JsonSubTypes.Type(name = "MicrosoftAccessTable", value = MicrosoftAccessTableDataset.class), - @JsonSubTypes.Type(name = "SalesforceObject", value = SalesforceObjectDataset.class), - @JsonSubTypes.Type(name = "SalesforceServiceCloudObject", value = SalesforceServiceCloudObjectDataset.class), - @JsonSubTypes.Type(name = "SybaseTable", value = SybaseTableDataset.class), - @JsonSubTypes.Type(name = "SapBwCube", value = SapBwCubeDataset.class), - @JsonSubTypes.Type(name = "SapCloudForCustomerResource", value = SapCloudForCustomerResourceDataset.class), - @JsonSubTypes.Type(name = "SapEccResource", value = SapEccResourceDataset.class), - @JsonSubTypes.Type(name = "SapHanaTable", value = SapHanaTableDataset.class), - @JsonSubTypes.Type(name = "SapOpenHubTable", value = SapOpenHubTableDataset.class), - @JsonSubTypes.Type(name = "SqlServerTable", value = SqlServerTableDataset.class), - @JsonSubTypes.Type(name = "AmazonRdsForSqlServerTable", value = AmazonRdsForSqlServerTableDataset.class), - @JsonSubTypes.Type(name = "RestResource", value = RestResourceDataset.class), - @JsonSubTypes.Type(name = "SapTableResource", value = SapTableResourceDataset.class), - @JsonSubTypes.Type(name = "WebTable", value = WebTableDataset.class), - @JsonSubTypes.Type(name = "AzureSearchIndex", value = AzureSearchIndexDataset.class), - @JsonSubTypes.Type(name = "HttpFile", value = HttpDataset.class), - @JsonSubTypes.Type(name = "AmazonMWSObject", value = AmazonMwsObjectDataset.class), - @JsonSubTypes.Type(name = "AzurePostgreSqlTable", value = AzurePostgreSqlTableDataset.class), - @JsonSubTypes.Type(name = "ConcurObject", value = ConcurObjectDataset.class), - @JsonSubTypes.Type(name = "CouchbaseTable", value = CouchbaseTableDataset.class), - @JsonSubTypes.Type(name = "DrillTable", value = DrillTableDataset.class), - @JsonSubTypes.Type(name = "EloquaObject", value = EloquaObjectDataset.class), - @JsonSubTypes.Type(name = "GoogleBigQueryObject", value = GoogleBigQueryObjectDataset.class), - @JsonSubTypes.Type(name = "GreenplumTable", value = GreenplumTableDataset.class), - @JsonSubTypes.Type(name = "HBaseObject", value = HBaseObjectDataset.class), - @JsonSubTypes.Type(name = "HiveObject", value = HiveObjectDataset.class), - @JsonSubTypes.Type(name = "HubspotObject", value = HubspotObjectDataset.class), - @JsonSubTypes.Type(name = "ImpalaObject", value = ImpalaObjectDataset.class), - @JsonSubTypes.Type(name = "JiraObject", value = JiraObjectDataset.class), - @JsonSubTypes.Type(name = "MagentoObject", value = MagentoObjectDataset.class), - @JsonSubTypes.Type(name = "MariaDBTable", value = MariaDBTableDataset.class), - @JsonSubTypes.Type(name = "AzureMariaDBTable", value = AzureMariaDBTableDataset.class), - @JsonSubTypes.Type(name = "MarketoObject", value = MarketoObjectDataset.class), - @JsonSubTypes.Type(name = "PaypalObject", value = PaypalObjectDataset.class), - @JsonSubTypes.Type(name = "PhoenixObject", value = PhoenixObjectDataset.class), - @JsonSubTypes.Type(name = "PrestoObject", value = PrestoObjectDataset.class), - @JsonSubTypes.Type(name = "QuickBooksObject", value = QuickBooksObjectDataset.class), - @JsonSubTypes.Type(name = "ServiceNowObject", value = ServiceNowObjectDataset.class), - @JsonSubTypes.Type(name = "ShopifyObject", value = ShopifyObjectDataset.class), - @JsonSubTypes.Type(name = "SparkObject", value = SparkObjectDataset.class), - @JsonSubTypes.Type(name = "SquareObject", value = SquareObjectDataset.class), - @JsonSubTypes.Type(name = "XeroObject", value = XeroObjectDataset.class), - @JsonSubTypes.Type(name = "ZohoObject", value = ZohoObjectDataset.class), - @JsonSubTypes.Type(name = "NetezzaTable", value = NetezzaTableDataset.class), - @JsonSubTypes.Type(name = "VerticaTable", value = VerticaTableDataset.class), - @JsonSubTypes.Type(name = "SalesforceMarketingCloudObject", value = SalesforceMarketingCloudObjectDataset.class), - @JsonSubTypes.Type(name = "ResponsysObject", value = ResponsysObjectDataset.class), - @JsonSubTypes.Type(name = "DynamicsAXResource", value = DynamicsAXResourceDataset.class), - @JsonSubTypes.Type(name = "OracleServiceCloudObject", value = OracleServiceCloudObjectDataset.class), - @JsonSubTypes.Type(name = "AzureDataExplorerTable", value = AzureDataExplorerTableDataset.class), - @JsonSubTypes.Type(name = "GoogleAdWordsObject", value = GoogleAdWordsObjectDataset.class), - @JsonSubTypes.Type(name = "SnowflakeTable", value = SnowflakeDataset.class), - @JsonSubTypes.Type(name = "SharePointOnlineListResource", value = SharePointOnlineListResourceDataset.class), - @JsonSubTypes.Type(name = "AzureDatabricksDeltaLakeDataset", value = AzureDatabricksDeltaLakeDataset.class) -}) -@Fluent -public class Dataset { - /* - * Dataset description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Columns that define the structure of the dataset. Type: array (or - * Expression with resultType array), itemType: DatasetDataElement. - */ - @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. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * Parameters for dataset. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * List of tags that can be used for describing the Dataset. - */ - @JsonProperty(value = "annotations") - private List annotations; - - /* - * The folder that this Dataset is in. If not specified, Dataset will - * appear at the root level. - */ - @JsonProperty(value = "folder") - private DatasetFolder folder; - - /* - * The Azure Data Factory nested object which identifies data within - * different data stores, such as tables, files, folders, and documents. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the description property: Dataset description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Dataset description. - * - * @param description the description value to set. - * @return the Dataset object itself. - */ - public Dataset withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the structure property: Columns that define the structure of the dataset. Type: array (or Expression with - * resultType array), itemType: DatasetDataElement. - * - * @return the structure value. - */ - public Object structure() { - return this.structure; - } - - /** - * Set the structure property: Columns that define the structure of the dataset. Type: array (or Expression with - * resultType array), itemType: DatasetDataElement. - * - * @param structure the structure value to set. - * @return the Dataset object itself. - */ - public Dataset withStructure(Object structure) { - this.structure = structure; - return this; - } - - /** - * Get the schema property: 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 the schema property: 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 Dataset object itself. - */ - public Dataset withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the linkedServiceName property: Linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the Dataset object itself. - */ - public Dataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the parameters property: Parameters for dataset. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters for dataset. - * - * @param parameters the parameters value to set. - * @return the Dataset object itself. - */ - public Dataset withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the annotations property: List of tags that can be used for describing the Dataset. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: List of tags that can be used for describing the Dataset. - * - * @param annotations the annotations value to set. - * @return the Dataset object itself. - */ - public Dataset withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the folder property: The folder that this Dataset is in. If not specified, Dataset will appear at the root - * level. - * - * @return the folder value. - */ - public DatasetFolder folder() { - return this.folder; - } - - /** - * Set the folder property: The folder that this Dataset is in. If not specified, Dataset will appear at the root - * level. - * - * @param folder the folder value to set. - * @return the Dataset object itself. - */ - public Dataset withFolder(DatasetFolder folder) { - this.folder = folder; - return this; - } - - /** - * Get the additionalProperties property: The Azure Data Factory nested object which identifies data within - * different data stores, such as tables, files, folders, and documents. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The Azure Data Factory nested object which identifies data within - * different data stores, such as tables, files, folders, and documents. - * - * @param additionalProperties the additionalProperties value to set. - * @return the Dataset object itself. - */ - public Dataset withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property linkedServiceName in model Dataset")); - } else { - linkedServiceName().validate(); - } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (folder() != null) { - folder().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Dataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetCompression.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetCompression.java deleted file mode 100644 index 4ba3742188202..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetCompression.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** The compression method used on a dataset. */ -@Fluent -public final class DatasetCompression { - /* - * Type of dataset compression. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "type", required = true) - private Object type; - - /* - * The dataset compression level. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "level") - private Object level; - - /* - * The compression method used on a dataset. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the type property: Type of dataset compression. Type: string (or Expression with resultType string). - * - * @return the type value. - */ - public Object type() { - return this.type; - } - - /** - * Set the type property: Type of dataset compression. Type: string (or Expression with resultType string). - * - * @param type the type value to set. - * @return the DatasetCompression object itself. - */ - public DatasetCompression withType(Object type) { - this.type = type; - return this; - } - - /** - * Get the level property: The dataset compression level. Type: string (or Expression with resultType string). - * - * @return the level value. - */ - public Object level() { - return this.level; - } - - /** - * Set the level property: The dataset compression level. Type: string (or Expression with resultType string). - * - * @param level the level value to set. - * @return the DatasetCompression object itself. - */ - public DatasetCompression withLevel(Object level) { - this.level = level; - return this; - } - - /** - * Get the additionalProperties property: The compression method used on a dataset. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The compression method used on a dataset. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DatasetCompression object itself. - */ - public DatasetCompression withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model DatasetCompression")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatasetCompression.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetDebugResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetDebugResource.java deleted file mode 100644 index 70714843d975d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetDebugResource.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dataset debug resource. */ -@Fluent -public final class DatasetDebugResource extends SubResourceDebugResource { - /* - * Dataset properties. - */ - @JsonProperty(value = "properties", required = true) - private Dataset properties; - - /** - * Get the properties property: Dataset properties. - * - * @return the properties value. - */ - public Dataset properties() { - return this.properties; - } - - /** - * Set the properties property: Dataset properties. - * - * @param properties the properties value to set. - * @return the DatasetDebugResource object itself. - */ - public DatasetDebugResource withProperties(Dataset properties) { - this.properties = properties; - return this; - } - - /** {@inheritDoc} */ - @Override - public DatasetDebugResource withName(String name) { - super.withName(name); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property properties in model DatasetDebugResource")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatasetDebugResource.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetFolder.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetFolder.java deleted file mode 100644 index 5848de71f9921..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetFolder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The folder that this Dataset is in. If not specified, Dataset will appear at the root level. */ -@Fluent -public final class DatasetFolder { - /* - * The name of the folder that this Dataset is in. - */ - @JsonProperty(value = "name") - private String name; - - /** - * Get the name property: The name of the folder that this Dataset is in. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the folder that this Dataset is in. - * - * @param name the name value to set. - * @return the DatasetFolder object itself. - */ - public DatasetFolder withName(String name) { - this.name = name; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetListResponse.java deleted file mode 100644 index 2d594e32fc9b7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetListResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of dataset resources. */ -@Fluent -public final class DatasetListResponse { - /* - * List of datasets. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of datasets. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of datasets. - * - * @param value the value value to set. - * @return the DatasetListResponse object itself. - */ - public DatasetListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the DatasetListResponse object itself. - */ - public DatasetListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model DatasetListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatasetListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetLocation.java deleted file mode 100644 index 66aa17d7ffbb2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetLocation.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Dataset location. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = DatasetLocation.class) -@JsonTypeName("DatasetLocation") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "AzureBlobStorageLocation", value = AzureBlobStorageLocation.class), - @JsonSubTypes.Type(name = "AzureBlobFSLocation", value = AzureBlobFSLocation.class), - @JsonSubTypes.Type(name = "AzureDataLakeStoreLocation", value = AzureDataLakeStoreLocation.class), - @JsonSubTypes.Type(name = "AmazonS3Location", value = AmazonS3Location.class), - @JsonSubTypes.Type(name = "FileServerLocation", value = FileServerLocation.class), - @JsonSubTypes.Type(name = "AzureFileStorageLocation", value = AzureFileStorageLocation.class), - @JsonSubTypes.Type(name = "AmazonS3CompatibleLocation", value = AmazonS3CompatibleLocation.class), - @JsonSubTypes.Type(name = "OracleCloudStorageLocation", value = OracleCloudStorageLocation.class), - @JsonSubTypes.Type(name = "GoogleCloudStorageLocation", value = GoogleCloudStorageLocation.class), - @JsonSubTypes.Type(name = "FtpServerLocation", value = FtpServerLocation.class), - @JsonSubTypes.Type(name = "SftpLocation", value = SftpLocation.class), - @JsonSubTypes.Type(name = "HttpServerLocation", value = HttpServerLocation.class), - @JsonSubTypes.Type(name = "HdfsLocation", value = HdfsLocation.class) -}) -@Fluent -public class DatasetLocation { - /* - * Specify the folder path of dataset. Type: string (or Expression with - * resultType string) - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * Specify the file name of dataset. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * Dataset location. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the folderPath property: Specify the folder path of dataset. Type: string (or Expression with resultType - * string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: Specify the folder path of dataset. Type: string (or Expression with resultType - * string). - * - * @param folderPath the folderPath value to set. - * @return the DatasetLocation object itself. - */ - public DatasetLocation withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the fileName property: Specify the file name of dataset. Type: string (or Expression with resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: Specify the file name of dataset. Type: string (or Expression with resultType string). - * - * @param fileName the fileName value to set. - * @return the DatasetLocation object itself. - */ - public DatasetLocation withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the additionalProperties property: Dataset location. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Dataset location. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DatasetLocation object itself. - */ - public DatasetLocation withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetReference.java deleted file mode 100644 index d8e7362f36eb6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetReference.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Dataset reference type. */ -@Fluent -public final class DatasetReference { - /* - * Dataset reference type. - */ - @JsonProperty(value = "type", required = true) - private String type = "DatasetReference"; - - /* - * Reference dataset name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /* - * Arguments for dataset. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /** Creates an instance of DatasetReference class. */ - public DatasetReference() { - type = "DatasetReference"; - } - - /** - * Get the type property: Dataset reference type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Dataset reference type. - * - * @param type the type value to set. - * @return the DatasetReference object itself. - */ - public DatasetReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference dataset name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference dataset name. - * - * @param referenceName the referenceName value to set. - * @return the DatasetReference object itself. - */ - public DatasetReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Get the parameters property: Arguments for dataset. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Arguments for dataset. - * - * @param parameters the parameters value to set. - * @return the DatasetReference object itself. - */ - public DatasetReference withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property referenceName in model DatasetReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatasetReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetResource.java deleted file mode 100644 index 172c80198da27..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetResource.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; - -/** An immutable client-side representation of DatasetResource. */ -public interface DatasetResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Dataset properties. - * - * @return the properties value. - */ - Dataset properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner object. - * - * @return the inner object. - */ - DatasetResourceInner innerModel(); - - /** The entirety of the DatasetResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The DatasetResource definition stages. */ - interface DefinitionStages { - /** The first stage of the DatasetResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the DatasetResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithProperties withExistingFactory(String resourceGroupName, String factoryName); - } - /** The stage of the DatasetResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Dataset properties.. - * - * @param properties Dataset properties. - * @return the next definition stage. - */ - WithCreate withProperties(Dataset properties); - } - /** - * The stage of the DatasetResource definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - DatasetResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - DatasetResource create(Context context); - } - /** The stage of the DatasetResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the dataset entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the DatasetResource resource. - * - * @return the stage of resource update. - */ - DatasetResource.Update update(); - - /** The template for DatasetResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - DatasetResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - DatasetResource apply(Context context); - } - /** The DatasetResource update stages. */ - interface UpdateStages { - /** The stage of the DatasetResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Dataset properties.. - * - * @param properties Dataset properties. - * @return the next definition stage. - */ - Update withProperties(Dataset properties); - } - /** The stage of the DatasetResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the dataset entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - DatasetResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - DatasetResource refresh(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetSchemaDataElement.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetSchemaDataElement.java deleted file mode 100644 index ec18c93428068..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetSchemaDataElement.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Columns that define the physical type schema of the dataset. */ -@Fluent -public final class DatasetSchemaDataElement { - /* - * Name of the schema column. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "name") - private Object name; - - /* - * Type of the schema column. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "type") - private Object type; - - /* - * Columns that define the physical type schema of the dataset. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the name property: Name of the schema column. Type: string (or Expression with resultType string). - * - * @return the name value. - */ - public Object name() { - return this.name; - } - - /** - * Set the name property: Name of the schema column. Type: string (or Expression with resultType string). - * - * @param name the name value to set. - * @return the DatasetSchemaDataElement object itself. - */ - public DatasetSchemaDataElement withName(Object name) { - this.name = name; - return this; - } - - /** - * Get the type property: Type of the schema column. Type: string (or Expression with resultType string). - * - * @return the type value. - */ - public Object type() { - return this.type; - } - - /** - * Set the type property: Type of the schema column. Type: string (or Expression with resultType string). - * - * @param type the type value to set. - * @return the DatasetSchemaDataElement object itself. - */ - public DatasetSchemaDataElement withType(Object type) { - this.type = type; - return this; - } - - /** - * Get the additionalProperties property: Columns that define the physical type schema of the dataset. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Columns that define the physical type schema of the dataset. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DatasetSchemaDataElement object itself. - */ - public DatasetSchemaDataElement withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetStorageFormat.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetStorageFormat.java deleted file mode 100644 index 96a94bbc5284a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetStorageFormat.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** The format definition of a storage. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = DatasetStorageFormat.class) -@JsonTypeName("DatasetStorageFormat") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "TextFormat", value = TextFormat.class), - @JsonSubTypes.Type(name = "JsonFormat", value = JsonFormat.class), - @JsonSubTypes.Type(name = "AvroFormat", value = AvroFormat.class), - @JsonSubTypes.Type(name = "OrcFormat", value = OrcFormat.class), - @JsonSubTypes.Type(name = "ParquetFormat", value = ParquetFormat.class) -}) -@Fluent -public class DatasetStorageFormat { - /* - * Serializer. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "serializer") - private Object serializer; - - /* - * Deserializer. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "deserializer") - private Object deserializer; - - /* - * The format definition of a storage. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the serializer property: Serializer. Type: string (or Expression with resultType string). - * - * @return the serializer value. - */ - public Object serializer() { - return this.serializer; - } - - /** - * Set the serializer property: Serializer. Type: string (or Expression with resultType string). - * - * @param serializer the serializer value to set. - * @return the DatasetStorageFormat object itself. - */ - public DatasetStorageFormat withSerializer(Object serializer) { - this.serializer = serializer; - return this; - } - - /** - * Get the deserializer property: Deserializer. Type: string (or Expression with resultType string). - * - * @return the deserializer value. - */ - public Object deserializer() { - return this.deserializer; - } - - /** - * Set the deserializer property: Deserializer. Type: string (or Expression with resultType string). - * - * @param deserializer the deserializer value to set. - * @return the DatasetStorageFormat object itself. - */ - public DatasetStorageFormat withDeserializer(Object deserializer) { - this.deserializer = deserializer; - return this; - } - - /** - * Get the additionalProperties property: The format definition of a storage. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The format definition of a storage. - * - * @param additionalProperties the additionalProperties value to set. - * @return the DatasetStorageFormat object itself. - */ - public DatasetStorageFormat withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Datasets.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Datasets.java deleted file mode 100644 index 6c422d71a0de5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Datasets.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of Datasets. */ -public interface Datasets { - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists datasets. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset. - */ - DatasetResource get(String resourceGroupName, String factoryName, String datasetName); - - /** - * Gets a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch, Context context); - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String datasetName); - - /** - * Deletes a dataset. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param datasetName The dataset name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String datasetName, Context context); - - /** - * Gets a dataset. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset along with {@link Response}. - */ - DatasetResource getById(String id); - - /** - * Gets a dataset. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a dataset along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a dataset. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a dataset. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new DatasetResource resource. - * - * @param name resource name. - * @return the first stage of the new DatasetResource definition. - */ - DatasetResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DayOfWeek.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DayOfWeek.java deleted file mode 100644 index 12548e6fdf58e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DayOfWeek.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Defines values for DayOfWeek. */ -public enum DayOfWeek { - /** Enum value Sunday. */ - SUNDAY("Sunday"), - - /** Enum value Monday. */ - MONDAY("Monday"), - - /** Enum value Tuesday. */ - TUESDAY("Tuesday"), - - /** Enum value Wednesday. */ - WEDNESDAY("Wednesday"), - - /** Enum value Thursday. */ - THURSDAY("Thursday"), - - /** Enum value Friday. */ - FRIDAY("Friday"), - - /** Enum value Saturday. */ - SATURDAY("Saturday"); - - /** The actual serialized value for a DayOfWeek instance. */ - private final String value; - - DayOfWeek(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a DayOfWeek instance. - * - * @param value the serialized value to parse. - * @return the parsed DayOfWeek object, or null if unable to parse. - */ - @JsonCreator - public static DayOfWeek fromString(String value) { - DayOfWeek[] items = DayOfWeek.values(); - for (DayOfWeek item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DaysOfWeek.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DaysOfWeek.java deleted file mode 100644 index ed242a49b489f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DaysOfWeek.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Defines values for DaysOfWeek. */ -public enum DaysOfWeek { - /** Enum value Sunday. */ - SUNDAY("Sunday"), - - /** Enum value Monday. */ - MONDAY("Monday"), - - /** Enum value Tuesday. */ - TUESDAY("Tuesday"), - - /** Enum value Wednesday. */ - WEDNESDAY("Wednesday"), - - /** Enum value Thursday. */ - THURSDAY("Thursday"), - - /** Enum value Friday. */ - FRIDAY("Friday"), - - /** Enum value Saturday. */ - SATURDAY("Saturday"); - - /** The actual serialized value for a DaysOfWeek instance. */ - private final String value; - - DaysOfWeek(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a DaysOfWeek instance. - * - * @param value the serialized value to parse. - * @return the parsed DaysOfWeek object, or null if unable to parse. - */ - @JsonCreator - public static DaysOfWeek fromString(String value) { - DaysOfWeek[] items = DaysOfWeek.values(); - for (DaysOfWeek item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2AuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2AuthenticationType.java deleted file mode 100644 index c69cb0a4c852f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2AuthenticationType.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for Db2AuthenticationType. */ -public final class Db2AuthenticationType extends ExpandableStringEnum { - /** Static value Basic for Db2AuthenticationType. */ - public static final Db2AuthenticationType BASIC = fromString("Basic"); - - /** - * Creates or finds a Db2AuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding Db2AuthenticationType. - */ - @JsonCreator - public static Db2AuthenticationType fromString(String name) { - return fromString(name, Db2AuthenticationType.class); - } - - /** @return known Db2AuthenticationType values. */ - public static Collection values() { - return values(Db2AuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java deleted file mode 100644 index 1bc79cb70c48a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java +++ /dev/null @@ -1,310 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.Db2LinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for DB2 data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Db2") -@Fluent -public final class Db2LinkedService extends LinkedService { - /* - * DB2 linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private Db2LinkedServiceTypeProperties innerTypeProperties = new Db2LinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: DB2 linked service properties. - * - * @return the innerTypeProperties value. - */ - private Db2LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public Db2LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the server property: Server name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: Server name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the database property: Database name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: Database name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with - * connectionString property. - * - * @return the authenticationType value. - */ - public Db2AuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with - * connectionString property. - * - * @param authenticationType the authenticationType value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withAuthenticationType(Db2AuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: Username for authentication. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username for authentication. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the packageCollection property: Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression with resultType string). - * - * @return the packageCollection value. - */ - public Object packageCollection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageCollection(); - } - - /** - * Set the packageCollection property: Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression with resultType string). - * - * @param packageCollection the packageCollection value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withPackageCollection(Object packageCollection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPackageCollection(packageCollection); - return this; - } - - /** - * Get the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with resultType string). - * - * @return the certificateCommonName value. - */ - public Object certificateCommonName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().certificateCommonName(); - } - - /** - * Set the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with resultType string). - * - * @param certificateCommonName the certificateCommonName value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withCertificateCommonName(Object certificateCommonName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCertificateCommonName(certificateCommonName); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: - * string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: - * string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the Db2LinkedService object itself. - */ - public Db2LinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model Db2LinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Db2LinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2Source.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2Source.java deleted file mode 100644 index 48f53b8ec22a1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2Source.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for Db2 databases. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Db2Source") -@Fluent -public final class Db2Source extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the Db2Source object itself. - */ - public Db2Source withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2Source withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2Source withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2Source withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2Source withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2Source withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2Source withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java deleted file mode 100644 index 57db6e97b80fe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.Db2TableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Db2 table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Db2Table") -@Fluent -public final class Db2TableDataset extends Dataset { - /* - * Db2 table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private Db2TableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Db2 table dataset properties. - * - * @return the innerTypeProperties value. - */ - private Db2TableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the Db2TableDataset object itself. - */ - public Db2TableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2TableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the schema property: The Db2 schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The Db2 schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the Db2TableDataset object itself. - */ - public Db2TableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2TableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The Db2 table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The Db2 table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the Db2TableDataset object itself. - */ - public Db2TableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2TableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java deleted file mode 100644 index 8a926d20d1f30..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java +++ /dev/null @@ -1,240 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DeleteActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Delete activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Delete") -@Fluent -public final class DeleteActivity extends ExecutionActivity { - /* - * Delete activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DeleteActivityTypeProperties innerTypeProperties = new DeleteActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Delete activity properties. - * - * @return the innerTypeProperties value. - */ - private DeleteActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the recursive property: If true, files or sub-folders under current folder path will be deleted recursively. - * Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().recursive(); - } - - /** - * Set the recursive property: If true, files or sub-folders under current folder path will be deleted recursively. - * Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the DeleteActivity object itself. - */ - public DeleteActivity withRecursive(Object recursive) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withRecursive(recursive); - return this; - } - - /** - * Get the maxConcurrentConnections property: The max concurrent connections to connect data source at the same - * time. - * - * @return the maxConcurrentConnections value. - */ - public Integer maxConcurrentConnections() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().maxConcurrentConnections(); - } - - /** - * Set the maxConcurrentConnections property: The max concurrent connections to connect data source at the same - * time. - * - * @param maxConcurrentConnections the maxConcurrentConnections value to set. - * @return the DeleteActivity object itself. - */ - public DeleteActivity withMaxConcurrentConnections(Integer maxConcurrentConnections) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** - * Get the enableLogging property: Whether to record detailed logs of delete-activity execution. Default value is - * false. Type: boolean (or Expression with resultType boolean). - * - * @return the enableLogging value. - */ - public Object enableLogging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableLogging(); - } - - /** - * Set the enableLogging property: Whether to record detailed logs of delete-activity execution. Default value is - * false. Type: boolean (or Expression with resultType boolean). - * - * @param enableLogging the enableLogging value to set. - * @return the DeleteActivity object itself. - */ - public DeleteActivity withEnableLogging(Object enableLogging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withEnableLogging(enableLogging); - return this; - } - - /** - * Get the logStorageSettings property: Log storage settings customer need to provide when enableLogging is true. - * - * @return the logStorageSettings value. - */ - public LogStorageSettings logStorageSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logStorageSettings(); - } - - /** - * Set the logStorageSettings property: Log storage settings customer need to provide when enableLogging is true. - * - * @param logStorageSettings the logStorageSettings value to set. - * @return the DeleteActivity object itself. - */ - public DeleteActivity withLogStorageSettings(LogStorageSettings logStorageSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withLogStorageSettings(logStorageSettings); - return this; - } - - /** - * Get the dataset property: Delete activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); - } - - /** - * Set the dataset property: Delete activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the DeleteActivity object itself. - */ - public DeleteActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); - return this; - } - - /** - * Get the storeSettings property: Delete activity store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storeSettings(); - } - - /** - * Set the storeSettings property: Delete activity store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the DeleteActivity object itself. - */ - public DeleteActivity withStoreSettings(StoreReadSettings storeSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withStoreSettings(storeSettings); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DeleteActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DeleteActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteDataFlowDebugSessionRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteDataFlowDebugSessionRequest.java deleted file mode 100644 index ff551978262a5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteDataFlowDebugSessionRequest.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Request body structure for deleting data flow debug session. */ -@Fluent -public final class DeleteDataFlowDebugSessionRequest { - /* - * The ID of data flow debug session. - */ - @JsonProperty(value = "sessionId") - private String sessionId; - - /** - * Get the sessionId property: The ID of data flow debug session. - * - * @return the sessionId value. - */ - public String sessionId() { - return this.sessionId; - } - - /** - * Set the sessionId property: The ID of data flow debug session. - * - * @param sessionId the sessionId value to set. - * @return the DeleteDataFlowDebugSessionRequest object itself. - */ - public DeleteDataFlowDebugSessionRequest withSessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java deleted file mode 100644 index a3144d2a725ee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java +++ /dev/null @@ -1,338 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.DelimitedTextDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Delimited text dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DelimitedText") -@Fluent -public final class DelimitedTextDataset extends Dataset { - /* - * Delimited text dataset properties. - */ - @JsonProperty(value = "typeProperties") - private DelimitedTextDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Delimited text dataset properties. - * - * @return the innerTypeProperties value. - */ - private DelimitedTextDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the delimited text storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the delimited text storage. - * - * @param location the location value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @return the columnDelimiter value. - */ - public Object columnDelimiter() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().columnDelimiter(); - } - - /** - * Set the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @param columnDelimiter the columnDelimiter value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withColumnDelimiter(Object columnDelimiter) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withColumnDelimiter(columnDelimiter); - return this; - } - - /** - * Get the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @return the rowDelimiter value. - */ - public Object rowDelimiter() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().rowDelimiter(); - } - - /** - * Set the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @param rowDelimiter the rowDelimiter value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withRowDelimiter(Object rowDelimiter) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withRowDelimiter(rowDelimiter); - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If miss, the default value is UTF-8, - * unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set - * supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - * resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encodingName(); - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If miss, the default value is UTF-8, - * unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set - * supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - * resultType string). - * - * @param encodingName the encodingName value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withEncodingName(Object encodingName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withEncodingName(encodingName); - return this; - } - - /** - * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the compressionCodec value. - */ - public Object compressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compressionCodec(); - } - - /** - * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @param compressionCodec the compressionCodec value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withCompressionCodec(Object compressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withCompressionCodec(compressionCodec); - return this; - } - - /** - * Get the compressionLevel property: The data compression method used for DelimitedText. - * - * @return the compressionLevel value. - */ - public Object compressionLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compressionLevel(); - } - - /** - * Set the compressionLevel property: The data compression method used for DelimitedText. - * - * @param compressionLevel the compressionLevel value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withCompressionLevel(Object compressionLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withCompressionLevel(compressionLevel); - return this; - } - - /** - * Get the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @return the quoteChar value. - */ - public Object quoteChar() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().quoteChar(); - } - - /** - * Set the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @param quoteChar the quoteChar value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withQuoteChar(Object quoteChar) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withQuoteChar(quoteChar); - return this; - } - - /** - * Get the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @return the escapeChar value. - */ - public Object escapeChar() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().escapeChar(); - } - - /** - * Set the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @param escapeChar the escapeChar value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withEscapeChar(Object escapeChar) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withEscapeChar(escapeChar); - return this; - } - - /** - * Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowAsHeader value. - */ - public Object firstRowAsHeader() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().firstRowAsHeader(); - } - - /** - * Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowAsHeader the firstRowAsHeader value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withFirstRowAsHeader(Object firstRowAsHeader) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withFirstRowAsHeader(firstRowAsHeader); - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nullValue(); - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the DelimitedTextDataset object itself. - */ - public DelimitedTextDataset withNullValue(Object nullValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withNullValue(nullValue); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextReadSettings.java deleted file mode 100644 index 5cd0ddf6d39da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextReadSettings.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Delimited text read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DelimitedTextReadSettings") -@Fluent -public final class DelimitedTextReadSettings extends FormatReadSettings { - /* - * Indicates the number of non-empty rows to skip when reading data from - * input files. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "skipLineCount") - private Object skipLineCount; - - /* - * Compression settings. - */ - @JsonProperty(value = "compressionProperties") - private CompressionReadSettings compressionProperties; - - /** - * Get the skipLineCount property: Indicates the number of non-empty rows to skip when reading data from input - * files. Type: integer (or Expression with resultType integer). - * - * @return the skipLineCount value. - */ - public Object skipLineCount() { - return this.skipLineCount; - } - - /** - * Set the skipLineCount property: Indicates the number of non-empty rows to skip when reading data from input - * files. Type: integer (or Expression with resultType integer). - * - * @param skipLineCount the skipLineCount value to set. - * @return the DelimitedTextReadSettings object itself. - */ - public DelimitedTextReadSettings withSkipLineCount(Object skipLineCount) { - this.skipLineCount = skipLineCount; - return this; - } - - /** - * Get the compressionProperties property: Compression settings. - * - * @return the compressionProperties value. - */ - public CompressionReadSettings compressionProperties() { - return this.compressionProperties; - } - - /** - * Set the compressionProperties property: Compression settings. - * - * @param compressionProperties the compressionProperties value to set. - * @return the DelimitedTextReadSettings object itself. - */ - public DelimitedTextReadSettings withCompressionProperties(CompressionReadSettings compressionProperties) { - this.compressionProperties = compressionProperties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (compressionProperties() != null) { - compressionProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextSink.java deleted file mode 100644 index a517e0f47e788..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextSink.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity DelimitedText sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DelimitedTextSink") -@Fluent -public final class DelimitedTextSink extends CopySink { - /* - * DelimitedText store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreWriteSettings storeSettings; - - /* - * DelimitedText format settings. - */ - @JsonProperty(value = "formatSettings") - private DelimitedTextWriteSettings formatSettings; - - /** - * Get the storeSettings property: DelimitedText store settings. - * - * @return the storeSettings value. - */ - public StoreWriteSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: DelimitedText store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the DelimitedTextSink object itself. - */ - public DelimitedTextSink withStoreSettings(StoreWriteSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: DelimitedText format settings. - * - * @return the formatSettings value. - */ - public DelimitedTextWriteSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: DelimitedText format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the DelimitedTextSink object itself. - */ - public DelimitedTextSink withFormatSettings(DelimitedTextWriteSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextSource.java deleted file mode 100644 index 9841a43cb84f0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextSource.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity DelimitedText source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DelimitedTextSource") -@Fluent -public final class DelimitedTextSource extends CopySource { - /* - * DelimitedText store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * DelimitedText format settings. - */ - @JsonProperty(value = "formatSettings") - private DelimitedTextReadSettings formatSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the storeSettings property: DelimitedText store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: DelimitedText store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the DelimitedTextSource object itself. - */ - public DelimitedTextSource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: DelimitedText format settings. - * - * @return the formatSettings value. - */ - public DelimitedTextReadSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: DelimitedText format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the DelimitedTextSource object itself. - */ - public DelimitedTextSource withFormatSettings(DelimitedTextReadSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the DelimitedTextSource object itself. - */ - public DelimitedTextSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DelimitedTextSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextWriteSettings.java deleted file mode 100644 index f96f8debf434d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextWriteSettings.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Delimited text write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DelimitedTextWriteSettings") -@Fluent -public final class DelimitedTextWriteSettings extends FormatWriteSettings { - /* - * Indicates whether string values should always be enclosed with quotes. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "quoteAllText") - private Object quoteAllText; - - /* - * The file extension used to create the files. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "fileExtension", required = true) - private Object fileExtension; - - /* - * Limit the written file's row count to be smaller than or equal to the - * specified count. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxRowsPerFile") - private Object maxRowsPerFile; - - /* - * Specifies the file name pattern - * _. when copy from non-file - * based store without partitionOptions. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileNamePrefix") - private Object fileNamePrefix; - - /** - * Get the quoteAllText property: Indicates whether string values should always be enclosed with quotes. Type: - * boolean (or Expression with resultType boolean). - * - * @return the quoteAllText value. - */ - public Object quoteAllText() { - return this.quoteAllText; - } - - /** - * Set the quoteAllText property: Indicates whether string values should always be enclosed with quotes. Type: - * boolean (or Expression with resultType boolean). - * - * @param quoteAllText the quoteAllText value to set. - * @return the DelimitedTextWriteSettings object itself. - */ - public DelimitedTextWriteSettings withQuoteAllText(Object quoteAllText) { - this.quoteAllText = quoteAllText; - return this; - } - - /** - * Get the fileExtension property: The file extension used to create the files. Type: string (or Expression with - * resultType string). - * - * @return the fileExtension value. - */ - public Object fileExtension() { - return this.fileExtension; - } - - /** - * Set the fileExtension property: The file extension used to create the files. Type: string (or Expression with - * resultType string). - * - * @param fileExtension the fileExtension value to set. - * @return the DelimitedTextWriteSettings object itself. - */ - public DelimitedTextWriteSettings withFileExtension(Object fileExtension) { - this.fileExtension = fileExtension; - return this; - } - - /** - * Get the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @return the maxRowsPerFile value. - */ - public Object maxRowsPerFile() { - return this.maxRowsPerFile; - } - - /** - * Set the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @param maxRowsPerFile the maxRowsPerFile value to set. - * @return the DelimitedTextWriteSettings object itself. - */ - public DelimitedTextWriteSettings withMaxRowsPerFile(Object maxRowsPerFile) { - this.maxRowsPerFile = maxRowsPerFile; - return this; - } - - /** - * Get the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @return the fileNamePrefix value. - */ - public Object fileNamePrefix() { - return this.fileNamePrefix; - } - - /** - * Set the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @param fileNamePrefix the fileNamePrefix value to set. - * @return the DelimitedTextWriteSettings object itself. - */ - public DelimitedTextWriteSettings withFileNamePrefix(Object fileNamePrefix) { - this.fileNamePrefix = fileNamePrefix; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (fileExtension() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property fileExtension in model DelimitedTextWriteSettings")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DelimitedTextWriteSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DependencyCondition.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DependencyCondition.java deleted file mode 100644 index be076e4419377..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DependencyCondition.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for DependencyCondition. */ -public final class DependencyCondition extends ExpandableStringEnum { - /** Static value Succeeded for DependencyCondition. */ - public static final DependencyCondition SUCCEEDED = fromString("Succeeded"); - - /** Static value Failed for DependencyCondition. */ - public static final DependencyCondition FAILED = fromString("Failed"); - - /** Static value Skipped for DependencyCondition. */ - public static final DependencyCondition SKIPPED = fromString("Skipped"); - - /** Static value Completed for DependencyCondition. */ - public static final DependencyCondition COMPLETED = fromString("Completed"); - - /** - * Creates or finds a DependencyCondition from its string representation. - * - * @param name a name to look for. - * @return the corresponding DependencyCondition. - */ - @JsonCreator - public static DependencyCondition fromString(String name) { - return fromString(name, DependencyCondition.class); - } - - /** @return known DependencyCondition values. */ - public static Collection values() { - return values(DependencyCondition.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DependencyReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DependencyReference.java deleted file mode 100644 index 92b50f3440632..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DependencyReference.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Referenced dependency. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = DependencyReference.class) -@JsonTypeName("DependencyReference") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "TriggerDependencyReference", value = TriggerDependencyReference.class), - @JsonSubTypes.Type( - name = "SelfDependencyTumblingWindowTriggerReference", - value = SelfDependencyTumblingWindowTriggerReference.class) -}) -@Immutable -public class DependencyReference { - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DistcpSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DistcpSettings.java deleted file mode 100644 index cdffe424ac7bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DistcpSettings.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Distcp settings. */ -@Fluent -public final class DistcpSettings { - /* - * Specifies the Yarn ResourceManager endpoint. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "resourceManagerEndpoint", required = true) - private Object resourceManagerEndpoint; - - /* - * Specifies an existing folder path which will be used to store temp - * Distcp command script. The script file is generated by ADF and will be - * removed after Copy job finished. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tempScriptPath", required = true) - private Object tempScriptPath; - - /* - * Specifies the Distcp options. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "distcpOptions") - private Object distcpOptions; - - /** - * Get the resourceManagerEndpoint property: Specifies the Yarn ResourceManager endpoint. Type: string (or - * Expression with resultType string). - * - * @return the resourceManagerEndpoint value. - */ - public Object resourceManagerEndpoint() { - return this.resourceManagerEndpoint; - } - - /** - * Set the resourceManagerEndpoint property: Specifies the Yarn ResourceManager endpoint. Type: string (or - * Expression with resultType string). - * - * @param resourceManagerEndpoint the resourceManagerEndpoint value to set. - * @return the DistcpSettings object itself. - */ - public DistcpSettings withResourceManagerEndpoint(Object resourceManagerEndpoint) { - this.resourceManagerEndpoint = resourceManagerEndpoint; - return this; - } - - /** - * Get the tempScriptPath property: Specifies an existing folder path which will be used to store temp Distcp - * command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or - * Expression with resultType string). - * - * @return the tempScriptPath value. - */ - public Object tempScriptPath() { - return this.tempScriptPath; - } - - /** - * Set the tempScriptPath property: Specifies an existing folder path which will be used to store temp Distcp - * command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or - * Expression with resultType string). - * - * @param tempScriptPath the tempScriptPath value to set. - * @return the DistcpSettings object itself. - */ - public DistcpSettings withTempScriptPath(Object tempScriptPath) { - this.tempScriptPath = tempScriptPath; - return this; - } - - /** - * Get the distcpOptions property: Specifies the Distcp options. Type: string (or Expression with resultType - * string). - * - * @return the distcpOptions value. - */ - public Object distcpOptions() { - return this.distcpOptions; - } - - /** - * Set the distcpOptions property: Specifies the Distcp options. Type: string (or Expression with resultType - * string). - * - * @param distcpOptions the distcpOptions value to set. - * @return the DistcpSettings object itself. - */ - public DistcpSettings withDistcpOptions(Object distcpOptions) { - this.distcpOptions = distcpOptions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (resourceManagerEndpoint() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property resourceManagerEndpoint in model DistcpSettings")); - } - if (tempScriptPath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property tempScriptPath in model DistcpSettings")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DistcpSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java deleted file mode 100644 index 2cba75e1b89fa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DocumentDbCollectionDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Microsoft Azure Document Database Collection dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DocumentDbCollection") -@Fluent -public final class DocumentDbCollectionDataset extends Dataset { - /* - * DocumentDB Collection dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DocumentDbCollectionDatasetTypeProperties innerTypeProperties = - new DocumentDbCollectionDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: DocumentDB Collection dataset properties. - * - * @return the innerTypeProperties value. - */ - private DocumentDbCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collectionName(); - } - - /** - * Set the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the DocumentDbCollectionDataset object itself. - */ - public DocumentDbCollectionDataset withCollectionName(Object collectionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DocumentDbCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollectionName(collectionName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DocumentDbCollectionDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DocumentDbCollectionDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionSink.java deleted file mode 100644 index 63932d1421444..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionSink.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Document Database Collection sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DocumentDbCollectionSink") -@Fluent -public final class DocumentDbCollectionSink extends CopySink { - /* - * Nested properties separator. Default is . (dot). Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "nestingSeparator") - private Object nestingSeparator; - - /* - * Describes how to write data to Azure Cosmos DB. Type: string (or - * Expression with resultType string). Allowed values: insert and upsert. - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /** - * Get the nestingSeparator property: Nested properties separator. Default is . (dot). Type: string (or Expression - * with resultType string). - * - * @return the nestingSeparator value. - */ - public Object nestingSeparator() { - return this.nestingSeparator; - } - - /** - * Set the nestingSeparator property: Nested properties separator. Default is . (dot). Type: string (or Expression - * with resultType string). - * - * @param nestingSeparator the nestingSeparator value to set. - * @return the DocumentDbCollectionSink object itself. - */ - public DocumentDbCollectionSink withNestingSeparator(Object nestingSeparator) { - this.nestingSeparator = nestingSeparator; - return this; - } - - /** - * Get the writeBehavior property: Describes how to write data to Azure Cosmos DB. Type: string (or Expression with - * resultType string). Allowed values: insert and upsert. - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Describes how to write data to Azure Cosmos DB. Type: string (or Expression with - * resultType string). Allowed values: insert and upsert. - * - * @param writeBehavior the writeBehavior value to set. - * @return the DocumentDbCollectionSink object itself. - */ - public DocumentDbCollectionSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionSource.java deleted file mode 100644 index 4b297d0f7512a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionSource.java +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Document Database Collection source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DocumentDbCollectionSource") -@Fluent -public final class DocumentDbCollectionSource extends CopySource { - /* - * Documents query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Nested properties separator. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nestingSeparator") - private Object nestingSeparator; - - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: Documents query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Documents query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the DocumentDbCollectionSource object itself. - */ - public DocumentDbCollectionSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the nestingSeparator property: Nested properties separator. Type: string (or Expression with resultType - * string). - * - * @return the nestingSeparator value. - */ - public Object nestingSeparator() { - return this.nestingSeparator; - } - - /** - * Set the nestingSeparator property: Nested properties separator. Type: string (or Expression with resultType - * string). - * - * @param nestingSeparator the nestingSeparator value to set. - * @return the DocumentDbCollectionSource object itself. - */ - public DocumentDbCollectionSource withNestingSeparator(Object nestingSeparator) { - this.nestingSeparator = nestingSeparator; - return this; - } - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param queryTimeout the queryTimeout value to set. - * @return the DocumentDbCollectionSource object itself. - */ - public DocumentDbCollectionSource withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the DocumentDbCollectionSource object itself. - */ - public DocumentDbCollectionSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DocumentDbCollectionSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java deleted file mode 100644 index 6429dff66216d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DrillLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Drill server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Drill") -@Fluent -public final class DrillLinkedService extends LinkedService { - /* - * Drill server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DrillLinkedServiceTypeProperties innerTypeProperties = new DrillLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Drill server linked service properties. - * - * @return the innerTypeProperties value. - */ - private DrillLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DrillLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the DrillLinkedService object itself. - */ - public DrillLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the DrillLinkedService object itself. - */ - public DrillLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DrillLinkedService object itself. - */ - public DrillLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DrillLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DrillLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillSource.java deleted file mode 100644 index 4de33b0f13cb2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Drill server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DrillSource") -@Fluent -public final class DrillSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the DrillSource object itself. - */ - public DrillSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java deleted file mode 100644 index f4a2a2662bdeb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.DrillDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Drill server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DrillTable") -@Fluent -public final class DrillTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private DrillDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private DrillDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the DrillTableDataset object itself. - */ - public DrillTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Drill. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Drill. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the DrillTableDataset object itself. - */ - public DrillTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the DrillTableDataset object itself. - */ - public DrillTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java deleted file mode 100644 index 6dabe705b06e2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Dynamics AX linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsAX") -@Fluent -public final class DynamicsAXLinkedService extends LinkedService { - /* - * Dynamics AX linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsAXLinkedServiceTypeProperties innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Dynamics AX linked service properties. - * - * @return the innerTypeProperties value. - */ - private DynamicsAXLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - * - * @param url the url value to set. - * @return the DynamicsAXLinkedService object itself. - */ - public DynamicsAXLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsAXLinkedService object itself. - */ - public DynamicsAXLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the application's key. Mark this field as a SecureString to store - * it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: Specify the application's key. Mark this field as a SecureString to store - * it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the DynamicsAXLinkedService object itself. - */ - public DynamicsAXLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the DynamicsAXLinkedService object itself. - */ - public DynamicsAXLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the aadResourceId property: Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().aadResourceId(); - } - - /** - * Set the aadResourceId property: Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - * - * @param aadResourceId the aadResourceId value to set. - * @return the DynamicsAXLinkedService object itself. - */ - public DynamicsAXLinkedService withAadResourceId(Object aadResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadResourceId(aadResourceId); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsAXLinkedService object itself. - */ - public DynamicsAXLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsAXLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsAXLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java deleted file mode 100644 index fb161820be834..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXResourceDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The path of the Dynamics AX OData entity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsAXResource") -@Fluent -public final class DynamicsAXResourceDataset extends Dataset { - /* - * Dynamics AX OData resource dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsAXResourceDatasetTypeProperties innerTypeProperties = new DynamicsAXResourceDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Dynamics AX OData resource dataset properties. - * - * @return the innerTypeProperties value. - */ - private DynamicsAXResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @param path the path value to set. - * @return the DynamicsAXResourceDataset object itself. - */ - public DynamicsAXResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsAXResourceDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsAXResourceDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXSource.java deleted file mode 100644 index 001c7282279ab..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXSource.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Dynamics AX source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsAXSource") -@Fluent -public final class DynamicsAXSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get - * a response, not the timeout to read response data. Default value: - * 00:05:00. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the DynamicsAXSource object itself. - */ - public DynamicsAXSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the DynamicsAXSource object itself. - */ - public DynamicsAXSource withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsAXSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java deleted file mode 100644 index d25fa0bb6022f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmEntityDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Dynamics CRM entity dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsCrmEntity") -@Fluent -public final class DynamicsCrmEntityDataset extends Dataset { - /* - * Dynamics CRM entity dataset properties. - */ - @JsonProperty(value = "typeProperties") - private DynamicsCrmEntityDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Dynamics CRM entity dataset properties. - * - * @return the innerTypeProperties value. - */ - private DynamicsCrmEntityDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmEntityDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmEntityDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmEntityDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmEntityDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmEntityDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmEntityDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmEntityDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entityName(); - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsCrmEntityDataset object itself. - */ - public DynamicsCrmEntityDataset withEntityName(Object entityName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmEntityDatasetTypeProperties(); - } - this.innerTypeProperties().withEntityName(entityName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java deleted file mode 100644 index 0e5334e965a7d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java +++ /dev/null @@ -1,393 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Dynamics CRM linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsCrm") -@Fluent -public final class DynamicsCrmLinkedService extends LinkedService { - /* - * Dynamics CRM linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsCrmLinkedServiceTypeProperties innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Dynamics CRM linked service properties. - * - * @return the innerTypeProperties value. - */ - private DynamicsCrmLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the deploymentType property: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM - * Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType - * string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().deploymentType(); - } - - /** - * Set the deploymentType property: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM - * Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType - * string). - * - * @param deploymentType the deploymentType value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withDeploymentType(Object deploymentType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeploymentType(deploymentType); - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Dynamics CRM server. The property is required for - * on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostname(); - } - - /** - * Set the hostname property: The host name of the on-premises Dynamics CRM server. The property is required for - * on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withHostname(Object hostname) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostname(hostname); - return this; - } - - /** - * Get the port property: The port of on-premises Dynamics CRM server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The port of on-premises Dynamics CRM server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Dynamics CRM server. The property is required for on-line - * and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUri(); - } - - /** - * Set the serviceUri property: The URL to the Microsoft Dynamics CRM server. The property is required for on-line - * and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withServiceUri(Object serviceUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUri(serviceUri); - return this; - } - - /** - * Get the organizationName property: The organization name of the Dynamics CRM instance. The property is required - * for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. - * Type: string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().organizationName(); - } - - /** - * Set the organizationName property: The organization name of the Dynamics CRM instance. The property is required - * for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. - * Type: string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withOrganizationName(Object organizationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOrganizationName(organizationName); - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Dynamics CRM server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to connect to Dynamics CRM server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: User name to access the Dynamics CRM instance. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name to access the Dynamics CRM instance. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to access the Dynamics CRM instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to access the Dynamics CRM instance. - * - * @param password the password value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsCrmLinkedService object itself. - */ - public DynamicsCrmLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsCrmLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsCrmLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmSink.java deleted file mode 100644 index c4797d3c0e24c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmSink.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Dynamics CRM sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsCrmSink") -@Fluent -public final class DynamicsCrmSink extends CopySink { - /* - * The write behavior for the operation. - */ - @JsonProperty(value = "writeBehavior", required = true) - private DynamicsSinkWriteBehavior writeBehavior; - - /* - * The flag indicating whether to ignore null values from input dataset - * (except key fields) during write operation. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "ignoreNullValues") - private Object ignoreNullValues; - - /* - * The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "alternateKeyName") - private Object alternateKeyName; - - /** - * Get the writeBehavior property: The write behavior for the operation. - * - * @return the writeBehavior value. - */ - public DynamicsSinkWriteBehavior writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: The write behavior for the operation. - * - * @param writeBehavior the writeBehavior value to set. - * @return the DynamicsCrmSink object itself. - */ - public DynamicsCrmSink withWriteBehavior(DynamicsSinkWriteBehavior writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the ignoreNullValues property: The flag indicating whether to ignore null values from input dataset (except - * key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the ignoreNullValues value. - */ - public Object ignoreNullValues() { - return this.ignoreNullValues; - } - - /** - * Set the ignoreNullValues property: The flag indicating whether to ignore null values from input dataset (except - * key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param ignoreNullValues the ignoreNullValues value to set. - * @return the DynamicsCrmSink object itself. - */ - public DynamicsCrmSink withIgnoreNullValues(Object ignoreNullValues) { - this.ignoreNullValues = ignoreNullValues; - return this; - } - - /** - * Get the alternateKeyName property: The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - * - * @return the alternateKeyName value. - */ - public Object alternateKeyName() { - return this.alternateKeyName; - } - - /** - * Set the alternateKeyName property: The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - * - * @param alternateKeyName the alternateKeyName value to set. - * @return the DynamicsCrmSink object itself. - */ - public DynamicsCrmSink withAlternateKeyName(Object alternateKeyName) { - this.alternateKeyName = alternateKeyName; - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (writeBehavior() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property writeBehavior in model DynamicsCrmSink")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsCrmSink.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmSource.java deleted file mode 100644 index 30cb16d88a7bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmSource.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Dynamics CRM source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsCrmSource") -@Fluent -public final class DynamicsCrmSource extends CopySource { - /* - * FetchXML is a proprietary query language that is used in Microsoft - * Dynamics CRM (online & on-premises). Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online - * & on-premises). Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online - * & on-premises). Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the DynamicsCrmSource object itself. - */ - public DynamicsCrmSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the DynamicsCrmSource object itself. - */ - public DynamicsCrmSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsCrmSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java deleted file mode 100644 index 8bf3563382637..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsEntityDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Dynamics entity dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsEntity") -@Fluent -public final class DynamicsEntityDataset extends Dataset { - /* - * Dynamics entity dataset properties. - */ - @JsonProperty(value = "typeProperties") - private DynamicsEntityDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Dynamics entity dataset properties. - * - * @return the innerTypeProperties value. - */ - private DynamicsEntityDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DynamicsEntityDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsEntityDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsEntityDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsEntityDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsEntityDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsEntityDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsEntityDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entityName(); - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsEntityDataset object itself. - */ - public DynamicsEntityDataset withEntityName(Object entityName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsEntityDatasetTypeProperties(); - } - this.innerTypeProperties().withEntityName(entityName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java deleted file mode 100644 index 1ca52e4a7d882..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java +++ /dev/null @@ -1,414 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Dynamics linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Dynamics") -@Fluent -public final class DynamicsLinkedService extends LinkedService { - /* - * Dynamics linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsLinkedServiceTypeProperties innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Dynamics linked service properties. - * - * @return the innerTypeProperties value. - */ - private DynamicsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the deploymentType property: The deployment type of the Dynamics instance. 'Online' for Dynamics Online and - * 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().deploymentType(); - } - - /** - * Set the deploymentType property: The deployment type of the Dynamics instance. 'Online' for Dynamics Online and - * 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). - * - * @param deploymentType the deploymentType value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withDeploymentType(Object deploymentType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeploymentType(deploymentType); - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Dynamics server. The property is required for on-prem - * and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostname(); - } - - /** - * Set the hostname property: The host name of the on-premises Dynamics server. The property is required for on-prem - * and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withHostname(Object hostname) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostname(hostname); - return this; - } - - /** - * Get the port property: The port of on-premises Dynamics server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The port of on-premises Dynamics server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Dynamics server. The property is required for on-line and - * not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUri(); - } - - /** - * Set the serviceUri property: The URL to the Microsoft Dynamics server. The property is required for on-line and - * not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withServiceUri(Object serviceUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUri(serviceUri); - return this; - } - - /** - * Get the organizationName property: The organization name of the Dynamics instance. The property is required for - * on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: - * string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().organizationName(); - } - - /** - * Set the organizationName property: The organization name of the Dynamics instance. The property is required for - * on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: - * string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withOrganizationName(Object organizationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOrganizationName(organizationName); - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: User name to access the Dynamics instance. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name to access the Dynamics instance. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to access the Dynamics instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to access the Dynamics instance. - * - * @param password the password value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the DynamicsLinkedService object itself. - */ - public DynamicsLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSink.java deleted file mode 100644 index 2940019f9274e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSink.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Dynamics sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsSink") -@Fluent -public final class DynamicsSink extends CopySink { - /* - * The write behavior for the operation. - */ - @JsonProperty(value = "writeBehavior", required = true) - private DynamicsSinkWriteBehavior writeBehavior; - - /* - * The flag indicating whether ignore null values from input dataset - * (except key fields) during write operation. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "ignoreNullValues") - private Object ignoreNullValues; - - /* - * The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "alternateKeyName") - private Object alternateKeyName; - - /** - * Get the writeBehavior property: The write behavior for the operation. - * - * @return the writeBehavior value. - */ - public DynamicsSinkWriteBehavior writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: The write behavior for the operation. - * - * @param writeBehavior the writeBehavior value to set. - * @return the DynamicsSink object itself. - */ - public DynamicsSink withWriteBehavior(DynamicsSinkWriteBehavior writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the ignoreNullValues property: The flag indicating whether ignore null values from input dataset (except key - * fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the ignoreNullValues value. - */ - public Object ignoreNullValues() { - return this.ignoreNullValues; - } - - /** - * Set the ignoreNullValues property: The flag indicating whether ignore null values from input dataset (except key - * fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param ignoreNullValues the ignoreNullValues value to set. - * @return the DynamicsSink object itself. - */ - public DynamicsSink withIgnoreNullValues(Object ignoreNullValues) { - this.ignoreNullValues = ignoreNullValues; - return this; - } - - /** - * Get the alternateKeyName property: The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - * - * @return the alternateKeyName value. - */ - public Object alternateKeyName() { - return this.alternateKeyName; - } - - /** - * Set the alternateKeyName property: The logical name of the alternate key which will be used when upserting - * records. Type: string (or Expression with resultType string). - * - * @param alternateKeyName the alternateKeyName value to set. - * @return the DynamicsSink object itself. - */ - public DynamicsSink withAlternateKeyName(Object alternateKeyName) { - this.alternateKeyName = alternateKeyName; - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (writeBehavior() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property writeBehavior in model DynamicsSink")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DynamicsSink.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSinkWriteBehavior.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSinkWriteBehavior.java deleted file mode 100644 index 5209ec99fadeb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSinkWriteBehavior.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for DynamicsSinkWriteBehavior. */ -public final class DynamicsSinkWriteBehavior extends ExpandableStringEnum { - /** Static value Upsert for DynamicsSinkWriteBehavior. */ - public static final DynamicsSinkWriteBehavior UPSERT = fromString("Upsert"); - - /** - * Creates or finds a DynamicsSinkWriteBehavior from its string representation. - * - * @param name a name to look for. - * @return the corresponding DynamicsSinkWriteBehavior. - */ - @JsonCreator - public static DynamicsSinkWriteBehavior fromString(String name) { - return fromString(name, DynamicsSinkWriteBehavior.class); - } - - /** @return known DynamicsSinkWriteBehavior values. */ - public static Collection values() { - return values(DynamicsSinkWriteBehavior.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSource.java deleted file mode 100644 index 7ce53339948fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsSource.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Dynamics source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("DynamicsSource") -@Fluent -public final class DynamicsSource extends CopySource { - /* - * FetchXML is a proprietary query language that is used in Microsoft - * Dynamics (online & on-premises). Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & - * on-premises). Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & - * on-premises). Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the DynamicsSource object itself. - */ - public DynamicsSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the DynamicsSource object itself. - */ - public DynamicsSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public DynamicsSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java deleted file mode 100644 index a22abb6939217..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java +++ /dev/null @@ -1,254 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.EloquaLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Eloqua server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Eloqua") -@Fluent -public final class EloquaLinkedService extends LinkedService { - /* - * Eloqua server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private EloquaLinkedServiceTypeProperties innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Eloqua server linked service properties. - * - * @return the innerTypeProperties value. - */ - private EloquaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the endpoint property: The endpoint of the Eloqua server. (i.e. eloqua.example.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of the Eloqua server. (i.e. eloqua.example.com). - * - * @param endpoint the endpoint value to set. - * @return the EloquaLinkedService object itself. - */ - public EloquaLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the username property: The site name and user name of your Eloqua account in the form: sitename/username. - * (i.e. Eloqua/Alice). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The site name and user name of your Eloqua account in the form: sitename/username. - * (i.e. Eloqua/Alice). - * - * @param username the username value to set. - * @return the EloquaLinkedService object itself. - */ - public EloquaLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the EloquaLinkedService object itself. - */ - public EloquaLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the EloquaLinkedService object itself. - */ - public EloquaLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the EloquaLinkedService object itself. - */ - public EloquaLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the EloquaLinkedService object itself. - */ - public EloquaLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the EloquaLinkedService object itself. - */ - public EloquaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model EloquaLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EloquaLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java deleted file mode 100644 index bd29be081d38e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Eloqua server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("EloquaObject") -@Fluent -public final class EloquaObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public EloquaObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the EloquaObjectDataset object itself. - */ - public EloquaObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaSource.java deleted file mode 100644 index 1b1ce56005c0a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Eloqua server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("EloquaSource") -@Fluent -public final class EloquaSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the EloquaSource object itself. - */ - public EloquaSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public EloquaSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EncryptionConfiguration.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EncryptionConfiguration.java deleted file mode 100644 index 6e0b017de52ba..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EncryptionConfiguration.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Definition of CMK for the factory. */ -@Fluent -public final class EncryptionConfiguration { - /* - * The name of the key in Azure Key Vault to use as Customer Managed Key. - */ - @JsonProperty(value = "keyName", required = true) - private String keyName; - - /* - * The url of the Azure Key Vault used for CMK. - */ - @JsonProperty(value = "vaultBaseUrl", required = true) - private String vaultBaseUrl; - - /* - * The version of the key used for CMK. If not provided, latest version - * will be used. - */ - @JsonProperty(value = "keyVersion") - private String keyVersion; - - /* - * User assigned identity to use to authenticate to customer's key vault. - * If not provided Managed Service Identity will be used. - */ - @JsonProperty(value = "identity") - private CmkIdentityDefinition identity; - - /** - * Get the keyName property: The name of the key in Azure Key Vault to use as Customer Managed Key. - * - * @return the keyName value. - */ - public String keyName() { - return this.keyName; - } - - /** - * Set the keyName property: The name of the key in Azure Key Vault to use as Customer Managed Key. - * - * @param keyName the keyName value to set. - * @return the EncryptionConfiguration object itself. - */ - public EncryptionConfiguration withKeyName(String keyName) { - this.keyName = keyName; - return this; - } - - /** - * Get the vaultBaseUrl property: The url of the Azure Key Vault used for CMK. - * - * @return the vaultBaseUrl value. - */ - public String vaultBaseUrl() { - return this.vaultBaseUrl; - } - - /** - * Set the vaultBaseUrl property: The url of the Azure Key Vault used for CMK. - * - * @param vaultBaseUrl the vaultBaseUrl value to set. - * @return the EncryptionConfiguration object itself. - */ - public EncryptionConfiguration withVaultBaseUrl(String vaultBaseUrl) { - this.vaultBaseUrl = vaultBaseUrl; - return this; - } - - /** - * Get the keyVersion property: The version of the key used for CMK. If not provided, latest version will be used. - * - * @return the keyVersion value. - */ - public String keyVersion() { - return this.keyVersion; - } - - /** - * Set the keyVersion property: The version of the key used for CMK. If not provided, latest version will be used. - * - * @param keyVersion the keyVersion value to set. - * @return the EncryptionConfiguration object itself. - */ - public EncryptionConfiguration withKeyVersion(String keyVersion) { - this.keyVersion = keyVersion; - return this; - } - - /** - * Get the identity property: User assigned identity to use to authenticate to customer's key vault. If not provided - * Managed Service Identity will be used. - * - * @return the identity value. - */ - public CmkIdentityDefinition identity() { - return this.identity; - } - - /** - * Set the identity property: User assigned identity to use to authenticate to customer's key vault. If not provided - * Managed Service Identity will be used. - * - * @param identity the identity value to set. - * @return the EncryptionConfiguration object itself. - */ - public EncryptionConfiguration withIdentity(CmkIdentityDefinition identity) { - this.identity = identity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property keyName in model EncryptionConfiguration")); - } - if (vaultBaseUrl() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property vaultBaseUrl in model EncryptionConfiguration")); - } - if (identity() != null) { - identity().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EncryptionConfiguration.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EntityReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EntityReference.java deleted file mode 100644 index bf7d06800cb2f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EntityReference.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The entity reference. */ -@Fluent -public final class EntityReference { - /* - * The type of this referenced entity. - */ - @JsonProperty(value = "type") - private IntegrationRuntimeEntityReferenceType type; - - /* - * The name of this referenced entity. - */ - @JsonProperty(value = "referenceName") - private String referenceName; - - /** - * Get the type property: The type of this referenced entity. - * - * @return the type value. - */ - public IntegrationRuntimeEntityReferenceType type() { - return this.type; - } - - /** - * Set the type property: The type of this referenced entity. - * - * @param type the type value to set. - * @return the EntityReference object itself. - */ - public EntityReference withType(IntegrationRuntimeEntityReferenceType type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: The name of this referenced entity. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: The name of this referenced entity. - * - * @param referenceName the referenceName value to set. - * @return the EntityReference object itself. - */ - public EntityReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java deleted file mode 100644 index c6a3a9ec395b7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.EnvironmentVariableSetupTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The custom setup of setting environment variable. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("EnvironmentVariableSetup") -@Fluent -public final class EnvironmentVariableSetup extends CustomSetupBase { - /* - * Add environment variable type properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private EnvironmentVariableSetupTypeProperties innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); - - /** - * Get the innerTypeProperties property: Add environment variable type properties. - * - * @return the innerTypeProperties value. - */ - private EnvironmentVariableSetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the variableName property: The name of the environment variable. - * - * @return the variableName value. - */ - public String variableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableName(); - } - - /** - * Set the variableName property: The name of the environment variable. - * - * @param variableName the variableName value to set. - * @return the EnvironmentVariableSetup object itself. - */ - public EnvironmentVariableSetup withVariableName(String variableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); - } - this.innerTypeProperties().withVariableName(variableName); - return this; - } - - /** - * Get the variableValue property: The value of the environment variable. - * - * @return the variableValue value. - */ - public String variableValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableValue(); - } - - /** - * Set the variableValue property: The value of the environment variable. - * - * @param variableValue the variableValue value to set. - * @return the EnvironmentVariableSetup object itself. - */ - public EnvironmentVariableSetup withVariableValue(String variableValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); - } - this.innerTypeProperties().withVariableValue(variableValue); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model EnvironmentVariableSetup")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EnvironmentVariableSetup.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EventSubscriptionStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EventSubscriptionStatus.java deleted file mode 100644 index 4264d6ba351fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EventSubscriptionStatus.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for EventSubscriptionStatus. */ -public final class EventSubscriptionStatus extends ExpandableStringEnum { - /** Static value Enabled for EventSubscriptionStatus. */ - public static final EventSubscriptionStatus ENABLED = fromString("Enabled"); - - /** Static value Provisioning for EventSubscriptionStatus. */ - public static final EventSubscriptionStatus PROVISIONING = fromString("Provisioning"); - - /** Static value Deprovisioning for EventSubscriptionStatus. */ - public static final EventSubscriptionStatus DEPROVISIONING = fromString("Deprovisioning"); - - /** Static value Disabled for EventSubscriptionStatus. */ - public static final EventSubscriptionStatus DISABLED = fromString("Disabled"); - - /** Static value Unknown for EventSubscriptionStatus. */ - public static final EventSubscriptionStatus UNKNOWN = fromString("Unknown"); - - /** - * Creates or finds a EventSubscriptionStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding EventSubscriptionStatus. - */ - @JsonCreator - public static EventSubscriptionStatus fromString(String name) { - return fromString(name, EventSubscriptionStatus.class); - } - - /** @return known EventSubscriptionStatus values. */ - public static Collection values() { - return values(EventSubscriptionStatus.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java deleted file mode 100644 index 527891aa9a04d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.ExcelDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Excel dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Excel") -@Fluent -public final class ExcelDataset extends Dataset { - /* - * Excel dataset properties. - */ - @JsonProperty(value = "typeProperties") - private ExcelDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Excel dataset properties. - * - * @return the innerTypeProperties value. - */ - private ExcelDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the excel storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the excel storage. - * - * @param location the location value to set. - * @return the ExcelDataset object itself. - */ - public ExcelDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the sheetName property: The sheet name of excel file. Type: string (or Expression with resultType string). - * - * @return the sheetName value. - */ - public Object sheetName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sheetName(); - } - - /** - * Set the sheetName property: The sheet name of excel file. Type: string (or Expression with resultType string). - * - * @param sheetName the sheetName value to set. - * @return the ExcelDataset object itself. - */ - public ExcelDataset withSheetName(Object sheetName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withSheetName(sheetName); - return this; - } - - /** - * Get the sheetIndex property: The sheet index of excel file and default value is 0. Type: integer (or Expression - * with resultType integer). - * - * @return the sheetIndex value. - */ - public Object sheetIndex() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sheetIndex(); - } - - /** - * Set the sheetIndex property: The sheet index of excel file and default value is 0. Type: integer (or Expression - * with resultType integer). - * - * @param sheetIndex the sheetIndex value to set. - * @return the ExcelDataset object itself. - */ - public ExcelDataset withSheetIndex(Object sheetIndex) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withSheetIndex(sheetIndex); - return this; - } - - /** - * Get the range property: The partial data of one sheet. Type: string (or Expression with resultType string). - * - * @return the range value. - */ - public Object range() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().range(); - } - - /** - * Set the range property: The partial data of one sheet. Type: string (or Expression with resultType string). - * - * @param range the range value to set. - * @return the ExcelDataset object itself. - */ - public ExcelDataset withRange(Object range) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withRange(range); - return this; - } - - /** - * Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowAsHeader value. - */ - public Object firstRowAsHeader() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().firstRowAsHeader(); - } - - /** - * Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowAsHeader the firstRowAsHeader value to set. - * @return the ExcelDataset object itself. - */ - public ExcelDataset withFirstRowAsHeader(Object firstRowAsHeader) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withFirstRowAsHeader(firstRowAsHeader); - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the ExcelDataset object itself. - */ - public ExcelDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nullValue(); - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the ExcelDataset object itself. - */ - public ExcelDataset withNullValue(Object nullValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withNullValue(nullValue); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelSource.java deleted file mode 100644 index 56111f826ab9a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelSource.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity excel source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ExcelSource") -@Fluent -public final class ExcelSource extends CopySource { - /* - * Excel store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the storeSettings property: Excel store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Excel store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the ExcelSource object itself. - */ - public ExcelSource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the ExcelSource object itself. - */ - public ExcelSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java deleted file mode 100644 index e8ca102e66e39..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecuteDataFlowActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Execute data flow activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ExecuteDataFlow") -@Fluent -public final class ExecuteDataFlowActivity extends ExecutionActivity { - /* - * Execute data flow activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ExecuteDataFlowActivityTypeProperties innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Execute data flow activity properties. - * - * @return the innerTypeProperties value. - */ - private ExecuteDataFlowActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the dataFlow property: Data flow reference. - * - * @return the dataFlow value. - */ - public DataFlowReference dataFlow() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataFlow(); - } - - /** - * Set the dataFlow property: Data flow reference. - * - * @param dataFlow the dataFlow value to set. - * @return the ExecuteDataFlowActivity object itself. - */ - public ExecuteDataFlowActivity withDataFlow(DataFlowReference dataFlow) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withDataFlow(dataFlow); - return this; - } - - /** - * Get the staging property: Staging info for execute data flow activity. - * - * @return the staging value. - */ - public DataFlowStagingInfo staging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().staging(); - } - - /** - * Set the staging property: Staging info for execute data flow activity. - * - * @param staging the staging value to set. - * @return the ExecuteDataFlowActivity object itself. - */ - public ExecuteDataFlowActivity withStaging(DataFlowStagingInfo staging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withStaging(staging); - return this; - } - - /** - * Get the integrationRuntime property: The integration runtime reference. - * - * @return the integrationRuntime value. - */ - public IntegrationRuntimeReference integrationRuntime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().integrationRuntime(); - } - - /** - * Set the integrationRuntime property: The integration runtime reference. - * - * @param integrationRuntime the integrationRuntime value to set. - * @return the ExecuteDataFlowActivity object itself. - */ - public ExecuteDataFlowActivity withIntegrationRuntime(IntegrationRuntimeReference integrationRuntime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withIntegrationRuntime(integrationRuntime); - return this; - } - - /** - * Get the compute property: Compute properties for data flow activity. - * - * @return the compute value. - */ - public ExecuteDataFlowActivityTypePropertiesCompute compute() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compute(); - } - - /** - * Set the compute property: Compute properties for data flow activity. - * - * @param compute the compute value to set. - * @return the ExecuteDataFlowActivity object itself. - */ - public ExecuteDataFlowActivity withCompute(ExecuteDataFlowActivityTypePropertiesCompute compute) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withCompute(compute); - return this; - } - - /** - * Get the traceLevel property: Trace level setting used for data flow monitoring output. Supported values are: - * 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - * - * @return the traceLevel value. - */ - public Object traceLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().traceLevel(); - } - - /** - * Set the traceLevel property: Trace level setting used for data flow monitoring output. Supported values are: - * 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - * - * @param traceLevel the traceLevel value to set. - * @return the ExecuteDataFlowActivity object itself. - */ - public ExecuteDataFlowActivity withTraceLevel(Object traceLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withTraceLevel(traceLevel); - return this; - } - - /** - * Get the continueOnError property: Continue on error setting used for data flow execution. Enables processing to - * continue if a sink fails. Type: boolean (or Expression with resultType boolean). - * - * @return the continueOnError value. - */ - public Object continueOnError() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().continueOnError(); - } - - /** - * Set the continueOnError property: Continue on error setting used for data flow execution. Enables processing to - * continue if a sink fails. Type: boolean (or Expression with resultType boolean). - * - * @param continueOnError the continueOnError value to set. - * @return the ExecuteDataFlowActivity object itself. - */ - public ExecuteDataFlowActivity withContinueOnError(Object continueOnError) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withContinueOnError(continueOnError); - return this; - } - - /** - * Get the runConcurrently property: Concurrent run setting used for data flow execution. Allows sinks with the same - * save order to be processed concurrently. Type: boolean (or Expression with resultType boolean). - * - * @return the runConcurrently value. - */ - public Object runConcurrently() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runConcurrently(); - } - - /** - * Set the runConcurrently property: Concurrent run setting used for data flow execution. Allows sinks with the same - * save order to be processed concurrently. Type: boolean (or Expression with resultType boolean). - * - * @param runConcurrently the runConcurrently value to set. - * @return the ExecuteDataFlowActivity object itself. - */ - public ExecuteDataFlowActivity withRunConcurrently(Object runConcurrently) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withRunConcurrently(runConcurrently); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecuteDataFlowActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExecuteDataFlowActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivityTypePropertiesCompute.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivityTypePropertiesCompute.java deleted file mode 100644 index 0f9b90c61964c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivityTypePropertiesCompute.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Compute properties for data flow activity. */ -@Fluent -public final class ExecuteDataFlowActivityTypePropertiesCompute { - /* - * Compute type of the cluster which will execute data flow job. Possible - * values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: - * string (or Expression with resultType string) - */ - @JsonProperty(value = "computeType") - private Object computeType; - - /* - * Core count of the cluster which will execute data flow job. Supported - * values are: 8, 16, 32, 48, 80, 144 and 272. Type: integer (or Expression - * with resultType integer) - */ - @JsonProperty(value = "coreCount") - private Object coreCount; - - /** - * Get the computeType property: Compute type of the cluster which will execute data flow job. Possible values - * include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression with resultType string). - * - * @return the computeType value. - */ - public Object computeType() { - return this.computeType; - } - - /** - * Set the computeType property: Compute type of the cluster which will execute data flow job. Possible values - * include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression with resultType string). - * - * @param computeType the computeType value to set. - * @return the ExecuteDataFlowActivityTypePropertiesCompute object itself. - */ - public ExecuteDataFlowActivityTypePropertiesCompute withComputeType(Object computeType) { - this.computeType = computeType; - return this; - } - - /** - * Get the coreCount property: Core count of the cluster which will execute data flow job. Supported values are: 8, - * 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType integer). - * - * @return the coreCount value. - */ - public Object coreCount() { - return this.coreCount; - } - - /** - * Set the coreCount property: Core count of the cluster which will execute data flow job. Supported values are: 8, - * 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType integer). - * - * @param coreCount the coreCount value to set. - * @return the ExecuteDataFlowActivityTypePropertiesCompute object itself. - */ - public ExecuteDataFlowActivityTypePropertiesCompute withCoreCount(Object coreCount) { - this.coreCount = coreCount; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java deleted file mode 100644 index 043299d2f827e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePipelineActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Execute pipeline activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ExecutePipeline") -@Fluent -public final class ExecutePipelineActivity extends ControlActivity { - /* - * Execute pipeline activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ExecutePipelineActivityTypeProperties innerTypeProperties = new ExecutePipelineActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Execute pipeline activity properties. - * - * @return the innerTypeProperties value. - */ - private ExecutePipelineActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the pipeline property: Pipeline reference. - * - * @return the pipeline value. - */ - public PipelineReference pipeline() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pipeline(); - } - - /** - * Set the pipeline property: Pipeline reference. - * - * @param pipeline the pipeline value to set. - * @return the ExecutePipelineActivity object itself. - */ - public ExecutePipelineActivity withPipeline(PipelineReference pipeline) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withPipeline(pipeline); - return this; - } - - /** - * Get the parameters property: Pipeline parameters. - * - * @return the parameters value. - */ - public Map parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); - } - - /** - * Set the parameters property: Pipeline parameters. - * - * @param parameters the parameters value to set. - * @return the ExecutePipelineActivity object itself. - */ - public ExecutePipelineActivity withParameters(Map parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); - return this; - } - - /** - * Get the waitOnCompletion property: Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - * - * @return the waitOnCompletion value. - */ - public Boolean waitOnCompletion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().waitOnCompletion(); - } - - /** - * Set the waitOnCompletion property: Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - * - * @param waitOnCompletion the waitOnCompletion value to set. - * @return the ExecutePipelineActivity object itself. - */ - public ExecutePipelineActivity withWaitOnCompletion(Boolean waitOnCompletion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withWaitOnCompletion(waitOnCompletion); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecutePipelineActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExecutePipelineActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java deleted file mode 100644 index 080eeeb1cf46c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java +++ /dev/null @@ -1,382 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecuteSsisPackageActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Execute SSIS package activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ExecuteSSISPackage") -@Fluent -public final class ExecuteSsisPackageActivity extends ExecutionActivity { - /* - * Execute SSIS package activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ExecuteSsisPackageActivityTypeProperties innerTypeProperties = - new ExecuteSsisPackageActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Execute SSIS package activity properties. - * - * @return the innerTypeProperties value. - */ - private ExecuteSsisPackageActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the packageLocation property: SSIS package location. - * - * @return the packageLocation value. - */ - public SsisPackageLocation packageLocation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageLocation(); - } - - /** - * Set the packageLocation property: SSIS package location. - * - * @param packageLocation the packageLocation value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withPackageLocation(SsisPackageLocation packageLocation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPackageLocation(packageLocation); - return this; - } - - /** - * Get the runtime property: 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 Object runtime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runtime(); - } - - /** - * Set the runtime property: 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(Object runtime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withRuntime(runtime); - return this; - } - - /** - * Get the loggingLevel property: The logging level of SSIS package execution. Type: string (or Expression with - * resultType string). - * - * @return the loggingLevel value. - */ - public Object loggingLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().loggingLevel(); - } - - /** - * Set the loggingLevel property: 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(Object loggingLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withLoggingLevel(loggingLevel); - return this; - } - - /** - * Get the environmentPath property: The environment path to execute the SSIS package. Type: string (or Expression - * with resultType string). - * - * @return the environmentPath value. - */ - public Object environmentPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().environmentPath(); - } - - /** - * Set the environmentPath property: 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(Object environmentPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withEnvironmentPath(environmentPath); - return this; - } - - /** - * Get the executionCredential property: The package execution credential. - * - * @return the executionCredential value. - */ - public SsisExecutionCredential executionCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().executionCredential(); - } - - /** - * Set the executionCredential property: The package execution credential. - * - * @param executionCredential the executionCredential value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withExecutionCredential(SsisExecutionCredential executionCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withExecutionCredential(executionCredential); - return this; - } - - /** - * Get the connectVia property: The integration runtime reference. - * - * @return the connectVia value. - */ - public IntegrationRuntimeReference connectVia() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectVia(); - } - - /** - * Set the connectVia property: The integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withConnectVia(IntegrationRuntimeReference connectVia) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withConnectVia(connectVia); - return this; - } - - /** - * Get the projectParameters property: The project level parameters to execute the SSIS package. - * - * @return the projectParameters value. - */ - public Map projectParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().projectParameters(); - } - - /** - * Set the projectParameters property: The project level parameters to execute the SSIS package. - * - * @param projectParameters the projectParameters value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withProjectParameters(Map projectParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withProjectParameters(projectParameters); - return this; - } - - /** - * Get the packageParameters property: The package level parameters to execute the SSIS package. - * - * @return the packageParameters value. - */ - public Map packageParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageParameters(); - } - - /** - * Set the packageParameters property: The package level parameters to execute the SSIS package. - * - * @param packageParameters the packageParameters value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withPackageParameters(Map packageParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPackageParameters(packageParameters); - return this; - } - - /** - * Get the projectConnectionManagers property: The project level connection managers to execute the SSIS package. - * - * @return the projectConnectionManagers value. - */ - public Map> projectConnectionManagers() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().projectConnectionManagers(); - } - - /** - * Set the projectConnectionManagers property: The project level connection managers to execute the SSIS package. - * - * @param projectConnectionManagers the projectConnectionManagers value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withProjectConnectionManagers( - Map> projectConnectionManagers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withProjectConnectionManagers(projectConnectionManagers); - return this; - } - - /** - * Get the packageConnectionManagers property: The package level connection managers to execute the SSIS package. - * - * @return the packageConnectionManagers value. - */ - public Map> packageConnectionManagers() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageConnectionManagers(); - } - - /** - * Set the packageConnectionManagers property: The package level connection managers to execute the SSIS package. - * - * @param packageConnectionManagers the packageConnectionManagers value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withPackageConnectionManagers( - Map> packageConnectionManagers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPackageConnectionManagers(packageConnectionManagers); - return this; - } - - /** - * Get the propertyOverrides property: The property overrides to execute the SSIS package. - * - * @return the propertyOverrides value. - */ - public Map propertyOverrides() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().propertyOverrides(); - } - - /** - * Set the propertyOverrides property: The property overrides to execute the SSIS package. - * - * @param propertyOverrides the propertyOverrides value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withPropertyOverrides(Map propertyOverrides) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPropertyOverrides(propertyOverrides); - return this; - } - - /** - * Get the logLocation property: SSIS package execution log location. - * - * @return the logLocation value. - */ - public SsisLogLocation logLocation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logLocation(); - } - - /** - * Set the logLocation property: SSIS package execution log location. - * - * @param logLocation the logLocation value to set. - * @return the ExecuteSsisPackageActivity object itself. - */ - public ExecuteSsisPackageActivity withLogLocation(SsisLogLocation logLocation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withLogLocation(logLocation); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecuteSsisPackageActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExecuteSsisPackageActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java deleted file mode 100644 index 4f6a47ae4971b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java +++ /dev/null @@ -1,327 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePowerQueryActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Execute power query activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ExecuteWranglingDataflow") -@Fluent -public final class ExecuteWranglingDataflowActivity extends Activity { - /* - * Execute power query activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ExecutePowerQueryActivityTypeProperties innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - - /* - * Activity policy. - */ - @JsonProperty(value = "policy") - private ActivityPolicy policy; - - /** - * Get the innerTypeProperties property: Execute power query activity properties. - * - * @return the innerTypeProperties value. - */ - private ExecutePowerQueryActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the policy property: Activity policy. - * - * @return the policy value. - */ - public ActivityPolicy policy() { - return this.policy; - } - - /** - * Set the policy property: Activity policy. - * - * @param policy the policy value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withPolicy(ActivityPolicy policy) { - this.policy = policy; - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a - * queryName. - * - * @return the sinks value. - */ - public Map sinks() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sinks(); - } - - /** - * Set the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a - * queryName. - * - * @param sinks the sinks value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withSinks(Map sinks) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withSinks(sinks); - return this; - } - - /** - * Get the queries property: List of mapping for Power Query mashup query to sink dataset(s). - * - * @return the queries value. - */ - public List queries() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().queries(); - } - - /** - * Set the queries property: List of mapping for Power Query mashup query to sink dataset(s). - * - * @param queries the queries value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withQueries(List queries) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withQueries(queries); - return this; - } - - /** - * Get the dataFlow property: Data flow reference. - * - * @return the dataFlow value. - */ - public DataFlowReference dataFlow() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataFlow(); - } - - /** - * Set the dataFlow property: Data flow reference. - * - * @param dataFlow the dataFlow value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withDataFlow(DataFlowReference dataFlow) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withDataFlow(dataFlow); - return this; - } - - /** - * Get the staging property: Staging info for execute data flow activity. - * - * @return the staging value. - */ - public DataFlowStagingInfo staging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().staging(); - } - - /** - * Set the staging property: Staging info for execute data flow activity. - * - * @param staging the staging value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withStaging(DataFlowStagingInfo staging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withStaging(staging); - return this; - } - - /** - * Get the integrationRuntime property: The integration runtime reference. - * - * @return the integrationRuntime value. - */ - public IntegrationRuntimeReference integrationRuntime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().integrationRuntime(); - } - - /** - * Set the integrationRuntime property: The integration runtime reference. - * - * @param integrationRuntime the integrationRuntime value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withIntegrationRuntime(IntegrationRuntimeReference integrationRuntime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withIntegrationRuntime(integrationRuntime); - return this; - } - - /** - * Get the compute property: Compute properties for data flow activity. - * - * @return the compute value. - */ - public ExecuteDataFlowActivityTypePropertiesCompute compute() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compute(); - } - - /** - * Set the compute property: Compute properties for data flow activity. - * - * @param compute the compute value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withCompute(ExecuteDataFlowActivityTypePropertiesCompute compute) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withCompute(compute); - return this; - } - - /** - * Get the traceLevel property: Trace level setting used for data flow monitoring output. Supported values are: - * 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - * - * @return the traceLevel value. - */ - public Object traceLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().traceLevel(); - } - - /** - * Set the traceLevel property: Trace level setting used for data flow monitoring output. Supported values are: - * 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). - * - * @param traceLevel the traceLevel value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withTraceLevel(Object traceLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withTraceLevel(traceLevel); - return this; - } - - /** - * Get the continueOnError property: Continue on error setting used for data flow execution. Enables processing to - * continue if a sink fails. Type: boolean (or Expression with resultType boolean). - * - * @return the continueOnError value. - */ - public Object continueOnError() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().continueOnError(); - } - - /** - * Set the continueOnError property: Continue on error setting used for data flow execution. Enables processing to - * continue if a sink fails. Type: boolean (or Expression with resultType boolean). - * - * @param continueOnError the continueOnError value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withContinueOnError(Object continueOnError) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withContinueOnError(continueOnError); - return this; - } - - /** - * Get the runConcurrently property: Concurrent run setting used for data flow execution. Allows sinks with the same - * save order to be processed concurrently. Type: boolean (or Expression with resultType boolean). - * - * @return the runConcurrently value. - */ - public Object runConcurrently() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runConcurrently(); - } - - /** - * Set the runConcurrently property: Concurrent run setting used for data flow execution. Allows sinks with the same - * save order to be processed concurrently. Type: boolean (or Expression with resultType boolean). - * - * @param runConcurrently the runConcurrently value to set. - * @return the ExecuteWranglingDataflowActivity object itself. - */ - public ExecuteWranglingDataflowActivity withRunConcurrently(Object runConcurrently) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withRunConcurrently(runConcurrently); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecuteWranglingDataflowActivity")); - } else { - innerTypeProperties().validate(); - } - if (policy() != null) { - policy().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExecuteWranglingDataflowActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutionActivity.java deleted file mode 100644 index a47bdd5f427cc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutionActivity.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Base class for all execution activities. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = ExecutionActivity.class) -@JsonTypeName("Execution") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Copy", value = CopyActivity.class), - @JsonSubTypes.Type(name = "HDInsightHive", value = HDInsightHiveActivity.class), - @JsonSubTypes.Type(name = "HDInsightPig", value = HDInsightPigActivity.class), - @JsonSubTypes.Type(name = "HDInsightMapReduce", value = HDInsightMapReduceActivity.class), - @JsonSubTypes.Type(name = "HDInsightStreaming", value = HDInsightStreamingActivity.class), - @JsonSubTypes.Type(name = "HDInsightSpark", value = HDInsightSparkActivity.class), - @JsonSubTypes.Type(name = "ExecuteSSISPackage", value = ExecuteSsisPackageActivity.class), - @JsonSubTypes.Type(name = "Custom", value = CustomActivity.class), - @JsonSubTypes.Type(name = "SqlServerStoredProcedure", value = SqlServerStoredProcedureActivity.class), - @JsonSubTypes.Type(name = "Delete", value = DeleteActivity.class), - @JsonSubTypes.Type(name = "AzureDataExplorerCommand", value = AzureDataExplorerCommandActivity.class), - @JsonSubTypes.Type(name = "Lookup", value = LookupActivity.class), - @JsonSubTypes.Type(name = "WebActivity", value = WebActivity.class), - @JsonSubTypes.Type(name = "GetMetadata", value = GetMetadataActivity.class), - @JsonSubTypes.Type(name = "AzureMLBatchExecution", value = AzureMLBatchExecutionActivity.class), - @JsonSubTypes.Type(name = "AzureMLUpdateResource", value = AzureMLUpdateResourceActivity.class), - @JsonSubTypes.Type(name = "AzureMLExecutePipeline", value = AzureMLExecutePipelineActivity.class), - @JsonSubTypes.Type(name = "DataLakeAnalyticsU-SQL", value = DataLakeAnalyticsUsqlActivity.class), - @JsonSubTypes.Type(name = "DatabricksNotebook", value = DatabricksNotebookActivity.class), - @JsonSubTypes.Type(name = "DatabricksSparkJar", value = DatabricksSparkJarActivity.class), - @JsonSubTypes.Type(name = "DatabricksSparkPython", value = DatabricksSparkPythonActivity.class), - @JsonSubTypes.Type(name = "AzureFunctionActivity", value = AzureFunctionActivity.class), - @JsonSubTypes.Type(name = "ExecuteDataFlow", value = ExecuteDataFlowActivity.class), - @JsonSubTypes.Type(name = "Script", value = ScriptActivity.class) -}) -@Fluent -public class ExecutionActivity extends Activity { - /* - * Linked service reference. - */ - @JsonProperty(value = "linkedServiceName") - private LinkedServiceReference linkedServiceName; - - /* - * Activity policy. - */ - @JsonProperty(value = "policy") - private ActivityPolicy policy; - - /** - * Get the linkedServiceName property: Linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the ExecutionActivity object itself. - */ - public ExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the policy property: Activity policy. - * - * @return the policy value. - */ - public ActivityPolicy policy() { - return this.policy; - } - - /** - * Set the policy property: Activity policy. - * - * @param policy the policy value to set. - * @return the ExecutionActivity object itself. - */ - public ExecutionActivity withPolicy(ActivityPolicy policy) { - this.policy = policy; - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutionActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutionActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutionActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutionActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (linkedServiceName() != null) { - linkedServiceName().validate(); - } - if (policy() != null) { - policy().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExportSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExportSettings.java deleted file mode 100644 index a8021712004e6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExportSettings.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Export command settings. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = ExportSettings.class) -@JsonTypeName("ExportSettings") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "SnowflakeExportCopyCommand", value = SnowflakeExportCopyCommand.class), - @JsonSubTypes.Type( - name = "AzureDatabricksDeltaLakeExportCommand", - value = AzureDatabricksDeltaLakeExportCommand.class) -}) -@Fluent -public class ExportSettings { - /* - * Export command settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the additionalProperties property: Export command settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Export command settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ExportSettings object itself. - */ - public ExportSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlBatchRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlBatchRequest.java deleted file mode 100644 index 088c919ff00aa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlBatchRequest.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of exposure control features. */ -@Fluent -public final class ExposureControlBatchRequest { - /* - * List of exposure control features. - */ - @JsonProperty(value = "exposureControlRequests", required = true) - private List exposureControlRequests; - - /** - * Get the exposureControlRequests property: List of exposure control features. - * - * @return the exposureControlRequests value. - */ - public List exposureControlRequests() { - return this.exposureControlRequests; - } - - /** - * Set the exposureControlRequests property: List of exposure control features. - * - * @param exposureControlRequests the exposureControlRequests value to set. - * @return the ExposureControlBatchRequest object itself. - */ - public ExposureControlBatchRequest withExposureControlRequests( - List exposureControlRequests) { - this.exposureControlRequests = exposureControlRequests; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (exposureControlRequests() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property exposureControlRequests in model ExposureControlBatchRequest")); - } else { - exposureControlRequests().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ExposureControlBatchRequest.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlBatchResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlBatchResponse.java deleted file mode 100644 index dbeb44d2180d7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlBatchResponse.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import java.util.List; - -/** An immutable client-side representation of ExposureControlBatchResponse. */ -public interface ExposureControlBatchResponse { - /** - * Gets the exposureControlResponses property: List of exposure control feature values. - * - * @return the exposureControlResponses value. - */ - List exposureControlResponses(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner object. - * - * @return the inner object. - */ - ExposureControlBatchResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlRequest.java deleted file mode 100644 index 4134809b3de2a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The exposure control request. */ -@Fluent -public final class ExposureControlRequest { - /* - * The feature name. - */ - @JsonProperty(value = "featureName") - private String featureName; - - /* - * The feature type. - */ - @JsonProperty(value = "featureType") - private String featureType; - - /** - * Get the featureName property: The feature name. - * - * @return the featureName value. - */ - public String featureName() { - return this.featureName; - } - - /** - * Set the featureName property: 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 featureType property: The feature type. - * - * @return the featureType value. - */ - public String featureType() { - return this.featureType; - } - - /** - * Set the featureType property: 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; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlResponse.java deleted file mode 100644 index 4e2da771092a7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControlResponse.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; - -/** An immutable client-side representation of ExposureControlResponse. */ -public interface ExposureControlResponse { - /** - * Gets the featureName property: The feature name. - * - * @return the featureName value. - */ - String featureName(); - - /** - * Gets the value property: The feature value. - * - * @return the value value. - */ - String value(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner object. - * - * @return the inner object. - */ - ExposureControlResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControls.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControls.java deleted file mode 100644 index 72c3b30c93bfd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExposureControls.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of ExposureControls. */ -public interface ExposureControls { - /** - * 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location. - */ - ExposureControlResponse getFeatureValue(String locationId, ExposureControlRequest exposureControlRequest); - - /** - * Get exposure control feature for specific location. - * - * @param locationId The location identifier. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific location along with {@link Response}. - */ - Response getFeatureValueWithResponse( - String locationId, ExposureControlRequest exposureControlRequest, Context context); - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory. - */ - ExposureControlResponse getFeatureValueByFactory( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest); - - /** - * Get exposure control feature for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlRequest The exposure control request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return exposure control feature for specific factory along with {@link Response}. - */ - Response getFeatureValueByFactoryWithResponse( - String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, Context context); - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory. - */ - ExposureControlBatchResponse queryFeatureValuesByFactory( - String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest); - - /** - * Get list of exposure control features for specific factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param exposureControlBatchRequest The exposure control request for list of features. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of exposure control features for specific factory along with {@link Response}. - */ - Response queryFeatureValuesByFactoryWithResponse( - String resourceGroupName, - String factoryName, - ExposureControlBatchRequest exposureControlBatchRequest, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Expression.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Expression.java deleted file mode 100644 index af763063726c6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Expression.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Factory expression definition. */ -@Fluent -public final class Expression { - /* - * Expression type. - */ - @JsonProperty(value = "type", required = true) - private String type = "Expression"; - - /* - * Expression value. - */ - @JsonProperty(value = "value", required = true) - private String value; - - /** Creates an instance of Expression class. */ - public Expression() { - type = "Expression"; - } - - /** - * Get the type property: Expression type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Expression type. - * - * @param type the type value to set. - * @return the Expression object itself. - */ - public Expression withType(String type) { - this.type = type; - return this; - } - - /** - * Get the value property: Expression value. - * - * @return the value value. - */ - public String value() { - return this.value; - } - - /** - * Set the value property: Expression value. - * - * @param value the value value to set. - * @return the Expression object itself. - */ - public Expression withValue(String value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model Expression")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Expression.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java deleted file mode 100644 index 825098add9218..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of Factories. */ -public interface Factories { - /** - * Lists factories under the specified subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Lists factories under the specified subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type. - */ - Factory configureFactoryRepo(String locationId, FactoryRepoUpdate factoryRepoUpdate); - - /** - * Updates a factory's repo information. - * - * @param locationId The location identifier. - * @param factoryRepoUpdate Update factory repo request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return factory resource type along with {@link Response}. - */ - Response configureFactoryRepoWithResponse( - String locationId, FactoryRepoUpdate factoryRepoUpdate, Context context); - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Lists factories. - * - * @param resourceGroupName The resource group name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory. - */ - Factory getByResourceGroup(String resourceGroupName, String factoryName); - - /** - * Gets a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory along with {@link Response}. - */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String factoryName, String ifNoneMatch, Context context); - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByResourceGroup(String resourceGroupName, String factoryName); - - /** - * Deletes a factory. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse(String resourceGroupName, String factoryName, Context context); - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token. - */ - GitHubAccessTokenResponse getGitHubAccessToken( - String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest); - - /** - * Get GitHub Access Token. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token along with {@link Response}. - */ - Response getGitHubAccessTokenWithResponse( - String resourceGroupName, - String factoryName, - GitHubAccessTokenRequest gitHubAccessTokenRequest, - Context context); - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access. - */ - AccessPolicyResponse getDataPlaneAccess(String resourceGroupName, String factoryName, UserAccessPolicy policy); - - /** - * Get Data Plane access. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param policy Data Plane user access policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access along with {@link Response}. - */ - Response getDataPlaneAccessWithResponse( - String resourceGroupName, String factoryName, UserAccessPolicy policy, Context context); - - /** - * Gets a factory. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory along with {@link Response}. - */ - Factory getById(String id); - - /** - * Gets a factory. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a factory along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a factory. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a factory. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new Factory resource. - * - * @param name resource name. - * @return the first stage of the new Factory definition. - */ - Factory.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factory.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factory.java deleted file mode 100644 index e1ee988783b3d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factory.java +++ /dev/null @@ -1,413 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.management.Region; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; -import java.time.OffsetDateTime; -import java.util.Map; - -/** An immutable client-side representation of Factory. */ -public interface Factory { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the identity property: Managed service identity of the factory. - * - * @return the identity value. - */ - FactoryIdentity identity(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the additionalProperties property: Factory resource type. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - - /** - * Gets the provisioningState property: Factory provisioning state, example Succeeded. - * - * @return the provisioningState value. - */ - String provisioningState(); - - /** - * Gets the createTime property: Time the factory was created in ISO8601 format. - * - * @return the createTime value. - */ - OffsetDateTime createTime(); - - /** - * Gets the version property: Version of the factory. - * - * @return the version value. - */ - String version(); - - /** - * Gets the repoConfiguration property: Git repo information of the factory. - * - * @return the repoConfiguration value. - */ - FactoryRepoConfiguration repoConfiguration(); - - /** - * Gets the globalParameters property: List of parameters for factory. - * - * @return the globalParameters value. - */ - Map globalParameters(); - - /** - * Gets the encryption property: Properties to enable Customer Managed Key for the factory. - * - * @return the encryption value. - */ - EncryptionConfiguration encryption(); - - /** - * Gets the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @return the publicNetworkAccess value. - */ - PublicNetworkAccess publicNetworkAccess(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.FactoryInner object. - * - * @return the inner object. - */ - FactoryInner innerModel(); - - /** The entirety of the Factory definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, - DefinitionStages.WithCreate { - } - /** The Factory definition stages. */ - interface DefinitionStages { - /** The first stage of the Factory definition. */ - interface Blank extends WithLocation { - } - /** The stage of the Factory definition allowing to specify location. */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - /** The stage of the Factory definition allowing to specify parent resource. */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The resource group name. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - /** - * The stage of the Factory definition which contains all the minimum required properties for the resource to be - * created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithIdentity, - DefinitionStages.WithAdditionalProperties, - DefinitionStages.WithRepoConfiguration, - DefinitionStages.WithGlobalParameters, - DefinitionStages.WithEncryption, - DefinitionStages.WithPublicNetworkAccess, - DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - Factory create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - Factory create(Context context); - } - /** The stage of the Factory definition allowing to specify tags. */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - /** The stage of the Factory definition allowing to specify identity. */ - interface WithIdentity { - /** - * Specifies the identity property: Managed service identity of the factory.. - * - * @param identity Managed service identity of the factory. - * @return the next definition stage. - */ - WithCreate withIdentity(FactoryIdentity identity); - } - /** The stage of the Factory definition allowing to specify additionalProperties. */ - interface WithAdditionalProperties { - /** - * Specifies the additionalProperties property: Factory resource type.. - * - * @param additionalProperties Factory resource type. - * @return the next definition stage. - */ - WithCreate withAdditionalProperties(Map additionalProperties); - } - /** The stage of the Factory definition allowing to specify repoConfiguration. */ - interface WithRepoConfiguration { - /** - * Specifies the repoConfiguration property: Git repo information of the factory.. - * - * @param repoConfiguration Git repo information of the factory. - * @return the next definition stage. - */ - WithCreate withRepoConfiguration(FactoryRepoConfiguration repoConfiguration); - } - /** The stage of the Factory definition allowing to specify globalParameters. */ - interface WithGlobalParameters { - /** - * Specifies the globalParameters property: List of parameters for factory.. - * - * @param globalParameters List of parameters for factory. - * @return the next definition stage. - */ - WithCreate withGlobalParameters(Map globalParameters); - } - /** The stage of the Factory definition allowing to specify encryption. */ - interface WithEncryption { - /** - * Specifies the encryption property: Properties to enable Customer Managed Key for the factory.. - * - * @param encryption Properties to enable Customer Managed Key for the factory. - * @return the next definition stage. - */ - WithCreate withEncryption(EncryptionConfiguration encryption); - } - /** The stage of the Factory definition allowing to specify publicNetworkAccess. */ - interface WithPublicNetworkAccess { - /** - * Specifies the publicNetworkAccess property: Whether or not public network access is allowed for the data - * factory.. - * - * @param publicNetworkAccess Whether or not public network access is allowed for the data factory. - * @return the next definition stage. - */ - WithCreate withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess); - } - /** The stage of the Factory definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the factory entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the Factory resource. - * - * @return the stage of resource update. - */ - Factory.Update update(); - - /** The template for Factory update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithPublicNetworkAccess { - /** - * Executes the update request. - * - * @return the updated resource. - */ - Factory apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - Factory apply(Context context); - } - /** The Factory update stages. */ - interface UpdateStages { - /** The stage of the Factory update allowing to specify tags. */ - interface WithTags { - /** - * Specifies the tags property: The resource tags.. - * - * @param tags The resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - /** The stage of the Factory update allowing to specify identity. */ - interface WithIdentity { - /** - * Specifies the identity property: Managed service identity of the factory.. - * - * @param identity Managed service identity of the factory. - * @return the next definition stage. - */ - Update withIdentity(FactoryIdentity identity); - } - /** The stage of the Factory update allowing to specify publicNetworkAccess. */ - interface WithPublicNetworkAccess { - /** - * Specifies the publicNetworkAccess property: Whether or not public network access is allowed for the data - * factory.. - * - * @param publicNetworkAccess Whether or not public network access is allowed for the data factory. - * @return the next definition stage. - */ - Update withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - Factory refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - Factory refresh(Context context); - - /** - * Get GitHub Access Token. - * - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token. - */ - GitHubAccessTokenResponse getGitHubAccessToken(GitHubAccessTokenRequest gitHubAccessTokenRequest); - - /** - * Get GitHub Access Token. - * - * @param gitHubAccessTokenRequest Get GitHub access token request definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gitHub Access Token along with {@link Response}. - */ - Response getGitHubAccessTokenWithResponse( - GitHubAccessTokenRequest gitHubAccessTokenRequest, Context context); - - /** - * Get Data Plane access. - * - * @param policy Data Plane user access policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access. - */ - AccessPolicyResponse getDataPlaneAccess(UserAccessPolicy policy); - - /** - * Get Data Plane access. - * - * @param policy Data Plane user access policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Plane access along with {@link Response}. - */ - Response getDataPlaneAccessWithResponse(UserAccessPolicy policy, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryGitHubConfiguration.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryGitHubConfiguration.java deleted file mode 100644 index 8c6ae7a3dbc1e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryGitHubConfiguration.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Factory's GitHub repo information. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FactoryGitHubConfiguration") -@Fluent -public final class FactoryGitHubConfiguration extends FactoryRepoConfiguration { - /* - * GitHub Enterprise host name. For example: https://github.mydomain.com - */ - @JsonProperty(value = "hostName") - private String hostname; - - /* - * GitHub bring your own app client id. - */ - @JsonProperty(value = "clientId") - private String clientId; - - /* - * GitHub bring your own app client secret information. - */ - @JsonProperty(value = "clientSecret") - private GitHubClientSecret clientSecret; - - /** - * Get the hostname property: GitHub Enterprise host name. For example: https://github.mydomain.com. - * - * @return the hostname value. - */ - public String hostname() { - return this.hostname; - } - - /** - * Set the hostname property: GitHub Enterprise host name. For example: https://github.mydomain.com. - * - * @param hostname the hostname value to set. - * @return the FactoryGitHubConfiguration object itself. - */ - public FactoryGitHubConfiguration withHostname(String hostname) { - this.hostname = hostname; - return this; - } - - /** - * Get the clientId property: GitHub bring your own app client id. - * - * @return the clientId value. - */ - public String clientId() { - return this.clientId; - } - - /** - * Set the clientId property: GitHub bring your own app client id. - * - * @param clientId the clientId value to set. - * @return the FactoryGitHubConfiguration object itself. - */ - public FactoryGitHubConfiguration withClientId(String clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: GitHub bring your own app client secret information. - * - * @return the clientSecret value. - */ - public GitHubClientSecret clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: GitHub bring your own app client secret information. - * - * @param clientSecret the clientSecret value to set. - * @return the FactoryGitHubConfiguration object itself. - */ - public FactoryGitHubConfiguration withClientSecret(GitHubClientSecret clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryGitHubConfiguration withAccountName(String accountName) { - super.withAccountName(accountName); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryGitHubConfiguration withRepositoryName(String repositoryName) { - super.withRepositoryName(repositoryName); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryGitHubConfiguration withCollaborationBranch(String collaborationBranch) { - super.withCollaborationBranch(collaborationBranch); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryGitHubConfiguration withRootFolder(String rootFolder) { - super.withRootFolder(rootFolder); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryGitHubConfiguration withLastCommitId(String lastCommitId) { - super.withLastCommitId(lastCommitId); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentity.java deleted file mode 100644 index aa0cc960983cd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentity.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; -import java.util.UUID; - -/** Identity properties of the factory resource. */ -@Fluent -public class FactoryIdentity { - /* - * The identity type. - */ - @JsonProperty(value = "type", required = true) - private FactoryIdentityType type; - - /* - * The principal id of the identity. - */ - @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) - private UUID principalId; - - /* - * The client tenant id of the identity. - */ - @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) - private UUID tenantId; - - /* - * List of user assigned identities for the factory. - */ - @JsonProperty(value = "userAssignedIdentities") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map userAssignedIdentities; - - /** - * Get the type property: The identity type. - * - * @return the type value. - */ - public FactoryIdentityType type() { - return this.type; - } - - /** - * Set the type property: The identity type. - * - * @param type the type value to set. - * @return the FactoryIdentity object itself. - */ - public FactoryIdentity withType(FactoryIdentityType type) { - this.type = type; - return this; - } - - /** - * Get the principalId property: The principal id of the identity. - * - * @return the principalId value. - */ - public UUID principalId() { - return this.principalId; - } - - /** - * Get the tenantId property: The client tenant id of the identity. - * - * @return the tenantId value. - */ - public UUID tenantId() { - return this.tenantId; - } - - /** - * Get the userAssignedIdentities property: List of user assigned identities for the factory. - * - * @return the userAssignedIdentities value. - */ - public Map userAssignedIdentities() { - return this.userAssignedIdentities; - } - - /** - * Set the userAssignedIdentities property: List of user assigned identities for the factory. - * - * @param userAssignedIdentities the userAssignedIdentities value to set. - * @return the FactoryIdentity object itself. - */ - public FactoryIdentity withUserAssignedIdentities(Map userAssignedIdentities) { - this.userAssignedIdentities = userAssignedIdentities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model FactoryIdentity")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FactoryIdentity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentityType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentityType.java deleted file mode 100644 index 9f2686bc6157e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentityType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for FactoryIdentityType. */ -public final class FactoryIdentityType extends ExpandableStringEnum { - /** Static value SystemAssigned for FactoryIdentityType. */ - public static final FactoryIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); - - /** Static value UserAssigned for FactoryIdentityType. */ - public static final FactoryIdentityType USER_ASSIGNED = fromString("UserAssigned"); - - /** Static value SystemAssigned,UserAssigned for FactoryIdentityType. */ - public static final FactoryIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned,UserAssigned"); - - /** - * Creates or finds a FactoryIdentityType from its string representation. - * - * @param name a name to look for. - * @return the corresponding FactoryIdentityType. - */ - @JsonCreator - public static FactoryIdentityType fromString(String name) { - return fromString(name, FactoryIdentityType.class); - } - - /** @return known FactoryIdentityType values. */ - public static Collection values() { - return values(FactoryIdentityType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryListResponse.java deleted file mode 100644 index a44c32d0bef55..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryListResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of factory resources. */ -@Fluent -public final class FactoryListResponse { - /* - * List of factories. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of factories. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of factories. - * - * @param value the value value to set. - * @return the FactoryListResponse object itself. - */ - public FactoryListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the FactoryListResponse object itself. - */ - public FactoryListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model FactoryListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FactoryListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoConfiguration.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoConfiguration.java deleted file mode 100644 index ad3e9f3368e14..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoConfiguration.java +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Factory's git repo information. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = FactoryRepoConfiguration.class) -@JsonTypeName("FactoryRepoConfiguration") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "FactoryVSTSConfiguration", value = FactoryVstsConfiguration.class), - @JsonSubTypes.Type(name = "FactoryGitHubConfiguration", value = FactoryGitHubConfiguration.class) -}) -@Fluent -public class FactoryRepoConfiguration { - /* - * Account name. - */ - @JsonProperty(value = "accountName", required = true) - private String accountName; - - /* - * Repository name. - */ - @JsonProperty(value = "repositoryName", required = true) - private String repositoryName; - - /* - * Collaboration branch. - */ - @JsonProperty(value = "collaborationBranch", required = true) - private String collaborationBranch; - - /* - * Root folder. - */ - @JsonProperty(value = "rootFolder", required = true) - private String rootFolder; - - /* - * Last commit id. - */ - @JsonProperty(value = "lastCommitId") - private String lastCommitId; - - /** - * Get the accountName property: Account name. - * - * @return the accountName value. - */ - public String accountName() { - return this.accountName; - } - - /** - * Set the accountName property: Account name. - * - * @param accountName the accountName value to set. - * @return the FactoryRepoConfiguration object itself. - */ - public FactoryRepoConfiguration withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * Get the repositoryName property: Repository name. - * - * @return the repositoryName value. - */ - public String repositoryName() { - return this.repositoryName; - } - - /** - * Set the repositoryName property: Repository name. - * - * @param repositoryName the repositoryName value to set. - * @return the FactoryRepoConfiguration object itself. - */ - public FactoryRepoConfiguration withRepositoryName(String repositoryName) { - this.repositoryName = repositoryName; - return this; - } - - /** - * Get the collaborationBranch property: Collaboration branch. - * - * @return the collaborationBranch value. - */ - public String collaborationBranch() { - return this.collaborationBranch; - } - - /** - * Set the collaborationBranch property: Collaboration branch. - * - * @param collaborationBranch the collaborationBranch value to set. - * @return the FactoryRepoConfiguration object itself. - */ - public FactoryRepoConfiguration withCollaborationBranch(String collaborationBranch) { - this.collaborationBranch = collaborationBranch; - return this; - } - - /** - * Get the rootFolder property: Root folder. - * - * @return the rootFolder value. - */ - public String rootFolder() { - return this.rootFolder; - } - - /** - * Set the rootFolder property: Root folder. - * - * @param rootFolder the rootFolder value to set. - * @return the FactoryRepoConfiguration object itself. - */ - public FactoryRepoConfiguration withRootFolder(String rootFolder) { - this.rootFolder = rootFolder; - return this; - } - - /** - * Get the lastCommitId property: Last commit id. - * - * @return the lastCommitId value. - */ - public String lastCommitId() { - return this.lastCommitId; - } - - /** - * Set the lastCommitId property: Last commit id. - * - * @param lastCommitId the lastCommitId value to set. - * @return the FactoryRepoConfiguration object itself. - */ - public FactoryRepoConfiguration withLastCommitId(String lastCommitId) { - this.lastCommitId = lastCommitId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property accountName in model FactoryRepoConfiguration")); - } - if (repositoryName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property repositoryName in model FactoryRepoConfiguration")); - } - if (collaborationBranch() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collaborationBranch in model FactoryRepoConfiguration")); - } - if (rootFolder() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property rootFolder in model FactoryRepoConfiguration")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FactoryRepoConfiguration.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoUpdate.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoUpdate.java deleted file mode 100644 index e9ec36f6c1b1e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoUpdate.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Factory's git repo information. */ -@Fluent -public final class FactoryRepoUpdate { - /* - * The factory resource id. - */ - @JsonProperty(value = "factoryResourceId") - private String factoryResourceId; - - /* - * Git repo information of the factory. - */ - @JsonProperty(value = "repoConfiguration") - private FactoryRepoConfiguration repoConfiguration; - - /** - * Get the factoryResourceId property: The factory resource id. - * - * @return the factoryResourceId value. - */ - public String factoryResourceId() { - return this.factoryResourceId; - } - - /** - * Set the factoryResourceId property: The factory resource id. - * - * @param factoryResourceId the factoryResourceId value to set. - * @return the FactoryRepoUpdate object itself. - */ - public FactoryRepoUpdate withFactoryResourceId(String factoryResourceId) { - this.factoryResourceId = factoryResourceId; - return this; - } - - /** - * Get the repoConfiguration property: Git repo information of the factory. - * - * @return the repoConfiguration value. - */ - public FactoryRepoConfiguration repoConfiguration() { - return this.repoConfiguration; - } - - /** - * Set the repoConfiguration property: Git repo information of the factory. - * - * @param repoConfiguration the repoConfiguration value to set. - * @return the FactoryRepoUpdate object itself. - */ - public FactoryRepoUpdate withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { - this.repoConfiguration = repoConfiguration; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (repoConfiguration() != null) { - repoConfiguration().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java deleted file mode 100644 index f847f1614190c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryUpdateProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Parameters for updating a factory resource. */ -@Fluent -public final class FactoryUpdateParameters { - /* - * The resource tags. - */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map tags; - - /* - * Managed service identity of the factory. - */ - @JsonProperty(value = "identity") - private FactoryIdentity identity; - - /* - * Properties of update the factory. - */ - @JsonProperty(value = "properties") - private FactoryUpdateProperties innerProperties; - - /** - * Get the tags property: The resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: The resource tags. - * - * @param tags the tags value to set. - * @return the FactoryUpdateParameters object itself. - */ - public FactoryUpdateParameters withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the identity property: Managed service identity of the factory. - * - * @return the identity value. - */ - public FactoryIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: Managed service identity of the factory. - * - * @param identity the identity value to set. - * @return the FactoryUpdateParameters object itself. - */ - public FactoryUpdateParameters withIdentity(FactoryIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the innerProperties property: Properties of update the factory. - * - * @return the innerProperties value. - */ - private FactoryUpdateProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @return the publicNetworkAccess value. - */ - public PublicNetworkAccess publicNetworkAccess() { - return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess(); - } - - /** - * Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @param publicNetworkAccess the publicNetworkAccess value to set. - * @return the FactoryUpdateParameters object itself. - */ - public FactoryUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - if (this.innerProperties() == null) { - this.innerProperties = new FactoryUpdateProperties(); - } - this.innerProperties().withPublicNetworkAccess(publicNetworkAccess); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryVstsConfiguration.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryVstsConfiguration.java deleted file mode 100644 index e304be6f98588..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryVstsConfiguration.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Factory's VSTS repo information. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FactoryVSTSConfiguration") -@Fluent -public final class FactoryVstsConfiguration extends FactoryRepoConfiguration { - /* - * VSTS project name. - */ - @JsonProperty(value = "projectName", required = true) - private String projectName; - - /* - * VSTS tenant id. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * Get the projectName property: VSTS project name. - * - * @return the projectName value. - */ - public String projectName() { - return this.projectName; - } - - /** - * Set the projectName property: VSTS project name. - * - * @param projectName the projectName value to set. - * @return the FactoryVstsConfiguration object itself. - */ - public FactoryVstsConfiguration withProjectName(String projectName) { - this.projectName = projectName; - return this; - } - - /** - * Get the tenantId property: VSTS tenant id. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenantId property: VSTS tenant id. - * - * @param tenantId the tenantId value to set. - * @return the FactoryVstsConfiguration object itself. - */ - public FactoryVstsConfiguration withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryVstsConfiguration withAccountName(String accountName) { - super.withAccountName(accountName); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryVstsConfiguration withRepositoryName(String repositoryName) { - super.withRepositoryName(repositoryName); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryVstsConfiguration withCollaborationBranch(String collaborationBranch) { - super.withCollaborationBranch(collaborationBranch); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryVstsConfiguration withRootFolder(String rootFolder) { - super.withRootFolder(rootFolder); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryVstsConfiguration withLastCommitId(String lastCommitId) { - super.withLastCommitId(lastCommitId); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (projectName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property projectName in model FactoryVstsConfiguration")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FactoryVstsConfiguration.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FailActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FailActivity.java deleted file mode 100644 index 9fd2a0192419d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FailActivity.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FailActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** - * This activity will fail within its own scope and output a custom error message and error code. The error message and - * code can provided either as a string literal or as an expression that can be evaluated to a string at runtime. The - * activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is - * contained in it. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Fail") -@Fluent -public final class FailActivity extends ControlActivity { - /* - * Fail activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private FailActivityTypeProperties innerTypeProperties = new FailActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Fail activity properties. - * - * @return the innerTypeProperties value. - */ - private FailActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FailActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public FailActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public FailActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public FailActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the message property: The error message that surfaced in the Fail activity. It can be dynamic content that's - * evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). - * - * @return the message value. - */ - public Object message() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().message(); - } - - /** - * Set the message property: The error message that surfaced in the Fail activity. It can be dynamic content that's - * evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). - * - * @param message the message value to set. - * @return the FailActivity object itself. - */ - public FailActivity withMessage(Object message) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FailActivityTypeProperties(); - } - this.innerTypeProperties().withMessage(message); - return this; - } - - /** - * Get the errorCode property: The error code that categorizes the error type of the Fail activity. It can be - * dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with - * resultType string). - * - * @return the errorCode value. - */ - public Object errorCode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().errorCode(); - } - - /** - * Set the errorCode property: The error code that categorizes the error type of the Fail activity. It can be - * dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with - * resultType string). - * - * @param errorCode the errorCode value to set. - * @return the FailActivity object itself. - */ - public FailActivity withErrorCode(Object errorCode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FailActivityTypeProperties(); - } - this.innerTypeProperties().withErrorCode(errorCode); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model FailActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FailActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java deleted file mode 100644 index 60b7219e8c7f5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FileServerLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** File system linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FileServer") -@Fluent -public final class FileServerLinkedService extends LinkedService { - /* - * File system linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private FileServerLinkedServiceTypeProperties innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: File system linked service properties. - * - * @return the innerTypeProperties value. - */ - private FileServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the FileServerLinkedService object itself. - */ - public FileServerLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @return the userId value. - */ - public Object userId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().userId(); - } - - /** - * Set the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @param userId the userId value to set. - * @return the FileServerLinkedService object itself. - */ - public FileServerLinkedService withUserId(Object userId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUserId(userId); - return this; - } - - /** - * Get the password property: Password to logon the server. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to logon the server. - * - * @param password the password value to set. - * @return the FileServerLinkedService object itself. - */ - public FileServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the FileServerLinkedService object itself. - */ - public FileServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model FileServerLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FileServerLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLocation.java deleted file mode 100644 index a43d1b6b91e6d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLocation.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of file server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FileServerLocation") -@Fluent -public final class FileServerLocation extends DatasetLocation { - /** {@inheritDoc} */ - @Override - public FileServerLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerReadSettings.java deleted file mode 100644 index 6527e26651d54..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerReadSettings.java +++ /dev/null @@ -1,330 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** File server read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FileServerReadSettings") -@Fluent -public final class FileServerReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * FileServer wildcardFolderPath. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * FileServer wildcardFileName. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * Specify a filter to be used to select a subset of files in the - * folderPath rather than all files. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileFilter") - private Object fileFilter; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: FileServer wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: FileServer wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: FileServer wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: FileServer wildcardFileName. Type: string (or Expression with resultType - * string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @return the fileFilter value. - */ - public Object fileFilter() { - return this.fileFilter; - } - - /** - * Set the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @param fileFilter the fileFilter value to set. - * @return the FileServerReadSettings object itself. - */ - public FileServerReadSettings withFileFilter(Object fileFilter) { - this.fileFilter = fileFilter; - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerWriteSettings.java deleted file mode 100644 index 6738a60f3bdc4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerWriteSettings.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** File server write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FileServerWriteSettings") -@Fluent -public final class FileServerWriteSettings extends StoreWriteSettings { - /** {@inheritDoc} */ - @Override - public FileServerWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerWriteSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerWriteSettings withCopyBehavior(Object copyBehavior) { - super.withCopyBehavior(copyBehavior); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java deleted file mode 100644 index 0710c689fb485..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.FileShareDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** An on-premises file system dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FileShare") -@Fluent -public final class FileShareDataset extends Dataset { - /* - * On-premises file system dataset properties. - */ - @JsonProperty(value = "typeProperties") - private FileShareDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: On-premises file system dataset properties. - * - * @return the innerTypeProperties value. - */ - private FileShareDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the folderPath property: The path of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); - } - - /** - * Set the folderPath property: The path of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @param folderPath the folderPath value to set. - * @return the FileShareDataset object itself. - */ - public FileShareDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); - return this; - } - - /** - * Get the fileName property: The name of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); - } - - /** - * Set the fileName property: The name of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @param fileName the fileName value to set. - * @return the FileShareDataset object itself. - */ - public FileShareDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeStart(); - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the FileShareDataset object itself. - */ - public FileShareDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeStart(modifiedDatetimeStart); - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeEnd(); - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the FileShareDataset object itself. - */ - public FileShareDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeEnd(modifiedDatetimeEnd); - return this; - } - - /** - * Get the format property: The format of the files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); - } - - /** - * Set the format property: The format of the files. - * - * @param format the format value to set. - * @return the FileShareDataset object itself. - */ - public FileShareDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); - return this; - } - - /** - * Get the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @return the fileFilter value. - */ - public Object fileFilter() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileFilter(); - } - - /** - * Set the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @param fileFilter the fileFilter value to set. - * @return the FileShareDataset object itself. - */ - public FileShareDataset withFileFilter(Object fileFilter) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFileFilter(fileFilter); - return this; - } - - /** - * Get the compression property: The data compression method used for the file system. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the file system. - * - * @param compression the compression value to set. - * @return the FileShareDataset object itself. - */ - public FileShareDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileSystemSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileSystemSink.java deleted file mode 100644 index c53d04ad09c55..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileSystemSink.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity file system sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FileSystemSink") -@Fluent -public final class FileSystemSink extends CopySink { - /* - * The type of copy behavior for copy sink. - */ - @JsonProperty(value = "copyBehavior") - private Object copyBehavior; - - /** - * Get the copyBehavior property: The type of copy behavior for copy sink. - * - * @return the copyBehavior value. - */ - public Object copyBehavior() { - return this.copyBehavior; - } - - /** - * Set the copyBehavior property: The type of copy behavior for copy sink. - * - * @param copyBehavior the copyBehavior value to set. - * @return the FileSystemSink object itself. - */ - public FileSystemSink withCopyBehavior(Object copyBehavior) { - this.copyBehavior = copyBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileSystemSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileSystemSource.java deleted file mode 100644 index 1cab83b41e78f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileSystemSource.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity file system source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FileSystemSource") -@Fluent -public final class FileSystemSource extends CopySource { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the FileSystemSource object itself. - */ - public FileSystemSource withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the FileSystemSource object itself. - */ - public FileSystemSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileSystemSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java deleted file mode 100644 index 67e2c9bf91a79..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FilterActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Filter and return results from input array based on the conditions. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Filter") -@Fluent -public final class FilterActivity extends ControlActivity { - /* - * Filter activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private FilterActivityTypeProperties innerTypeProperties = new FilterActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Filter activity properties. - * - * @return the innerTypeProperties value. - */ - private FilterActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the items property: Input array on which filter should be applied. - * - * @return the items value. - */ - public Expression items() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().items(); - } - - /** - * Set the items property: Input array on which filter should be applied. - * - * @param items the items value to set. - * @return the FilterActivity object itself. - */ - public FilterActivity withItems(Expression items) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FilterActivityTypeProperties(); - } - this.innerTypeProperties().withItems(items); - return this; - } - - /** - * Get the condition property: Condition to be used for filtering the input. - * - * @return the condition value. - */ - public Expression condition() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().condition(); - } - - /** - * Set the condition property: Condition to be used for filtering the input. - * - * @param condition the condition value to set. - * @return the FilterActivity object itself. - */ - public FilterActivity withCondition(Expression condition) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FilterActivityTypeProperties(); - } - this.innerTypeProperties().withCondition(condition); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model FilterActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FilterActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java deleted file mode 100644 index e72ff95fb5cf8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.FlowletTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Data flow flowlet. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Flowlet") -@Fluent -public final class Flowlet extends DataFlow { - /* - * Flowlet type properties. - */ - @JsonProperty(value = "typeProperties") - private FlowletTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Flowlet type properties. - * - * @return the innerTypeProperties value. - */ - private FlowletTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public Flowlet withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public Flowlet withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public Flowlet withFolder(DataFlowFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the sources property: List of sources in Flowlet. - * - * @return the sources value. - */ - public List sources() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sources(); - } - - /** - * Set the sources property: List of sources in Flowlet. - * - * @param sources the sources value to set. - * @return the Flowlet object itself. - */ - public Flowlet withSources(List sources) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FlowletTypeProperties(); - } - this.innerTypeProperties().withSources(sources); - return this; - } - - /** - * Get the sinks property: List of sinks in Flowlet. - * - * @return the sinks value. - */ - public List sinks() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sinks(); - } - - /** - * Set the sinks property: List of sinks in Flowlet. - * - * @param sinks the sinks value to set. - * @return the Flowlet object itself. - */ - public Flowlet withSinks(List sinks) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FlowletTypeProperties(); - } - this.innerTypeProperties().withSinks(sinks); - return this; - } - - /** - * Get the transformations property: List of transformations in Flowlet. - * - * @return the transformations value. - */ - public List transformations() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().transformations(); - } - - /** - * Set the transformations property: List of transformations in Flowlet. - * - * @param transformations the transformations value to set. - * @return the Flowlet object itself. - */ - public Flowlet withTransformations(List transformations) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FlowletTypeProperties(); - } - this.innerTypeProperties().withTransformations(transformations); - return this; - } - - /** - * Get the script property: Flowlet script. - * - * @return the script value. - */ - public String script() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().script(); - } - - /** - * Set the script property: Flowlet script. - * - * @param script the script value to set. - * @return the Flowlet object itself. - */ - public Flowlet withScript(String script) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FlowletTypeProperties(); - } - this.innerTypeProperties().withScript(script); - return this; - } - - /** - * Get the scriptLines property: Flowlet script lines. - * - * @return the scriptLines value. - */ - public List scriptLines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptLines(); - } - - /** - * Set the scriptLines property: Flowlet script lines. - * - * @param scriptLines the scriptLines value to set. - * @return the Flowlet object itself. - */ - public Flowlet withScriptLines(List scriptLines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FlowletTypeProperties(); - } - this.innerTypeProperties().withScriptLines(scriptLines); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java deleted file mode 100644 index b5a59bc239929..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ForEachActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** This activity is used for iterating over a collection and execute given activities. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ForEach") -@Fluent -public final class ForEachActivity extends ControlActivity { - /* - * ForEach activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ForEachActivityTypeProperties innerTypeProperties = new ForEachActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: ForEach activity properties. - * - * @return the innerTypeProperties value. - */ - private ForEachActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ForEachActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ForEachActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ForEachActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ForEachActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the isSequential property: Should the loop be executed in sequence or in parallel (max 50). - * - * @return the isSequential value. - */ - public Boolean isSequential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().isSequential(); - } - - /** - * Set the isSequential property: Should the loop be executed in sequence or in parallel (max 50). - * - * @param isSequential the isSequential value to set. - * @return the ForEachActivity object itself. - */ - public ForEachActivity withIsSequential(Boolean isSequential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withIsSequential(isSequential); - return this; - } - - /** - * Get the batchCount property: Batch count to be used for controlling the number of parallel execution (when - * isSequential is set to false). - * - * @return the batchCount value. - */ - public Integer batchCount() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().batchCount(); - } - - /** - * Set the batchCount property: Batch count to be used for controlling the number of parallel execution (when - * isSequential is set to false). - * - * @param batchCount the batchCount value to set. - * @return the ForEachActivity object itself. - */ - public ForEachActivity withBatchCount(Integer batchCount) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withBatchCount(batchCount); - return this; - } - - /** - * Get the items property: Collection to iterate. - * - * @return the items value. - */ - public Expression items() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().items(); - } - - /** - * Set the items property: Collection to iterate. - * - * @param items the items value to set. - * @return the ForEachActivity object itself. - */ - public ForEachActivity withItems(Expression items) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withItems(items); - return this; - } - - /** - * Get the activities property: List of activities to execute . - * - * @return the activities value. - */ - public List activities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().activities(); - } - - /** - * Set the activities property: List of activities to execute . - * - * @param activities the activities value to set. - * @return the ForEachActivity object itself. - */ - public ForEachActivity withActivities(List activities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withActivities(activities); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ForEachActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ForEachActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FormatReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FormatReadSettings.java deleted file mode 100644 index 8b30ad0337277..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FormatReadSettings.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Format read settings. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = FormatReadSettings.class) -@JsonTypeName("FormatReadSettings") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "DelimitedTextReadSettings", value = DelimitedTextReadSettings.class), - @JsonSubTypes.Type(name = "JsonReadSettings", value = JsonReadSettings.class), - @JsonSubTypes.Type(name = "XmlReadSettings", value = XmlReadSettings.class), - @JsonSubTypes.Type(name = "BinaryReadSettings", value = BinaryReadSettings.class) -}) -@Fluent -public class FormatReadSettings { - /* - * Format read settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the additionalProperties property: Format read settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Format read settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the FormatReadSettings object itself. - */ - public FormatReadSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FormatWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FormatWriteSettings.java deleted file mode 100644 index adac72a01bdc2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FormatWriteSettings.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Format write settings. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = FormatWriteSettings.class) -@JsonTypeName("FormatWriteSettings") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "AvroWriteSettings", value = AvroWriteSettings.class), - @JsonSubTypes.Type(name = "OrcWriteSettings", value = OrcWriteSettings.class), - @JsonSubTypes.Type(name = "ParquetWriteSettings", value = ParquetWriteSettings.class), - @JsonSubTypes.Type(name = "DelimitedTextWriteSettings", value = DelimitedTextWriteSettings.class), - @JsonSubTypes.Type(name = "JsonWriteSettings", value = JsonWriteSettings.class) -}) -@Fluent -public class FormatWriteSettings { - /* - * Format write settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the additionalProperties property: Format write settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Format write settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the FormatWriteSettings object itself. - */ - public FormatWriteSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpAuthenticationType.java deleted file mode 100644 index b4049bd770698..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for FtpAuthenticationType. */ -public final class FtpAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for FtpAuthenticationType. */ - public static final FtpAuthenticationType BASIC = fromString("Basic"); - - /** Static value Anonymous for FtpAuthenticationType. */ - public static final FtpAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** - * Creates or finds a FtpAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding FtpAuthenticationType. - */ - @JsonCreator - public static FtpAuthenticationType fromString(String name) { - return fromString(name, FtpAuthenticationType.class); - } - - /** @return known FtpAuthenticationType values. */ - public static Collection values() { - return values(FtpAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpReadSettings.java deleted file mode 100644 index f220d73891f5f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpReadSettings.java +++ /dev/null @@ -1,293 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Ftp read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FtpReadSettings") -@Fluent -public final class FtpReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Ftp wildcardFolderPath. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Ftp wildcardFileName. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Specify whether to use binary transfer mode for FTP stores. - */ - @JsonProperty(value = "useBinaryTransfer") - private Boolean useBinaryTransfer; - - /* - * If true, disable parallel reading within each file. Default is false. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "disableChunking") - private Object disableChunking; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Ftp wildcardFolderPath. Type: string (or Expression with resultType string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Ftp wildcardFolderPath. Type: string (or Expression with resultType string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Ftp wildcardFileName. Type: string (or Expression with resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Ftp wildcardFileName. Type: string (or Expression with resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the useBinaryTransfer property: Specify whether to use binary transfer mode for FTP stores. - * - * @return the useBinaryTransfer value. - */ - public Boolean useBinaryTransfer() { - return this.useBinaryTransfer; - } - - /** - * Set the useBinaryTransfer property: Specify whether to use binary transfer mode for FTP stores. - * - * @param useBinaryTransfer the useBinaryTransfer value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withUseBinaryTransfer(Boolean useBinaryTransfer) { - this.useBinaryTransfer = useBinaryTransfer; - return this; - } - - /** - * Get the disableChunking property: If true, disable parallel reading within each file. Default is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the disableChunking value. - */ - public Object disableChunking() { - return this.disableChunking; - } - - /** - * Set the disableChunking property: If true, disable parallel reading within each file. Default is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param disableChunking the disableChunking value to set. - * @return the FtpReadSettings object itself. - */ - public FtpReadSettings withDisableChunking(Object disableChunking) { - this.disableChunking = disableChunking; - return this; - } - - /** {@inheritDoc} */ - @Override - public FtpReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public FtpReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java deleted file mode 100644 index 9d59d6c2455c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FtpServerLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** A FTP server Linked Service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FtpServer") -@Fluent -public final class FtpServerLinkedService extends LinkedService { - /* - * Properties specific to this linked service type. - */ - @JsonProperty(value = "typeProperties", required = true) - private FtpServerLinkedServiceTypeProperties innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. - */ - private FtpServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: Host name of the FTP server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: Host name of the FTP server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port number that the FTP server uses to listen for client connections. Default - * value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port number that the FTP server uses to listen for client connections. Default - * value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @return the authenticationType value. - */ - public FtpAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withAuthenticationType(FtpAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: Username to logon the FTP server. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username to logon the FTP server. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to logon the FTP server. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to logon the FTP server. - * - * @param password the password value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the enableSsl property: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param enableSsl the enableSsl value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the enableServerCertificateValidation property: If true, validate the FTP server SSL certificate when connect - * over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().enableServerCertificateValidation(); - } - - /** - * Set the enableServerCertificateValidation property: If true, validate the FTP server SSL certificate when connect - * over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the FtpServerLinkedService object itself. - */ - public FtpServerLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableServerCertificateValidation(enableServerCertificateValidation); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model FtpServerLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FtpServerLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLocation.java deleted file mode 100644 index 9ff891710b9be..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLocation.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of ftp server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("FtpServerLocation") -@Fluent -public final class FtpServerLocation extends DatasetLocation { - /** {@inheritDoc} */ - @Override - public FtpServerLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public FtpServerLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetDataFactoryOperationStatusResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetDataFactoryOperationStatusResponse.java deleted file mode 100644 index 3707343a192c9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetDataFactoryOperationStatusResponse.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Response body structure for get data factory operation status. */ -@Fluent -public final class GetDataFactoryOperationStatusResponse { - /* - * Status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Response body structure for get data factory operation status. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the status property: Status of the operation. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Set the status property: Status of the operation. - * - * @param status the status value to set. - * @return the GetDataFactoryOperationStatusResponse object itself. - */ - public GetDataFactoryOperationStatusResponse withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the additionalProperties property: Response body structure for get data factory operation status. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Response body structure for get data factory operation status. - * - * @param additionalProperties the additionalProperties value to set. - * @return the GetDataFactoryOperationStatusResponse object itself. - */ - public GetDataFactoryOperationStatusResponse withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java deleted file mode 100644 index 0b00eab5170df..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GetMetadataActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Activity to get metadata of dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GetMetadata") -@Fluent -public final class GetMetadataActivity extends ExecutionActivity { - /* - * GetMetadata activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private GetMetadataActivityTypeProperties innerTypeProperties = new GetMetadataActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: GetMetadata activity properties. - * - * @return the innerTypeProperties value. - */ - private GetMetadataActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the dataset property: GetMetadata activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); - } - - /** - * Set the dataset property: GetMetadata activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the GetMetadataActivity object itself. - */ - public GetMetadataActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); - return this; - } - - /** - * Get the fieldList property: Fields of metadata to get from dataset. - * - * @return the fieldList value. - */ - public List fieldList() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fieldList(); - } - - /** - * Set the fieldList property: Fields of metadata to get from dataset. - * - * @param fieldList the fieldList value to set. - * @return the GetMetadataActivity object itself. - */ - public GetMetadataActivity withFieldList(List fieldList) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withFieldList(fieldList); - return this; - } - - /** - * Get the storeSettings property: GetMetadata activity store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storeSettings(); - } - - /** - * Set the storeSettings property: GetMetadata activity store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the GetMetadataActivity object itself. - */ - public GetMetadataActivity withStoreSettings(StoreReadSettings storeSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withStoreSettings(storeSettings); - return this; - } - - /** - * Get the formatSettings property: GetMetadata activity format settings. - * - * @return the formatSettings value. - */ - public FormatReadSettings formatSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().formatSettings(); - } - - /** - * Set the formatSettings property: GetMetadata activity format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the GetMetadataActivity object itself. - */ - public GetMetadataActivity withFormatSettings(FormatReadSettings formatSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withFormatSettings(formatSettings); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GetMetadataActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GetMetadataActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetSsisObjectMetadataRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetSsisObjectMetadataRequest.java deleted file mode 100644 index ac903f28e8fe3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetSsisObjectMetadataRequest.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The request payload of get SSIS object metadata. */ -@Fluent -public final class GetSsisObjectMetadataRequest { - /* - * Metadata path. - */ - @JsonProperty(value = "metadataPath") - private String metadataPath; - - /** - * Get the metadataPath property: Metadata path. - * - * @return the metadataPath value. - */ - public String metadataPath() { - return this.metadataPath; - } - - /** - * Set the metadataPath property: Metadata path. - * - * @param metadataPath the metadataPath value to set. - * @return the GetSsisObjectMetadataRequest object itself. - */ - public GetSsisObjectMetadataRequest withMetadataPath(String metadataPath) { - this.metadataPath = metadataPath; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubAccessTokenRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubAccessTokenRequest.java deleted file mode 100644 index 396b9a8be02f4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubAccessTokenRequest.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Get GitHub access token request definition. */ -@Fluent -public final class GitHubAccessTokenRequest { - /* - * GitHub access code. - */ - @JsonProperty(value = "gitHubAccessCode", required = true) - private String gitHubAccessCode; - - /* - * GitHub application client ID. - */ - @JsonProperty(value = "gitHubClientId") - private String gitHubClientId; - - /* - * GitHub bring your own app client secret information. - */ - @JsonProperty(value = "gitHubClientSecret") - private GitHubClientSecret gitHubClientSecret; - - /* - * GitHub access token base URL. - */ - @JsonProperty(value = "gitHubAccessTokenBaseUrl", required = true) - private String gitHubAccessTokenBaseUrl; - - /** - * Get the gitHubAccessCode property: GitHub access code. - * - * @return the gitHubAccessCode value. - */ - public String gitHubAccessCode() { - return this.gitHubAccessCode; - } - - /** - * Set the gitHubAccessCode property: GitHub access code. - * - * @param gitHubAccessCode the gitHubAccessCode value to set. - * @return the GitHubAccessTokenRequest object itself. - */ - public GitHubAccessTokenRequest withGitHubAccessCode(String gitHubAccessCode) { - this.gitHubAccessCode = gitHubAccessCode; - return this; - } - - /** - * Get the gitHubClientId property: GitHub application client ID. - * - * @return the gitHubClientId value. - */ - public String gitHubClientId() { - return this.gitHubClientId; - } - - /** - * Set the gitHubClientId property: GitHub application client ID. - * - * @param gitHubClientId the gitHubClientId value to set. - * @return the GitHubAccessTokenRequest object itself. - */ - public GitHubAccessTokenRequest withGitHubClientId(String gitHubClientId) { - this.gitHubClientId = gitHubClientId; - return this; - } - - /** - * Get the gitHubClientSecret property: GitHub bring your own app client secret information. - * - * @return the gitHubClientSecret value. - */ - public GitHubClientSecret gitHubClientSecret() { - return this.gitHubClientSecret; - } - - /** - * Set the gitHubClientSecret property: GitHub bring your own app client secret information. - * - * @param gitHubClientSecret the gitHubClientSecret value to set. - * @return the GitHubAccessTokenRequest object itself. - */ - public GitHubAccessTokenRequest withGitHubClientSecret(GitHubClientSecret gitHubClientSecret) { - this.gitHubClientSecret = gitHubClientSecret; - return this; - } - - /** - * Get the gitHubAccessTokenBaseUrl property: GitHub access token base URL. - * - * @return the gitHubAccessTokenBaseUrl value. - */ - public String gitHubAccessTokenBaseUrl() { - return this.gitHubAccessTokenBaseUrl; - } - - /** - * Set the gitHubAccessTokenBaseUrl property: GitHub access token base URL. - * - * @param gitHubAccessTokenBaseUrl the gitHubAccessTokenBaseUrl value to set. - * @return the GitHubAccessTokenRequest object itself. - */ - public GitHubAccessTokenRequest withGitHubAccessTokenBaseUrl(String gitHubAccessTokenBaseUrl) { - this.gitHubAccessTokenBaseUrl = gitHubAccessTokenBaseUrl; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (gitHubAccessCode() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property gitHubAccessCode in model GitHubAccessTokenRequest")); - } - if (gitHubClientSecret() != null) { - gitHubClientSecret().validate(); - } - if (gitHubAccessTokenBaseUrl() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property gitHubAccessTokenBaseUrl in model GitHubAccessTokenRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GitHubAccessTokenRequest.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubAccessTokenResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubAccessTokenResponse.java deleted file mode 100644 index 72364e07a8653..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubAccessTokenResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.GitHubAccessTokenResponseInner; - -/** An immutable client-side representation of GitHubAccessTokenResponse. */ -public interface GitHubAccessTokenResponse { - /** - * Gets the gitHubAccessToken property: GitHub access token. - * - * @return the gitHubAccessToken value. - */ - String gitHubAccessToken(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.GitHubAccessTokenResponseInner object. - * - * @return the inner object. - */ - GitHubAccessTokenResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubClientSecret.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubClientSecret.java deleted file mode 100644 index 430efc72cc480..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GitHubClientSecret.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Client secret information for factory's bring your own app repository configuration. */ -@Fluent -public final class GitHubClientSecret { - /* - * Bring your own app client secret AKV URL. - */ - @JsonProperty(value = "byoaSecretAkvUrl") - private String byoaSecretAkvUrl; - - /* - * Bring your own app client secret name in AKV. - */ - @JsonProperty(value = "byoaSecretName") - private String byoaSecretName; - - /** - * Get the byoaSecretAkvUrl property: Bring your own app client secret AKV URL. - * - * @return the byoaSecretAkvUrl value. - */ - public String byoaSecretAkvUrl() { - return this.byoaSecretAkvUrl; - } - - /** - * Set the byoaSecretAkvUrl property: Bring your own app client secret AKV URL. - * - * @param byoaSecretAkvUrl the byoaSecretAkvUrl value to set. - * @return the GitHubClientSecret object itself. - */ - public GitHubClientSecret withByoaSecretAkvUrl(String byoaSecretAkvUrl) { - this.byoaSecretAkvUrl = byoaSecretAkvUrl; - return this; - } - - /** - * Get the byoaSecretName property: Bring your own app client secret name in AKV. - * - * @return the byoaSecretName value. - */ - public String byoaSecretName() { - return this.byoaSecretName; - } - - /** - * Set the byoaSecretName property: Bring your own app client secret name in AKV. - * - * @param byoaSecretName the byoaSecretName value to set. - * @return the GitHubClientSecret object itself. - */ - public GitHubClientSecret withByoaSecretName(String byoaSecretName) { - this.byoaSecretName = byoaSecretName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GlobalParameterSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GlobalParameterSpecification.java deleted file mode 100644 index e0b9bfb1a3fe2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GlobalParameterSpecification.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Definition of a single parameter for an entity. */ -@Fluent -public final class GlobalParameterSpecification { - /* - * Global Parameter type. - */ - @JsonProperty(value = "type", required = true) - private GlobalParameterType type; - - /* - * Value of parameter. - */ - @JsonProperty(value = "value", required = true) - private Object value; - - /** - * Get the type property: Global Parameter type. - * - * @return the type value. - */ - public GlobalParameterType type() { - return this.type; - } - - /** - * Set the type property: Global Parameter type. - * - * @param type the type value to set. - * @return the GlobalParameterSpecification object itself. - */ - public GlobalParameterSpecification withType(GlobalParameterType type) { - this.type = type; - return this; - } - - /** - * Get the value property: Value of parameter. - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: Value of parameter. - * - * @param value the value value to set. - * @return the GlobalParameterSpecification object itself. - */ - public GlobalParameterSpecification withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property type in model GlobalParameterSpecification")); - } - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model GlobalParameterSpecification")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GlobalParameterSpecification.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GlobalParameterType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GlobalParameterType.java deleted file mode 100644 index 29858c506fbd7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GlobalParameterType.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for GlobalParameterType. */ -public final class GlobalParameterType extends ExpandableStringEnum { - /** Static value Object for GlobalParameterType. */ - public static final GlobalParameterType OBJECT = fromString("Object"); - - /** Static value String for GlobalParameterType. */ - public static final GlobalParameterType STRING = fromString("String"); - - /** Static value Int for GlobalParameterType. */ - public static final GlobalParameterType INT = fromString("Int"); - - /** Static value Float for GlobalParameterType. */ - public static final GlobalParameterType FLOAT = fromString("Float"); - - /** Static value Bool for GlobalParameterType. */ - public static final GlobalParameterType BOOL = fromString("Bool"); - - /** Static value Array for GlobalParameterType. */ - public static final GlobalParameterType ARRAY = fromString("Array"); - - /** - * Creates or finds a GlobalParameterType from its string representation. - * - * @param name a name to look for. - * @return the corresponding GlobalParameterType. - */ - @JsonCreator - public static GlobalParameterType fromString(String name) { - return fromString(name, GlobalParameterType.class); - } - - /** @return known GlobalParameterType values. */ - public static Collection values() { - return values(GlobalParameterType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsAuthenticationType.java deleted file mode 100644 index b827a3cdf8579..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for GoogleAdWordsAuthenticationType. */ -public final class GoogleAdWordsAuthenticationType extends ExpandableStringEnum { - /** Static value ServiceAuthentication for GoogleAdWordsAuthenticationType. */ - public static final GoogleAdWordsAuthenticationType SERVICE_AUTHENTICATION = fromString("ServiceAuthentication"); - - /** Static value UserAuthentication for GoogleAdWordsAuthenticationType. */ - public static final GoogleAdWordsAuthenticationType USER_AUTHENTICATION = fromString("UserAuthentication"); - - /** - * Creates or finds a GoogleAdWordsAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding GoogleAdWordsAuthenticationType. - */ - @JsonCreator - public static GoogleAdWordsAuthenticationType fromString(String name) { - return fromString(name, GoogleAdWordsAuthenticationType.class); - } - - /** @return known GoogleAdWordsAuthenticationType values. */ - public static Collection values() { - return values(GoogleAdWordsAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java deleted file mode 100644 index cb8142a8e6b17..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleAdWordsLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Google AdWords service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleAdWords") -@Fluent -public final class GoogleAdWordsLinkedService extends LinkedService { - /* - * Google AdWords service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private GoogleAdWordsLinkedServiceTypeProperties innerTypeProperties = - new GoogleAdWordsLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Google AdWords service linked service properties. - * - * @return the innerTypeProperties value. - */ - private GoogleAdWordsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); - } - - /** - * Set the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); - return this; - } - - /** - * Get the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report - * data for. - * - * @return the clientCustomerId value. - */ - public Object clientCustomerId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientCustomerId(); - } - - /** - * Set the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report - * data for. - * - * @param clientCustomerId the clientCustomerId value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withClientCustomerId(Object clientCustomerId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientCustomerId(clientCustomerId); - return this; - } - - /** - * Get the developerToken property: The developer token associated with the manager account that you use to grant - * access to the AdWords API. - * - * @return the developerToken value. - */ - public SecretBase developerToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().developerToken(); - } - - /** - * Set the developerToken property: The developer token associated with the manager account that you use to grant - * access to the AdWords API. - * - * @param developerToken the developerToken value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withDeveloperToken(SecretBase developerToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeveloperToken(developerToken); - return this; - } - - /** - * Get the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @return the authenticationType value. - */ - public GoogleAdWordsAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @param authenticationType the authenticationType value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withAuthenticationType(GoogleAdWordsAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained from Google for authorizing access to AdWords for - * UserAuthentication. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().refreshToken(); - } - - /** - * Set the refreshToken property: The refresh token obtained from Google for authorizing access to AdWords for - * UserAuthentication. - * - * @param refreshToken the refreshToken value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withRefreshToken(SecretBase refreshToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRefreshToken(refreshToken); - return this; - } - - /** - * Get the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @param clientSecret the clientSecret value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @return the email value. - */ - public Object email() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().email(); - } - - /** - * Set the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @param email the email value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withEmail(Object email) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEmail(email); - return this; - } - - /** - * Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @return the keyFilePath value. - */ - public Object keyFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().keyFilePath(); - } - - /** - * Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @param keyFilePath the keyFilePath value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withKeyFilePath(Object keyFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withKeyFilePath(keyFilePath); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleAdWordsLinkedService object itself. - */ - public GoogleAdWordsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GoogleAdWordsLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GoogleAdWordsLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java deleted file mode 100644 index 6742342f8747d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Google AdWords service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleAdWordsObject") -@Fluent -public final class GoogleAdWordsObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the GoogleAdWordsObjectDataset object itself. - */ - public GoogleAdWordsObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsSource.java deleted file mode 100644 index 1afda2d7fd97c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Google AdWords service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleAdWordsSource") -@Fluent -public final class GoogleAdWordsSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the GoogleAdWordsSource object itself. - */ - public GoogleAdWordsSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleAdWordsSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryAuthenticationType.java deleted file mode 100644 index 78c99fd5e6764..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for GoogleBigQueryAuthenticationType. */ -public final class GoogleBigQueryAuthenticationType extends ExpandableStringEnum { - /** Static value ServiceAuthentication for GoogleBigQueryAuthenticationType. */ - public static final GoogleBigQueryAuthenticationType SERVICE_AUTHENTICATION = fromString("ServiceAuthentication"); - - /** Static value UserAuthentication for GoogleBigQueryAuthenticationType. */ - public static final GoogleBigQueryAuthenticationType USER_AUTHENTICATION = fromString("UserAuthentication"); - - /** - * Creates or finds a GoogleBigQueryAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding GoogleBigQueryAuthenticationType. - */ - @JsonCreator - public static GoogleBigQueryAuthenticationType fromString(String name) { - return fromString(name, GoogleBigQueryAuthenticationType.class); - } - - /** @return known GoogleBigQueryAuthenticationType values. */ - public static Collection values() { - return values(GoogleBigQueryAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java deleted file mode 100644 index 76b1f44b18879..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java +++ /dev/null @@ -1,382 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Google BigQuery service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleBigQuery") -@Fluent -public final class GoogleBigQueryLinkedService extends LinkedService { - /* - * Google BigQuery service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private GoogleBigQueryLinkedServiceTypeProperties innerTypeProperties = - new GoogleBigQueryLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Google BigQuery service linked service properties. - * - * @return the innerTypeProperties value. - */ - private GoogleBigQueryLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the project property: The default BigQuery project to query against. - * - * @return the project value. - */ - public Object project() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().project(); - } - - /** - * Set the project property: The default BigQuery project to query against. - * - * @param project the project value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withProject(Object project) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withProject(project); - return this; - } - - /** - * Get the additionalProjects property: A comma-separated list of public BigQuery projects to access. - * - * @return the additionalProjects value. - */ - public Object additionalProjects() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalProjects(); - } - - /** - * Set the additionalProjects property: A comma-separated list of public BigQuery projects to access. - * - * @param additionalProjects the additionalProjects value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withAdditionalProjects(Object additionalProjects) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAdditionalProjects(additionalProjects); - return this; - } - - /** - * Get the requestGoogleDriveScope property: Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is - * false. - * - * @return the requestGoogleDriveScope value. - */ - public Object requestGoogleDriveScope() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestGoogleDriveScope(); - } - - /** - * Set the requestGoogleDriveScope property: Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is - * false. - * - * @param requestGoogleDriveScope the requestGoogleDriveScope value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withRequestGoogleDriveScope(Object requestGoogleDriveScope) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRequestGoogleDriveScope(requestGoogleDriveScope); - return this; - } - - /** - * Get the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @return the authenticationType value. - */ - public GoogleBigQueryAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @param authenticationType the authenticationType value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withAuthenticationType(GoogleBigQueryAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained from Google for authorizing access to BigQuery for - * UserAuthentication. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().refreshToken(); - } - - /** - * Set the refreshToken property: The refresh token obtained from Google for authorizing access to BigQuery for - * UserAuthentication. - * - * @param refreshToken the refreshToken value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withRefreshToken(SecretBase refreshToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRefreshToken(refreshToken); - return this; - } - - /** - * Get the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @param clientSecret the clientSecret value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @return the email value. - */ - public Object email() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().email(); - } - - /** - * Set the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @param email the email value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withEmail(Object email) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEmail(email); - return this; - } - - /** - * Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @return the keyFilePath value. - */ - public Object keyFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().keyFilePath(); - } - - /** - * Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @param keyFilePath the keyFilePath value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withKeyFilePath(Object keyFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withKeyFilePath(keyFilePath); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleBigQueryLinkedService object itself. - */ - public GoogleBigQueryLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GoogleBigQueryLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GoogleBigQueryLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java deleted file mode 100644 index 37d37fa612a8b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Google BigQuery service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleBigQueryObject") -@Fluent -public final class GoogleBigQueryObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GoogleBigQueryDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GoogleBigQueryDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using database + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using database + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the GoogleBigQueryObjectDataset object itself. - */ - public GoogleBigQueryObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the GoogleBigQueryObjectDataset object itself. - */ - public GoogleBigQueryObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the dataset property: The database name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @return the dataset value. - */ - public Object dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); - } - - /** - * Set the dataset property: The database name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @param dataset the dataset value to set. - * @return the GoogleBigQueryObjectDataset object itself. - */ - public GoogleBigQueryObjectDataset withDataset(Object dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryDatasetTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQuerySource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQuerySource.java deleted file mode 100644 index 4a1dbcaae72bc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQuerySource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Google BigQuery service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleBigQuerySource") -@Fluent -public final class GoogleBigQuerySource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the GoogleBigQuerySource object itself. - */ - public GoogleBigQuerySource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQuerySource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQuerySource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQuerySource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQuerySource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQuerySource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQuerySource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java deleted file mode 100644 index 9f081ae91eb23..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleCloudStorageLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Google Cloud Storage. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleCloudStorage") -@Fluent -public final class GoogleCloudStorageLinkedService extends LinkedService { - /* - * Google Cloud Storage linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private GoogleCloudStorageLinkedServiceTypeProperties innerTypeProperties = - new GoogleCloudStorageLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Google Cloud Storage linked service properties. - * - * @return the innerTypeProperties value. - */ - private GoogleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the accessKeyId property: The access key identifier of the Google Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); - } - - /** - * Set the accessKeyId property: The access key identifier of the Google Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the GoogleCloudStorageLinkedService object itself. - */ - public GoogleCloudStorageLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); - } - - /** - * Set the secretAccessKey property: The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the GoogleCloudStorageLinkedService object itself. - */ - public GoogleCloudStorageLinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Google Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Google Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the GoogleCloudStorageLinkedService object itself. - */ - public GoogleCloudStorageLinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleCloudStorageLinkedService object itself. - */ - public GoogleCloudStorageLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GoogleCloudStorageLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GoogleCloudStorageLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLocation.java deleted file mode 100644 index d1e46790aad12..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLocation.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of Google Cloud Storage dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleCloudStorageLocation") -@Fluent -public final class GoogleCloudStorageLocation extends DatasetLocation { - /* - * Specify the bucketName of Google Cloud Storage. Type: string (or - * Expression with resultType string) - */ - @JsonProperty(value = "bucketName") - private Object bucketName; - - /* - * Specify the version of Google Cloud Storage. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /** - * Get the bucketName property: Specify the bucketName of Google Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.bucketName; - } - - /** - * Set the bucketName property: Specify the bucketName of Google Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @param bucketName the bucketName value to set. - * @return the GoogleCloudStorageLocation object itself. - */ - public GoogleCloudStorageLocation withBucketName(Object bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Get the version property: Specify the version of Google Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Specify the version of Google Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @param version the version value to set. - * @return the GoogleCloudStorageLocation object itself. - */ - public GoogleCloudStorageLocation withVersion(Object version) { - this.version = version; - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageReadSettings.java deleted file mode 100644 index 9c27b3b8fe72b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageReadSettings.java +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Google Cloud Storage read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleCloudStorageReadSettings") -@Fluent -public final class GoogleCloudStorageReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Google Cloud Storage wildcardFolderPath. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Google Cloud Storage wildcardFileName. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * The prefix filter for the Google Cloud Storage object name. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Google Cloud Storage wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Google Cloud Storage wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Google Cloud Storage wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Google Cloud Storage wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the prefix property: The prefix filter for the Google Cloud Storage object name. Type: string (or Expression - * with resultType string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the Google Cloud Storage object name. Type: string (or Expression - * with resultType string). - * - * @param prefix the prefix value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the GoogleCloudStorageReadSettings object itself. - */ - public GoogleCloudStorageReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java deleted file mode 100644 index e8dfc1a3587aa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GreenplumLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Greenplum Database linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Greenplum") -@Fluent -public final class GreenplumLinkedService extends LinkedService { - /* - * Greenplum Database linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private GreenplumLinkedServiceTypeProperties innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Greenplum Database linked service properties. - * - * @return the innerTypeProperties value. - */ - private GreenplumLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the GreenplumLinkedService object itself. - */ - public GreenplumLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the GreenplumLinkedService object itself. - */ - public GreenplumLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GreenplumLinkedService object itself. - */ - public GreenplumLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GreenplumLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GreenplumLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumSource.java deleted file mode 100644 index 1b0643529507f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Greenplum Database source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GreenplumSource") -@Fluent -public final class GreenplumSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the GreenplumSource object itself. - */ - public GreenplumSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java deleted file mode 100644 index 01a8bbb976284..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GreenplumDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Greenplum Database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GreenplumTable") -@Fluent -public final class GreenplumTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GreenplumDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GreenplumDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the GreenplumTableDataset object itself. - */ - public GreenplumTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of Greenplum. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of Greenplum. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the GreenplumTableDataset object itself. - */ - public GreenplumTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the GreenplumTableDataset object itself. - */ - public GreenplumTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseAuthenticationType.java deleted file mode 100644 index dd1caff0bb103..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for HBaseAuthenticationType. */ -public final class HBaseAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for HBaseAuthenticationType. */ - public static final HBaseAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value Basic for HBaseAuthenticationType. */ - public static final HBaseAuthenticationType BASIC = fromString("Basic"); - - /** - * Creates or finds a HBaseAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding HBaseAuthenticationType. - */ - @JsonCreator - public static HBaseAuthenticationType fromString(String name) { - return fromString(name, HBaseAuthenticationType.class); - } - - /** @return known HBaseAuthenticationType values. */ - public static Collection values() { - return values(HBaseAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java deleted file mode 100644 index 990295f990a84..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java +++ /dev/null @@ -1,352 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HBaseLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HBase server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HBase") -@Fluent -public final class HBaseLinkedService extends LinkedService { - /* - * HBase server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HBaseLinkedServiceTypeProperties innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: HBase server linked service properties. - * - * @return the innerTypeProperties value. - */ - private HBaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The IP address or host name of the HBase server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The IP address or host name of the HBase server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port that the HBase instance uses to listen for client connections. The default - * value is 9090. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port that the HBase instance uses to listen for client connections. The default - * value is 9090. - * - * @param port the port value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version). - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); - } - - /** - * Set the httpPath property: The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version). - * - * @param httpPath the httpPath value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism to use to connect to the HBase server. - * - * @return the authenticationType value. - */ - public HBaseAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication mechanism to use to connect to the HBase server. - * - * @param authenticationType the authenticationType value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withAuthenticationType(HBaseAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The user name used to connect to the HBase instance. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name used to connect to the HBase instance. - * - * @param username the username value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HBaseLinkedService object itself. - */ - public HBaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HBaseLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HBaseLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java deleted file mode 100644 index d714b8157356c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HBase server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HBaseObject") -@Fluent -public final class HBaseObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HBaseObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the HBaseObjectDataset object itself. - */ - public HBaseObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseSource.java deleted file mode 100644 index b69b28a8a792d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity HBase server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HBaseSource") -@Fluent -public final class HBaseSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the HBaseSource object itself. - */ - public HBaseSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public HBaseSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightActivityDebugInfoOption.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightActivityDebugInfoOption.java deleted file mode 100644 index 55568a3cced82..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightActivityDebugInfoOption.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for HDInsightActivityDebugInfoOption. */ -public final class HDInsightActivityDebugInfoOption extends ExpandableStringEnum { - /** Static value None for HDInsightActivityDebugInfoOption. */ - public static final HDInsightActivityDebugInfoOption NONE = fromString("None"); - - /** Static value Always for HDInsightActivityDebugInfoOption. */ - public static final HDInsightActivityDebugInfoOption ALWAYS = fromString("Always"); - - /** Static value Failure for HDInsightActivityDebugInfoOption. */ - public static final HDInsightActivityDebugInfoOption FAILURE = fromString("Failure"); - - /** - * Creates or finds a HDInsightActivityDebugInfoOption from its string representation. - * - * @param name a name to look for. - * @return the corresponding HDInsightActivityDebugInfoOption. - */ - @JsonCreator - public static HDInsightActivityDebugInfoOption fromString(String name) { - return fromString(name, HDInsightActivityDebugInfoOption.class); - } - - /** @return known HDInsightActivityDebugInfoOption values. */ - public static Collection values() { - return values(HDInsightActivityDebugInfoOption.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java deleted file mode 100644 index 708366b753ab1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java +++ /dev/null @@ -1,283 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightHiveActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HDInsight Hive activity type. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HDInsightHive") -@Fluent -public final class HDInsightHiveActivity extends ExecutionActivity { - /* - * HDInsight Hive activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightHiveActivityTypeProperties innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: HDInsight Hive activity properties. - * - * @return the innerTypeProperties value. - */ - private HDInsightHiveActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); - return this; - } - - /** - * Get the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptPath(); - } - - /** - * Set the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withScriptPath(Object scriptPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withScriptPath(scriptPath); - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptLinkedService(); - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withScriptLinkedService(scriptLinkedService); - return this; - } - - /** - * Get the defines property: Allows user to specify defines for Hive job request. - * - * @return the defines value. - */ - public Map defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); - } - - /** - * Set the defines property: Allows user to specify defines for Hive job request. - * - * @param defines the defines value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); - return this; - } - - /** - * Get the variables property: User specified arguments under hivevar namespace. - * - * @return the variables value. - */ - public List variables() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variables(); - } - - /** - * Set the variables property: User specified arguments under hivevar namespace. - * - * @param variables the variables value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withVariables(List variables) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withVariables(variables); - return this; - } - - /** - * Get the queryTimeout property: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP - * (Enterprise Security Package). - * - * @return the queryTimeout value. - */ - public Integer queryTimeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().queryTimeout(); - } - - /** - * Set the queryTimeout property: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP - * (Enterprise Security Package). - * - * @param queryTimeout the queryTimeout value to set. - * @return the HDInsightHiveActivity object itself. - */ - public HDInsightHiveActivity withQueryTimeout(Integer queryTimeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withQueryTimeout(queryTimeout); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightHiveActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightHiveActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java deleted file mode 100644 index 515e5358f4497..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HDInsight linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HDInsight") -@Fluent -public final class HDInsightLinkedService extends LinkedService { - /* - * HDInsight linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightLinkedServiceTypeProperties innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: HDInsight linked service properties. - * - * @return the innerTypeProperties value. - */ - private HDInsightLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the clusterUri property: HDInsight cluster URI. Type: string (or Expression with resultType string). - * - * @return the clusterUri value. - */ - public Object clusterUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterUri(); - } - - /** - * Set the clusterUri property: HDInsight cluster URI. Type: string (or Expression with resultType string). - * - * @param clusterUri the clusterUri value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withClusterUri(Object clusterUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterUri(clusterUri); - return this; - } - - /** - * Get the username property: HDInsight cluster user name. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: HDInsight cluster user name. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: HDInsight cluster password. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: HDInsight cluster password. - * - * @param password the password value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the linkedServiceName property: The Azure Storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServiceName(); - } - - /** - * Set the linkedServiceName property: The Azure Storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLinkedServiceName(linkedServiceName); - return this; - } - - /** - * Get the hcatalogLinkedServiceName property: A reference to the Azure SQL linked service that points to the - * HCatalog database. - * - * @return the hcatalogLinkedServiceName value. - */ - public LinkedServiceReference hcatalogLinkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hcatalogLinkedServiceName(); - } - - /** - * Set the hcatalogLinkedServiceName property: A reference to the Azure SQL linked service that points to the - * HCatalog database. - * - * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withHcatalogLinkedServiceName(LinkedServiceReference hcatalogLinkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHcatalogLinkedServiceName(hcatalogLinkedServiceName); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the isEspEnabled property: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: - * Boolean. - * - * @return the isEspEnabled value. - */ - public Object isEspEnabled() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().isEspEnabled(); - } - - /** - * Set the isEspEnabled property: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: - * Boolean. - * - * @param isEspEnabled the isEspEnabled value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withIsEspEnabled(Object isEspEnabled) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withIsEspEnabled(isEspEnabled); - return this; - } - - /** - * Get the fileSystem property: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: - * string (or Expression with resultType string). - * - * @return the fileSystem value. - */ - public Object fileSystem() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileSystem(); - } - - /** - * Set the fileSystem property: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: - * string (or Expression with resultType string). - * - * @param fileSystem the fileSystem value to set. - * @return the HDInsightLinkedService object itself. - */ - public HDInsightLinkedService withFileSystem(Object fileSystem) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFileSystem(fileSystem); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java deleted file mode 100644 index 78c9efd189762..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java +++ /dev/null @@ -1,282 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightMapReduceActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HDInsight MapReduce activity type. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HDInsightMapReduce") -@Fluent -public final class HDInsightMapReduceActivity extends ExecutionActivity { - /* - * HDInsight MapReduce activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightMapReduceActivityTypeProperties innerTypeProperties = - new HDInsightMapReduceActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: HDInsight MapReduce activity properties. - * - * @return the innerTypeProperties value. - */ - private HDInsightMapReduceActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); - return this; - } - - /** - * Get the className property: Class name. Type: string (or Expression with resultType string). - * - * @return the className value. - */ - public Object className() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().className(); - } - - /** - * Set the className property: Class name. Type: string (or Expression with resultType string). - * - * @param className the className value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withClassName(Object className) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withClassName(className); - return this; - } - - /** - * Get the jarFilePath property: Jar path. Type: string (or Expression with resultType string). - * - * @return the jarFilePath value. - */ - public Object jarFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarFilePath(); - } - - /** - * Set the jarFilePath property: Jar path. Type: string (or Expression with resultType string). - * - * @param jarFilePath the jarFilePath value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withJarFilePath(Object jarFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withJarFilePath(jarFilePath); - return this; - } - - /** - * Get the jarLinkedService property: Jar linked service reference. - * - * @return the jarLinkedService value. - */ - public LinkedServiceReference jarLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarLinkedService(); - } - - /** - * Set the jarLinkedService property: Jar linked service reference. - * - * @param jarLinkedService the jarLinkedService value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withJarLinkedService(LinkedServiceReference jarLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withJarLinkedService(jarLinkedService); - return this; - } - - /** - * Get the jarLibs property: Jar libs. - * - * @return the jarLibs value. - */ - public List jarLibs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarLibs(); - } - - /** - * Set the jarLibs property: Jar libs. - * - * @param jarLibs the jarLibs value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withJarLibs(List jarLibs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withJarLibs(jarLibs); - return this; - } - - /** - * Get the defines property: Allows user to specify defines for the MapReduce job request. - * - * @return the defines value. - */ - public Map defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); - } - - /** - * Set the defines property: Allows user to specify defines for the MapReduce job request. - * - * @param defines the defines value to set. - * @return the HDInsightMapReduceActivity object itself. - */ - public HDInsightMapReduceActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightMapReduceActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightMapReduceActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java deleted file mode 100644 index 988b811f57aa4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java +++ /dev/null @@ -1,922 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightOnDemandLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HDInsight ondemand linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HDInsightOnDemand") -@Fluent -public final class HDInsightOnDemandLinkedService extends LinkedService { - /* - * HDInsight ondemand linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightOnDemandLinkedServiceTypeProperties innerTypeProperties = - new HDInsightOnDemandLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: HDInsight ondemand linked service properties. - * - * @return the innerTypeProperties value. - */ - private HDInsightOnDemandLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or - * Expression with resultType string). - * - * @return the clusterSize value. - */ - public Object clusterSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterSize(); - } - - /** - * Set the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or - * Expression with resultType string). - * - * @param clusterSize the clusterSize value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterSize(Object clusterSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterSize(clusterSize); - return this; - } - - /** - * Get the timeToLive property: The allowed idle time for the on-demand HDInsight cluster. Specifies how long the - * on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in - * the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - * - * @return the timeToLive value. - */ - public Object timeToLive() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeToLive(); - } - - /** - * Set the timeToLive property: The allowed idle time for the on-demand HDInsight cluster. Specifies how long the - * on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in - * the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - * - * @param timeToLive the timeToLive value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withTimeToLive(Object timeToLive) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTimeToLive(timeToLive); - return this; - } - - /** - * Get the version property: Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - * - * @return the version value. - */ - public Object version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); - } - - /** - * Set the version property: Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - * - * @param version the version value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withVersion(Object version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withVersion(version); - return this; - } - - /** - * Get the linkedServiceName property: Azure Storage linked service to be used by the on-demand cluster for storing - * and processing data. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServiceName(); - } - - /** - * Set the linkedServiceName property: Azure Storage linked service to be used by the on-demand cluster for storing - * and processing data. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLinkedServiceName(linkedServiceName); - return this; - } - - /** - * Get the hostSubscriptionId property: The customer’s subscription to host the cluster. Type: string (or Expression - * with resultType string). - * - * @return the hostSubscriptionId value. - */ - public Object hostSubscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostSubscriptionId(); - } - - /** - * Set the hostSubscriptionId property: The customer’s subscription to host the cluster. Type: string (or Expression - * with resultType string). - * - * @param hostSubscriptionId the hostSubscriptionId value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withHostSubscriptionId(Object hostSubscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostSubscriptionId(hostSubscriptionId); - return this; - } - - /** - * Get the servicePrincipalId property: The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key for the service principal id. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key for the service principal id. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The Tenant id/name to which the service principal belongs. Type: string (or Expression - * with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The Tenant id/name to which the service principal belongs. Type: string (or Expression - * with resultType string). - * - * @param tenant the tenant value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the clusterResourceGroup property: The resource group where the cluster belongs. Type: string (or Expression - * with resultType string). - * - * @return the clusterResourceGroup value. - */ - public Object clusterResourceGroup() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterResourceGroup(); - } - - /** - * Set the clusterResourceGroup property: The resource group where the cluster belongs. Type: string (or Expression - * with resultType string). - * - * @param clusterResourceGroup the clusterResourceGroup value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterResourceGroup(Object clusterResourceGroup) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterResourceGroup(clusterResourceGroup); - return this; - } - - /** - * Get the clusterNamePrefix property: The prefix of cluster name, postfix will be distinct with timestamp. Type: - * string (or Expression with resultType string). - * - * @return the clusterNamePrefix value. - */ - public Object clusterNamePrefix() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterNamePrefix(); - } - - /** - * Set the clusterNamePrefix property: The prefix of cluster name, postfix will be distinct with timestamp. Type: - * string (or Expression with resultType string). - * - * @param clusterNamePrefix the clusterNamePrefix value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterNamePrefix(Object clusterNamePrefix) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterNamePrefix(clusterNamePrefix); - return this; - } - - /** - * Get the clusterUsername property: The username to access the cluster. Type: string (or Expression with resultType - * string). - * - * @return the clusterUsername value. - */ - public Object clusterUsername() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterUsername(); - } - - /** - * Set the clusterUsername property: The username to access the cluster. Type: string (or Expression with resultType - * string). - * - * @param clusterUsername the clusterUsername value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterUsername(Object clusterUsername) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterUsername(clusterUsername); - return this; - } - - /** - * Get the clusterPassword property: The password to access the cluster. - * - * @return the clusterPassword value. - */ - public SecretBase clusterPassword() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterPassword(); - } - - /** - * Set the clusterPassword property: The password to access the cluster. - * - * @param clusterPassword the clusterPassword value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterPassword(SecretBase clusterPassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterPassword(clusterPassword); - return this; - } - - /** - * Get the clusterSshUsername property: The username to SSH remotely connect to cluster’s node (for Linux). Type: - * string (or Expression with resultType string). - * - * @return the clusterSshUsername value. - */ - public Object clusterSshUsername() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterSshUsername(); - } - - /** - * Set the clusterSshUsername property: The username to SSH remotely connect to cluster’s node (for Linux). Type: - * string (or Expression with resultType string). - * - * @param clusterSshUsername the clusterSshUsername value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterSshUsername(Object clusterSshUsername) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterSshUsername(clusterSshUsername); - return this; - } - - /** - * Get the clusterSshPassword property: The password to SSH remotely connect cluster’s node (for Linux). - * - * @return the clusterSshPassword value. - */ - public SecretBase clusterSshPassword() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterSshPassword(); - } - - /** - * Set the clusterSshPassword property: The password to SSH remotely connect cluster’s node (for Linux). - * - * @param clusterSshPassword the clusterSshPassword value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterSshPassword(SecretBase clusterSshPassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterSshPassword(clusterSshPassword); - return this; - } - - /** - * Get the additionalLinkedServiceNames property: Specifies additional storage accounts for the HDInsight linked - * service so that the Data Factory service can register them on your behalf. - * - * @return the additionalLinkedServiceNames value. - */ - public List additionalLinkedServiceNames() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalLinkedServiceNames(); - } - - /** - * Set the additionalLinkedServiceNames property: Specifies additional storage accounts for the HDInsight linked - * service so that the Data Factory service can register them on your behalf. - * - * @param additionalLinkedServiceNames the additionalLinkedServiceNames value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withAdditionalLinkedServiceNames( - List additionalLinkedServiceNames) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAdditionalLinkedServiceNames(additionalLinkedServiceNames); - return this; - } - - /** - * Get the hcatalogLinkedServiceName property: The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. - * - * @return the hcatalogLinkedServiceName value. - */ - public LinkedServiceReference hcatalogLinkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hcatalogLinkedServiceName(); - } - - /** - * Set the hcatalogLinkedServiceName property: The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. - * - * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withHcatalogLinkedServiceName( - LinkedServiceReference hcatalogLinkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHcatalogLinkedServiceName(hcatalogLinkedServiceName); - return this; - } - - /** - * Get the clusterType property: The cluster type. Type: string (or Expression with resultType string). - * - * @return the clusterType value. - */ - public Object clusterType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterType(); - } - - /** - * Set the clusterType property: The cluster type. Type: string (or Expression with resultType string). - * - * @param clusterType the clusterType value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withClusterType(Object clusterType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterType(clusterType); - return this; - } - - /** - * Get the sparkVersion property: The version of spark if the cluster type is 'spark'. Type: string (or Expression - * with resultType string). - * - * @return the sparkVersion value. - */ - public Object sparkVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sparkVersion(); - } - - /** - * Set the sparkVersion property: The version of spark if the cluster type is 'spark'. Type: string (or Expression - * with resultType string). - * - * @param sparkVersion the sparkVersion value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withSparkVersion(Object sparkVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSparkVersion(sparkVersion); - return this; - } - - /** - * Get the coreConfiguration property: Specifies the core configuration parameters (as in core-site.xml) for the - * HDInsight cluster to be created. - * - * @return the coreConfiguration value. - */ - public Object coreConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().coreConfiguration(); - } - - /** - * Set the coreConfiguration property: Specifies the core configuration parameters (as in core-site.xml) for the - * HDInsight cluster to be created. - * - * @param coreConfiguration the coreConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withCoreConfiguration(Object coreConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCoreConfiguration(coreConfiguration); - return this; - } - - /** - * Get the hBaseConfiguration property: Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - * - * @return the hBaseConfiguration value. - */ - public Object hBaseConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hBaseConfiguration(); - } - - /** - * Set the hBaseConfiguration property: Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - * - * @param hBaseConfiguration the hBaseConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withHBaseConfiguration(Object hBaseConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHBaseConfiguration(hBaseConfiguration); - return this; - } - - /** - * Get the hdfsConfiguration property: Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight - * cluster. - * - * @return the hdfsConfiguration value. - */ - public Object hdfsConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hdfsConfiguration(); - } - - /** - * Set the hdfsConfiguration property: Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight - * cluster. - * - * @param hdfsConfiguration the hdfsConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withHdfsConfiguration(Object hdfsConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHdfsConfiguration(hdfsConfiguration); - return this; - } - - /** - * Get the hiveConfiguration property: Specifies the hive configuration parameters (hive-site.xml) for the HDInsight - * cluster. - * - * @return the hiveConfiguration value. - */ - public Object hiveConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hiveConfiguration(); - } - - /** - * Set the hiveConfiguration property: Specifies the hive configuration parameters (hive-site.xml) for the HDInsight - * cluster. - * - * @param hiveConfiguration the hiveConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withHiveConfiguration(Object hiveConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHiveConfiguration(hiveConfiguration); - return this; - } - - /** - * Get the mapReduceConfiguration property: Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - * - * @return the mapReduceConfiguration value. - */ - public Object mapReduceConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mapReduceConfiguration(); - } - - /** - * Set the mapReduceConfiguration property: Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - * - * @param mapReduceConfiguration the mapReduceConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withMapReduceConfiguration(Object mapReduceConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMapReduceConfiguration(mapReduceConfiguration); - return this; - } - - /** - * Get the oozieConfiguration property: Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - * - * @return the oozieConfiguration value. - */ - public Object oozieConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().oozieConfiguration(); - } - - /** - * Set the oozieConfiguration property: Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - * - * @param oozieConfiguration the oozieConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withOozieConfiguration(Object oozieConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOozieConfiguration(oozieConfiguration); - return this; - } - - /** - * Get the stormConfiguration property: Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - * - * @return the stormConfiguration value. - */ - public Object stormConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().stormConfiguration(); - } - - /** - * Set the stormConfiguration property: Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - * - * @param stormConfiguration the stormConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withStormConfiguration(Object stormConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withStormConfiguration(stormConfiguration); - return this; - } - - /** - * Get the yarnConfiguration property: Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight - * cluster. - * - * @return the yarnConfiguration value. - */ - public Object yarnConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().yarnConfiguration(); - } - - /** - * Set the yarnConfiguration property: Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight - * cluster. - * - * @param yarnConfiguration the yarnConfiguration value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withYarnConfiguration(Object yarnConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withYarnConfiguration(yarnConfiguration); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the headNodeSize property: Specifies the size of the head node for the HDInsight cluster. - * - * @return the headNodeSize value. - */ - public Object headNodeSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headNodeSize(); - } - - /** - * Set the headNodeSize property: Specifies the size of the head node for the HDInsight cluster. - * - * @param headNodeSize the headNodeSize value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withHeadNodeSize(Object headNodeSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHeadNodeSize(headNodeSize); - return this; - } - - /** - * Get the dataNodeSize property: Specifies the size of the data node for the HDInsight cluster. - * - * @return the dataNodeSize value. - */ - public Object dataNodeSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataNodeSize(); - } - - /** - * Set the dataNodeSize property: Specifies the size of the data node for the HDInsight cluster. - * - * @param dataNodeSize the dataNodeSize value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withDataNodeSize(Object dataNodeSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDataNodeSize(dataNodeSize); - return this; - } - - /** - * Get the zookeeperNodeSize property: Specifies the size of the Zoo Keeper node for the HDInsight cluster. - * - * @return the zookeeperNodeSize value. - */ - public Object zookeeperNodeSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().zookeeperNodeSize(); - } - - /** - * Set the zookeeperNodeSize property: Specifies the size of the Zoo Keeper node for the HDInsight cluster. - * - * @param zookeeperNodeSize the zookeeperNodeSize value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withZookeeperNodeSize(Object zookeeperNodeSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withZookeeperNodeSize(zookeeperNodeSize); - return this; - } - - /** - * Get the scriptActions property: Custom script actions to run on HDI ondemand cluster once it's up. Please refer - * to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - * - * @return the scriptActions value. - */ - public List scriptActions() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptActions(); - } - - /** - * Set the scriptActions property: Custom script actions to run on HDI ondemand cluster once it's up. Please refer - * to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - * - * @param scriptActions the scriptActions value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withScriptActions(List scriptActions) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withScriptActions(scriptActions); - return this; - } - - /** - * Get the virtualNetworkId property: The ARM resource ID for the vNet to which the cluster should be joined after - * creation. Type: string (or Expression with resultType string). - * - * @return the virtualNetworkId value. - */ - public Object virtualNetworkId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().virtualNetworkId(); - } - - /** - * Set the virtualNetworkId property: The ARM resource ID for the vNet to which the cluster should be joined after - * creation. Type: string (or Expression with resultType string). - * - * @param virtualNetworkId the virtualNetworkId value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withVirtualNetworkId(Object virtualNetworkId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withVirtualNetworkId(virtualNetworkId); - return this; - } - - /** - * Get the subnetName property: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, - * then this property is required. Type: string (or Expression with resultType string). - * - * @return the subnetName value. - */ - public Object subnetName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subnetName(); - } - - /** - * Set the subnetName property: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, - * then this property is required. Type: string (or Expression with resultType string). - * - * @param subnetName the subnetName value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withSubnetName(Object subnetName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubnetName(subnetName); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the HDInsightOnDemandLinkedService object itself. - */ - public HDInsightOnDemandLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightOnDemandLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightOnDemandLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java deleted file mode 100644 index 74ffc3cbc9de4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java +++ /dev/null @@ -1,237 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightPigActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HDInsight Pig activity type. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HDInsightPig") -@Fluent -public final class HDInsightPigActivity extends ExecutionActivity { - /* - * HDInsight Pig activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightPigActivityTypeProperties innerTypeProperties = new HDInsightPigActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: HDInsight Pig activity properties. - * - * @return the innerTypeProperties value. - */ - private HDInsightPigActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightPigActivity object itself. - */ - public HDInsightPigActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. Type: array (or Expression with - * resultType array). - * - * @return the arguments value. - */ - public Object arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. Type: array (or Expression with - * resultType array). - * - * @param arguments the arguments value to set. - * @return the HDInsightPigActivity object itself. - */ - public HDInsightPigActivity withArguments(Object arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightPigActivity object itself. - */ - public HDInsightPigActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); - return this; - } - - /** - * Get the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptPath(); - } - - /** - * Set the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the HDInsightPigActivity object itself. - */ - public HDInsightPigActivity withScriptPath(Object scriptPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withScriptPath(scriptPath); - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptLinkedService(); - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the HDInsightPigActivity object itself. - */ - public HDInsightPigActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withScriptLinkedService(scriptLinkedService); - return this; - } - - /** - * Get the defines property: Allows user to specify defines for Pig job request. - * - * @return the defines value. - */ - public Map defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); - } - - /** - * Set the defines property: Allows user to specify defines for Pig job request. - * - * @param defines the defines value to set. - * @return the HDInsightPigActivity object itself. - */ - public HDInsightPigActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightPigActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightPigActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java deleted file mode 100644 index b567330ad4519..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java +++ /dev/null @@ -1,289 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightSparkActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HDInsight Spark activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HDInsightSpark") -@Fluent -public final class HDInsightSparkActivity extends ExecutionActivity { - /* - * HDInsight spark activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightSparkActivityTypeProperties innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: HDInsight spark activity properties. - * - * @return the innerTypeProperties value. - */ - private HDInsightSparkActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or - * Expression with resultType string). - * - * @return the rootPath value. - */ - public Object rootPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().rootPath(); - } - - /** - * Set the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or - * Expression with resultType string). - * - * @param rootPath the rootPath value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withRootPath(Object rootPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withRootPath(rootPath); - return this; - } - - /** - * Get the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type: - * string (or Expression with resultType string). - * - * @return the entryFilePath value. - */ - public Object entryFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entryFilePath(); - } - - /** - * Set the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type: - * string (or Expression with resultType string). - * - * @param entryFilePath the entryFilePath value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withEntryFilePath(Object entryFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withEntryFilePath(entryFilePath); - return this; - } - - /** - * Get the arguments property: The user-specified arguments to HDInsightSparkActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); - } - - /** - * Set the arguments property: The user-specified arguments to HDInsightSparkActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); - return this; - } - - /** - * Get the sparkJobLinkedService property: The storage linked service for uploading the entry file and dependencies, - * and for receiving logs. - * - * @return the sparkJobLinkedService value. - */ - public LinkedServiceReference sparkJobLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sparkJobLinkedService(); - } - - /** - * Set the sparkJobLinkedService property: The storage linked service for uploading the entry file and dependencies, - * and for receiving logs. - * - * @param sparkJobLinkedService the sparkJobLinkedService value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withSparkJobLinkedService(LinkedServiceReference sparkJobLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withSparkJobLinkedService(sparkJobLinkedService); - return this; - } - - /** - * Get the className property: The application's Java/Spark main class. - * - * @return the className value. - */ - public String className() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().className(); - } - - /** - * Set the className property: The application's Java/Spark main class. - * - * @param className the className value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withClassName(String className) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withClassName(className); - return this; - } - - /** - * Get the proxyUser property: The user to impersonate that will execute the job. Type: string (or Expression with - * resultType string). - * - * @return the proxyUser value. - */ - public Object proxyUser() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().proxyUser(); - } - - /** - * Set the proxyUser property: The user to impersonate that will execute the job. Type: string (or Expression with - * resultType string). - * - * @param proxyUser the proxyUser value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withProxyUser(Object proxyUser) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withProxyUser(proxyUser); - return this; - } - - /** - * Get the sparkConfig property: Spark configuration property. - * - * @return the sparkConfig value. - */ - public Map sparkConfig() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sparkConfig(); - } - - /** - * Set the sparkConfig property: Spark configuration property. - * - * @param sparkConfig the sparkConfig value to set. - * @return the HDInsightSparkActivity object itself. - */ - public HDInsightSparkActivity withSparkConfig(Map sparkConfig) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withSparkConfig(sparkConfig); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightSparkActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightSparkActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java deleted file mode 100644 index 5bb9ef876c720..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightStreamingActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** HDInsight streaming activity type. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HDInsightStreaming") -@Fluent -public final class HDInsightStreamingActivity extends ExecutionActivity { - /* - * HDInsight streaming activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightStreamingActivityTypeProperties innerTypeProperties = - new HDInsightStreamingActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: HDInsight streaming activity properties. - * - * @return the innerTypeProperties value. - */ - private HDInsightStreamingActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); - return this; - } - - /** - * Get the mapper property: Mapper executable name. Type: string (or Expression with resultType string). - * - * @return the mapper value. - */ - public Object mapper() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mapper(); - } - - /** - * Set the mapper property: Mapper executable name. Type: string (or Expression with resultType string). - * - * @param mapper the mapper value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withMapper(Object mapper) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withMapper(mapper); - return this; - } - - /** - * Get the reducer property: Reducer executable name. Type: string (or Expression with resultType string). - * - * @return the reducer value. - */ - public Object reducer() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().reducer(); - } - - /** - * Set the reducer property: Reducer executable name. Type: string (or Expression with resultType string). - * - * @param reducer the reducer value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withReducer(Object reducer) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withReducer(reducer); - return this; - } - - /** - * Get the input property: Input blob path. Type: string (or Expression with resultType string). - * - * @return the input value. - */ - public Object input() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().input(); - } - - /** - * Set the input property: Input blob path. Type: string (or Expression with resultType string). - * - * @param input the input value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withInput(Object input) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withInput(input); - return this; - } - - /** - * Get the output property: Output blob path. Type: string (or Expression with resultType string). - * - * @return the output value. - */ - public Object output() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().output(); - } - - /** - * Set the output property: Output blob path. Type: string (or Expression with resultType string). - * - * @param output the output value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withOutput(Object output) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withOutput(output); - return this; - } - - /** - * Get the filePaths property: Paths to streaming job files. Can be directories. - * - * @return the filePaths value. - */ - public List filePaths() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().filePaths(); - } - - /** - * Set the filePaths property: Paths to streaming job files. Can be directories. - * - * @param filePaths the filePaths value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withFilePaths(List filePaths) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withFilePaths(filePaths); - return this; - } - - /** - * Get the fileLinkedService property: Linked service reference where the files are located. - * - * @return the fileLinkedService value. - */ - public LinkedServiceReference fileLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileLinkedService(); - } - - /** - * Set the fileLinkedService property: Linked service reference where the files are located. - * - * @param fileLinkedService the fileLinkedService value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withFileLinkedService(LinkedServiceReference fileLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withFileLinkedService(fileLinkedService); - return this; - } - - /** - * Get the combiner property: Combiner executable name. Type: string (or Expression with resultType string). - * - * @return the combiner value. - */ - public Object combiner() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().combiner(); - } - - /** - * Set the combiner property: Combiner executable name. Type: string (or Expression with resultType string). - * - * @param combiner the combiner value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withCombiner(Object combiner) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withCombiner(combiner); - return this; - } - - /** - * Get the commandEnvironment property: Command line environment values. - * - * @return the commandEnvironment value. - */ - public List commandEnvironment() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().commandEnvironment(); - } - - /** - * Set the commandEnvironment property: Command line environment values. - * - * @param commandEnvironment the commandEnvironment value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withCommandEnvironment(List commandEnvironment) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withCommandEnvironment(commandEnvironment); - return this; - } - - /** - * Get the defines property: Allows user to specify defines for streaming job request. - * - * @return the defines value. - */ - public Map defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); - } - - /** - * Set the defines property: Allows user to specify defines for streaming job request. - * - * @param defines the defines value to set. - * @return the HDInsightStreamingActivity object itself. - */ - public HDInsightStreamingActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightStreamingActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HDInsightStreamingActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java deleted file mode 100644 index 0d85f9044bea0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HdfsLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Hadoop Distributed File System (HDFS) linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Hdfs") -@Fluent -public final class HdfsLinkedService extends LinkedService { - /* - * HDFS linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HdfsLinkedServiceTypeProperties innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: HDFS linked service properties. - * - * @return the innerTypeProperties value. - */ - private HdfsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: - * string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: - * string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the HdfsLinkedService object itself. - */ - public HdfsLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the HdfsLinkedService object itself. - */ - public HdfsLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HdfsLinkedService object itself. - */ - public HdfsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the username property: User name for Windows authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name for Windows authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the HdfsLinkedService object itself. - */ - public HdfsLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for Windows authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for Windows authentication. - * - * @param password the password value to set. - * @return the HdfsLinkedService object itself. - */ - public HdfsLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HdfsLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HdfsLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLocation.java deleted file mode 100644 index d925a057b4a79..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLocation.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of HDFS. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HdfsLocation") -@Fluent -public final class HdfsLocation extends DatasetLocation { - /** {@inheritDoc} */ - @Override - public HdfsLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsReadSettings.java deleted file mode 100644 index f3575a1e503c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsReadSettings.java +++ /dev/null @@ -1,327 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** HDFS read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HdfsReadSettings") -@Fluent -public final class HdfsReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * HDFS wildcardFolderPath. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * HDFS wildcardFileName. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * Specifies Distcp-related settings. - */ - @JsonProperty(value = "distcpSettings") - private DistcpSettings distcpSettings; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: HDFS wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: HDFS wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: HDFS wildcardFileName. Type: string (or Expression with resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: HDFS wildcardFileName. Type: string (or Expression with resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the distcpSettings property: Specifies Distcp-related settings. - * - * @return the distcpSettings value. - */ - public DistcpSettings distcpSettings() { - return this.distcpSettings; - } - - /** - * Set the distcpSettings property: Specifies Distcp-related settings. - * - * @param distcpSettings the distcpSettings value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withDistcpSettings(DistcpSettings distcpSettings) { - this.distcpSettings = distcpSettings; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the HdfsReadSettings object itself. - */ - public HdfsReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (distcpSettings() != null) { - distcpSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsSource.java deleted file mode 100644 index a1aea5b39c971..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsSource.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity HDFS source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HdfsSource") -@Fluent -public final class HdfsSource extends CopySource { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Specifies Distcp-related settings. - */ - @JsonProperty(value = "distcpSettings") - private DistcpSettings distcpSettings; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the HdfsSource object itself. - */ - public HdfsSource withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the distcpSettings property: Specifies Distcp-related settings. - * - * @return the distcpSettings value. - */ - public DistcpSettings distcpSettings() { - return this.distcpSettings; - } - - /** - * Set the distcpSettings property: Specifies Distcp-related settings. - * - * @param distcpSettings the distcpSettings value to set. - * @return the HdfsSource object itself. - */ - public HdfsSource withDistcpSettings(DistcpSettings distcpSettings) { - this.distcpSettings = distcpSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public HdfsSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (distcpSettings() != null) { - distcpSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveAuthenticationType.java deleted file mode 100644 index d132eff2dbb4c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveAuthenticationType.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for HiveAuthenticationType. */ -public final class HiveAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for HiveAuthenticationType. */ - public static final HiveAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value Username for HiveAuthenticationType. */ - public static final HiveAuthenticationType USERNAME = fromString("Username"); - - /** Static value UsernameAndPassword for HiveAuthenticationType. */ - public static final HiveAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); - - /** Static value WindowsAzureHDInsightService for HiveAuthenticationType. */ - public static final HiveAuthenticationType WINDOWS_AZURE_HDINSIGHT_SERVICE = - fromString("WindowsAzureHDInsightService"); - - /** - * Creates or finds a HiveAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding HiveAuthenticationType. - */ - @JsonCreator - public static HiveAuthenticationType fromString(String name) { - return fromString(name, HiveAuthenticationType.class); - } - - /** @return known HiveAuthenticationType values. */ - public static Collection values() { - return values(HiveAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java deleted file mode 100644 index 1adc7f70686b2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java +++ /dev/null @@ -1,492 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HiveLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Hive Server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Hive") -@Fluent -public final class HiveLinkedService extends LinkedService { - /* - * Hive Server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HiveLinkedServiceTypeProperties innerTypeProperties = new HiveLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Hive Server linked service properties. - * - * @return the innerTypeProperties value. - */ - private HiveLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HiveLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: IP address or host name of the Hive server, separated by ';' for multiple hosts (only when - * serviceDiscoveryMode is enable). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: IP address or host name of the Hive server, separated by ';' for multiple hosts (only when - * serviceDiscoveryMode is enable). - * - * @param host the host value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port that the Hive server uses to listen for client connections. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port that the Hive server uses to listen for client connections. - * - * @param port the port value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the serverType property: The type of Hive server. - * - * @return the serverType value. - */ - public HiveServerType serverType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serverType(); - } - - /** - * Set the serverType property: The type of Hive server. - * - * @param serverType the serverType value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withServerType(HiveServerType serverType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServerType(serverType); - return this; - } - - /** - * Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @return the thriftTransportProtocol value. - */ - public HiveThriftTransportProtocol thriftTransportProtocol() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().thriftTransportProtocol(); - } - - /** - * Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @param thriftTransportProtocol the thriftTransportProtocol value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withThriftTransportProtocol(HiveThriftTransportProtocol thriftTransportProtocol) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withThriftTransportProtocol(thriftTransportProtocol); - return this; - } - - /** - * Get the authenticationType property: The authentication method used to access the Hive server. - * - * @return the authenticationType value. - */ - public HiveAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication method used to access the Hive server. - * - * @param authenticationType the authenticationType value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withAuthenticationType(HiveAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the serviceDiscoveryMode property: true to indicate using the ZooKeeper service, false not. - * - * @return the serviceDiscoveryMode value. - */ - public Object serviceDiscoveryMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceDiscoveryMode(); - } - - /** - * Set the serviceDiscoveryMode property: true to indicate using the ZooKeeper service, false not. - * - * @param serviceDiscoveryMode the serviceDiscoveryMode value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withServiceDiscoveryMode(Object serviceDiscoveryMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceDiscoveryMode(serviceDiscoveryMode); - return this; - } - - /** - * Get the zooKeeperNameSpace property: The namespace on ZooKeeper under which Hive Server 2 nodes are added. - * - * @return the zooKeeperNameSpace value. - */ - public Object zooKeeperNameSpace() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().zooKeeperNameSpace(); - } - - /** - * Set the zooKeeperNameSpace property: The namespace on ZooKeeper under which Hive Server 2 nodes are added. - * - * @param zooKeeperNameSpace the zooKeeperNameSpace value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withZooKeeperNameSpace(Object zooKeeperNameSpace) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withZooKeeperNameSpace(zooKeeperNameSpace); - return this; - } - - /** - * Get the useNativeQuery property: Specifies whether the driver uses native HiveQL queries,or converts them into an - * equivalent form in HiveQL. - * - * @return the useNativeQuery value. - */ - public Object useNativeQuery() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useNativeQuery(); - } - - /** - * Set the useNativeQuery property: Specifies whether the driver uses native HiveQL queries,or converts them into an - * equivalent form in HiveQL. - * - * @param useNativeQuery the useNativeQuery value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withUseNativeQuery(Object useNativeQuery) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseNativeQuery(useNativeQuery); - return this; - } - - /** - * Get the username property: The user name that you use to access Hive Server. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name that you use to access Hive Server. - * - * @param username the username value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the Username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the Username field. - * - * @param password the password value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Hive server. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); - } - - /** - * Set the httpPath property: The partial URL corresponding to the Hive server. - * - * @param httpPath the httpPath value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HiveLinkedService object itself. - */ - public HiveLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HiveLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HiveLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java deleted file mode 100644 index 7faf84ffe8426..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.HiveDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Hive Server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HiveObject") -@Fluent -public final class HiveObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private HiveDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private HiveDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the HiveObjectDataset object itself. - */ - public HiveObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Hive. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Hive. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the HiveObjectDataset object itself. - */ - public HiveObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the HiveObjectDataset object itself. - */ - public HiveObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveServerType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveServerType.java deleted file mode 100644 index 5d0f149dffb02..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveServerType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for HiveServerType. */ -public final class HiveServerType extends ExpandableStringEnum { - /** Static value HiveServer1 for HiveServerType. */ - public static final HiveServerType HIVE_SERVER1 = fromString("HiveServer1"); - - /** Static value HiveServer2 for HiveServerType. */ - public static final HiveServerType HIVE_SERVER2 = fromString("HiveServer2"); - - /** Static value HiveThriftServer for HiveServerType. */ - public static final HiveServerType HIVE_THRIFT_SERVER = fromString("HiveThriftServer"); - - /** - * Creates or finds a HiveServerType from its string representation. - * - * @param name a name to look for. - * @return the corresponding HiveServerType. - */ - @JsonCreator - public static HiveServerType fromString(String name) { - return fromString(name, HiveServerType.class); - } - - /** @return known HiveServerType values. */ - public static Collection values() { - return values(HiveServerType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveSource.java deleted file mode 100644 index 9b5e574fc3630..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Hive Server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HiveSource") -@Fluent -public final class HiveSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the HiveSource object itself. - */ - public HiveSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveThriftTransportProtocol.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveThriftTransportProtocol.java deleted file mode 100644 index 0574b89fcbbb9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveThriftTransportProtocol.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for HiveThriftTransportProtocol. */ -public final class HiveThriftTransportProtocol extends ExpandableStringEnum { - /** Static value Binary for HiveThriftTransportProtocol. */ - public static final HiveThriftTransportProtocol BINARY = fromString("Binary"); - - /** Static value SASL for HiveThriftTransportProtocol. */ - public static final HiveThriftTransportProtocol SASL = fromString("SASL"); - - /** Static value HTTP for HiveThriftTransportProtocol. */ - public static final HiveThriftTransportProtocol HTTP = fromString("HTTP "); - - /** - * Creates or finds a HiveThriftTransportProtocol from its string representation. - * - * @param name a name to look for. - * @return the corresponding HiveThriftTransportProtocol. - */ - @JsonCreator - public static HiveThriftTransportProtocol fromString(String name) { - return fromString(name, HiveThriftTransportProtocol.class); - } - - /** @return known HiveThriftTransportProtocol values. */ - public static Collection values() { - return values(HiveThriftTransportProtocol.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpAuthenticationType.java deleted file mode 100644 index 872793718e33a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpAuthenticationType.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for HttpAuthenticationType. */ -public final class HttpAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for HttpAuthenticationType. */ - public static final HttpAuthenticationType BASIC = fromString("Basic"); - - /** Static value Anonymous for HttpAuthenticationType. */ - public static final HttpAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value Digest for HttpAuthenticationType. */ - public static final HttpAuthenticationType DIGEST = fromString("Digest"); - - /** Static value Windows for HttpAuthenticationType. */ - public static final HttpAuthenticationType WINDOWS = fromString("Windows"); - - /** Static value ClientCertificate for HttpAuthenticationType. */ - public static final HttpAuthenticationType CLIENT_CERTIFICATE = fromString("ClientCertificate"); - - /** - * Creates or finds a HttpAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding HttpAuthenticationType. - */ - @JsonCreator - public static HttpAuthenticationType fromString(String name) { - return fromString(name, HttpAuthenticationType.class); - } - - /** @return known HttpAuthenticationType values. */ - public static Collection values() { - return values(HttpAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java deleted file mode 100644 index 7652a20d4a7da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java +++ /dev/null @@ -1,242 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.HttpDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** A file in an HTTP web server. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HttpFile") -@Fluent -public final class HttpDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private HttpDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private HttpDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the relativeUrl property: The relative URL based on the URL in the HttpLinkedService refers to an HTTP file - * Type: string (or Expression with resultType string). - * - * @return the relativeUrl value. - */ - public Object relativeUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().relativeUrl(); - } - - /** - * Set the relativeUrl property: The relative URL based on the URL in the HttpLinkedService refers to an HTTP file - * Type: string (or Expression with resultType string). - * - * @param relativeUrl the relativeUrl value to set. - * @return the HttpDataset object itself. - */ - public HttpDataset withRelativeUrl(Object relativeUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withRelativeUrl(relativeUrl); - return this; - } - - /** - * Get the requestMethod property: The HTTP method for the HTTP request. Type: string (or Expression with resultType - * string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestMethod(); - } - - /** - * Set the requestMethod property: The HTTP method for the HTTP request. Type: string (or Expression with resultType - * string). - * - * @param requestMethod the requestMethod value to set. - * @return the HttpDataset object itself. - */ - public HttpDataset withRequestMethod(Object requestMethod) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestMethod(requestMethod); - return this; - } - - /** - * Get the requestBody property: The body for the HTTP request. Type: string (or Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestBody(); - } - - /** - * Set the requestBody property: The body for the HTTP request. Type: string (or Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the HttpDataset object itself. - */ - public HttpDataset withRequestBody(Object requestBody) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestBody(requestBody); - return this; - } - - /** - * Get the additionalHeaders property: The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 ... request-header-name-n:request-header-value-n Type: string (or - * Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalHeaders(); - } - - /** - * Set the additionalHeaders property: The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 ... request-header-name-n:request-header-value-n Type: string (or - * Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the HttpDataset object itself. - */ - public HttpDataset withAdditionalHeaders(Object additionalHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withAdditionalHeaders(additionalHeaders); - return this; - } - - /** - * Get the format property: The format of files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); - } - - /** - * Set the format property: The format of files. - * - * @param format the format value to set. - * @return the HttpDataset object itself. - */ - public HttpDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); - return this; - } - - /** - * Get the compression property: The data compression method used on files. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used on files. - * - * @param compression the compression value to set. - * @return the HttpDataset object itself. - */ - public HttpDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java deleted file mode 100644 index 853292300b8de..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HttpLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for an HTTP source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HttpServer") -@Fluent -public final class HttpLinkedService extends LinkedService { - /* - * Properties specific to this linked service type. - */ - @JsonProperty(value = "typeProperties", required = true) - private HttpLinkedServiceTypeProperties innerTypeProperties = new HttpLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. - */ - private HttpLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HttpLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or - * Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or - * Expression with resultType string). - * - * @param url the url value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the HTTP server. - * - * @return the authenticationType value. - */ - public HttpAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the HTTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withAuthenticationType(HttpAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: User name for Basic, Digest, or Windows authentication. Type: string (or Expression - * with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name for Basic, Digest, or Windows authentication. Type: string (or Expression - * with resultType string). - * - * @param username the username value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData - * authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData - * authentication. - * - * @param password the password value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authHeaders(); - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withAuthHeaders(Object authHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthHeaders(authHeaders); - return this; - } - - /** - * Get the embeddedCertData property: Base64 encoded certificate data for ClientCertificate authentication. For - * on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should - * be specified. Type: string (or Expression with resultType string). - * - * @return the embeddedCertData value. - */ - public Object embeddedCertData() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().embeddedCertData(); - } - - /** - * Set the embeddedCertData property: Base64 encoded certificate data for ClientCertificate authentication. For - * on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should - * be specified. Type: string (or Expression with resultType string). - * - * @param embeddedCertData the embeddedCertData value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withEmbeddedCertData(Object embeddedCertData) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEmbeddedCertData(embeddedCertData); - return this; - } - - /** - * Get the certThumbprint property: Thumbprint of certificate for ClientCertificate authentication. Only valid for - * on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or - * EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - * - * @return the certThumbprint value. - */ - public Object certThumbprint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().certThumbprint(); - } - - /** - * Set the certThumbprint property: Thumbprint of certificate for ClientCertificate authentication. Only valid for - * on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or - * EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - * - * @param certThumbprint the certThumbprint value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withCertThumbprint(Object certThumbprint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCertThumbprint(certThumbprint); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the enableServerCertificateValidation property: If true, validate the HTTPS server SSL certificate. Default - * value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().enableServerCertificateValidation(); - } - - /** - * Set the enableServerCertificateValidation property: If true, validate the HTTPS server SSL certificate. Default - * value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the HttpLinkedService object itself. - */ - public HttpLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableServerCertificateValidation(enableServerCertificateValidation); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HttpLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HttpLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpReadSettings.java deleted file mode 100644 index 0b0d53e8e7be2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpReadSettings.java +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Sftp read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HttpReadSettings") -@Fluent -public final class HttpReadSettings extends StoreReadSettings { - /* - * The HTTP method used to call the RESTful API. The default is GET. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestMethod") - private Object requestMethod; - - /* - * The HTTP request body to the RESTful API if requestMethod is POST. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestBody") - private Object requestBody; - - /* - * The additional HTTP headers in the request to the RESTful API. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "additionalHeaders") - private Object additionalHeaders; - - /* - * Specifies the timeout for a HTTP client to get HTTP response from HTTP - * server. - */ - @JsonProperty(value = "requestTimeout") - private Object requestTimeout; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /** - * Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.requestMethod; - } - - /** - * Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @param requestMethod the requestMethod value to set. - * @return the HttpReadSettings object itself. - */ - public HttpReadSettings withRequestMethod(Object requestMethod) { - this.requestMethod = requestMethod; - return this; - } - - /** - * Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.requestBody; - } - - /** - * Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the HttpReadSettings object itself. - */ - public HttpReadSettings withRequestBody(Object requestBody) { - this.requestBody = requestBody; - return this; - } - - /** - * Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.additionalHeaders; - } - - /** - * Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the HttpReadSettings object itself. - */ - public HttpReadSettings withAdditionalHeaders(Object additionalHeaders) { - this.additionalHeaders = additionalHeaders; - return this; - } - - /** - * Get the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server. - * - * @return the requestTimeout value. - */ - public Object requestTimeout() { - return this.requestTimeout; - } - - /** - * Set the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server. - * - * @param requestTimeout the requestTimeout value to set. - * @return the HttpReadSettings object itself. - */ - public HttpReadSettings withRequestTimeout(Object requestTimeout) { - this.requestTimeout = requestTimeout; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the HttpReadSettings object itself. - */ - public HttpReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the HttpReadSettings object itself. - */ - public HttpReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpServerLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpServerLocation.java deleted file mode 100644 index 98e2ab75596d2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpServerLocation.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of http server. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HttpServerLocation") -@Fluent -public final class HttpServerLocation extends DatasetLocation { - /* - * Specify the relativeUrl of http server. Type: string (or Expression with - * resultType string) - */ - @JsonProperty(value = "relativeUrl") - private Object relativeUrl; - - /** - * Get the relativeUrl property: Specify the relativeUrl of http server. Type: string (or Expression with resultType - * string). - * - * @return the relativeUrl value. - */ - public Object relativeUrl() { - return this.relativeUrl; - } - - /** - * Set the relativeUrl property: Specify the relativeUrl of http server. Type: string (or Expression with resultType - * string). - * - * @param relativeUrl the relativeUrl value to set. - * @return the HttpServerLocation object itself. - */ - public HttpServerLocation withRelativeUrl(Object relativeUrl) { - this.relativeUrl = relativeUrl; - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpServerLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpServerLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpSource.java deleted file mode 100644 index 0fc6e9bcd770f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpSource.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for an HTTP file. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HttpSource") -@Fluent -public final class HttpSource extends CopySource { - /* - * Specifies the timeout for a HTTP client to get HTTP response from HTTP - * server. The default value is equivalent to - * System.Net.HttpWebRequest.Timeout. Type: string (or Expression with - * resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /** - * Get the httpRequestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP - * server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP - * server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the HttpSource object itself. - */ - public HttpSource withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java deleted file mode 100644 index 11041cbb0f656..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HubspotLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Hubspot Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Hubspot") -@Fluent -public final class HubspotLinkedService extends LinkedService { - /* - * Hubspot Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private HubspotLinkedServiceTypeProperties innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Hubspot Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private HubspotLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the clientId property: The client ID associated with your Hubspot application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client ID associated with your Hubspot application. - * - * @param clientId the clientId value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your Hubspot application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret associated with your Hubspot application. - * - * @param clientSecret the clientSecret value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the accessToken property: The access token obtained when initially authenticating your OAuth integration. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); - } - - /** - * Set the accessToken property: The access token obtained when initially authenticating your OAuth integration. - * - * @param accessToken the accessToken value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained when initially authenticating your OAuth integration. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().refreshToken(); - } - - /** - * Set the refreshToken property: The refresh token obtained when initially authenticating your OAuth integration. - * - * @param refreshToken the refreshToken value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withRefreshToken(SecretBase refreshToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRefreshToken(refreshToken); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HubspotLinkedService object itself. - */ - public HubspotLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HubspotLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(HubspotLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java deleted file mode 100644 index f04d1a07e3788..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Hubspot Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HubspotObject") -@Fluent -public final class HubspotObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HubspotObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the HubspotObjectDataset object itself. - */ - public HubspotObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotSource.java deleted file mode 100644 index eced8ac3111dc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Hubspot Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("HubspotSource") -@Fluent -public final class HubspotSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the HubspotSource object itself. - */ - public HubspotSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public HubspotSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java deleted file mode 100644 index d28d681f4f366..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.IfConditionActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** - * This activity evaluates a boolean expression and executes either the activities under the ifTrueActivities property - * or the ifFalseActivities property depending on the result of the expression. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("IfCondition") -@Fluent -public final class IfConditionActivity extends ControlActivity { - /* - * IfCondition activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private IfConditionActivityTypeProperties innerTypeProperties = new IfConditionActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: IfCondition activity properties. - * - * @return the innerTypeProperties value. - */ - private IfConditionActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public IfConditionActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public IfConditionActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public IfConditionActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public IfConditionActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the expression property: An expression that would evaluate to Boolean. This is used to determine the block of - * activities (ifTrueActivities or ifFalseActivities) that will be executed. - * - * @return the expression value. - */ - public Expression expression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().expression(); - } - - /** - * Set the expression property: An expression that would evaluate to Boolean. This is used to determine the block of - * activities (ifTrueActivities or ifFalseActivities) that will be executed. - * - * @param expression the expression value to set. - * @return the IfConditionActivity object itself. - */ - public IfConditionActivity withExpression(Expression expression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new IfConditionActivityTypeProperties(); - } - this.innerTypeProperties().withExpression(expression); - return this; - } - - /** - * Get the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the ifTrueActivities value. - */ - public List ifTrueActivities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ifTrueActivities(); - } - - /** - * Set the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param ifTrueActivities the ifTrueActivities value to set. - * @return the IfConditionActivity object itself. - */ - public IfConditionActivity withIfTrueActivities(List ifTrueActivities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new IfConditionActivityTypeProperties(); - } - this.innerTypeProperties().withIfTrueActivities(ifTrueActivities); - return this; - } - - /** - * Get the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the ifFalseActivities value. - */ - public List ifFalseActivities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ifFalseActivities(); - } - - /** - * Set the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param ifFalseActivities the ifFalseActivities value to set. - * @return the IfConditionActivity object itself. - */ - public IfConditionActivity withIfFalseActivities(List ifFalseActivities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new IfConditionActivityTypeProperties(); - } - this.innerTypeProperties().withIfFalseActivities(ifFalseActivities); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model IfConditionActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IfConditionActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaAuthenticationType.java deleted file mode 100644 index c70bc5f7e4579..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaAuthenticationType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ImpalaAuthenticationType. */ -public final class ImpalaAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for ImpalaAuthenticationType. */ - public static final ImpalaAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value SASLUsername for ImpalaAuthenticationType. */ - public static final ImpalaAuthenticationType SASLUSERNAME = fromString("SASLUsername"); - - /** Static value UsernameAndPassword for ImpalaAuthenticationType. */ - public static final ImpalaAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); - - /** - * Creates or finds a ImpalaAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ImpalaAuthenticationType. - */ - @JsonCreator - public static ImpalaAuthenticationType fromString(String name) { - return fromString(name, ImpalaAuthenticationType.class); - } - - /** @return known ImpalaAuthenticationType values. */ - public static Collection values() { - return values(ImpalaAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java deleted file mode 100644 index 51284344e7fe0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java +++ /dev/null @@ -1,354 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ImpalaLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Impala server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Impala") -@Fluent -public final class ImpalaLinkedService extends LinkedService { - /* - * Impala server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ImpalaLinkedServiceTypeProperties innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Impala server linked service properties. - * - * @return the innerTypeProperties value. - */ - private ImpalaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port that the Impala server uses to listen for client connections. The default - * value is 21050. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port that the Impala server uses to listen for client connections. The default - * value is 21050. - * - * @param port the port value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ImpalaAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withAuthenticationType(ImpalaAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The user name used to access the Impala server. The default value is anonymous when - * using SASLUsername. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name used to access the Impala server. The default value is anonymous when - * using SASLUsername. - * - * @param username the username value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name when using UsernameAndPassword. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name when using UsernameAndPassword. - * - * @param password the password value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ImpalaLinkedService object itself. - */ - public ImpalaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ImpalaLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ImpalaLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java deleted file mode 100644 index 149e1870fb0d2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.ImpalaDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Impala server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ImpalaObject") -@Fluent -public final class ImpalaObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private ImpalaDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private ImpalaDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the ImpalaObjectDataset object itself. - */ - public ImpalaObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Impala. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Impala. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the ImpalaObjectDataset object itself. - */ - public ImpalaObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the ImpalaObjectDataset object itself. - */ - public ImpalaObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaSource.java deleted file mode 100644 index d2d55f0348c42..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Impala server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ImpalaSource") -@Fluent -public final class ImpalaSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the ImpalaSource object itself. - */ - public ImpalaSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImportSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImportSettings.java deleted file mode 100644 index c6b414e2c6753..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImportSettings.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Import command settings. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = ImportSettings.class) -@JsonTypeName("ImportSettings") -@JsonSubTypes({ - @JsonSubTypes.Type( - name = "AzureDatabricksDeltaLakeImportCommand", - value = AzureDatabricksDeltaLakeImportCommand.class), - @JsonSubTypes.Type(name = "SnowflakeImportCopyCommand", value = SnowflakeImportCopyCommand.class) -}) -@Fluent -public class ImportSettings { - /* - * Import command settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the additionalProperties property: Import command settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Import command settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ImportSettings object itself. - */ - public ImportSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java deleted file mode 100644 index b4d02ff7b0e4f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.InformixLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Informix linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Informix") -@Fluent -public final class InformixLinkedService extends LinkedService { - /* - * Informix linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private InformixLinkedServiceTypeProperties innerTypeProperties = new InformixLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Informix linked service properties. - * - * @return the innerTypeProperties value. - */ - private InformixLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public InformixLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the InformixLinkedService object itself. - */ - public InformixLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the Informix as ODBC data store. - * Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the Informix as ODBC data store. - * Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the InformixLinkedService object itself. - */ - public InformixLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the InformixLinkedService object itself. - */ - public InformixLinkedService withCredential(SecretBase credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the InformixLinkedService object itself. - */ - public InformixLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the InformixLinkedService object itself. - */ - public InformixLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the InformixLinkedService object itself. - */ - public InformixLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model InformixLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(InformixLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixSink.java deleted file mode 100644 index 9d39ac01d7464..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixSink.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Informix sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("InformixSink") -@Fluent -public final class InformixSink extends CopySink { - /* - * A query to execute before starting the copy. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /** - * Get the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the InformixSink object itself. - */ - public InformixSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixSource.java deleted file mode 100644 index 841bdf1c25b56..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixSource.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for Informix. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("InformixSource") -@Fluent -public final class InformixSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the InformixSource object itself. - */ - public InformixSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java deleted file mode 100644 index 3848692a95c5f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.InformixTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Informix table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("InformixTable") -@Fluent -public final class InformixTableDataset extends Dataset { - /* - * Informix table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private InformixTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Informix table dataset properties. - * - * @return the innerTypeProperties value. - */ - private InformixTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public InformixTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public InformixTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the InformixTableDataset object itself. - */ - public InformixTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntime.java deleted file mode 100644 index 83eb59623bcda..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntime.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Azure Data Factory nested object which serves as a compute resource for activities. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = IntegrationRuntime.class) -@JsonTypeName("IntegrationRuntime") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Managed", value = ManagedIntegrationRuntime.class), - @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntime.class) -}) -@Fluent -public class IntegrationRuntime { - /* - * Integration runtime description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Azure Data Factory nested object which serves as a compute resource for - * activities. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the description property: Integration runtime description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Integration runtime description. - * - * @param description the description value to set. - * @return the IntegrationRuntime object itself. - */ - public IntegrationRuntime withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the additionalProperties property: Azure Data Factory nested object which serves as a compute resource for - * activities. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Azure Data Factory nested object which serves as a compute resource for - * activities. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntime object itself. - */ - public IntegrationRuntime withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAuthKeyName.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAuthKeyName.java deleted file mode 100644 index 8ed52be00fb4c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAuthKeyName.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeAuthKeyName. */ -public final class IntegrationRuntimeAuthKeyName extends ExpandableStringEnum { - /** Static value authKey1 for IntegrationRuntimeAuthKeyName. */ - public static final IntegrationRuntimeAuthKeyName AUTH_KEY1 = fromString("authKey1"); - - /** Static value authKey2 for IntegrationRuntimeAuthKeyName. */ - public static final IntegrationRuntimeAuthKeyName AUTH_KEY2 = fromString("authKey2"); - - /** - * Creates or finds a IntegrationRuntimeAuthKeyName from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeAuthKeyName. - */ - @JsonCreator - public static IntegrationRuntimeAuthKeyName fromString(String name) { - return fromString(name, IntegrationRuntimeAuthKeyName.class); - } - - /** @return known IntegrationRuntimeAuthKeyName values. */ - public static Collection values() { - return values(IntegrationRuntimeAuthKeyName.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAuthKeys.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAuthKeys.java deleted file mode 100644 index f3883557970b9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAuthKeys.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner; - -/** An immutable client-side representation of IntegrationRuntimeAuthKeys. */ -public interface IntegrationRuntimeAuthKeys { - /** - * Gets the authKey1 property: The primary integration runtime authentication key. - * - * @return the authKey1 value. - */ - String authKey1(); - - /** - * Gets the authKey2 property: The secondary integration runtime authentication key. - * - * @return the authKey2 value. - */ - String authKey2(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner object. - * - * @return the inner object. - */ - IntegrationRuntimeAuthKeysInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAutoUpdate.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAutoUpdate.java deleted file mode 100644 index 9ff8ed309dd93..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeAutoUpdate.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeAutoUpdate. */ -public final class IntegrationRuntimeAutoUpdate extends ExpandableStringEnum { - /** Static value On for IntegrationRuntimeAutoUpdate. */ - public static final IntegrationRuntimeAutoUpdate ON = fromString("On"); - - /** Static value Off for IntegrationRuntimeAutoUpdate. */ - public static final IntegrationRuntimeAutoUpdate OFF = fromString("Off"); - - /** - * Creates or finds a IntegrationRuntimeAutoUpdate from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeAutoUpdate. - */ - @JsonCreator - public static IntegrationRuntimeAutoUpdate fromString(String name) { - return fromString(name, IntegrationRuntimeAutoUpdate.class); - } - - /** @return known IntegrationRuntimeAutoUpdate values. */ - public static Collection values() { - return values(IntegrationRuntimeAutoUpdate.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java deleted file mode 100644 index 98d3230d846fe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** The compute resource properties for managed integration runtime. */ -@Fluent -public final class IntegrationRuntimeComputeProperties { - /* - * The location for managed integration runtime. The supported regions - * could be found on - * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities - */ - @JsonProperty(value = "location") - private String location; - - /* - * The node size requirement to managed integration runtime. - */ - @JsonProperty(value = "nodeSize") - private String nodeSize; - - /* - * The required number of nodes for managed integration runtime. - */ - @JsonProperty(value = "numberOfNodes") - private Integer numberOfNodes; - - /* - * Maximum parallel executions count per node for managed integration - * runtime. - */ - @JsonProperty(value = "maxParallelExecutionsPerNode") - private Integer maxParallelExecutionsPerNode; - - /* - * Data flow properties for managed integration runtime. - */ - @JsonProperty(value = "dataFlowProperties") - private IntegrationRuntimeDataFlowProperties dataFlowProperties; - - /* - * VNet properties for managed integration runtime. - */ - @JsonProperty(value = "vNetProperties") - private IntegrationRuntimeVNetProperties vNetProperties; - - /* - * The compute resource properties for managed integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the location property: The location for managed integration runtime. The supported regions could be found on - * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The location for managed integration runtime. The supported regions could be found on - * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. - * - * @param location the location value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withLocation(String location) { - this.location = location; - return this; - } - - /** - * Get the nodeSize property: The node size requirement to managed integration runtime. - * - * @return the nodeSize value. - */ - public String nodeSize() { - return this.nodeSize; - } - - /** - * Set the nodeSize property: The node size requirement to managed integration runtime. - * - * @param nodeSize the nodeSize value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withNodeSize(String nodeSize) { - this.nodeSize = nodeSize; - return this; - } - - /** - * Get the numberOfNodes property: The required number of nodes for managed integration runtime. - * - * @return the numberOfNodes value. - */ - public Integer numberOfNodes() { - return this.numberOfNodes; - } - - /** - * Set the numberOfNodes property: The required number of nodes for managed integration runtime. - * - * @param numberOfNodes the numberOfNodes value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withNumberOfNodes(Integer numberOfNodes) { - this.numberOfNodes = numberOfNodes; - return this; - } - - /** - * Get the maxParallelExecutionsPerNode property: Maximum parallel executions count per node for managed integration - * runtime. - * - * @return the maxParallelExecutionsPerNode value. - */ - public Integer maxParallelExecutionsPerNode() { - return this.maxParallelExecutionsPerNode; - } - - /** - * Set the maxParallelExecutionsPerNode property: Maximum parallel executions count per node for managed integration - * runtime. - * - * @param maxParallelExecutionsPerNode the maxParallelExecutionsPerNode value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withMaxParallelExecutionsPerNode(Integer maxParallelExecutionsPerNode) { - this.maxParallelExecutionsPerNode = maxParallelExecutionsPerNode; - return this; - } - - /** - * Get the dataFlowProperties property: Data flow properties for managed integration runtime. - * - * @return the dataFlowProperties value. - */ - public IntegrationRuntimeDataFlowProperties dataFlowProperties() { - return this.dataFlowProperties; - } - - /** - * Set the dataFlowProperties property: Data flow properties for managed integration runtime. - * - * @param dataFlowProperties the dataFlowProperties value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withDataFlowProperties( - IntegrationRuntimeDataFlowProperties dataFlowProperties) { - this.dataFlowProperties = dataFlowProperties; - return this; - } - - /** - * Get the vNetProperties property: VNet properties for managed integration runtime. - * - * @return the vNetProperties value. - */ - public IntegrationRuntimeVNetProperties vNetProperties() { - return this.vNetProperties; - } - - /** - * Set the vNetProperties property: VNet properties for managed integration runtime. - * - * @param vNetProperties the vNetProperties value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withVNetProperties(IntegrationRuntimeVNetProperties vNetProperties) { - this.vNetProperties = vNetProperties; - return this; - } - - /** - * Get the additionalProperties property: The compute resource properties for managed integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The compute resource properties for managed integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataFlowProperties() != null) { - dataFlowProperties().validate(); - } - if (vNetProperties() != null) { - vNetProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeConnectionInfo.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeConnectionInfo.java deleted file mode 100644 index 6d1ce3a01185e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeConnectionInfo.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner; -import java.util.Map; - -/** An immutable client-side representation of IntegrationRuntimeConnectionInfo. */ -public interface IntegrationRuntimeConnectionInfo { - /** - * Gets the serviceToken property: The token generated in service. Callers use this token to authenticate to - * integration runtime. - * - * @return the serviceToken value. - */ - String serviceToken(); - - /** - * Gets the identityCertThumbprint property: The integration runtime SSL certificate thumbprint. Click-Once - * application uses it to do server validation. - * - * @return the identityCertThumbprint value. - */ - String identityCertThumbprint(); - - /** - * Gets the hostServiceUri property: The on-premises integration runtime host URL. - * - * @return the hostServiceUri value. - */ - String hostServiceUri(); - - /** - * Gets the version property: The integration runtime version. - * - * @return the version value. - */ - String version(); - - /** - * Gets the publicKey property: The public key for encrypting a credential when transferring the credential to the - * integration runtime. - * - * @return the publicKey value. - */ - String publicKey(); - - /** - * Gets the isIdentityCertExprired property: Whether the identity certificate is expired. - * - * @return the isIdentityCertExprired value. - */ - Boolean isIdentityCertExprired(); - - /** - * Gets the additionalProperties property: Connection information for encrypting the on-premises data source - * credentials. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner object. - * - * @return the inner object. - */ - IntegrationRuntimeConnectionInfoInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeCustomSetupScriptProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeCustomSetupScriptProperties.java deleted file mode 100644 index 55718015dfcbf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeCustomSetupScriptProperties.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Custom setup script properties for a managed dedicated integration runtime. */ -@Fluent -public final class IntegrationRuntimeCustomSetupScriptProperties { - /* - * The URI of the Azure blob container that contains the custom setup - * script. - */ - @JsonProperty(value = "blobContainerUri") - private String blobContainerUri; - - /* - * The SAS token of the Azure blob container. - */ - @JsonProperty(value = "sasToken") - private SecureString sasToken; - - /** - * Get the blobContainerUri property: The URI of the Azure blob container that contains the custom setup script. - * - * @return the blobContainerUri value. - */ - public String blobContainerUri() { - return this.blobContainerUri; - } - - /** - * Set the blobContainerUri property: The URI of the Azure blob container that contains the custom setup script. - * - * @param blobContainerUri the blobContainerUri value to set. - * @return the IntegrationRuntimeCustomSetupScriptProperties object itself. - */ - public IntegrationRuntimeCustomSetupScriptProperties withBlobContainerUri(String blobContainerUri) { - this.blobContainerUri = blobContainerUri; - return this; - } - - /** - * Get the sasToken property: The SAS token of the Azure blob container. - * - * @return the sasToken value. - */ - public SecureString sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The SAS token of the Azure blob container. - * - * @param sasToken the sasToken value to set. - * @return the IntegrationRuntimeCustomSetupScriptProperties object itself. - */ - public IntegrationRuntimeCustomSetupScriptProperties withSasToken(SecureString sasToken) { - this.sasToken = sasToken; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sasToken() != null) { - sasToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeCustomerVirtualNetwork.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeCustomerVirtualNetwork.java deleted file mode 100644 index c3bc5e9f0595d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeCustomerVirtualNetwork.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The definition and properties of virtual network to which Azure-SSIS integration runtime will join. */ -@Fluent -public final class IntegrationRuntimeCustomerVirtualNetwork { - /* - * The ID of subnet to which Azure-SSIS integration runtime will join. - */ - @JsonProperty(value = "subnetId") - private String subnetId; - - /** - * Get the subnetId property: The ID of subnet to which Azure-SSIS integration runtime will join. - * - * @return the subnetId value. - */ - public String subnetId() { - return this.subnetId; - } - - /** - * Set the subnetId property: The ID of subnet to which Azure-SSIS integration runtime will join. - * - * @param subnetId the subnetId value to set. - * @return the IntegrationRuntimeCustomerVirtualNetwork object itself. - */ - public IntegrationRuntimeCustomerVirtualNetwork withSubnetId(String subnetId) { - this.subnetId = subnetId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDataFlowProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDataFlowProperties.java deleted file mode 100644 index 0d7b3c7b7b06f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDataFlowProperties.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Data flow properties for managed integration runtime. */ -@Fluent -public final class IntegrationRuntimeDataFlowProperties { - /* - * Compute type of the cluster which will execute data flow job. - */ - @JsonProperty(value = "computeType") - private DataFlowComputeType computeType; - - /* - * Core count of the cluster which will execute data flow job. Supported - * values are: 8, 16, 32, 48, 80, 144 and 272. - */ - @JsonProperty(value = "coreCount") - private Integer coreCount; - - /* - * Time to live (in minutes) setting of the cluster which will execute data - * flow job. - */ - @JsonProperty(value = "timeToLive") - private Integer timeToLive; - - /* - * Cluster will not be recycled and it will be used in next data flow - * activity run until TTL (time to live) is reached if this is set as - * false. Default is true. - */ - @JsonProperty(value = "cleanup") - private Boolean cleanup; - - /* - * Data flow properties for managed integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the computeType property: Compute type of the cluster which will execute data flow job. - * - * @return the computeType value. - */ - public DataFlowComputeType computeType() { - return this.computeType; - } - - /** - * Set the computeType property: Compute type of the cluster which will execute data flow job. - * - * @param computeType the computeType value to set. - * @return the IntegrationRuntimeDataFlowProperties object itself. - */ - public IntegrationRuntimeDataFlowProperties withComputeType(DataFlowComputeType computeType) { - this.computeType = computeType; - return this; - } - - /** - * Get the coreCount property: Core count of the cluster which will execute data flow job. Supported values are: 8, - * 16, 32, 48, 80, 144 and 272. - * - * @return the coreCount value. - */ - public Integer coreCount() { - return this.coreCount; - } - - /** - * Set the coreCount property: Core count of the cluster which will execute data flow job. Supported values are: 8, - * 16, 32, 48, 80, 144 and 272. - * - * @param coreCount the coreCount value to set. - * @return the IntegrationRuntimeDataFlowProperties object itself. - */ - public IntegrationRuntimeDataFlowProperties withCoreCount(Integer coreCount) { - this.coreCount = coreCount; - return this; - } - - /** - * Get the timeToLive property: Time to live (in minutes) setting of the cluster which will execute data flow job. - * - * @return the timeToLive value. - */ - public Integer timeToLive() { - return this.timeToLive; - } - - /** - * Set the timeToLive property: Time to live (in minutes) setting of the cluster which will execute data flow job. - * - * @param timeToLive the timeToLive value to set. - * @return the IntegrationRuntimeDataFlowProperties object itself. - */ - public IntegrationRuntimeDataFlowProperties withTimeToLive(Integer timeToLive) { - this.timeToLive = timeToLive; - return this; - } - - /** - * Get the cleanup property: Cluster will not be recycled and it will be used in next data flow activity run until - * TTL (time to live) is reached if this is set as false. Default is true. - * - * @return the cleanup value. - */ - public Boolean cleanup() { - return this.cleanup; - } - - /** - * Set the cleanup property: Cluster will not be recycled and it will be used in next data flow activity run until - * TTL (time to live) is reached if this is set as false. Default is true. - * - * @param cleanup the cleanup value to set. - * @return the IntegrationRuntimeDataFlowProperties object itself. - */ - public IntegrationRuntimeDataFlowProperties withCleanup(Boolean cleanup) { - this.cleanup = cleanup; - return this; - } - - /** - * Get the additionalProperties property: Data flow properties for managed integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Data flow properties for managed integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeDataFlowProperties object itself. - */ - public IntegrationRuntimeDataFlowProperties withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDataProxyProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDataProxyProperties.java deleted file mode 100644 index daad21a73c79c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDataProxyProperties.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Data proxy properties for a managed dedicated integration runtime. */ -@Fluent -public final class IntegrationRuntimeDataProxyProperties { - /* - * The self-hosted integration runtime reference. - */ - @JsonProperty(value = "connectVia") - private EntityReference connectVia; - - /* - * The staging linked service reference. - */ - @JsonProperty(value = "stagingLinkedService") - private EntityReference stagingLinkedService; - - /* - * The path to contain the staged data in the Blob storage. - */ - @JsonProperty(value = "path") - private String path; - - /** - * Get the connectVia property: The self-hosted integration runtime reference. - * - * @return the connectVia value. - */ - public EntityReference connectVia() { - return this.connectVia; - } - - /** - * Set the connectVia property: The self-hosted integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the IntegrationRuntimeDataProxyProperties object itself. - */ - public IntegrationRuntimeDataProxyProperties withConnectVia(EntityReference connectVia) { - this.connectVia = connectVia; - return this; - } - - /** - * Get the stagingLinkedService property: The staging linked service reference. - * - * @return the stagingLinkedService value. - */ - public EntityReference stagingLinkedService() { - return this.stagingLinkedService; - } - - /** - * Set the stagingLinkedService property: The staging linked service reference. - * - * @param stagingLinkedService the stagingLinkedService value to set. - * @return the IntegrationRuntimeDataProxyProperties object itself. - */ - public IntegrationRuntimeDataProxyProperties withStagingLinkedService(EntityReference stagingLinkedService) { - this.stagingLinkedService = stagingLinkedService; - return this; - } - - /** - * Get the path property: The path to contain the staged data in the Blob storage. - * - * @return the path value. - */ - public String path() { - return this.path; - } - - /** - * Set the path property: The path to contain the staged data in the Blob storage. - * - * @param path the path value to set. - * @return the IntegrationRuntimeDataProxyProperties object itself. - */ - public IntegrationRuntimeDataProxyProperties withPath(String path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectVia() != null) { - connectVia().validate(); - } - if (stagingLinkedService() != null) { - stagingLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDebugResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDebugResource.java deleted file mode 100644 index 90ea24f0ae64b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeDebugResource.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Integration runtime debug resource. */ -@Fluent -public final class IntegrationRuntimeDebugResource extends SubResourceDebugResource { - /* - * Integration runtime properties. - */ - @JsonProperty(value = "properties", required = true) - private IntegrationRuntime properties; - - /** - * Get the properties property: Integration runtime properties. - * - * @return the properties value. - */ - public IntegrationRuntime properties() { - return this.properties; - } - - /** - * Set the properties property: Integration runtime properties. - * - * @param properties the properties value to set. - * @return the IntegrationRuntimeDebugResource object itself. - */ - public IntegrationRuntimeDebugResource withProperties(IntegrationRuntime properties) { - this.properties = properties; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationRuntimeDebugResource withName(String name) { - super.withName(name); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model IntegrationRuntimeDebugResource")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeDebugResource.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeEdition.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeEdition.java deleted file mode 100644 index a800dd40e6aed..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeEdition.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeEdition. */ -public final class IntegrationRuntimeEdition extends ExpandableStringEnum { - /** Static value Standard for IntegrationRuntimeEdition. */ - public static final IntegrationRuntimeEdition STANDARD = fromString("Standard"); - - /** Static value Enterprise for IntegrationRuntimeEdition. */ - public static final IntegrationRuntimeEdition ENTERPRISE = fromString("Enterprise"); - - /** - * Creates or finds a IntegrationRuntimeEdition from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeEdition. - */ - @JsonCreator - public static IntegrationRuntimeEdition fromString(String name) { - return fromString(name, IntegrationRuntimeEdition.class); - } - - /** @return known IntegrationRuntimeEdition values. */ - public static Collection values() { - return values(IntegrationRuntimeEdition.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeEntityReferenceType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeEntityReferenceType.java deleted file mode 100644 index 916383fc04b4b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeEntityReferenceType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeEntityReferenceType. */ -public final class IntegrationRuntimeEntityReferenceType - extends ExpandableStringEnum { - /** Static value IntegrationRuntimeReference for IntegrationRuntimeEntityReferenceType. */ - public static final IntegrationRuntimeEntityReferenceType INTEGRATION_RUNTIME_REFERENCE = - fromString("IntegrationRuntimeReference"); - - /** Static value LinkedServiceReference for IntegrationRuntimeEntityReferenceType. */ - public static final IntegrationRuntimeEntityReferenceType LINKED_SERVICE_REFERENCE = - fromString("LinkedServiceReference"); - - /** - * Creates or finds a IntegrationRuntimeEntityReferenceType from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeEntityReferenceType. - */ - @JsonCreator - public static IntegrationRuntimeEntityReferenceType fromString(String name) { - return fromString(name, IntegrationRuntimeEntityReferenceType.class); - } - - /** @return known IntegrationRuntimeEntityReferenceType values. */ - public static Collection values() { - return values(IntegrationRuntimeEntityReferenceType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeInternalChannelEncryptionMode.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeInternalChannelEncryptionMode.java deleted file mode 100644 index f4cd642c8ca8e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeInternalChannelEncryptionMode.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeInternalChannelEncryptionMode. */ -public final class IntegrationRuntimeInternalChannelEncryptionMode - extends ExpandableStringEnum { - /** Static value NotSet for IntegrationRuntimeInternalChannelEncryptionMode. */ - public static final IntegrationRuntimeInternalChannelEncryptionMode NOT_SET = fromString("NotSet"); - - /** Static value SslEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. */ - public static final IntegrationRuntimeInternalChannelEncryptionMode SSL_ENCRYPTED = fromString("SslEncrypted"); - - /** Static value NotEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. */ - public static final IntegrationRuntimeInternalChannelEncryptionMode NOT_ENCRYPTED = fromString("NotEncrypted"); - - /** - * Creates or finds a IntegrationRuntimeInternalChannelEncryptionMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeInternalChannelEncryptionMode. - */ - @JsonCreator - public static IntegrationRuntimeInternalChannelEncryptionMode fromString(String name) { - return fromString(name, IntegrationRuntimeInternalChannelEncryptionMode.class); - } - - /** @return known IntegrationRuntimeInternalChannelEncryptionMode values. */ - public static Collection values() { - return values(IntegrationRuntimeInternalChannelEncryptionMode.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeLicenseType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeLicenseType.java deleted file mode 100644 index 85694e0987c4b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeLicenseType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeLicenseType. */ -public final class IntegrationRuntimeLicenseType extends ExpandableStringEnum { - /** Static value BasePrice for IntegrationRuntimeLicenseType. */ - public static final IntegrationRuntimeLicenseType BASE_PRICE = fromString("BasePrice"); - - /** Static value LicenseIncluded for IntegrationRuntimeLicenseType. */ - public static final IntegrationRuntimeLicenseType LICENSE_INCLUDED = fromString("LicenseIncluded"); - - /** - * Creates or finds a IntegrationRuntimeLicenseType from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeLicenseType. - */ - @JsonCreator - public static IntegrationRuntimeLicenseType fromString(String name) { - return fromString(name, IntegrationRuntimeLicenseType.class); - } - - /** @return known IntegrationRuntimeLicenseType values. */ - public static Collection values() { - return values(IntegrationRuntimeLicenseType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeListResponse.java deleted file mode 100644 index 59cd070ad3721..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeListResponse.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of integration runtime resources. */ -@Fluent -public final class IntegrationRuntimeListResponse { - /* - * List of integration runtimes. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of integration runtimes. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of integration runtimes. - * - * @param value the value value to set. - * @return the IntegrationRuntimeListResponse object itself. - */ - public IntegrationRuntimeListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the IntegrationRuntimeListResponse object itself. - */ - public IntegrationRuntimeListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model IntegrationRuntimeListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeMonitoringData.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeMonitoringData.java deleted file mode 100644 index 68f09d715a4ee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeMonitoringData.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import java.util.List; - -/** An immutable client-side representation of IntegrationRuntimeMonitoringData. */ -public interface IntegrationRuntimeMonitoringData { - /** - * Gets the name property: Integration runtime name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the nodes property: Integration runtime node monitoring data. - * - * @return the nodes value. - */ - List nodes(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner object. - * - * @return the inner object. - */ - IntegrationRuntimeMonitoringDataInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodeIpAddress.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodeIpAddress.java deleted file mode 100644 index 209894a6e3d57..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodeIpAddress.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; - -/** An immutable client-side representation of IntegrationRuntimeNodeIpAddress. */ -public interface IntegrationRuntimeNodeIpAddress { - /** - * Gets the ipAddress property: The IP address of self-hosted integration runtime node. - * - * @return the ipAddress value. - */ - String ipAddress(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner object. - * - * @return the inner object. - */ - IntegrationRuntimeNodeIpAddressInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodeMonitoringData.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodeMonitoringData.java deleted file mode 100644 index dc2cd3ae62a06..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodeMonitoringData.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Monitoring data for integration runtime node. */ -@Fluent -public final class IntegrationRuntimeNodeMonitoringData { - /* - * Name of the integration runtime node. - */ - @JsonProperty(value = "nodeName", access = JsonProperty.Access.WRITE_ONLY) - private String nodeName; - - /* - * Available memory (MB) on the integration runtime node. - */ - @JsonProperty(value = "availableMemoryInMB", access = JsonProperty.Access.WRITE_ONLY) - private Integer availableMemoryInMB; - - /* - * CPU percentage on the integration runtime node. - */ - @JsonProperty(value = "cpuUtilization", access = JsonProperty.Access.WRITE_ONLY) - private Integer cpuUtilization; - - /* - * Maximum concurrent jobs on the integration runtime node. - */ - @JsonProperty(value = "concurrentJobsLimit", access = JsonProperty.Access.WRITE_ONLY) - private Integer concurrentJobsLimit; - - /* - * The number of jobs currently running on the integration runtime node. - */ - @JsonProperty(value = "concurrentJobsRunning", access = JsonProperty.Access.WRITE_ONLY) - private Integer concurrentJobsRunning; - - /* - * The maximum concurrent jobs in this integration runtime. - */ - @JsonProperty(value = "maxConcurrentJobs", access = JsonProperty.Access.WRITE_ONLY) - private Integer maxConcurrentJobs; - - /* - * Sent bytes on the integration runtime node. - */ - @JsonProperty(value = "sentBytes", access = JsonProperty.Access.WRITE_ONLY) - private Float sentBytes; - - /* - * Received bytes on the integration runtime node. - */ - @JsonProperty(value = "receivedBytes", access = JsonProperty.Access.WRITE_ONLY) - private Float receivedBytes; - - /* - * Monitoring data for integration runtime node. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the nodeName property: Name of the integration runtime node. - * - * @return the nodeName value. - */ - public String nodeName() { - return this.nodeName; - } - - /** - * Get the availableMemoryInMB property: Available memory (MB) on the integration runtime node. - * - * @return the availableMemoryInMB value. - */ - public Integer availableMemoryInMB() { - return this.availableMemoryInMB; - } - - /** - * Get the cpuUtilization property: CPU percentage on the integration runtime node. - * - * @return the cpuUtilization value. - */ - public Integer cpuUtilization() { - return this.cpuUtilization; - } - - /** - * Get the concurrentJobsLimit property: Maximum concurrent jobs on the integration runtime node. - * - * @return the concurrentJobsLimit value. - */ - public Integer concurrentJobsLimit() { - return this.concurrentJobsLimit; - } - - /** - * Get the concurrentJobsRunning property: The number of jobs currently running on the integration runtime node. - * - * @return the concurrentJobsRunning value. - */ - public Integer concurrentJobsRunning() { - return this.concurrentJobsRunning; - } - - /** - * Get the maxConcurrentJobs property: The maximum concurrent jobs in this integration runtime. - * - * @return the maxConcurrentJobs value. - */ - public Integer maxConcurrentJobs() { - return this.maxConcurrentJobs; - } - - /** - * Get the sentBytes property: Sent bytes on the integration runtime node. - * - * @return the sentBytes value. - */ - public Float sentBytes() { - return this.sentBytes; - } - - /** - * Get the receivedBytes property: Received bytes on the integration runtime node. - * - * @return the receivedBytes value. - */ - public Float receivedBytes() { - return this.receivedBytes; - } - - /** - * Get the additionalProperties property: Monitoring data for integration runtime node. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Monitoring data for integration runtime node. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeNodeMonitoringData object itself. - */ - public IntegrationRuntimeNodeMonitoringData withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodes.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodes.java deleted file mode 100644 index bc803a8aa3b97..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeNodes.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of IntegrationRuntimeNodes. */ -public interface IntegrationRuntimeNodes { - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node. - */ - SelfHostedIntegrationRuntimeNode get( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); - - /** - * Gets a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a self-hosted integration runtime node along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context); - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); - - /** - * Deletes a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context); - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node. - */ - SelfHostedIntegrationRuntimeNode update( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); - - /** - * Updates a self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node along with {@link Response}. - */ - Response updateWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context); - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node. - */ - IntegrationRuntimeNodeIpAddress getIpAddress( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); - - /** - * Get the IP address of self-hosted integration runtime node. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param nodeName The integration runtime node name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the IP address of self-hosted integration runtime node along with {@link Response}. - */ - Response getIpAddressWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeObjectMetadatas.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeObjectMetadatas.java deleted file mode 100644 index 74b204648a198..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeObjectMetadatas.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of IntegrationRuntimeObjectMetadatas. */ -public interface IntegrationRuntimeObjectMetadatas { - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation. - */ - SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Refresh a SSIS integration runtime object metadata. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation. - */ - SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path. - */ - SsisObjectMetadataListResponse get(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param getMetadataRequest The parameters for getting a SSIS object metadata. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a SSIS integration runtime object metadata by specified path along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java deleted file mode 100644 index 95c53d7d74e48..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Azure-SSIS integration runtime outbound network dependency endpoints for one category. */ -@Fluent -public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint { - /* - * The category of outbound network dependency. - */ - @JsonProperty(value = "category") - private String category; - - /* - * The endpoints for outbound network dependency. - */ - @JsonProperty(value = "endpoints") - private List endpoints; - - /** - * Get the category property: The category of outbound network dependency. - * - * @return the category value. - */ - public String category() { - return this.category; - } - - /** - * Set the category property: The category of outbound network dependency. - * - * @param category the category value to set. - * @return the IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint object itself. - */ - public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint withCategory(String category) { - this.category = category; - return this; - } - - /** - * Get the endpoints property: The endpoints for outbound network dependency. - * - * @return the endpoints value. - */ - public List endpoints() { - return this.endpoints; - } - - /** - * Set the endpoints property: The endpoints for outbound network dependency. - * - * @param endpoints the endpoints value to set. - * @return the IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint object itself. - */ - public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint withEndpoints( - List endpoints) { - this.endpoints = endpoints; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoints() != null) { - endpoints().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java deleted file mode 100644 index f3bc720c6fd5f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** The endpoint for Azure-SSIS integration runtime outbound network dependency. */ -@Fluent -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpoint { - /* - * The domain name of endpoint. - */ - @JsonProperty(value = "domainName") - private String domainName; - - /* - * The details of endpoint. - */ - @JsonProperty(value = "endpointDetails") - private List endpointDetails; - - /** - * Get the domainName property: The domain name of endpoint. - * - * @return the domainName value. - */ - public String domainName() { - return this.domainName; - } - - /** - * Set the domainName property: The domain name of endpoint. - * - * @param domainName the domainName value to set. - * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpoint object itself. - */ - public IntegrationRuntimeOutboundNetworkDependenciesEndpoint withDomainName(String domainName) { - this.domainName = domainName; - return this; - } - - /** - * Get the endpointDetails property: The details of endpoint. - * - * @return the endpointDetails value. - */ - public List endpointDetails() { - return this.endpointDetails; - } - - /** - * Set the endpointDetails property: The details of endpoint. - * - * @param endpointDetails the endpointDetails value to set. - * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpoint object itself. - */ - public IntegrationRuntimeOutboundNetworkDependenciesEndpoint withEndpointDetails( - List endpointDetails) { - this.endpointDetails = endpointDetails; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpointDetails() != null) { - endpointDetails().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java deleted file mode 100644 index d2a6b9dbf5168..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The details of Azure-SSIS integration runtime outbound network dependency endpoint. */ -@Fluent -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails { - /* - * The port of endpoint. - */ - @JsonProperty(value = "port") - private Integer port; - - /** - * Get the port property: The port of endpoint. - * - * @return the port value. - */ - public Integer port() { - return this.port; - } - - /** - * Set the port property: The port of endpoint. - * - * @param port the port value to set. - * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails object itself. - */ - public IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails withPort(Integer port) { - this.port = port; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.java deleted file mode 100644 index 6376efa23bd38..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import java.util.List; - -/** An immutable client-side representation of IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. */ -public interface IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse { - /** - * Gets the value property: The list of outbound network dependency endpoints. - * - * @return the value value. - */ - List value(); - - /** - * Gets the inner - * com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner - * object. - * - * @return the inner object. - */ - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeReference.java deleted file mode 100644 index 60d8d51c80cbf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeReference.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Integration runtime reference type. */ -@Fluent -public final class IntegrationRuntimeReference { - /* - * Type of integration runtime. - */ - @JsonProperty(value = "type", required = true) - private String type = "IntegrationRuntimeReference"; - - /* - * Reference integration runtime name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /* - * Arguments for integration runtime. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /** Creates an instance of IntegrationRuntimeReference class. */ - public IntegrationRuntimeReference() { - type = "IntegrationRuntimeReference"; - } - - /** - * Get the type property: Type of integration runtime. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Type of integration runtime. - * - * @param type the type value to set. - * @return the IntegrationRuntimeReference object itself. - */ - public IntegrationRuntimeReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference integration runtime name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference integration runtime name. - * - * @param referenceName the referenceName value to set. - * @return the IntegrationRuntimeReference object itself. - */ - public IntegrationRuntimeReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Get the parameters property: Arguments for integration runtime. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Arguments for integration runtime. - * - * @param parameters the parameters value to set. - * @return the IntegrationRuntimeReference object itself. - */ - public IntegrationRuntimeReference withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property referenceName in model IntegrationRuntimeReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeRegenerateKeyParameters.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeRegenerateKeyParameters.java deleted file mode 100644 index fa1eaa63a7f11..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeRegenerateKeyParameters.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Parameters to regenerate the authentication key. */ -@Fluent -public final class IntegrationRuntimeRegenerateKeyParameters { - /* - * The name of the authentication key to regenerate. - */ - @JsonProperty(value = "keyName") - private IntegrationRuntimeAuthKeyName keyName; - - /** - * Get the keyName property: The name of the authentication key to regenerate. - * - * @return the keyName value. - */ - public IntegrationRuntimeAuthKeyName keyName() { - return this.keyName; - } - - /** - * Set the keyName property: The name of the authentication key to regenerate. - * - * @param keyName the keyName value to set. - * @return the IntegrationRuntimeRegenerateKeyParameters object itself. - */ - public IntegrationRuntimeRegenerateKeyParameters withKeyName(IntegrationRuntimeAuthKeyName keyName) { - this.keyName = keyName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeResource.java deleted file mode 100644 index 7ba256970c781..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeResource.java +++ /dev/null @@ -1,428 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; - -/** An immutable client-side representation of IntegrationRuntimeResource. */ -public interface IntegrationRuntimeResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Integration runtime properties. - * - * @return the properties value. - */ - IntegrationRuntime properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner object. - * - * @return the inner object. - */ - IntegrationRuntimeResourceInner innerModel(); - - /** The entirety of the IntegrationRuntimeResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The IntegrationRuntimeResource definition stages. */ - interface DefinitionStages { - /** The first stage of the IntegrationRuntimeResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the IntegrationRuntimeResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithProperties withExistingFactory(String resourceGroupName, String factoryName); - } - /** The stage of the IntegrationRuntimeResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Integration runtime properties.. - * - * @param properties Integration runtime properties. - * @return the next definition stage. - */ - WithCreate withProperties(IntegrationRuntime properties); - } - /** - * The stage of the IntegrationRuntimeResource definition which contains all the minimum required properties for - * the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - IntegrationRuntimeResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - IntegrationRuntimeResource create(Context context); - } - /** The stage of the IntegrationRuntimeResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the integration runtime entity. Should only be specified for - * update, for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the IntegrationRuntimeResource resource. - * - * @return the stage of resource update. - */ - IntegrationRuntimeResource.Update update(); - - /** The template for IntegrationRuntimeResource update. */ - interface Update extends UpdateStages.WithAutoUpdate, UpdateStages.WithUpdateDelayOffset { - /** - * Executes the update request. - * - * @return the updated resource. - */ - IntegrationRuntimeResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - IntegrationRuntimeResource apply(Context context); - } - /** The IntegrationRuntimeResource update stages. */ - interface UpdateStages { - /** The stage of the IntegrationRuntimeResource update allowing to specify autoUpdate. */ - interface WithAutoUpdate { - /** - * Specifies the autoUpdate property: Enables or disables the auto-update feature of the self-hosted - * integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189.. - * - * @param autoUpdate Enables or disables the auto-update feature of the self-hosted integration runtime. See - * https://go.microsoft.com/fwlink/?linkid=854189. - * @return the next definition stage. - */ - Update withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate); - } - /** The stage of the IntegrationRuntimeResource update allowing to specify updateDelayOffset. */ - interface WithUpdateDelayOffset { - /** - * Specifies the updateDelayOffset property: The time offset (in hours) in the day, e.g., PT03H is 3 hours. - * The integration runtime auto update will happen on that time.. - * - * @param updateDelayOffset The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration - * runtime auto update will happen on that time. - * @return the next definition stage. - */ - Update withUpdateDelayOffset(String updateDelayOffset); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - IntegrationRuntimeResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - IntegrationRuntimeResource refresh(Context context); - - /** - * Gets detailed status information for an integration runtime. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime. - */ - IntegrationRuntimeStatusResponse getStatus(); - - /** - * Gets detailed status information for an integration runtime. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime along with {@link Response}. - */ - Response getStatusWithResponse(Context context); - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - */ - IntegrationRuntimeConnectionInfo getConnectionInfo(); - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials along with {@link Response}. - */ - Response getConnectionInfoWithResponse(Context context); - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - IntegrationRuntimeAuthKeys regenerateAuthKey(IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - Response regenerateAuthKeyWithResponse( - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context); - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - IntegrationRuntimeAuthKeys listAuthKeys(); - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - Response listAuthKeysWithResponse(Context context); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - IntegrationRuntimeStatusResponse start(); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - IntegrationRuntimeStatusResponse start(Context context); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(Context context); - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void syncCredentials(); - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response syncCredentialsWithResponse(Context context); - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - */ - IntegrationRuntimeMonitoringData getMonitoringData(); - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime along with {@link Response}. - */ - Response getMonitoringDataWithResponse(Context context); - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void upgrade(); - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response upgradeWithResponse(Context context); - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void removeLinks(LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest); - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response removeLinksWithResponse( - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, Context context); - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - IntegrationRuntimeStatusResponse createLinkedIntegrationRuntime( - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest); - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response}. - */ - Response createLinkedIntegrationRuntimeWithResponse( - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisCatalogInfo.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisCatalogInfo.java deleted file mode 100644 index 7e6e59eb0952f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisCatalogInfo.java +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Catalog information for managed dedicated integration runtime. */ -@Fluent -public final class IntegrationRuntimeSsisCatalogInfo { - /* - * The catalog database server URL. - */ - @JsonProperty(value = "catalogServerEndpoint") - private String catalogServerEndpoint; - - /* - * The administrator user name of catalog database. - */ - @JsonProperty(value = "catalogAdminUserName") - private String catalogAdminUsername; - - /* - * The password of the administrator user account of the catalog database. - */ - @JsonProperty(value = "catalogAdminPassword") - private SecureString catalogAdminPassword; - - /* - * The pricing tier for the catalog database. The valid values could be - * found in https://azure.microsoft.com/en-us/pricing/details/sql-database/ - */ - @JsonProperty(value = "catalogPricingTier") - private IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier; - - /* - * The dual standby pair name of Azure-SSIS Integration Runtimes to support - * SSISDB failover. - */ - @JsonProperty(value = "dualStandbyPairName") - private String dualStandbyPairName; - - /* - * Catalog information for managed dedicated integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the catalogServerEndpoint property: The catalog database server URL. - * - * @return the catalogServerEndpoint value. - */ - public String catalogServerEndpoint() { - return this.catalogServerEndpoint; - } - - /** - * Set the catalogServerEndpoint property: The catalog database server URL. - * - * @param catalogServerEndpoint the catalogServerEndpoint value to set. - * @return the IntegrationRuntimeSsisCatalogInfo object itself. - */ - public IntegrationRuntimeSsisCatalogInfo withCatalogServerEndpoint(String catalogServerEndpoint) { - this.catalogServerEndpoint = catalogServerEndpoint; - return this; - } - - /** - * Get the catalogAdminUsername property: The administrator user name of catalog database. - * - * @return the catalogAdminUsername value. - */ - public String catalogAdminUsername() { - return this.catalogAdminUsername; - } - - /** - * Set the catalogAdminUsername property: The administrator user name of catalog database. - * - * @param catalogAdminUsername the catalogAdminUsername value to set. - * @return the IntegrationRuntimeSsisCatalogInfo object itself. - */ - public IntegrationRuntimeSsisCatalogInfo withCatalogAdminUsername(String catalogAdminUsername) { - this.catalogAdminUsername = catalogAdminUsername; - return this; - } - - /** - * Get the catalogAdminPassword property: The password of the administrator user account of the catalog database. - * - * @return the catalogAdminPassword value. - */ - public SecureString catalogAdminPassword() { - return this.catalogAdminPassword; - } - - /** - * Set the catalogAdminPassword property: The password of the administrator user account of the catalog database. - * - * @param catalogAdminPassword the catalogAdminPassword value to set. - * @return the IntegrationRuntimeSsisCatalogInfo object itself. - */ - public IntegrationRuntimeSsisCatalogInfo withCatalogAdminPassword(SecureString catalogAdminPassword) { - this.catalogAdminPassword = catalogAdminPassword; - return this; - } - - /** - * Get the catalogPricingTier property: The pricing tier for the catalog database. The valid values could be found - * in https://azure.microsoft.com/en-us/pricing/details/sql-database/. - * - * @return the catalogPricingTier value. - */ - public IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier() { - return this.catalogPricingTier; - } - - /** - * Set the catalogPricingTier property: The pricing tier for the catalog database. The valid values could be found - * in https://azure.microsoft.com/en-us/pricing/details/sql-database/. - * - * @param catalogPricingTier the catalogPricingTier value to set. - * @return the IntegrationRuntimeSsisCatalogInfo object itself. - */ - public IntegrationRuntimeSsisCatalogInfo withCatalogPricingTier( - IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier) { - this.catalogPricingTier = catalogPricingTier; - return this; - } - - /** - * Get the dualStandbyPairName property: The dual standby pair name of Azure-SSIS Integration Runtimes to support - * SSISDB failover. - * - * @return the dualStandbyPairName value. - */ - public String dualStandbyPairName() { - return this.dualStandbyPairName; - } - - /** - * Set the dualStandbyPairName property: The dual standby pair name of Azure-SSIS Integration Runtimes to support - * SSISDB failover. - * - * @param dualStandbyPairName the dualStandbyPairName value to set. - * @return the IntegrationRuntimeSsisCatalogInfo object itself. - */ - public IntegrationRuntimeSsisCatalogInfo withDualStandbyPairName(String dualStandbyPairName) { - this.dualStandbyPairName = dualStandbyPairName; - return this; - } - - /** - * Get the additionalProperties property: Catalog information for managed dedicated integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Catalog information for managed dedicated integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeSsisCatalogInfo object itself. - */ - public IntegrationRuntimeSsisCatalogInfo withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (catalogAdminPassword() != null) { - catalogAdminPassword().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisCatalogPricingTier.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisCatalogPricingTier.java deleted file mode 100644 index 49466cfe31017..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisCatalogPricingTier.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeSsisCatalogPricingTier. */ -public final class IntegrationRuntimeSsisCatalogPricingTier - extends ExpandableStringEnum { - /** Static value Basic for IntegrationRuntimeSsisCatalogPricingTier. */ - public static final IntegrationRuntimeSsisCatalogPricingTier BASIC = fromString("Basic"); - - /** Static value Standard for IntegrationRuntimeSsisCatalogPricingTier. */ - public static final IntegrationRuntimeSsisCatalogPricingTier STANDARD = fromString("Standard"); - - /** Static value Premium for IntegrationRuntimeSsisCatalogPricingTier. */ - public static final IntegrationRuntimeSsisCatalogPricingTier PREMIUM = fromString("Premium"); - - /** Static value PremiumRS for IntegrationRuntimeSsisCatalogPricingTier. */ - public static final IntegrationRuntimeSsisCatalogPricingTier PREMIUM_RS = fromString("PremiumRS"); - - /** - * Creates or finds a IntegrationRuntimeSsisCatalogPricingTier from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeSsisCatalogPricingTier. - */ - @JsonCreator - public static IntegrationRuntimeSsisCatalogPricingTier fromString(String name) { - return fromString(name, IntegrationRuntimeSsisCatalogPricingTier.class); - } - - /** @return known IntegrationRuntimeSsisCatalogPricingTier values. */ - public static Collection values() { - return values(IntegrationRuntimeSsisCatalogPricingTier.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisProperties.java deleted file mode 100644 index 5cc2208926359..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeSsisProperties.java +++ /dev/null @@ -1,294 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** SSIS properties for managed integration runtime. */ -@Fluent -public final class IntegrationRuntimeSsisProperties { - /* - * Catalog information for managed dedicated integration runtime. - */ - @JsonProperty(value = "catalogInfo") - private IntegrationRuntimeSsisCatalogInfo catalogInfo; - - /* - * License type for bringing your own license scenario. - */ - @JsonProperty(value = "licenseType") - private IntegrationRuntimeLicenseType licenseType; - - /* - * Custom setup script properties for a managed dedicated integration - * runtime. - */ - @JsonProperty(value = "customSetupScriptProperties") - private IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties; - - /* - * Data proxy properties for a managed dedicated integration runtime. - */ - @JsonProperty(value = "dataProxyProperties") - private IntegrationRuntimeDataProxyProperties dataProxyProperties; - - /* - * The edition for the SSIS Integration Runtime - */ - @JsonProperty(value = "edition") - private IntegrationRuntimeEdition edition; - - /* - * Custom setup without script properties for a SSIS integration runtime. - */ - @JsonProperty(value = "expressCustomSetupProperties") - private List expressCustomSetupProperties; - - /* - * Package stores for the SSIS Integration Runtime. - */ - @JsonProperty(value = "packageStores") - private List packageStores; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /* - * SSIS properties for managed integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the catalogInfo property: Catalog information for managed dedicated integration runtime. - * - * @return the catalogInfo value. - */ - public IntegrationRuntimeSsisCatalogInfo catalogInfo() { - return this.catalogInfo; - } - - /** - * Set the catalogInfo property: Catalog information for managed dedicated integration runtime. - * - * @param catalogInfo the catalogInfo value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withCatalogInfo(IntegrationRuntimeSsisCatalogInfo catalogInfo) { - this.catalogInfo = catalogInfo; - return this; - } - - /** - * Get the licenseType property: License type for bringing your own license scenario. - * - * @return the licenseType value. - */ - public IntegrationRuntimeLicenseType licenseType() { - return this.licenseType; - } - - /** - * Set the licenseType property: License type for bringing your own license scenario. - * - * @param licenseType the licenseType value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withLicenseType(IntegrationRuntimeLicenseType licenseType) { - this.licenseType = licenseType; - return this; - } - - /** - * Get the customSetupScriptProperties property: Custom setup script properties for a managed dedicated integration - * runtime. - * - * @return the customSetupScriptProperties value. - */ - public IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties() { - return this.customSetupScriptProperties; - } - - /** - * Set the customSetupScriptProperties property: Custom setup script properties for a managed dedicated integration - * runtime. - * - * @param customSetupScriptProperties the customSetupScriptProperties value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withCustomSetupScriptProperties( - IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties) { - this.customSetupScriptProperties = customSetupScriptProperties; - return this; - } - - /** - * Get the dataProxyProperties property: Data proxy properties for a managed dedicated integration runtime. - * - * @return the dataProxyProperties value. - */ - public IntegrationRuntimeDataProxyProperties dataProxyProperties() { - return this.dataProxyProperties; - } - - /** - * Set the dataProxyProperties property: Data proxy properties for a managed dedicated integration runtime. - * - * @param dataProxyProperties the dataProxyProperties value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withDataProxyProperties( - IntegrationRuntimeDataProxyProperties dataProxyProperties) { - this.dataProxyProperties = dataProxyProperties; - return this; - } - - /** - * Get the edition property: The edition for the SSIS Integration Runtime. - * - * @return the edition value. - */ - public IntegrationRuntimeEdition edition() { - return this.edition; - } - - /** - * Set the edition property: The edition for the SSIS Integration Runtime. - * - * @param edition the edition value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withEdition(IntegrationRuntimeEdition edition) { - this.edition = edition; - return this; - } - - /** - * Get the expressCustomSetupProperties property: Custom setup without script properties for a SSIS integration - * runtime. - * - * @return the expressCustomSetupProperties value. - */ - public List expressCustomSetupProperties() { - return this.expressCustomSetupProperties; - } - - /** - * Set the expressCustomSetupProperties property: Custom setup without script properties for a SSIS integration - * runtime. - * - * @param expressCustomSetupProperties the expressCustomSetupProperties value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withExpressCustomSetupProperties( - List expressCustomSetupProperties) { - this.expressCustomSetupProperties = expressCustomSetupProperties; - return this; - } - - /** - * Get the packageStores property: Package stores for the SSIS Integration Runtime. - * - * @return the packageStores value. - */ - public List packageStores() { - return this.packageStores; - } - - /** - * Set the packageStores property: Package stores for the SSIS Integration Runtime. - * - * @param packageStores the packageStores value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withPackageStores(List packageStores) { - this.packageStores = packageStores; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Get the additionalProperties property: SSIS properties for managed integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: SSIS properties for managed integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeSsisProperties object itself. - */ - public IntegrationRuntimeSsisProperties withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (catalogInfo() != null) { - catalogInfo().validate(); - } - if (customSetupScriptProperties() != null) { - customSetupScriptProperties().validate(); - } - if (dataProxyProperties() != null) { - dataProxyProperties().validate(); - } - if (expressCustomSetupProperties() != null) { - expressCustomSetupProperties().forEach(e -> e.validate()); - } - if (packageStores() != null) { - packageStores().forEach(e -> e.validate()); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeState.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeState.java deleted file mode 100644 index 15837aa86bd14..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeState.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeState. */ -public final class IntegrationRuntimeState extends ExpandableStringEnum { - /** Static value Initial for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState INITIAL = fromString("Initial"); - - /** Static value Stopped for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState STOPPED = fromString("Stopped"); - - /** Static value Started for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState STARTED = fromString("Started"); - - /** Static value Starting for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState STARTING = fromString("Starting"); - - /** Static value Stopping for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState STOPPING = fromString("Stopping"); - - /** Static value NeedRegistration for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState NEED_REGISTRATION = fromString("NeedRegistration"); - - /** Static value Online for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState ONLINE = fromString("Online"); - - /** Static value Limited for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState LIMITED = fromString("Limited"); - - /** Static value Offline for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState OFFLINE = fromString("Offline"); - - /** Static value AccessDenied for IntegrationRuntimeState. */ - public static final IntegrationRuntimeState ACCESS_DENIED = fromString("AccessDenied"); - - /** - * Creates or finds a IntegrationRuntimeState from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeState. - */ - @JsonCreator - public static IntegrationRuntimeState fromString(String name) { - return fromString(name, IntegrationRuntimeState.class); - } - - /** @return known IntegrationRuntimeState values. */ - public static Collection values() { - return values(IntegrationRuntimeState.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeStatus.java deleted file mode 100644 index bdc49bcf49a06..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeStatus.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Integration runtime status. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = IntegrationRuntimeStatus.class) -@JsonTypeName("IntegrationRuntimeStatus") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Managed", value = ManagedIntegrationRuntimeStatus.class), - @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntimeStatus.class) -}) -@Fluent -public class IntegrationRuntimeStatus { - /* - * The data factory name which the integration runtime belong to. - */ - @JsonProperty(value = "dataFactoryName", access = JsonProperty.Access.WRITE_ONLY) - private String dataFactoryName; - - /* - * The state of integration runtime. - */ - @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) - private IntegrationRuntimeState state; - - /* - * Integration runtime status. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the dataFactoryName property: The data factory name which the integration runtime belong to. - * - * @return the dataFactoryName value. - */ - public String dataFactoryName() { - return this.dataFactoryName; - } - - /** - * Get the state property: The state of integration runtime. - * - * @return the state value. - */ - public IntegrationRuntimeState state() { - return this.state; - } - - /** - * Get the additionalProperties property: Integration runtime status. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Integration runtime status. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeStatus object itself. - */ - public IntegrationRuntimeStatus withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeStatusResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeStatusResponse.java deleted file mode 100644 index 3562e6ada8142..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeStatusResponse.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; - -/** An immutable client-side representation of IntegrationRuntimeStatusResponse. */ -public interface IntegrationRuntimeStatusResponse { - /** - * Gets the name property: The integration runtime name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the properties property: Integration runtime properties. - * - * @return the properties value. - */ - IntegrationRuntimeStatus properties(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner object. - * - * @return the inner object. - */ - IntegrationRuntimeStatusResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeType.java deleted file mode 100644 index fe28ac6b2be15..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeType. */ -public final class IntegrationRuntimeType extends ExpandableStringEnum { - /** Static value Managed for IntegrationRuntimeType. */ - public static final IntegrationRuntimeType MANAGED = fromString("Managed"); - - /** Static value SelfHosted for IntegrationRuntimeType. */ - public static final IntegrationRuntimeType SELF_HOSTED = fromString("SelfHosted"); - - /** - * Creates or finds a IntegrationRuntimeType from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeType. - */ - @JsonCreator - public static IntegrationRuntimeType fromString(String name) { - return fromString(name, IntegrationRuntimeType.class); - } - - /** @return known IntegrationRuntimeType values. */ - public static Collection values() { - return values(IntegrationRuntimeType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeUpdateResult.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeUpdateResult.java deleted file mode 100644 index 561925b98f065..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeUpdateResult.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for IntegrationRuntimeUpdateResult. */ -public final class IntegrationRuntimeUpdateResult extends ExpandableStringEnum { - /** Static value None for IntegrationRuntimeUpdateResult. */ - public static final IntegrationRuntimeUpdateResult NONE = fromString("None"); - - /** Static value Succeed for IntegrationRuntimeUpdateResult. */ - public static final IntegrationRuntimeUpdateResult SUCCEED = fromString("Succeed"); - - /** Static value Fail for IntegrationRuntimeUpdateResult. */ - public static final IntegrationRuntimeUpdateResult FAIL = fromString("Fail"); - - /** - * Creates or finds a IntegrationRuntimeUpdateResult from its string representation. - * - * @param name a name to look for. - * @return the corresponding IntegrationRuntimeUpdateResult. - */ - @JsonCreator - public static IntegrationRuntimeUpdateResult fromString(String name) { - return fromString(name, IntegrationRuntimeUpdateResult.class); - } - - /** @return known IntegrationRuntimeUpdateResult values. */ - public static Collection values() { - return values(IntegrationRuntimeUpdateResult.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeVNetProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeVNetProperties.java deleted file mode 100644 index 9c7974535e50f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeVNetProperties.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** VNet properties for managed integration runtime. */ -@Fluent -public final class IntegrationRuntimeVNetProperties { - /* - * The ID of the VNet that this integration runtime will join. - */ - @JsonProperty(value = "vNetId") - private String vNetId; - - /* - * The name of the subnet this integration runtime will join. - */ - @JsonProperty(value = "subnet") - private String subnet; - - /* - * Resource IDs of the public IP addresses that this integration runtime - * will use. - */ - @JsonProperty(value = "publicIPs") - private List publicIPs; - - /* - * The ID of subnet, to which this Azure-SSIS integration runtime will be - * joined. - */ - @JsonProperty(value = "subnetId") - private String subnetId; - - /* - * VNet properties for managed integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the vNetId property: The ID of the VNet that this integration runtime will join. - * - * @return the vNetId value. - */ - public String vNetId() { - return this.vNetId; - } - - /** - * Set the vNetId property: The ID of the VNet that this integration runtime will join. - * - * @param vNetId the vNetId value to set. - * @return the IntegrationRuntimeVNetProperties object itself. - */ - public IntegrationRuntimeVNetProperties withVNetId(String vNetId) { - this.vNetId = vNetId; - return this; - } - - /** - * Get the subnet property: The name of the subnet this integration runtime will join. - * - * @return the subnet value. - */ - public String subnet() { - return this.subnet; - } - - /** - * Set the subnet property: The name of the subnet this integration runtime will join. - * - * @param subnet the subnet value to set. - * @return the IntegrationRuntimeVNetProperties object itself. - */ - public IntegrationRuntimeVNetProperties withSubnet(String subnet) { - this.subnet = subnet; - return this; - } - - /** - * Get the publicIPs property: Resource IDs of the public IP addresses that this integration runtime will use. - * - * @return the publicIPs value. - */ - public List publicIPs() { - return this.publicIPs; - } - - /** - * Set the publicIPs property: Resource IDs of the public IP addresses that this integration runtime will use. - * - * @param publicIPs the publicIPs value to set. - * @return the IntegrationRuntimeVNetProperties object itself. - */ - public IntegrationRuntimeVNetProperties withPublicIPs(List publicIPs) { - this.publicIPs = publicIPs; - return this; - } - - /** - * Get the subnetId property: The ID of subnet, to which this Azure-SSIS integration runtime will be joined. - * - * @return the subnetId value. - */ - public String subnetId() { - return this.subnetId; - } - - /** - * Set the subnetId property: The ID of subnet, to which this Azure-SSIS integration runtime will be joined. - * - * @param subnetId the subnetId value to set. - * @return the IntegrationRuntimeVNetProperties object itself. - */ - public IntegrationRuntimeVNetProperties withSubnetId(String subnetId) { - this.subnetId = subnetId; - return this; - } - - /** - * Get the additionalProperties property: VNet properties for managed integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: VNet properties for managed integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the IntegrationRuntimeVNetProperties object itself. - */ - public IntegrationRuntimeVNetProperties withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimes.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimes.java deleted file mode 100644 index 2e0cab4b06dfc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimes.java +++ /dev/null @@ -1,535 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of IntegrationRuntimes. */ -public interface IntegrationRuntimes { - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists integration runtimes. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime. - */ - IntegrationRuntimeResource get(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - String ifNoneMatch, - Context context); - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Deletes an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime. - */ - IntegrationRuntimeStatusResponse getStatus( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets detailed status information for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return detailed status information for an integration runtime along with {@link Response}. - */ - Response getStatusWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime. - */ - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. - */ - Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - */ - IntegrationRuntimeConnectionInfo getConnectionInfo( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Gets the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the on-premises integration runtime connection information for encrypting the on-premises data source - * credentials along with {@link Response}. - */ - Response getConnectionInfoWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - IntegrationRuntimeAuthKeys regenerateAuthKey( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); - - /** - * Regenerates the authentication key for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - Response regenerateAuthKeyWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context); - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys. - */ - IntegrationRuntimeAuthKeys listAuthKeys( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Retrieves the authentication keys for an integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime authentication keys along with {@link Response}. - */ - Response listAuthKeysWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - IntegrationRuntimeStatusResponse start(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Starts a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - IntegrationRuntimeStatusResponse start( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Stops a ManagedReserved type integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void syncCredentials(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response syncCredentialsWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - */ - IntegrationRuntimeMonitoringData getMonitoringData( - String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this - * integration runtime along with {@link Response}. - */ - Response getMonitoringDataWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void upgrade(String resourceGroupName, String factoryName, String integrationRuntimeName); - - /** - * Upgrade self-hosted integration runtime to latest version if availability. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response upgradeWithResponse( - String resourceGroupName, String factoryName, String integrationRuntimeName, Context context); - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void removeLinks( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest); - - /** - * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response removeLinksWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, - Context context); - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response. - */ - IntegrationRuntimeStatusResponse createLinkedIntegrationRuntime( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest); - - /** - * Create a linked integration runtime entry in a shared integration runtime. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param integrationRuntimeName The integration runtime name. - * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response}. - */ - Response createLinkedIntegrationRuntimeWithResponse( - String resourceGroupName, - String factoryName, - String integrationRuntimeName, - CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, - Context context); - - /** - * Gets an integration runtime. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime along with {@link Response}. - */ - IntegrationRuntimeResource getById(String id); - - /** - * Gets an integration runtime. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes an integration runtime. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes an integration runtime. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new IntegrationRuntimeResource resource. - * - * @param name resource name. - * @return the first stage of the new IntegrationRuntimeResource definition. - */ - IntegrationRuntimeResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java deleted file mode 100644 index 9bdf2c0e93cd9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.JiraLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Jira Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Jira") -@Fluent -public final class JiraLinkedService extends LinkedService { - /* - * Jira Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private JiraLinkedServiceTypeProperties innerTypeProperties = new JiraLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Jira Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private JiraLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public JiraLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The IP address or host name of the Jira service. (e.g. jira.example.com). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The IP address or host name of the Jira service. (e.g. jira.example.com). - * - * @param host the host value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port that the Jira server uses to listen for client connections. The default value - * is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port that the Jira server uses to listen for client connections. The default value - * is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - * - * @param port the port value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the username property: The user name that you use to access Jira Service. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name that you use to access Jira Service. - * - * @param username the username value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username field. - * - * @param password the password value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the JiraLinkedService object itself. - */ - public JiraLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model JiraLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JiraLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java deleted file mode 100644 index 3894f7f20e5e0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Jira Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("JiraObject") -@Fluent -public final class JiraObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public JiraObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the JiraObjectDataset object itself. - */ - public JiraObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraSource.java deleted file mode 100644 index 79fc9c88f694e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Jira Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("JiraSource") -@Fluent -public final class JiraSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the JiraSource object itself. - */ - public JiraSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public JiraSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java deleted file mode 100644 index bca463d8bed23..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.JsonDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Json dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Json") -@Fluent -public final class JsonDataset extends Dataset { - /* - * Json dataset properties. - */ - @JsonProperty(value = "typeProperties") - private JsonDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Json dataset properties. - * - * @return the innerTypeProperties value. - */ - private JsonDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the json data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the json data storage. - * - * @param location the location value to set. - * @return the JsonDataset object itself. - */ - public JsonDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JsonDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encodingName(); - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the JsonDataset object itself. - */ - public JsonDataset withEncodingName(Object encodingName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JsonDatasetTypeProperties(); - } - this.innerTypeProperties().withEncodingName(encodingName); - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the JsonDataset object itself. - */ - public JsonDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JsonDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonFormat.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonFormat.java deleted file mode 100644 index e2cffcf8cbdca..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonFormat.java +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The data stored in JSON format. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("JsonFormat") -@Fluent -public final class JsonFormat extends DatasetStorageFormat { - /* - * File pattern of JSON. To be more specific, the way of separating a - * collection of JSON objects. The default value is 'setOfObjects'. It is - * case-sensitive. - */ - @JsonProperty(value = "filePattern") - private Object filePattern; - - /* - * The character used to separate nesting levels. Default value is '.' - * (dot). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "nestingSeparator") - private Object nestingSeparator; - - /* - * The code page name of the preferred encoding. If not provided, the - * default value is 'utf-8', unless the byte order mark (BOM) denotes - * another Unicode encoding. The full list of supported values can be found - * in the 'Name' column of the table of encodings in the following - * reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * The JSONPath of the JSON array element to be flattened. Example: - * "$.ArrayPath". Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "jsonNodeReference") - private Object jsonNodeReference; - - /* - * The JSONPath definition for each column mapping with a customized column - * name to extract data from JSON file. For fields under root object, start - * with "$"; for fields inside the array chosen by jsonNodeReference - * property, start from the array element. Example: {"Column1": - * "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or - * Expression with resultType object). - */ - @JsonProperty(value = "jsonPathDefinition") - private Object jsonPathDefinition; - - /** - * Get the filePattern property: File pattern of JSON. To be more specific, the way of separating a collection of - * JSON objects. The default value is 'setOfObjects'. It is case-sensitive. - * - * @return the filePattern value. - */ - public Object filePattern() { - return this.filePattern; - } - - /** - * Set the filePattern property: File pattern of JSON. To be more specific, the way of separating a collection of - * JSON objects. The default value is 'setOfObjects'. It is case-sensitive. - * - * @param filePattern the filePattern value to set. - * @return the JsonFormat object itself. - */ - public JsonFormat withFilePattern(Object filePattern) { - this.filePattern = filePattern; - return this; - } - - /** - * Get the nestingSeparator property: The character used to separate nesting levels. Default value is '.' (dot). - * Type: string (or Expression with resultType string). - * - * @return the nestingSeparator value. - */ - public Object nestingSeparator() { - return this.nestingSeparator; - } - - /** - * Set the nestingSeparator property: The character used to separate nesting levels. Default value is '.' (dot). - * Type: string (or Expression with resultType string). - * - * @param nestingSeparator the nestingSeparator value to set. - * @return the JsonFormat object itself. - */ - public JsonFormat withNestingSeparator(Object nestingSeparator) { - this.nestingSeparator = nestingSeparator; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If not provided, the default value - * is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported values - * can be found in the 'Name' column of the table of encodings in the following reference: - * https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If not provided, the default value - * is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported values - * can be found in the 'Name' column of the table of encodings in the following reference: - * https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the JsonFormat object itself. - */ - public JsonFormat withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the jsonNodeReference property: The JSONPath of the JSON array element to be flattened. Example: - * "$.ArrayPath". Type: string (or Expression with resultType string). - * - * @return the jsonNodeReference value. - */ - public Object jsonNodeReference() { - return this.jsonNodeReference; - } - - /** - * Set the jsonNodeReference property: The JSONPath of the JSON array element to be flattened. Example: - * "$.ArrayPath". Type: string (or Expression with resultType string). - * - * @param jsonNodeReference the jsonNodeReference value to set. - * @return the JsonFormat object itself. - */ - public JsonFormat withJsonNodeReference(Object jsonNodeReference) { - this.jsonNodeReference = jsonNodeReference; - return this; - } - - /** - * Get the jsonPathDefinition property: The JSONPath definition for each column mapping with a customized column - * name to extract data from JSON file. For fields under root object, start with "$"; for fields inside the array - * chosen by jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", - * "Column2": "Column2PathInArray"}. Type: object (or Expression with resultType object). - * - * @return the jsonPathDefinition value. - */ - public Object jsonPathDefinition() { - return this.jsonPathDefinition; - } - - /** - * Set the jsonPathDefinition property: The JSONPath definition for each column mapping with a customized column - * name to extract data from JSON file. For fields under root object, start with "$"; for fields inside the array - * chosen by jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", - * "Column2": "Column2PathInArray"}. Type: object (or Expression with resultType object). - * - * @param jsonPathDefinition the jsonPathDefinition value to set. - * @return the JsonFormat object itself. - */ - public JsonFormat withJsonPathDefinition(Object jsonPathDefinition) { - this.jsonPathDefinition = jsonPathDefinition; - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonFormat withSerializer(Object serializer) { - super.withSerializer(serializer); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonFormat withDeserializer(Object deserializer) { - super.withDeserializer(deserializer); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonReadSettings.java deleted file mode 100644 index 684320f57b62b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonReadSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Json read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("JsonReadSettings") -@Fluent -public final class JsonReadSettings extends FormatReadSettings { - /* - * Compression settings. - */ - @JsonProperty(value = "compressionProperties") - private CompressionReadSettings compressionProperties; - - /** - * Get the compressionProperties property: Compression settings. - * - * @return the compressionProperties value. - */ - public CompressionReadSettings compressionProperties() { - return this.compressionProperties; - } - - /** - * Set the compressionProperties property: Compression settings. - * - * @param compressionProperties the compressionProperties value to set. - * @return the JsonReadSettings object itself. - */ - public JsonReadSettings withCompressionProperties(CompressionReadSettings compressionProperties) { - this.compressionProperties = compressionProperties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (compressionProperties() != null) { - compressionProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonSink.java deleted file mode 100644 index 0d3b2353d3c61..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonSink.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Json sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("JsonSink") -@Fluent -public final class JsonSink extends CopySink { - /* - * Json store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreWriteSettings storeSettings; - - /* - * Json format settings. - */ - @JsonProperty(value = "formatSettings") - private JsonWriteSettings formatSettings; - - /** - * Get the storeSettings property: Json store settings. - * - * @return the storeSettings value. - */ - public StoreWriteSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Json store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the JsonSink object itself. - */ - public JsonSink withStoreSettings(StoreWriteSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: Json format settings. - * - * @return the formatSettings value. - */ - public JsonWriteSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: Json format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the JsonSink object itself. - */ - public JsonSink withFormatSettings(JsonWriteSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonSource.java deleted file mode 100644 index 521bd4beb2709..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonSource.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Json source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("JsonSource") -@Fluent -public final class JsonSource extends CopySource { - /* - * Json store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * Json format settings. - */ - @JsonProperty(value = "formatSettings") - private JsonReadSettings formatSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the storeSettings property: Json store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Json store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the JsonSource object itself. - */ - public JsonSource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: Json format settings. - * - * @return the formatSettings value. - */ - public JsonReadSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: Json format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the JsonSource object itself. - */ - public JsonSource withFormatSettings(JsonReadSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the JsonSource object itself. - */ - public JsonSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonWriteSettings.java deleted file mode 100644 index 129d56e1d2eb7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonWriteSettings.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Json write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("JsonWriteSettings") -@Fluent -public final class JsonWriteSettings extends FormatWriteSettings { - /* - * File pattern of JSON. This setting controls the way a collection of JSON - * objects will be treated. The default value is 'setOfObjects'. It is - * case-sensitive. - */ - @JsonProperty(value = "filePattern") - private Object filePattern; - - /** - * Get the filePattern property: File pattern of JSON. This setting controls the way a collection of JSON objects - * will be treated. The default value is 'setOfObjects'. It is case-sensitive. - * - * @return the filePattern value. - */ - public Object filePattern() { - return this.filePattern; - } - - /** - * Set the filePattern property: File pattern of JSON. This setting controls the way a collection of JSON objects - * will be treated. The default value is 'setOfObjects'. It is case-sensitive. - * - * @param filePattern the filePattern value to set. - * @return the JsonWriteSettings object itself. - */ - public JsonWriteSettings withFilePattern(Object filePattern) { - this.filePattern = filePattern; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntime.java deleted file mode 100644 index 78934811e4023..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntime.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; - -/** The linked integration runtime information. */ -@Immutable -public final class LinkedIntegrationRuntime { - /* - * The name of the linked integration runtime. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The subscription ID for which the linked integration runtime belong to. - */ - @JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY) - private String subscriptionId; - - /* - * The name of the data factory for which the linked integration runtime - * belong to. - */ - @JsonProperty(value = "dataFactoryName", access = JsonProperty.Access.WRITE_ONLY) - private String dataFactoryName; - - /* - * The location of the data factory for which the linked integration - * runtime belong to. - */ - @JsonProperty(value = "dataFactoryLocation", access = JsonProperty.Access.WRITE_ONLY) - private String dataFactoryLocation; - - /* - * The creating time of the linked integration runtime. - */ - @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createTime; - - /** - * Get the name property: The name of the linked integration runtime. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the subscriptionId property: The subscription ID for which the linked integration runtime belong to. - * - * @return the subscriptionId value. - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Get the dataFactoryName property: The name of the data factory for which the linked integration runtime belong - * to. - * - * @return the dataFactoryName value. - */ - public String dataFactoryName() { - return this.dataFactoryName; - } - - /** - * Get the dataFactoryLocation property: The location of the data factory for which the linked integration runtime - * belong to. - * - * @return the dataFactoryLocation value. - */ - public String dataFactoryLocation() { - return this.dataFactoryLocation; - } - - /** - * Get the createTime property: The creating time of the linked integration runtime. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.createTime; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeKeyAuthorization.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeKeyAuthorization.java deleted file mode 100644 index af6f7e24a9890..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeKeyAuthorization.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The key authorization type integration runtime. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") -@JsonTypeName("Key") -@Fluent -public final class LinkedIntegrationRuntimeKeyAuthorization extends LinkedIntegrationRuntimeType { - /* - * The key used for authorization. - */ - @JsonProperty(value = "key", required = true) - private SecureString key; - - /** - * Get the key property: The key used for authorization. - * - * @return the key value. - */ - public SecureString key() { - return this.key; - } - - /** - * Set the key property: The key used for authorization. - * - * @param key the key value to set. - * @return the LinkedIntegrationRuntimeKeyAuthorization object itself. - */ - public LinkedIntegrationRuntimeKeyAuthorization withKey(SecureString key) { - this.key = key; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (key() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property key in model LinkedIntegrationRuntimeKeyAuthorization")); - } else { - key().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedIntegrationRuntimeKeyAuthorization.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeRbacAuthorization.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeRbacAuthorization.java deleted file mode 100644 index aee13ff60d1e4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeRbacAuthorization.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The role based access control (RBAC) authorization type integration runtime. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") -@JsonTypeName("RBAC") -@Fluent -public final class LinkedIntegrationRuntimeRbacAuthorization extends LinkedIntegrationRuntimeType { - /* - * The resource identifier of the integration runtime to be shared. - */ - @JsonProperty(value = "resourceId", required = true) - private String resourceId; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the resourceId property: The resource identifier of the integration runtime to be shared. - * - * @return the resourceId value. - */ - public String resourceId() { - return this.resourceId; - } - - /** - * Set the resourceId property: The resource identifier of the integration runtime to be shared. - * - * @param resourceId the resourceId value to set. - * @return the LinkedIntegrationRuntimeRbacAuthorization object itself. - */ - public LinkedIntegrationRuntimeRbacAuthorization withResourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the LinkedIntegrationRuntimeRbacAuthorization object itself. - */ - public LinkedIntegrationRuntimeRbacAuthorization withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (resourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property resourceId in model LinkedIntegrationRuntimeRbacAuthorization")); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedIntegrationRuntimeRbacAuthorization.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeRequest.java deleted file mode 100644 index b76ceeae86ecf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeRequest.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Data factory name for linked integration runtime request. */ -@Fluent -public final class LinkedIntegrationRuntimeRequest { - /* - * The data factory name for linked integration runtime. - */ - @JsonProperty(value = "factoryName", required = true) - private String linkedFactoryName; - - /** - * Get the linkedFactoryName property: The data factory name for linked integration runtime. - * - * @return the linkedFactoryName value. - */ - public String linkedFactoryName() { - return this.linkedFactoryName; - } - - /** - * Set the linkedFactoryName property: The data factory name for linked integration runtime. - * - * @param linkedFactoryName the linkedFactoryName value to set. - * @return the LinkedIntegrationRuntimeRequest object itself. - */ - public LinkedIntegrationRuntimeRequest withLinkedFactoryName(String linkedFactoryName) { - this.linkedFactoryName = linkedFactoryName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedFactoryName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedFactoryName in model LinkedIntegrationRuntimeRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedIntegrationRuntimeRequest.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeType.java deleted file mode 100644 index b1a1c7c789d00..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedIntegrationRuntimeType.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The base definition of a linked integration runtime. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "authorizationType", - defaultImpl = LinkedIntegrationRuntimeType.class) -@JsonTypeName("LinkedIntegrationRuntimeType") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Key", value = LinkedIntegrationRuntimeKeyAuthorization.class), - @JsonSubTypes.Type(name = "RBAC", value = LinkedIntegrationRuntimeRbacAuthorization.class) -}) -@Immutable -public class LinkedIntegrationRuntimeType { - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java deleted file mode 100644 index 60b3003eb39b3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The Azure Data Factory nested object which contains the information and credential which can be used to connect with - * related store or compute resource. - */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = LinkedService.class) -@JsonTypeName("LinkedService") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "AzureStorage", value = AzureStorageLinkedService.class), - @JsonSubTypes.Type(name = "AzureBlobStorage", value = AzureBlobStorageLinkedService.class), - @JsonSubTypes.Type(name = "AzureTableStorage", value = AzureTableStorageLinkedService.class), - @JsonSubTypes.Type(name = "AzureSqlDW", value = AzureSqlDWLinkedService.class), - @JsonSubTypes.Type(name = "SqlServer", value = SqlServerLinkedService.class), - @JsonSubTypes.Type(name = "AmazonRdsForSqlServer", value = AmazonRdsForSqlServerLinkedService.class), - @JsonSubTypes.Type(name = "AzureSqlDatabase", value = AzureSqlDatabaseLinkedService.class), - @JsonSubTypes.Type(name = "AzureSqlMI", value = AzureSqlMILinkedService.class), - @JsonSubTypes.Type(name = "AzureBatch", value = AzureBatchLinkedService.class), - @JsonSubTypes.Type(name = "AzureKeyVault", value = AzureKeyVaultLinkedService.class), - @JsonSubTypes.Type(name = "CosmosDb", value = CosmosDbLinkedService.class), - @JsonSubTypes.Type(name = "Dynamics", value = DynamicsLinkedService.class), - @JsonSubTypes.Type(name = "DynamicsCrm", value = DynamicsCrmLinkedService.class), - @JsonSubTypes.Type(name = "CommonDataServiceForApps", value = CommonDataServiceForAppsLinkedService.class), - @JsonSubTypes.Type(name = "HDInsight", value = HDInsightLinkedService.class), - @JsonSubTypes.Type(name = "FileServer", value = FileServerLinkedService.class), - @JsonSubTypes.Type(name = "AzureFileStorage", value = AzureFileStorageLinkedService.class), - @JsonSubTypes.Type(name = "AmazonS3Compatible", value = AmazonS3CompatibleLinkedService.class), - @JsonSubTypes.Type(name = "OracleCloudStorage", value = OracleCloudStorageLinkedService.class), - @JsonSubTypes.Type(name = "GoogleCloudStorage", value = GoogleCloudStorageLinkedService.class), - @JsonSubTypes.Type(name = "Oracle", value = OracleLinkedService.class), - @JsonSubTypes.Type(name = "AmazonRdsForOracle", value = AmazonRdsForOracleLinkedService.class), - @JsonSubTypes.Type(name = "AzureMySql", value = AzureMySqlLinkedService.class), - @JsonSubTypes.Type(name = "MySql", value = MySqlLinkedService.class), - @JsonSubTypes.Type(name = "PostgreSql", value = PostgreSqlLinkedService.class), - @JsonSubTypes.Type(name = "Sybase", value = SybaseLinkedService.class), - @JsonSubTypes.Type(name = "Db2", value = Db2LinkedService.class), - @JsonSubTypes.Type(name = "Teradata", value = TeradataLinkedService.class), - @JsonSubTypes.Type(name = "AzureML", value = AzureMLLinkedService.class), - @JsonSubTypes.Type(name = "AzureMLService", value = AzureMLServiceLinkedService.class), - @JsonSubTypes.Type(name = "Odbc", value = OdbcLinkedService.class), - @JsonSubTypes.Type(name = "Informix", value = InformixLinkedService.class), - @JsonSubTypes.Type(name = "MicrosoftAccess", value = MicrosoftAccessLinkedService.class), - @JsonSubTypes.Type(name = "Hdfs", value = HdfsLinkedService.class), - @JsonSubTypes.Type(name = "OData", value = ODataLinkedService.class), - @JsonSubTypes.Type(name = "Web", value = WebLinkedService.class), - @JsonSubTypes.Type(name = "Cassandra", value = CassandraLinkedService.class), - @JsonSubTypes.Type(name = "MongoDb", value = MongoDbLinkedService.class), - @JsonSubTypes.Type(name = "MongoDbAtlas", value = MongoDbAtlasLinkedService.class), - @JsonSubTypes.Type(name = "MongoDbV2", value = MongoDbV2LinkedService.class), - @JsonSubTypes.Type(name = "CosmosDbMongoDbApi", value = CosmosDbMongoDbApiLinkedService.class), - @JsonSubTypes.Type(name = "AzureDataLakeStore", value = AzureDataLakeStoreLinkedService.class), - @JsonSubTypes.Type(name = "AzureBlobFS", value = AzureBlobFSLinkedService.class), - @JsonSubTypes.Type(name = "Office365", value = Office365LinkedService.class), - @JsonSubTypes.Type(name = "Salesforce", value = SalesforceLinkedService.class), - @JsonSubTypes.Type(name = "SalesforceServiceCloud", value = SalesforceServiceCloudLinkedService.class), - @JsonSubTypes.Type(name = "SapCloudForCustomer", value = SapCloudForCustomerLinkedService.class), - @JsonSubTypes.Type(name = "SapEcc", value = SapEccLinkedService.class), - @JsonSubTypes.Type(name = "SapOpenHub", value = SapOpenHubLinkedService.class), - @JsonSubTypes.Type(name = "RestService", value = RestServiceLinkedService.class), - @JsonSubTypes.Type(name = "AmazonS3", value = AmazonS3LinkedService.class), - @JsonSubTypes.Type(name = "TeamDesk", value = TeamDeskLinkedService.class), - @JsonSubTypes.Type(name = "Quickbase", value = QuickbaseLinkedService.class), - @JsonSubTypes.Type(name = "Smartsheet", value = SmartsheetLinkedService.class), - @JsonSubTypes.Type(name = "Zendesk", value = ZendeskLinkedService.class), - @JsonSubTypes.Type(name = "AmazonRedshift", value = AmazonRedshiftLinkedService.class), - @JsonSubTypes.Type(name = "CustomDataSource", value = CustomDataSourceLinkedService.class), - @JsonSubTypes.Type(name = "AzureSearch", value = AzureSearchLinkedService.class), - @JsonSubTypes.Type(name = "HttpServer", value = HttpLinkedService.class), - @JsonSubTypes.Type(name = "FtpServer", value = FtpServerLinkedService.class), - @JsonSubTypes.Type(name = "Sftp", value = SftpServerLinkedService.class), - @JsonSubTypes.Type(name = "SapBW", value = SapBWLinkedService.class), - @JsonSubTypes.Type(name = "SapHana", value = SapHanaLinkedService.class), - @JsonSubTypes.Type(name = "AmazonMWS", value = AmazonMwsLinkedService.class), - @JsonSubTypes.Type(name = "AzurePostgreSql", value = AzurePostgreSqlLinkedService.class), - @JsonSubTypes.Type(name = "Concur", value = ConcurLinkedService.class), - @JsonSubTypes.Type(name = "Couchbase", value = CouchbaseLinkedService.class), - @JsonSubTypes.Type(name = "Drill", value = DrillLinkedService.class), - @JsonSubTypes.Type(name = "Eloqua", value = EloquaLinkedService.class), - @JsonSubTypes.Type(name = "GoogleBigQuery", value = GoogleBigQueryLinkedService.class), - @JsonSubTypes.Type(name = "Greenplum", value = GreenplumLinkedService.class), - @JsonSubTypes.Type(name = "HBase", value = HBaseLinkedService.class), - @JsonSubTypes.Type(name = "Hive", value = HiveLinkedService.class), - @JsonSubTypes.Type(name = "Hubspot", value = HubspotLinkedService.class), - @JsonSubTypes.Type(name = "Impala", value = ImpalaLinkedService.class), - @JsonSubTypes.Type(name = "Jira", value = JiraLinkedService.class), - @JsonSubTypes.Type(name = "Magento", value = MagentoLinkedService.class), - @JsonSubTypes.Type(name = "MariaDB", value = MariaDBLinkedService.class), - @JsonSubTypes.Type(name = "AzureMariaDB", value = AzureMariaDBLinkedService.class), - @JsonSubTypes.Type(name = "Marketo", value = MarketoLinkedService.class), - @JsonSubTypes.Type(name = "Paypal", value = PaypalLinkedService.class), - @JsonSubTypes.Type(name = "Phoenix", value = PhoenixLinkedService.class), - @JsonSubTypes.Type(name = "Presto", value = PrestoLinkedService.class), - @JsonSubTypes.Type(name = "QuickBooks", value = QuickBooksLinkedService.class), - @JsonSubTypes.Type(name = "ServiceNow", value = ServiceNowLinkedService.class), - @JsonSubTypes.Type(name = "Shopify", value = ShopifyLinkedService.class), - @JsonSubTypes.Type(name = "Spark", value = SparkLinkedService.class), - @JsonSubTypes.Type(name = "Square", value = SquareLinkedService.class), - @JsonSubTypes.Type(name = "Xero", value = XeroLinkedService.class), - @JsonSubTypes.Type(name = "Zoho", value = ZohoLinkedService.class), - @JsonSubTypes.Type(name = "Vertica", value = VerticaLinkedService.class), - @JsonSubTypes.Type(name = "Netezza", value = NetezzaLinkedService.class), - @JsonSubTypes.Type(name = "SalesforceMarketingCloud", value = SalesforceMarketingCloudLinkedService.class), - @JsonSubTypes.Type(name = "HDInsightOnDemand", value = HDInsightOnDemandLinkedService.class), - @JsonSubTypes.Type(name = "AzureDataLakeAnalytics", value = AzureDataLakeAnalyticsLinkedService.class), - @JsonSubTypes.Type(name = "AzureDatabricks", value = AzureDatabricksLinkedService.class), - @JsonSubTypes.Type(name = "AzureDatabricksDeltaLake", value = AzureDatabricksDeltaLakeLinkedService.class), - @JsonSubTypes.Type(name = "Responsys", value = ResponsysLinkedService.class), - @JsonSubTypes.Type(name = "DynamicsAX", value = DynamicsAXLinkedService.class), - @JsonSubTypes.Type(name = "OracleServiceCloud", value = OracleServiceCloudLinkedService.class), - @JsonSubTypes.Type(name = "GoogleAdWords", value = GoogleAdWordsLinkedService.class), - @JsonSubTypes.Type(name = "SapTable", value = SapTableLinkedService.class), - @JsonSubTypes.Type(name = "AzureDataExplorer", value = AzureDataExplorerLinkedService.class), - @JsonSubTypes.Type(name = "AzureFunction", value = AzureFunctionLinkedService.class), - @JsonSubTypes.Type(name = "Snowflake", value = SnowflakeLinkedService.class), - @JsonSubTypes.Type(name = "SharePointOnlineList", value = SharePointOnlineListLinkedService.class) -}) -@Fluent -public class LinkedService { - /* - * The integration runtime reference. - */ - @JsonProperty(value = "connectVia") - private IntegrationRuntimeReference connectVia; - - /* - * Linked service description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Parameters for linked service. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * List of tags that can be used for describing the linked service. - */ - @JsonProperty(value = "annotations") - private List annotations; - - /* - * The Azure Data Factory nested object which contains the information and - * credential which can be used to connect with related store or compute - * resource. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the connectVia property: The integration runtime reference. - * - * @return the connectVia value. - */ - public IntegrationRuntimeReference connectVia() { - return this.connectVia; - } - - /** - * Set the connectVia property: The integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the LinkedService object itself. - */ - public LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - this.connectVia = connectVia; - return this; - } - - /** - * Get the description property: Linked service description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Linked service description. - * - * @param description the description value to set. - * @return the LinkedService object itself. - */ - public LinkedService withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the parameters property: Parameters for linked service. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters for linked service. - * - * @param parameters the parameters value to set. - * @return the LinkedService object itself. - */ - public LinkedService withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the annotations property: List of tags that can be used for describing the linked service. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: List of tags that can be used for describing the linked service. - * - * @param annotations the annotations value to set. - * @return the LinkedService object itself. - */ - public LinkedService withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the additionalProperties property: The Azure Data Factory nested object which contains the information and - * credential which can be used to connect with related store or compute resource. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The Azure Data Factory nested object which contains the information and - * credential which can be used to connect with related store or compute resource. - * - * @param additionalProperties the additionalProperties value to set. - * @return the LinkedService object itself. - */ - public LinkedService withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectVia() != null) { - connectVia().validate(); - } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceDebugResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceDebugResource.java deleted file mode 100644 index 0b330e09bf29c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceDebugResource.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Linked service debug resource. */ -@Fluent -public final class LinkedServiceDebugResource extends SubResourceDebugResource { - /* - * Properties of linked service. - */ - @JsonProperty(value = "properties", required = true) - private LinkedService properties; - - /** - * Get the properties property: Properties of linked service. - * - * @return the properties value. - */ - public LinkedService properties() { - return this.properties; - } - - /** - * Set the properties property: Properties of linked service. - * - * @param properties the properties value to set. - * @return the LinkedServiceDebugResource object itself. - */ - public LinkedServiceDebugResource withProperties(LinkedService properties) { - this.properties = properties; - return this; - } - - /** {@inheritDoc} */ - @Override - public LinkedServiceDebugResource withName(String name) { - super.withName(name); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model LinkedServiceDebugResource")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedServiceDebugResource.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceListResponse.java deleted file mode 100644 index 37cb034e5cc5e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceListResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of linked service resources. */ -@Fluent -public final class LinkedServiceListResponse { - /* - * List of linked services. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of linked services. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of linked services. - * - * @param value the value value to set. - * @return the LinkedServiceListResponse object itself. - */ - public LinkedServiceListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the LinkedServiceListResponse object itself. - */ - public LinkedServiceListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model LinkedServiceListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedServiceListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceReference.java deleted file mode 100644 index 67174e52dd7f6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceReference.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Linked service reference type. */ -@Fluent -public final class LinkedServiceReference { - /* - * Linked service reference type. - */ - @JsonProperty(value = "type", required = true) - private String type = "LinkedServiceReference"; - - /* - * Reference LinkedService name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /* - * Arguments for LinkedService. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /** Creates an instance of LinkedServiceReference class. */ - public LinkedServiceReference() { - type = "LinkedServiceReference"; - } - - /** - * Get the type property: Linked service reference type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Linked service reference type. - * - * @param type the type value to set. - * @return the LinkedServiceReference object itself. - */ - public LinkedServiceReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference LinkedService name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference LinkedService name. - * - * @param referenceName the referenceName value to set. - * @return the LinkedServiceReference object itself. - */ - public LinkedServiceReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Get the parameters property: Arguments for LinkedService. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Arguments for LinkedService. - * - * @param parameters the parameters value to set. - * @return the LinkedServiceReference object itself. - */ - public LinkedServiceReference withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property referenceName in model LinkedServiceReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedServiceReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceResource.java deleted file mode 100644 index ec789d9d570f4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServiceResource.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; - -/** An immutable client-side representation of LinkedServiceResource. */ -public interface LinkedServiceResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Properties of linked service. - * - * @return the properties value. - */ - LinkedService properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner object. - * - * @return the inner object. - */ - LinkedServiceResourceInner innerModel(); - - /** The entirety of the LinkedServiceResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The LinkedServiceResource definition stages. */ - interface DefinitionStages { - /** The first stage of the LinkedServiceResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the LinkedServiceResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithProperties withExistingFactory(String resourceGroupName, String factoryName); - } - /** The stage of the LinkedServiceResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Properties of linked service.. - * - * @param properties Properties of linked service. - * @return the next definition stage. - */ - WithCreate withProperties(LinkedService properties); - } - /** - * The stage of the LinkedServiceResource definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - LinkedServiceResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - LinkedServiceResource create(Context context); - } - /** The stage of the LinkedServiceResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the linkedService entity. Should only be specified for update, - * for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the LinkedServiceResource resource. - * - * @return the stage of resource update. - */ - LinkedServiceResource.Update update(); - - /** The template for LinkedServiceResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - LinkedServiceResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - LinkedServiceResource apply(Context context); - } - /** The LinkedServiceResource update stages. */ - interface UpdateStages { - /** The stage of the LinkedServiceResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Properties of linked service.. - * - * @param properties Properties of linked service. - * @return the next definition stage. - */ - Update withProperties(LinkedService properties); - } - /** The stage of the LinkedServiceResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the linkedService entity. Should only be specified for update, - * for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - LinkedServiceResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - LinkedServiceResource refresh(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServices.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServices.java deleted file mode 100644 index e681ad015c576..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServices.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of LinkedServices. */ -public interface LinkedServices { - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists linked services. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service. - */ - LinkedServiceResource get(String resourceGroupName, String factoryName, String linkedServiceName); - - /** - * Gets a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch, Context context); - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String linkedServiceName); - - /** - * Deletes a linked service. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param linkedServiceName The linked service name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String linkedServiceName, Context context); - - /** - * Gets a linked service. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service along with {@link Response}. - */ - LinkedServiceResource getById(String id); - - /** - * Gets a linked service. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a linked service along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a linked service. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a linked service. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new LinkedServiceResource resource. - * - * @param name resource name. - * @return the first stage of the new LinkedServiceResource definition. - */ - LinkedServiceResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogLocationSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogLocationSettings.java deleted file mode 100644 index d3003b1dd1b36..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogLocationSettings.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Log location settings. */ -@Fluent -public final class LogLocationSettings { - /* - * Log storage linked service reference. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * The path to storage for storing detailed logs of activity execution. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "path") - private Object path; - - /** - * Get the linkedServiceName property: Log storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Log storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the LogLocationSettings object itself. - */ - public LogLocationSettings withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the path property: The path to storage for storing detailed logs of activity execution. Type: string (or - * Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path to storage for storing detailed logs of activity execution. Type: string (or - * Expression with resultType string). - * - * @param path the path value to set. - * @return the LogLocationSettings object itself. - */ - public LogLocationSettings withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model LogLocationSettings")); - } else { - linkedServiceName().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LogLocationSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogSettings.java deleted file mode 100644 index 6758398c3a894..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogSettings.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Log settings. */ -@Fluent -public final class LogSettings { - /* - * Specifies whether to enable copy activity log. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "enableCopyActivityLog") - private Object enableCopyActivityLog; - - /* - * Specifies settings for copy activity log. - */ - @JsonProperty(value = "copyActivityLogSettings") - private CopyActivityLogSettings copyActivityLogSettings; - - /* - * Log location settings customer needs to provide when enabling log. - */ - @JsonProperty(value = "logLocationSettings", required = true) - private LogLocationSettings logLocationSettings; - - /** - * Get the enableCopyActivityLog property: Specifies whether to enable copy activity log. Type: boolean (or - * Expression with resultType boolean). - * - * @return the enableCopyActivityLog value. - */ - public Object enableCopyActivityLog() { - return this.enableCopyActivityLog; - } - - /** - * Set the enableCopyActivityLog property: Specifies whether to enable copy activity log. Type: boolean (or - * Expression with resultType boolean). - * - * @param enableCopyActivityLog the enableCopyActivityLog value to set. - * @return the LogSettings object itself. - */ - public LogSettings withEnableCopyActivityLog(Object enableCopyActivityLog) { - this.enableCopyActivityLog = enableCopyActivityLog; - return this; - } - - /** - * Get the copyActivityLogSettings property: Specifies settings for copy activity log. - * - * @return the copyActivityLogSettings value. - */ - public CopyActivityLogSettings copyActivityLogSettings() { - return this.copyActivityLogSettings; - } - - /** - * Set the copyActivityLogSettings property: Specifies settings for copy activity log. - * - * @param copyActivityLogSettings the copyActivityLogSettings value to set. - * @return the LogSettings object itself. - */ - public LogSettings withCopyActivityLogSettings(CopyActivityLogSettings copyActivityLogSettings) { - this.copyActivityLogSettings = copyActivityLogSettings; - return this; - } - - /** - * Get the logLocationSettings property: Log location settings customer needs to provide when enabling log. - * - * @return the logLocationSettings value. - */ - public LogLocationSettings logLocationSettings() { - return this.logLocationSettings; - } - - /** - * Set the logLocationSettings property: Log location settings customer needs to provide when enabling log. - * - * @param logLocationSettings the logLocationSettings value to set. - * @return the LogSettings object itself. - */ - public LogSettings withLogLocationSettings(LogLocationSettings logLocationSettings) { - this.logLocationSettings = logLocationSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (copyActivityLogSettings() != null) { - copyActivityLogSettings().validate(); - } - if (logLocationSettings() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property logLocationSettings in model LogSettings")); - } else { - logLocationSettings().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LogSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogStorageSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogStorageSettings.java deleted file mode 100644 index 85b39e2d87193..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LogStorageSettings.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** (Deprecated. Please use LogSettings) Log storage settings. */ -@Fluent -public final class LogStorageSettings { - /* - * Log storage linked service reference. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * The path to storage for storing detailed logs of activity execution. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "path") - private Object path; - - /* - * Gets or sets the log level, support: Info, Warning. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "logLevel") - private Object logLevel; - - /* - * Specifies whether to enable reliable logging. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "enableReliableLogging") - private Object enableReliableLogging; - - /* - * (Deprecated. Please use LogSettings) Log storage settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the linkedServiceName property: Log storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Log storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the LogStorageSettings object itself. - */ - public LogStorageSettings withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the path property: The path to storage for storing detailed logs of activity execution. Type: string (or - * Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path to storage for storing detailed logs of activity execution. Type: string (or - * Expression with resultType string). - * - * @param path the path value to set. - * @return the LogStorageSettings object itself. - */ - public LogStorageSettings withPath(Object path) { - this.path = path; - return this; - } - - /** - * Get the logLevel property: Gets or sets the log level, support: Info, Warning. Type: string (or Expression with - * resultType string). - * - * @return the logLevel value. - */ - public Object logLevel() { - return this.logLevel; - } - - /** - * Set the logLevel property: Gets or sets the log level, support: Info, Warning. Type: string (or Expression with - * resultType string). - * - * @param logLevel the logLevel value to set. - * @return the LogStorageSettings object itself. - */ - public LogStorageSettings withLogLevel(Object logLevel) { - this.logLevel = logLevel; - return this; - } - - /** - * Get the enableReliableLogging property: Specifies whether to enable reliable logging. Type: boolean (or - * Expression with resultType boolean). - * - * @return the enableReliableLogging value. - */ - public Object enableReliableLogging() { - return this.enableReliableLogging; - } - - /** - * Set the enableReliableLogging property: Specifies whether to enable reliable logging. Type: boolean (or - * Expression with resultType boolean). - * - * @param enableReliableLogging the enableReliableLogging value to set. - * @return the LogStorageSettings object itself. - */ - public LogStorageSettings withEnableReliableLogging(Object enableReliableLogging) { - this.enableReliableLogging = enableReliableLogging; - return this; - } - - /** - * Get the additionalProperties property: (Deprecated. Please use LogSettings) Log storage settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: (Deprecated. Please use LogSettings) Log storage settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the LogStorageSettings object itself. - */ - public LogStorageSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model LogStorageSettings")); - } else { - linkedServiceName().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LogStorageSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java deleted file mode 100644 index 1126efb453fa1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.LookupActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Lookup activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Lookup") -@Fluent -public final class LookupActivity extends ExecutionActivity { - /* - * Lookup activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private LookupActivityTypeProperties innerTypeProperties = new LookupActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Lookup activity properties. - * - * @return the innerTypeProperties value. - */ - private LookupActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the source property: Dataset-specific source properties, same as copy activity source. - * - * @return the source value. - */ - public CopySource source() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().source(); - } - - /** - * Set the source property: Dataset-specific source properties, same as copy activity source. - * - * @param source the source value to set. - * @return the LookupActivity object itself. - */ - public LookupActivity withSource(CopySource source) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LookupActivityTypeProperties(); - } - this.innerTypeProperties().withSource(source); - return this; - } - - /** - * Get the dataset property: Lookup activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); - } - - /** - * Set the dataset property: Lookup activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the LookupActivity object itself. - */ - public LookupActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LookupActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); - return this; - } - - /** - * Get the firstRowOnly property: Whether to return first row or all rows. Default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowOnly value. - */ - public Object firstRowOnly() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().firstRowOnly(); - } - - /** - * Set the firstRowOnly property: Whether to return first row or all rows. Default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowOnly the firstRowOnly value to set. - * @return the LookupActivity object itself. - */ - public LookupActivity withFirstRowOnly(Object firstRowOnly) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LookupActivityTypeProperties(); - } - this.innerTypeProperties().withFirstRowOnly(firstRowOnly); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model LookupActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LookupActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java deleted file mode 100644 index 4064ae20569e2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MagentoLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Magento server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Magento") -@Fluent -public final class MagentoLinkedService extends LinkedService { - /* - * Magento server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MagentoLinkedServiceTypeProperties innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Magento server linked service properties. - * - * @return the innerTypeProperties value. - */ - private MagentoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). - * - * @param host the host value to set. - * @return the MagentoLinkedService object itself. - */ - public MagentoLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the accessToken property: The access token from Magento. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); - } - - /** - * Set the accessToken property: The access token from Magento. - * - * @param accessToken the accessToken value to set. - * @return the MagentoLinkedService object itself. - */ - public MagentoLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the MagentoLinkedService object itself. - */ - public MagentoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the MagentoLinkedService object itself. - */ - public MagentoLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the MagentoLinkedService object itself. - */ - public MagentoLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MagentoLinkedService object itself. - */ - public MagentoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MagentoLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MagentoLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java deleted file mode 100644 index b9a2355c180e1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Magento server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MagentoObject") -@Fluent -public final class MagentoObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MagentoObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MagentoObjectDataset object itself. - */ - public MagentoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoSource.java deleted file mode 100644 index fe36b3110adc9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Magento server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MagentoSource") -@Fluent -public final class MagentoSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the MagentoSource object itself. - */ - public MagentoSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MagentoSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredential.java deleted file mode 100644 index 09603f6c2b083..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredential.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Managed identity credential. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ManagedIdentity") -@Fluent -public final class ManagedIdentityCredential extends Credential { - /* - * Managed identity credential properties. - */ - @JsonProperty(value = "typeProperties") - private ManagedIdentityTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Managed identity credential properties. - * - * @return the innerTypeProperties value. - */ - private ManagedIdentityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ManagedIdentityCredential withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ManagedIdentityCredential withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the resourceId property: The resource id of user assigned managed identity. - * - * @return the resourceId value. - */ - public String resourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceId(); - } - - /** - * Set the resourceId property: The resource id of user assigned managed identity. - * - * @param resourceId the resourceId value to set. - * @return the ManagedIdentityCredential object itself. - */ - public ManagedIdentityCredential withResourceId(String resourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ManagedIdentityTypeProperties(); - } - this.innerTypeProperties().withResourceId(resourceId); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java deleted file mode 100644 index 2b3d89242f1bd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIntegrationRuntimeTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Managed integration runtime, including managed elastic and managed dedicated integration runtimes. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Managed") -@Fluent -public final class ManagedIntegrationRuntime extends IntegrationRuntime { - /* - * Integration runtime state, only valid for managed dedicated integration - * runtime. - */ - @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) - private IntegrationRuntimeState state; - - /* - * Managed integration runtime properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ManagedIntegrationRuntimeTypeProperties innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - - /* - * Managed Virtual Network reference. - */ - @JsonProperty(value = "managedVirtualNetwork") - private ManagedVirtualNetworkReference managedVirtualNetwork; - - /** - * Get the state property: Integration runtime state, only valid for managed dedicated integration runtime. - * - * @return the state value. - */ - public IntegrationRuntimeState state() { - return this.state; - } - - /** - * Get the innerTypeProperties property: Managed integration runtime properties. - * - * @return the innerTypeProperties value. - */ - private ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the managedVirtualNetwork property: Managed Virtual Network reference. - * - * @return the managedVirtualNetwork value. - */ - public ManagedVirtualNetworkReference managedVirtualNetwork() { - return this.managedVirtualNetwork; - } - - /** - * Set the managedVirtualNetwork property: Managed Virtual Network reference. - * - * @param managedVirtualNetwork the managedVirtualNetwork value to set. - * @return the ManagedIntegrationRuntime object itself. - */ - public ManagedIntegrationRuntime withManagedVirtualNetwork(ManagedVirtualNetworkReference managedVirtualNetwork) { - this.managedVirtualNetwork = managedVirtualNetwork; - return this; - } - - /** {@inheritDoc} */ - @Override - public ManagedIntegrationRuntime withDescription(String description) { - super.withDescription(description); - return this; - } - - /** - * Get the computeProperties property: The compute resource for managed integration runtime. - * - * @return the computeProperties value. - */ - public IntegrationRuntimeComputeProperties computeProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().computeProperties(); - } - - /** - * Set the computeProperties property: The compute resource for managed integration runtime. - * - * @param computeProperties the computeProperties value to set. - * @return the ManagedIntegrationRuntime object itself. - */ - public ManagedIntegrationRuntime withComputeProperties(IntegrationRuntimeComputeProperties computeProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withComputeProperties(computeProperties); - return this; - } - - /** - * Get the ssisProperties property: SSIS properties for managed integration runtime. - * - * @return the ssisProperties value. - */ - public IntegrationRuntimeSsisProperties ssisProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ssisProperties(); - } - - /** - * Set the ssisProperties property: SSIS properties for managed integration runtime. - * - * @param ssisProperties the ssisProperties value to set. - * @return the ManagedIntegrationRuntime object itself. - */ - public ManagedIntegrationRuntime withSsisProperties(IntegrationRuntimeSsisProperties ssisProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withSsisProperties(ssisProperties); - return this; - } - - /** - * Get the customerVirtualNetwork property: The name of virtual network to which Azure-SSIS integration runtime will - * join. - * - * @return the customerVirtualNetwork value. - */ - public IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().customerVirtualNetwork(); - } - - /** - * Set the customerVirtualNetwork property: The name of virtual network to which Azure-SSIS integration runtime will - * join. - * - * @param customerVirtualNetwork the customerVirtualNetwork value to set. - * @return the ManagedIntegrationRuntime object itself. - */ - public ManagedIntegrationRuntime withCustomerVirtualNetwork( - IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withCustomerVirtualNetwork(customerVirtualNetwork); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ManagedIntegrationRuntime")); - } else { - innerTypeProperties().validate(); - } - if (managedVirtualNetwork() != null) { - managedVirtualNetwork().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedIntegrationRuntime.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeError.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeError.java deleted file mode 100644 index 8ac19d5acb611..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeError.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Error definition for managed integration runtime. */ -@Fluent -public final class ManagedIntegrationRuntimeError { - /* - * The time when the error occurred. - */ - @JsonProperty(value = "time", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime time; - - /* - * Error code. - */ - @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /* - * Managed integration runtime error parameters. - */ - @JsonProperty(value = "parameters", access = JsonProperty.Access.WRITE_ONLY) - private List parameters; - - /* - * Error message. - */ - @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) - private String message; - - /* - * Error definition for managed integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the time property: The time when the error occurred. - * - * @return the time value. - */ - public OffsetDateTime time() { - return this.time; - } - - /** - * Get the code property: Error code. - * - * @return the code value. - */ - public String code() { - return this.code; - } - - /** - * Get the parameters property: Managed integration runtime error parameters. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Get the message property: Error message. - * - * @return the message value. - */ - public String message() { - return this.message; - } - - /** - * Get the additionalProperties property: Error definition for managed integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Error definition for managed integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ManagedIntegrationRuntimeError object itself. - */ - public ManagedIntegrationRuntimeError withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeNode.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeNode.java deleted file mode 100644 index f15e4f67d5632..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeNode.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Properties of integration runtime node. */ -@Fluent -public final class ManagedIntegrationRuntimeNode { - /* - * The managed integration runtime node id. - */ - @JsonProperty(value = "nodeId", access = JsonProperty.Access.WRITE_ONLY) - private String nodeId; - - /* - * The managed integration runtime node status. - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private ManagedIntegrationRuntimeNodeStatus status; - - /* - * The errors that occurred on this integration runtime node. - */ - @JsonProperty(value = "errors") - private List errors; - - /* - * Properties of integration runtime node. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the nodeId property: The managed integration runtime node id. - * - * @return the nodeId value. - */ - public String nodeId() { - return this.nodeId; - } - - /** - * Get the status property: The managed integration runtime node status. - * - * @return the status value. - */ - public ManagedIntegrationRuntimeNodeStatus status() { - return this.status; - } - - /** - * Get the errors property: The errors that occurred on this integration runtime node. - * - * @return the errors value. - */ - public List errors() { - return this.errors; - } - - /** - * Set the errors property: The errors that occurred on this integration runtime node. - * - * @param errors the errors value to set. - * @return the ManagedIntegrationRuntimeNode object itself. - */ - public ManagedIntegrationRuntimeNode withErrors(List errors) { - this.errors = errors; - return this; - } - - /** - * Get the additionalProperties property: Properties of integration runtime node. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Properties of integration runtime node. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ManagedIntegrationRuntimeNode object itself. - */ - public ManagedIntegrationRuntimeNode withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (errors() != null) { - errors().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeNodeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeNodeStatus.java deleted file mode 100644 index 2396f2ea6705c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeNodeStatus.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ManagedIntegrationRuntimeNodeStatus. */ -public final class ManagedIntegrationRuntimeNodeStatus - extends ExpandableStringEnum { - /** Static value Starting for ManagedIntegrationRuntimeNodeStatus. */ - public static final ManagedIntegrationRuntimeNodeStatus STARTING = fromString("Starting"); - - /** Static value Available for ManagedIntegrationRuntimeNodeStatus. */ - public static final ManagedIntegrationRuntimeNodeStatus AVAILABLE = fromString("Available"); - - /** Static value Recycling for ManagedIntegrationRuntimeNodeStatus. */ - public static final ManagedIntegrationRuntimeNodeStatus RECYCLING = fromString("Recycling"); - - /** Static value Unavailable for ManagedIntegrationRuntimeNodeStatus. */ - public static final ManagedIntegrationRuntimeNodeStatus UNAVAILABLE = fromString("Unavailable"); - - /** - * Creates or finds a ManagedIntegrationRuntimeNodeStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding ManagedIntegrationRuntimeNodeStatus. - */ - @JsonCreator - public static ManagedIntegrationRuntimeNodeStatus fromString(String name) { - return fromString(name, ManagedIntegrationRuntimeNodeStatus.class); - } - - /** @return known ManagedIntegrationRuntimeNodeStatus values. */ - public static Collection values() { - return values(ManagedIntegrationRuntimeNodeStatus.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeOperationResult.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeOperationResult.java deleted file mode 100644 index 005d26b1277fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeOperationResult.java +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Properties of managed integration runtime operation result. */ -@Fluent -public final class ManagedIntegrationRuntimeOperationResult { - /* - * The operation type. Could be start or stop. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * The start time of the operation. - */ - @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime startTime; - - /* - * The operation result. - */ - @JsonProperty(value = "result", access = JsonProperty.Access.WRITE_ONLY) - private String result; - - /* - * The error code. - */ - @JsonProperty(value = "errorCode", access = JsonProperty.Access.WRITE_ONLY) - private String errorCode; - - /* - * Managed integration runtime error parameters. - */ - @JsonProperty(value = "parameters", access = JsonProperty.Access.WRITE_ONLY) - private List parameters; - - /* - * The activity id for the operation request. - */ - @JsonProperty(value = "activityId", access = JsonProperty.Access.WRITE_ONLY) - private String activityId; - - /* - * Properties of managed integration runtime operation result. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the type property: The operation type. Could be start or stop. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the startTime property: The start time of the operation. - * - * @return the startTime value. - */ - public OffsetDateTime startTime() { - return this.startTime; - } - - /** - * Get the result property: The operation result. - * - * @return the result value. - */ - public String result() { - return this.result; - } - - /** - * Get the errorCode property: The error code. - * - * @return the errorCode value. - */ - public String errorCode() { - return this.errorCode; - } - - /** - * Get the parameters property: Managed integration runtime error parameters. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Get the activityId property: The activity id for the operation request. - * - * @return the activityId value. - */ - public String activityId() { - return this.activityId; - } - - /** - * Get the additionalProperties property: Properties of managed integration runtime operation result. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Properties of managed integration runtime operation result. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ManagedIntegrationRuntimeOperationResult object itself. - */ - public ManagedIntegrationRuntimeOperationResult withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java deleted file mode 100644 index 260761123fbe1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIntegrationRuntimeStatusTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.List; - -/** Managed integration runtime status. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Managed") -@Fluent -public final class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { - /* - * Managed integration runtime status type properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties = - new ManagedIntegrationRuntimeStatusTypeProperties(); - - /** - * Get the innerTypeProperties property: Managed integration runtime status type properties. - * - * @return the innerTypeProperties value. - */ - private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().createTime(); - } - - /** - * Get the nodes property: The list of nodes for managed integration runtime. - * - * @return the nodes value. - */ - public List nodes() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nodes(); - } - - /** - * Get the otherErrors property: The errors that occurred on this integration runtime. - * - * @return the otherErrors value. - */ - public List otherErrors() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().otherErrors(); - } - - /** - * Get the lastOperation property: The last operation result that occurred on this integration runtime. - * - * @return the lastOperation value. - */ - public ManagedIntegrationRuntimeOperationResult lastOperation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().lastOperation(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ManagedIntegrationRuntimeStatus")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedIntegrationRuntimeStatus.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoint.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoint.java deleted file mode 100644 index 76b0918de3b5b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoint.java +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Properties of a managed private endpoint. */ -@Fluent -public final class ManagedPrivateEndpoint { - /* - * The managed private endpoint connection state - */ - @JsonProperty(value = "connectionState") - private ConnectionStateProperties connectionState; - - /* - * Fully qualified domain names - */ - @JsonProperty(value = "fqdns") - private List fqdns; - - /* - * The groupId to which the managed private endpoint is created - */ - @JsonProperty(value = "groupId") - private String groupId; - - /* - * Denotes whether the managed private endpoint is reserved - */ - @JsonProperty(value = "isReserved", access = JsonProperty.Access.WRITE_ONLY) - private Boolean isReserved; - - /* - * The ARM resource ID of the resource to which the managed private - * endpoint is created - */ - @JsonProperty(value = "privateLinkResourceId") - private String privateLinkResourceId; - - /* - * The managed private endpoint provisioning state - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Properties of a managed private endpoint - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the connectionState property: The managed private endpoint connection state. - * - * @return the connectionState value. - */ - public ConnectionStateProperties connectionState() { - return this.connectionState; - } - - /** - * Set the connectionState property: The managed private endpoint connection state. - * - * @param connectionState the connectionState value to set. - * @return the ManagedPrivateEndpoint object itself. - */ - public ManagedPrivateEndpoint withConnectionState(ConnectionStateProperties connectionState) { - this.connectionState = connectionState; - return this; - } - - /** - * Get the fqdns property: Fully qualified domain names. - * - * @return the fqdns value. - */ - public List fqdns() { - return this.fqdns; - } - - /** - * Set the fqdns property: Fully qualified domain names. - * - * @param fqdns the fqdns value to set. - * @return the ManagedPrivateEndpoint object itself. - */ - public ManagedPrivateEndpoint withFqdns(List fqdns) { - this.fqdns = fqdns; - return this; - } - - /** - * Get the groupId property: The groupId to which the managed private endpoint is created. - * - * @return the groupId value. - */ - public String groupId() { - return this.groupId; - } - - /** - * Set the groupId property: The groupId to which the managed private endpoint is created. - * - * @param groupId the groupId value to set. - * @return the ManagedPrivateEndpoint object itself. - */ - public ManagedPrivateEndpoint withGroupId(String groupId) { - this.groupId = groupId; - return this; - } - - /** - * Get the isReserved property: Denotes whether the managed private endpoint is reserved. - * - * @return the isReserved value. - */ - public Boolean isReserved() { - return this.isReserved; - } - - /** - * Get the privateLinkResourceId property: The ARM resource ID of the resource to which the managed private endpoint - * is created. - * - * @return the privateLinkResourceId value. - */ - public String privateLinkResourceId() { - return this.privateLinkResourceId; - } - - /** - * Set the privateLinkResourceId property: The ARM resource ID of the resource to which the managed private endpoint - * is created. - * - * @param privateLinkResourceId the privateLinkResourceId value to set. - * @return the ManagedPrivateEndpoint object itself. - */ - public ManagedPrivateEndpoint withPrivateLinkResourceId(String privateLinkResourceId) { - this.privateLinkResourceId = privateLinkResourceId; - return this; - } - - /** - * Get the provisioningState property: The managed private endpoint provisioning state. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the additionalProperties property: Properties of a managed private endpoint. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Properties of a managed private endpoint. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ManagedPrivateEndpoint object itself. - */ - public ManagedPrivateEndpoint withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionState() != null) { - connectionState().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpointListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpointListResponse.java deleted file mode 100644 index 7f10b3f00e298..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpointListResponse.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of managed private endpoint resources. */ -@Fluent -public final class ManagedPrivateEndpointListResponse { - /* - * List of managed private endpoints. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of managed private endpoints. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of managed private endpoints. - * - * @param value the value value to set. - * @return the ManagedPrivateEndpointListResponse object itself. - */ - public ManagedPrivateEndpointListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the ManagedPrivateEndpointListResponse object itself. - */ - public ManagedPrivateEndpointListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model ManagedPrivateEndpointListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedPrivateEndpointListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpointResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpointResource.java deleted file mode 100644 index 577b1f58e57bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpointResource.java +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; - -/** An immutable client-side representation of ManagedPrivateEndpointResource. */ -public interface ManagedPrivateEndpointResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Managed private endpoint properties. - * - * @return the properties value. - */ - ManagedPrivateEndpoint properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner object. - * - * @return the inner object. - */ - ManagedPrivateEndpointResourceInner innerModel(); - - /** The entirety of the ManagedPrivateEndpointResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The ManagedPrivateEndpointResource definition stages. */ - interface DefinitionStages { - /** The first stage of the ManagedPrivateEndpointResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the ManagedPrivateEndpointResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName, managedVirtualNetworkName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @return the next definition stage. - */ - WithProperties withExistingManagedVirtualNetwork( - String resourceGroupName, String factoryName, String managedVirtualNetworkName); - } - /** The stage of the ManagedPrivateEndpointResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Managed private endpoint properties.. - * - * @param properties Managed private endpoint properties. - * @return the next definition stage. - */ - WithCreate withProperties(ManagedPrivateEndpoint properties); - } - /** - * The stage of the ManagedPrivateEndpointResource definition which contains all the minimum required properties - * for the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - ManagedPrivateEndpointResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ManagedPrivateEndpointResource create(Context context); - } - /** The stage of the ManagedPrivateEndpointResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the managed private endpoint entity. Should only be specified for - * update, for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the ManagedPrivateEndpointResource resource. - * - * @return the stage of resource update. - */ - ManagedPrivateEndpointResource.Update update(); - - /** The template for ManagedPrivateEndpointResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ManagedPrivateEndpointResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ManagedPrivateEndpointResource apply(Context context); - } - /** The ManagedPrivateEndpointResource update stages. */ - interface UpdateStages { - /** The stage of the ManagedPrivateEndpointResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Managed private endpoint properties.. - * - * @param properties Managed private endpoint properties. - * @return the next definition stage. - */ - Update withProperties(ManagedPrivateEndpoint properties); - } - /** The stage of the ManagedPrivateEndpointResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the managed private endpoint entity. Should only be specified for - * update, for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ManagedPrivateEndpointResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ManagedPrivateEndpointResource refresh(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoints.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoints.java deleted file mode 100644 index 355812c0d9e4e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoints.java +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of ManagedPrivateEndpoints. */ -public interface ManagedPrivateEndpoints { - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName); - - /** - * Lists managed private endpoints. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory( - String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context); - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint. - */ - ManagedPrivateEndpointResource get( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName); - - /** - * Gets a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - String ifNoneMatch, - Context context); - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName); - - /** - * Deletes a managed private endpoint. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param managedPrivateEndpointName Managed private endpoint name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String managedPrivateEndpointName, - Context context); - - /** - * Gets a managed private endpoint. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint along with {@link Response}. - */ - ManagedPrivateEndpointResource getById(String id); - - /** - * Gets a managed private endpoint. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed private endpoint along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a managed private endpoint. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a managed private endpoint. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ManagedPrivateEndpointResource resource. - * - * @param name resource name. - * @return the first stage of the new ManagedPrivateEndpointResource definition. - */ - ManagedPrivateEndpointResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetwork.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetwork.java deleted file mode 100644 index 535666d81fe10..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetwork.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** A managed Virtual Network associated with the Azure Data Factory. */ -@Fluent -public final class ManagedVirtualNetwork { - /* - * Managed Virtual Network ID. - */ - @JsonProperty(value = "vNetId", access = JsonProperty.Access.WRITE_ONLY) - private String vNetId; - - /* - * Managed Virtual Network alias. - */ - @JsonProperty(value = "alias", access = JsonProperty.Access.WRITE_ONLY) - private String alias; - - /* - * A managed Virtual Network associated with the Azure Data Factory - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the vNetId property: Managed Virtual Network ID. - * - * @return the vNetId value. - */ - public String vNetId() { - return this.vNetId; - } - - /** - * Get the alias property: Managed Virtual Network alias. - * - * @return the alias value. - */ - public String alias() { - return this.alias; - } - - /** - * Get the additionalProperties property: A managed Virtual Network associated with the Azure Data Factory. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: A managed Virtual Network associated with the Azure Data Factory. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ManagedVirtualNetwork object itself. - */ - public ManagedVirtualNetwork withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkListResponse.java deleted file mode 100644 index 85ec8398358eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkListResponse.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of managed Virtual Network resources. */ -@Fluent -public final class ManagedVirtualNetworkListResponse { - /* - * List of managed Virtual Networks. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of managed Virtual Networks. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of managed Virtual Networks. - * - * @param value the value value to set. - * @return the ManagedVirtualNetworkListResponse object itself. - */ - public ManagedVirtualNetworkListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the ManagedVirtualNetworkListResponse object itself. - */ - public ManagedVirtualNetworkListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model ManagedVirtualNetworkListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedVirtualNetworkListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkReference.java deleted file mode 100644 index bb87296ea3216..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkReference.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Managed Virtual Network reference type. */ -@Fluent -public final class ManagedVirtualNetworkReference { - /* - * Managed Virtual Network reference type. - */ - @JsonProperty(value = "type", required = true) - private String type = "ManagedVirtualNetworkReference"; - - /* - * Reference ManagedVirtualNetwork name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /** Creates an instance of ManagedVirtualNetworkReference class. */ - public ManagedVirtualNetworkReference() { - type = "ManagedVirtualNetworkReference"; - } - - /** - * Get the type property: Managed Virtual Network reference type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Managed Virtual Network reference type. - * - * @param type the type value to set. - * @return the ManagedVirtualNetworkReference object itself. - */ - public ManagedVirtualNetworkReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference ManagedVirtualNetwork name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference ManagedVirtualNetwork name. - * - * @param referenceName the referenceName value to set. - * @return the ManagedVirtualNetworkReference object itself. - */ - public ManagedVirtualNetworkReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property referenceName in model ManagedVirtualNetworkReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedVirtualNetworkReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkResource.java deleted file mode 100644 index daf29e38b32db..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkResource.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; - -/** An immutable client-side representation of ManagedVirtualNetworkResource. */ -public interface ManagedVirtualNetworkResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Managed Virtual Network properties. - * - * @return the properties value. - */ - ManagedVirtualNetwork properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner object. - * - * @return the inner object. - */ - ManagedVirtualNetworkResourceInner innerModel(); - - /** The entirety of the ManagedVirtualNetworkResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The ManagedVirtualNetworkResource definition stages. */ - interface DefinitionStages { - /** The first stage of the ManagedVirtualNetworkResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the ManagedVirtualNetworkResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithProperties withExistingFactory(String resourceGroupName, String factoryName); - } - /** The stage of the ManagedVirtualNetworkResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Managed Virtual Network properties.. - * - * @param properties Managed Virtual Network properties. - * @return the next definition stage. - */ - WithCreate withProperties(ManagedVirtualNetwork properties); - } - /** - * The stage of the ManagedVirtualNetworkResource definition which contains all the minimum required properties - * for the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - ManagedVirtualNetworkResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ManagedVirtualNetworkResource create(Context context); - } - /** The stage of the ManagedVirtualNetworkResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the managed Virtual Network entity. Should only be specified for - * update, for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which - * it should match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the ManagedVirtualNetworkResource resource. - * - * @return the stage of resource update. - */ - ManagedVirtualNetworkResource.Update update(); - - /** The template for ManagedVirtualNetworkResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ManagedVirtualNetworkResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ManagedVirtualNetworkResource apply(Context context); - } - /** The ManagedVirtualNetworkResource update stages. */ - interface UpdateStages { - /** The stage of the ManagedVirtualNetworkResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Managed Virtual Network properties.. - * - * @param properties Managed Virtual Network properties. - * @return the next definition stage. - */ - Update withProperties(ManagedVirtualNetwork properties); - } - /** The stage of the ManagedVirtualNetworkResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the managed Virtual Network entity. Should only be specified for - * update, for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which - * it should match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ManagedVirtualNetworkResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ManagedVirtualNetworkResource refresh(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworks.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworks.java deleted file mode 100644 index e0ddd78ae57ce..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworks.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of ManagedVirtualNetworks. */ -public interface ManagedVirtualNetworks { - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists managed Virtual Networks. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network. - */ - ManagedVirtualNetworkResource get(String resourceGroupName, String factoryName, String managedVirtualNetworkName); - - /** - * Gets a managed Virtual Network. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param managedVirtualNetworkName Managed virtual network name. - * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, - String factoryName, - String managedVirtualNetworkName, - String ifNoneMatch, - Context context); - - /** - * Gets a managed Virtual Network. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network along with {@link Response}. - */ - ManagedVirtualNetworkResource getById(String id); - - /** - * Gets a managed Virtual Network. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a managed Virtual Network along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Begins definition for a new ManagedVirtualNetworkResource resource. - * - * @param name resource name. - * @return the first stage of the new ManagedVirtualNetworkResource definition. - */ - ManagedVirtualNetworkResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java deleted file mode 100644 index d052e9d7207b9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.MappingDataFlowTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Mapping data flow. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MappingDataFlow") -@Fluent -public final class MappingDataFlow extends DataFlow { - /* - * Mapping data flow type properties. - */ - @JsonProperty(value = "typeProperties") - private MappingDataFlowTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Mapping data flow type properties. - * - * @return the innerTypeProperties value. - */ - private MappingDataFlowTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MappingDataFlow withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MappingDataFlow withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MappingDataFlow withFolder(DataFlowFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the sources property: List of sources in data flow. - * - * @return the sources value. - */ - public List sources() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sources(); - } - - /** - * Set the sources property: List of sources in data flow. - * - * @param sources the sources value to set. - * @return the MappingDataFlow object itself. - */ - public MappingDataFlow withSources(List sources) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withSources(sources); - return this; - } - - /** - * Get the sinks property: List of sinks in data flow. - * - * @return the sinks value. - */ - public List sinks() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sinks(); - } - - /** - * Set the sinks property: List of sinks in data flow. - * - * @param sinks the sinks value to set. - * @return the MappingDataFlow object itself. - */ - public MappingDataFlow withSinks(List sinks) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withSinks(sinks); - return this; - } - - /** - * Get the transformations property: List of transformations in data flow. - * - * @return the transformations value. - */ - public List transformations() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().transformations(); - } - - /** - * Set the transformations property: List of transformations in data flow. - * - * @param transformations the transformations value to set. - * @return the MappingDataFlow object itself. - */ - public MappingDataFlow withTransformations(List transformations) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withTransformations(transformations); - return this; - } - - /** - * Get the script property: DataFlow script. - * - * @return the script value. - */ - public String script() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().script(); - } - - /** - * Set the script property: DataFlow script. - * - * @param script the script value to set. - * @return the MappingDataFlow object itself. - */ - public MappingDataFlow withScript(String script) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withScript(script); - return this; - } - - /** - * Get the scriptLines property: Data flow script lines. - * - * @return the scriptLines value. - */ - public List scriptLines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptLines(); - } - - /** - * Set the scriptLines property: Data flow script lines. - * - * @param scriptLines the scriptLines value to set. - * @return the MappingDataFlow object itself. - */ - public MappingDataFlow withScriptLines(List scriptLines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withScriptLines(scriptLines); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java deleted file mode 100644 index 184f8707bebe3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MariaDBLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** MariaDB server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MariaDB") -@Fluent -public final class MariaDBLinkedService extends LinkedService { - /* - * MariaDB server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MariaDBLinkedServiceTypeProperties innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: MariaDB server linked service properties. - * - * @return the innerTypeProperties value. - */ - private MariaDBLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MariaDBLinkedService object itself. - */ - public MariaDBLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the MariaDBLinkedService object itself. - */ - public MariaDBLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MariaDBLinkedService object itself. - */ - public MariaDBLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MariaDBLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MariaDBLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBSource.java deleted file mode 100644 index f414ad3d01ed2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity MariaDB server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MariaDBSource") -@Fluent -public final class MariaDBSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the MariaDBSource object itself. - */ - public MariaDBSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java deleted file mode 100644 index a592f42687e81..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** MariaDB server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MariaDBTable") -@Fluent -public final class MariaDBTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MariaDBTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MariaDBTableDataset object itself. - */ - public MariaDBTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java deleted file mode 100644 index 02280303a2fe6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MarketoLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Marketo server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Marketo") -@Fluent -public final class MarketoLinkedService extends LinkedService { - /* - * Marketo server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MarketoLinkedServiceTypeProperties innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Marketo server linked service properties. - * - * @return the innerTypeProperties value. - */ - private MarketoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the endpoint property: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). - * - * @param endpoint the endpoint value to set. - * @return the MarketoLinkedService object itself. - */ - public MarketoLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the clientId property: The client Id of your Marketo service. - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client Id of your Marketo service. - * - * @param clientId the clientId value to set. - * @return the MarketoLinkedService object itself. - */ - public MarketoLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret of your Marketo service. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret of your Marketo service. - * - * @param clientSecret the clientSecret value to set. - * @return the MarketoLinkedService object itself. - */ - public MarketoLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the MarketoLinkedService object itself. - */ - public MarketoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the MarketoLinkedService object itself. - */ - public MarketoLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the MarketoLinkedService object itself. - */ - public MarketoLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MarketoLinkedService object itself. - */ - public MarketoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MarketoLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MarketoLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java deleted file mode 100644 index daeb930a14638..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Marketo server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MarketoObject") -@Fluent -public final class MarketoObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MarketoObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MarketoObjectDataset object itself. - */ - public MarketoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoSource.java deleted file mode 100644 index 0ea9c1a5be162..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Marketo server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MarketoSource") -@Fluent -public final class MarketoSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the MarketoSource object itself. - */ - public MarketoSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MarketoSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MetadataItem.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MetadataItem.java deleted file mode 100644 index 81c088840559d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MetadataItem.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Specify the name and value of custom metadata item. */ -@Fluent -public final class MetadataItem { - /* - * Metadata item key name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "name") - private Object name; - - /* - * Metadata item value. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "value") - private Object value; - - /** - * Get the name property: Metadata item key name. Type: string (or Expression with resultType string). - * - * @return the name value. - */ - public Object name() { - return this.name; - } - - /** - * Set the name property: Metadata item key name. Type: string (or Expression with resultType string). - * - * @param name the name value to set. - * @return the MetadataItem object itself. - */ - public MetadataItem withName(Object name) { - this.name = name; - return this; - } - - /** - * Get the value property: Metadata item value. Type: string (or Expression with resultType string). - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: Metadata item value. Type: string (or Expression with resultType string). - * - * @param value the value value to set. - * @return the MetadataItem object itself. - */ - public MetadataItem withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java deleted file mode 100644 index 5929cfdbcedc5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Microsoft Access linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MicrosoftAccess") -@Fluent -public final class MicrosoftAccessLinkedService extends LinkedService { - /* - * Microsoft Access linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MicrosoftAccessLinkedServiceTypeProperties innerTypeProperties = - new MicrosoftAccessLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Microsoft Access linked service properties. - * - * @return the innerTypeProperties value. - */ - private MicrosoftAccessLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MicrosoftAccessLinkedService object itself. - */ - public MicrosoftAccessLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the Microsoft Access as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the Microsoft Access as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the MicrosoftAccessLinkedService object itself. - */ - public MicrosoftAccessLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the MicrosoftAccessLinkedService object itself. - */ - public MicrosoftAccessLinkedService withCredential(SecretBase credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the MicrosoftAccessLinkedService object itself. - */ - public MicrosoftAccessLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the MicrosoftAccessLinkedService object itself. - */ - public MicrosoftAccessLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MicrosoftAccessLinkedService object itself. - */ - public MicrosoftAccessLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MicrosoftAccessLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MicrosoftAccessLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessSink.java deleted file mode 100644 index 5e479f5f164cd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessSink.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Microsoft Access sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MicrosoftAccessSink") -@Fluent -public final class MicrosoftAccessSink extends CopySink { - /* - * A query to execute before starting the copy. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /** - * Get the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the MicrosoftAccessSink object itself. - */ - public MicrosoftAccessSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessSource.java deleted file mode 100644 index f3e4baf8ff35f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessSource.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for Microsoft Access. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MicrosoftAccessSource") -@Fluent -public final class MicrosoftAccessSource extends CopySource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the MicrosoftAccessSource object itself. - */ - public MicrosoftAccessSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the MicrosoftAccessSource object itself. - */ - public MicrosoftAccessSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java deleted file mode 100644 index 41907daeb61fd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Microsoft Access table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MicrosoftAccessTable") -@Fluent -public final class MicrosoftAccessTableDataset extends Dataset { - /* - * Microsoft Access table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private MicrosoftAccessTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Microsoft Access table dataset properties. - * - * @return the innerTypeProperties value. - */ - private MicrosoftAccessTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MicrosoftAccessTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MicrosoftAccessTableDataset object itself. - */ - public MicrosoftAccessTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java deleted file mode 100644 index 730d68af88998..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasCollectionDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The MongoDB Atlas database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbAtlasCollection") -@Fluent -public final class MongoDbAtlasCollectionDataset extends Dataset { - /* - * MongoDB Atlas database dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbAtlasCollectionDatasetTypeProperties innerTypeProperties = - new MongoDbAtlasCollectionDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: MongoDB Atlas database dataset properties. - * - * @return the innerTypeProperties value. - */ - private MongoDbAtlasCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasCollectionDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasCollectionDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasCollectionDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasCollectionDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasCollectionDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasCollectionDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasCollectionDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collection(); - } - - /** - * Set the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbAtlasCollectionDataset object itself. - */ - public MongoDbAtlasCollectionDataset withCollection(Object collection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbAtlasCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollection(collection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbAtlasCollectionDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbAtlasCollectionDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java deleted file mode 100644 index f5b19b2d13e43..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for MongoDB Atlas data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbAtlas") -@Fluent -public final class MongoDbAtlasLinkedService extends LinkedService { - /* - * MongoDB Atlas linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbAtlasLinkedServiceTypeProperties innerTypeProperties = new MongoDbAtlasLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: MongoDB Atlas linked service properties. - * - * @return the innerTypeProperties value. - */ - private MongoDbAtlasLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MongoDbAtlasLinkedService object itself. - */ - public MongoDbAtlasLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbAtlasLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the database property: The name of the MongoDB Atlas database that you want to access. Type: string (or - * Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The name of the MongoDB Atlas database that you want to access. Type: string (or - * Expression with resultType string). - * - * @param database the database value to set. - * @return the MongoDbAtlasLinkedService object itself. - */ - public MongoDbAtlasLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbAtlasLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbAtlasLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbAtlasLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasSink.java deleted file mode 100644 index 46a4bc4b680d3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasSink.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity MongoDB Atlas sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbAtlasSink") -@Fluent -public final class MongoDbAtlasSink extends CopySink { - /* - * Specifies whether the document with same key to be overwritten (upsert) - * rather than throw exception (insert). The default value is "insert". - * Type: string (or Expression with resultType string). Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /** - * Get the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather - * than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType - * string). Type: string (or Expression with resultType string). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather - * than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType - * string). Type: string (or Expression with resultType string). - * - * @param writeBehavior the writeBehavior value to set. - * @return the MongoDbAtlasSink object itself. - */ - public MongoDbAtlasSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasSource.java deleted file mode 100644 index 45a6ed60a84a4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasSource.java +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for a MongoDB Atlas database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbAtlasSource") -@Fluent -public final class MongoDbAtlasSource extends CopySource { - /* - * Specifies selection filter using query operators. To return all - * documents in a collection, omit this parameter or pass an empty document - * ({}). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "filter") - private Object filter; - - /* - * Cursor methods for Mongodb query - */ - @JsonProperty(value = "cursorMethods") - private MongoDbCursorMethodsProperties cursorMethods; - - /* - * Specifies the number of documents to return in each batch of the - * response from MongoDB Atlas instance. In most cases, modifying the batch - * size will not affect the user or the application. This property's main - * purpose is to avoid hit the limitation of response size. Type: integer - * (or Expression with resultType integer). - */ - @JsonProperty(value = "batchSize") - private Object batchSize; - - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the filter property: Specifies selection filter using query operators. To return all documents in a - * collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType - * string). - * - * @return the filter value. - */ - public Object filter() { - return this.filter; - } - - /** - * Set the filter property: Specifies selection filter using query operators. To return all documents in a - * collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType - * string). - * - * @param filter the filter value to set. - * @return the MongoDbAtlasSource object itself. - */ - public MongoDbAtlasSource withFilter(Object filter) { - this.filter = filter; - return this; - } - - /** - * Get the cursorMethods property: Cursor methods for Mongodb query. - * - * @return the cursorMethods value. - */ - public MongoDbCursorMethodsProperties cursorMethods() { - return this.cursorMethods; - } - - /** - * Set the cursorMethods property: Cursor methods for Mongodb query. - * - * @param cursorMethods the cursorMethods value to set. - * @return the MongoDbAtlasSource object itself. - */ - public MongoDbAtlasSource withCursorMethods(MongoDbCursorMethodsProperties cursorMethods) { - this.cursorMethods = cursorMethods; - return this; - } - - /** - * Get the batchSize property: Specifies the number of documents to return in each batch of the response from - * MongoDB Atlas instance. In most cases, modifying the batch size will not affect the user or the application. This - * property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with - * resultType integer). - * - * @return the batchSize value. - */ - public Object batchSize() { - return this.batchSize; - } - - /** - * Set the batchSize property: Specifies the number of documents to return in each batch of the response from - * MongoDB Atlas instance. In most cases, modifying the batch size will not affect the user or the application. This - * property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with - * resultType integer). - * - * @param batchSize the batchSize value to set. - * @return the MongoDbAtlasSource object itself. - */ - public MongoDbAtlasSource withBatchSize(Object batchSize) { - this.batchSize = batchSize; - return this; - } - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param queryTimeout the queryTimeout value to set. - * @return the MongoDbAtlasSource object itself. - */ - public MongoDbAtlasSource withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the MongoDbAtlasSource object itself. - */ - public MongoDbAtlasSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (cursorMethods() != null) { - cursorMethods().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAuthenticationType.java deleted file mode 100644 index d1b59523f854e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for MongoDbAuthenticationType. */ -public final class MongoDbAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for MongoDbAuthenticationType. */ - public static final MongoDbAuthenticationType BASIC = fromString("Basic"); - - /** Static value Anonymous for MongoDbAuthenticationType. */ - public static final MongoDbAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** - * Creates or finds a MongoDbAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding MongoDbAuthenticationType. - */ - @JsonCreator - public static MongoDbAuthenticationType fromString(String name) { - return fromString(name, MongoDbAuthenticationType.class); - } - - /** @return known MongoDbAuthenticationType values. */ - public static Collection values() { - return values(MongoDbAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java deleted file mode 100644 index d6546299892d8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbCollectionDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The MongoDB database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbCollection") -@Fluent -public final class MongoDbCollectionDataset extends Dataset { - /* - * MongoDB database dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbCollectionDatasetTypeProperties innerTypeProperties = new MongoDbCollectionDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: MongoDB database dataset properties. - * - * @return the innerTypeProperties value. - */ - private MongoDbCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbCollectionDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbCollectionDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbCollectionDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbCollectionDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbCollectionDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbCollectionDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbCollectionDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collectionName(); - } - - /** - * Set the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collectionName the collectionName value to set. - * @return the MongoDbCollectionDataset object itself. - */ - public MongoDbCollectionDataset withCollectionName(Object collectionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollectionName(collectionName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbCollectionDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbCollectionDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCursorMethodsProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCursorMethodsProperties.java deleted file mode 100644 index bf485ff06baf3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCursorMethodsProperties.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Cursor methods for Mongodb query. */ -@Fluent -public final class MongoDbCursorMethodsProperties { - /* - * Specifies the fields to return in the documents that match the query - * filter. To return all fields in the matching documents, omit this - * parameter. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "project") - private Object project; - - /* - * Specifies the order in which the query returns matching documents. Type: - * string (or Expression with resultType string). Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "sort") - private Object sort; - - /* - * Specifies the how many documents skipped and where MongoDB begins - * returning results. This approach may be useful in implementing paginated - * results. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "skip") - private Object skip; - - /* - * Specifies the maximum number of documents the server returns. limit() is - * analogous to the LIMIT statement in a SQL database. Type: integer (or - * Expression with resultType integer). - */ - @JsonProperty(value = "limit") - private Object limit; - - /* - * Cursor methods for Mongodb query - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the project property: Specifies the fields to return in the documents that match the query filter. To return - * all fields in the matching documents, omit this parameter. Type: string (or Expression with resultType string). - * - * @return the project value. - */ - public Object project() { - return this.project; - } - - /** - * Set the project property: Specifies the fields to return in the documents that match the query filter. To return - * all fields in the matching documents, omit this parameter. Type: string (or Expression with resultType string). - * - * @param project the project value to set. - * @return the MongoDbCursorMethodsProperties object itself. - */ - public MongoDbCursorMethodsProperties withProject(Object project) { - this.project = project; - return this; - } - - /** - * Get the sort property: Specifies the order in which the query returns matching documents. Type: string (or - * Expression with resultType string). Type: string (or Expression with resultType string). - * - * @return the sort value. - */ - public Object sort() { - return this.sort; - } - - /** - * Set the sort property: Specifies the order in which the query returns matching documents. Type: string (or - * Expression with resultType string). Type: string (or Expression with resultType string). - * - * @param sort the sort value to set. - * @return the MongoDbCursorMethodsProperties object itself. - */ - public MongoDbCursorMethodsProperties withSort(Object sort) { - this.sort = sort; - return this; - } - - /** - * Get the skip property: Specifies the how many documents skipped and where MongoDB begins returning results. This - * approach may be useful in implementing paginated results. Type: integer (or Expression with resultType integer). - * - * @return the skip value. - */ - public Object skip() { - return this.skip; - } - - /** - * Set the skip property: Specifies the how many documents skipped and where MongoDB begins returning results. This - * approach may be useful in implementing paginated results. Type: integer (or Expression with resultType integer). - * - * @param skip the skip value to set. - * @return the MongoDbCursorMethodsProperties object itself. - */ - public MongoDbCursorMethodsProperties withSkip(Object skip) { - this.skip = skip; - return this; - } - - /** - * Get the limit property: Specifies the maximum number of documents the server returns. limit() is analogous to the - * LIMIT statement in a SQL database. Type: integer (or Expression with resultType integer). - * - * @return the limit value. - */ - public Object limit() { - return this.limit; - } - - /** - * Set the limit property: Specifies the maximum number of documents the server returns. limit() is analogous to the - * LIMIT statement in a SQL database. Type: integer (or Expression with resultType integer). - * - * @param limit the limit value to set. - * @return the MongoDbCursorMethodsProperties object itself. - */ - public MongoDbCursorMethodsProperties withLimit(Object limit) { - this.limit = limit; - return this; - } - - /** - * Get the additionalProperties property: Cursor methods for Mongodb query. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Cursor methods for Mongodb query. - * - * @param additionalProperties the additionalProperties value to set. - * @return the MongoDbCursorMethodsProperties object itself. - */ - public MongoDbCursorMethodsProperties withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java deleted file mode 100644 index da9fa9dfe7f8a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java +++ /dev/null @@ -1,327 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for MongoDb data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDb") -@Fluent -public final class MongoDbLinkedService extends LinkedService { - /* - * MongoDB linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbLinkedServiceTypeProperties innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: MongoDB linked service properties. - * - * @return the innerTypeProperties value. - */ - private MongoDbLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the server property: The IP address or server name of the MongoDB server. Type: string (or Expression with - * resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: The IP address or server name of the MongoDB server. Type: string (or Expression with - * resultType string). - * - * @param server the server value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the MongoDB database. - * - * @return the authenticationType value. - */ - public MongoDbAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the MongoDB database. - * - * @param authenticationType the authenticationType value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withAuthenticationType(MongoDbAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the databaseName property: The name of the MongoDB database that you want to access. Type: string (or - * Expression with resultType string). - * - * @return the databaseName value. - */ - public Object databaseName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().databaseName(); - } - - /** - * Set the databaseName property: The name of the MongoDB database that you want to access. Type: string (or - * Expression with resultType string). - * - * @param databaseName the databaseName value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withDatabaseName(Object databaseName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabaseName(databaseName); - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the authSource property: Database to verify the username and password. Type: string (or Expression with - * resultType string). - * - * @return the authSource value. - */ - public Object authSource() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authSource(); - } - - /** - * Set the authSource property: Database to verify the username and password. Type: string (or Expression with - * resultType string). - * - * @param authSource the authSource value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withAuthSource(Object authSource) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthSource(authSource); - return this; - } - - /** - * Get the port property: The TCP port number that the MongoDB server uses to listen for client connections. The - * default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port number that the MongoDB server uses to listen for client connections. The - * default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. Type: boolean (or Expression with resultType boolean). - * - * @param enableSsl the enableSsl value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MongoDbLinkedService object itself. - */ - public MongoDbLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbSource.java deleted file mode 100644 index 03b6a88ef08cb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbSource.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for a MongoDB database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbSource") -@Fluent -public final class MongoDbSource extends CopySource { - /* - * Database query. Should be a SQL-92 query expression. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: Database query. Should be a SQL-92 query expression. Type: string (or Expression with - * resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Should be a SQL-92 query expression. Type: string (or Expression with - * resultType string). - * - * @param query the query value to set. - * @return the MongoDbSource object itself. - */ - public MongoDbSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the MongoDbSource object itself. - */ - public MongoDbSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java deleted file mode 100644 index 3623af7d33adb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2CollectionDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The MongoDB database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbV2Collection") -@Fluent -public final class MongoDbV2CollectionDataset extends Dataset { - /* - * MongoDB database dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbV2CollectionDatasetTypeProperties innerTypeProperties = - new MongoDbV2CollectionDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: MongoDB database dataset properties. - * - * @return the innerTypeProperties value. - */ - private MongoDbV2CollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2CollectionDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2CollectionDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2CollectionDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2CollectionDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2CollectionDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2CollectionDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2CollectionDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collection(); - } - - /** - * Set the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbV2CollectionDataset object itself. - */ - public MongoDbV2CollectionDataset withCollection(Object collection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbV2CollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollection(collection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbV2CollectionDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbV2CollectionDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java deleted file mode 100644 index 47c04d7df4845..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2LinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for MongoDB data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbV2") -@Fluent -public final class MongoDbV2LinkedService extends LinkedService { - /* - * MongoDB linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbV2LinkedServiceTypeProperties innerTypeProperties = new MongoDbV2LinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: MongoDB linked service properties. - * - * @return the innerTypeProperties value. - */ - private MongoDbV2LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MongoDbV2LinkedService object itself. - */ - public MongoDbV2LinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbV2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the database property: The name of the MongoDB database that you want to access. Type: string (or Expression - * with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The name of the MongoDB database that you want to access. Type: string (or Expression - * with resultType string). - * - * @param database the database value to set. - * @return the MongoDbV2LinkedService object itself. - */ - public MongoDbV2LinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbV2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbV2LinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MongoDbV2LinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2Sink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2Sink.java deleted file mode 100644 index b4b22de717b18..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2Sink.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity MongoDB sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbV2Sink") -@Fluent -public final class MongoDbV2Sink extends CopySink { - /* - * Specifies whether the document with same key to be overwritten (upsert) - * rather than throw exception (insert). The default value is "insert". - * Type: string (or Expression with resultType string). Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /** - * Get the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather - * than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType - * string). Type: string (or Expression with resultType string). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather - * than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType - * string). Type: string (or Expression with resultType string). - * - * @param writeBehavior the writeBehavior value to set. - * @return the MongoDbV2Sink object itself. - */ - public MongoDbV2Sink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Sink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Sink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Sink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Sink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Sink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Sink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2Source.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2Source.java deleted file mode 100644 index d9215c3df138d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2Source.java +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for a MongoDB database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MongoDbV2Source") -@Fluent -public final class MongoDbV2Source extends CopySource { - /* - * Specifies selection filter using query operators. To return all - * documents in a collection, omit this parameter or pass an empty document - * ({}). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "filter") - private Object filter; - - /* - * Cursor methods for Mongodb query - */ - @JsonProperty(value = "cursorMethods") - private MongoDbCursorMethodsProperties cursorMethods; - - /* - * Specifies the number of documents to return in each batch of the - * response from MongoDB instance. In most cases, modifying the batch size - * will not affect the user or the application. This property's main - * purpose is to avoid hit the limitation of response size. Type: integer - * (or Expression with resultType integer). - */ - @JsonProperty(value = "batchSize") - private Object batchSize; - - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the filter property: Specifies selection filter using query operators. To return all documents in a - * collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType - * string). - * - * @return the filter value. - */ - public Object filter() { - return this.filter; - } - - /** - * Set the filter property: Specifies selection filter using query operators. To return all documents in a - * collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType - * string). - * - * @param filter the filter value to set. - * @return the MongoDbV2Source object itself. - */ - public MongoDbV2Source withFilter(Object filter) { - this.filter = filter; - return this; - } - - /** - * Get the cursorMethods property: Cursor methods for Mongodb query. - * - * @return the cursorMethods value. - */ - public MongoDbCursorMethodsProperties cursorMethods() { - return this.cursorMethods; - } - - /** - * Set the cursorMethods property: Cursor methods for Mongodb query. - * - * @param cursorMethods the cursorMethods value to set. - * @return the MongoDbV2Source object itself. - */ - public MongoDbV2Source withCursorMethods(MongoDbCursorMethodsProperties cursorMethods) { - this.cursorMethods = cursorMethods; - return this; - } - - /** - * Get the batchSize property: Specifies the number of documents to return in each batch of the response from - * MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This - * property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with - * resultType integer). - * - * @return the batchSize value. - */ - public Object batchSize() { - return this.batchSize; - } - - /** - * Set the batchSize property: Specifies the number of documents to return in each batch of the response from - * MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This - * property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with - * resultType integer). - * - * @param batchSize the batchSize value to set. - * @return the MongoDbV2Source object itself. - */ - public MongoDbV2Source withBatchSize(Object batchSize) { - this.batchSize = batchSize; - return this; - } - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param queryTimeout the queryTimeout value to set. - * @return the MongoDbV2Source object itself. - */ - public MongoDbV2Source withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the MongoDbV2Source object itself. - */ - public MongoDbV2Source withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Source withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Source withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Source withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2Source withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (cursorMethods() != null) { - cursorMethods().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MultiplePipelineTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MultiplePipelineTrigger.java deleted file mode 100644 index f17f8d73b7af7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MultiplePipelineTrigger.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Base class for all triggers that support one to many model for trigger to pipeline. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = MultiplePipelineTrigger.class) -@JsonTypeName("MultiplePipelineTrigger") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "ScheduleTrigger", value = ScheduleTrigger.class), - @JsonSubTypes.Type(name = "BlobTrigger", value = BlobTrigger.class), - @JsonSubTypes.Type(name = "BlobEventsTrigger", value = BlobEventsTrigger.class), - @JsonSubTypes.Type(name = "CustomEventsTrigger", value = CustomEventsTrigger.class) -}) -@Fluent -public class MultiplePipelineTrigger extends Trigger { - /* - * Pipelines that need to be started. - */ - @JsonProperty(value = "pipelines") - private List pipelines; - - /** - * Get the pipelines property: Pipelines that need to be started. - * - * @return the pipelines value. - */ - public List pipelines() { - return this.pipelines; - } - - /** - * Set the pipelines property: Pipelines that need to be started. - * - * @param pipelines the pipelines value to set. - * @return the MultiplePipelineTrigger object itself. - */ - public MultiplePipelineTrigger withPipelines(List pipelines) { - this.pipelines = pipelines; - return this; - } - - /** {@inheritDoc} */ - @Override - public MultiplePipelineTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MultiplePipelineTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (pipelines() != null) { - pipelines().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java deleted file mode 100644 index bb40f4f09ecfe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MySqlLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for MySQL data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MySql") -@Fluent -public final class MySqlLinkedService extends LinkedService { - /* - * MySQL linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private MySqlLinkedServiceTypeProperties innerTypeProperties = new MySqlLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: MySQL linked service properties. - * - * @return the innerTypeProperties value. - */ - private MySqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. - * - * @param connectionString the connectionString value to set. - * @return the MySqlLinkedService object itself. - */ - public MySqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the MySqlLinkedService object itself. - */ - public MySqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MySqlLinkedService object itself. - */ - public MySqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MySqlLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MySqlLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlSource.java deleted file mode 100644 index b6a4420a0a6c5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlSource.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for MySQL databases. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MySqlSource") -@Fluent -public final class MySqlSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the MySqlSource object itself. - */ - public MySqlSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java deleted file mode 100644 index b4c9945aa0cac..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.MySqlTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The MySQL table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("MySqlTable") -@Fluent -public final class MySqlTableDataset extends Dataset { - /* - * MySQL table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private MySqlTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: MySQL table dataset properties. - * - * @return the innerTypeProperties value. - */ - private MySqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MySqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MySqlTableDataset object itself. - */ - public MySqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java deleted file mode 100644 index a15adb7091e8a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.NetezzaLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Netezza linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Netezza") -@Fluent -public final class NetezzaLinkedService extends LinkedService { - /* - * Netezza linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private NetezzaLinkedServiceTypeProperties innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Netezza linked service properties. - * - * @return the innerTypeProperties value. - */ - private NetezzaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the NetezzaLinkedService object itself. - */ - public NetezzaLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the NetezzaLinkedService object itself. - */ - public NetezzaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the NetezzaLinkedService object itself. - */ - public NetezzaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model NetezzaLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(NetezzaLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaPartitionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaPartitionSettings.java deleted file mode 100644 index ccbb68e617d63..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaPartitionSettings.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The settings that will be leveraged for Netezza source partitioning. */ -@Fluent -public final class NetezzaPartitionSettings { - /* - * The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionColumnName") - private Object partitionColumnName; - - /* - * The maximum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionUpperBound") - private Object partitionUpperBound; - - /* - * The minimum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionLowerBound") - private Object partitionLowerBound; - - /** - * Get the partitionColumnName property: The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionColumnName value. - */ - public Object partitionColumnName() { - return this.partitionColumnName; - } - - /** - * Set the partitionColumnName property: The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionColumnName the partitionColumnName value to set. - * @return the NetezzaPartitionSettings object itself. - */ - public NetezzaPartitionSettings withPartitionColumnName(Object partitionColumnName) { - this.partitionColumnName = partitionColumnName; - return this; - } - - /** - * Get the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionUpperBound value. - */ - public Object partitionUpperBound() { - return this.partitionUpperBound; - } - - /** - * Set the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionUpperBound the partitionUpperBound value to set. - * @return the NetezzaPartitionSettings object itself. - */ - public NetezzaPartitionSettings withPartitionUpperBound(Object partitionUpperBound) { - this.partitionUpperBound = partitionUpperBound; - return this; - } - - /** - * Get the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionLowerBound value. - */ - public Object partitionLowerBound() { - return this.partitionLowerBound; - } - - /** - * Set the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionLowerBound the partitionLowerBound value to set. - * @return the NetezzaPartitionSettings object itself. - */ - public NetezzaPartitionSettings withPartitionLowerBound(Object partitionLowerBound) { - this.partitionLowerBound = partitionLowerBound; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaSource.java deleted file mode 100644 index 060c1fde21c48..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaSource.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Netezza source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("NetezzaSource") -@Fluent -public final class NetezzaSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The partition mechanism that will be used for Netezza read in parallel. - * Possible values include: "None", "DataSlice", "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Netezza source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private NetezzaPartitionSettings partitionSettings; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the NetezzaSource object itself. - */ - public NetezzaSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Netezza read in parallel. - * Possible values include: "None", "DataSlice", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Netezza read in parallel. - * Possible values include: "None", "DataSlice", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the NetezzaSource object itself. - */ - public NetezzaSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Netezza source partitioning. - * - * @return the partitionSettings value. - */ - public NetezzaPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Netezza source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the NetezzaSource object itself. - */ - public NetezzaSource withPartitionSettings(NetezzaPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java deleted file mode 100644 index 887b9cea62c6d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.NetezzaTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Netezza dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("NetezzaTable") -@Fluent -public final class NetezzaTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private NetezzaTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private NetezzaTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the NetezzaTableDataset object itself. - */ - public NetezzaTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Netezza. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Netezza. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the NetezzaTableDataset object itself. - */ - public NetezzaTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the NetezzaTableDataset object itself. - */ - public NetezzaTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataAadServicePrincipalCredentialType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataAadServicePrincipalCredentialType.java deleted file mode 100644 index 6e79b87585cea..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataAadServicePrincipalCredentialType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ODataAadServicePrincipalCredentialType. */ -public final class ODataAadServicePrincipalCredentialType - extends ExpandableStringEnum { - /** Static value ServicePrincipalKey for ODataAadServicePrincipalCredentialType. */ - public static final ODataAadServicePrincipalCredentialType SERVICE_PRINCIPAL_KEY = - fromString("ServicePrincipalKey"); - - /** Static value ServicePrincipalCert for ODataAadServicePrincipalCredentialType. */ - public static final ODataAadServicePrincipalCredentialType SERVICE_PRINCIPAL_CERT = - fromString("ServicePrincipalCert"); - - /** - * Creates or finds a ODataAadServicePrincipalCredentialType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ODataAadServicePrincipalCredentialType. - */ - @JsonCreator - public static ODataAadServicePrincipalCredentialType fromString(String name) { - return fromString(name, ODataAadServicePrincipalCredentialType.class); - } - - /** @return known ODataAadServicePrincipalCredentialType values. */ - public static Collection values() { - return values(ODataAadServicePrincipalCredentialType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataAuthenticationType.java deleted file mode 100644 index 72514a35aea59..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataAuthenticationType.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ODataAuthenticationType. */ -public final class ODataAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for ODataAuthenticationType. */ - public static final ODataAuthenticationType BASIC = fromString("Basic"); - - /** Static value Anonymous for ODataAuthenticationType. */ - public static final ODataAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value Windows for ODataAuthenticationType. */ - public static final ODataAuthenticationType WINDOWS = fromString("Windows"); - - /** Static value AadServicePrincipal for ODataAuthenticationType. */ - public static final ODataAuthenticationType AAD_SERVICE_PRINCIPAL = fromString("AadServicePrincipal"); - - /** Static value ManagedServiceIdentity for ODataAuthenticationType. */ - public static final ODataAuthenticationType MANAGED_SERVICE_IDENTITY = fromString("ManagedServiceIdentity"); - - /** - * Creates or finds a ODataAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ODataAuthenticationType. - */ - @JsonCreator - public static ODataAuthenticationType fromString(String name) { - return fromString(name, ODataAuthenticationType.class); - } - - /** @return known ODataAuthenticationType values. */ - public static Collection values() { - return values(ODataAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java deleted file mode 100644 index aeaed6edf35e6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java +++ /dev/null @@ -1,435 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ODataLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Open Data Protocol (OData) linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OData") -@Fluent -public final class ODataLinkedService extends LinkedService { - /* - * OData linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ODataLinkedServiceTypeProperties innerTypeProperties = new ODataLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: OData linked service properties. - * - * @return the innerTypeProperties value. - */ - private ODataLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ODataLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The URL of the OData service endpoint. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The URL of the OData service endpoint. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the OData service. - * - * @return the authenticationType value. - */ - public ODataAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the OData service. - * - * @param authenticationType the authenticationType value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withAuthenticationType(ODataAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: User name of the OData service. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name of the OData service. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password of the OData service. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password of the OData service. - * - * @param password the password value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authHeaders(); - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withAuthHeaders(Object authHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthHeaders(authHeaders); - return this; - } - - /** - * Get the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Type: string (or Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Type: string (or Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application id of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: Specify the application id of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the aadResourceId property: Specify the resource you are requesting authorization to use Directory. Type: - * string (or Expression with resultType string). - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().aadResourceId(); - } - - /** - * Set the aadResourceId property: Specify the resource you are requesting authorization to use Directory. Type: - * string (or Expression with resultType string). - * - * @param aadResourceId the aadResourceId value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withAadResourceId(Object aadResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadResourceId(aadResourceId); - return this; - } - - /** - * Get the aadServicePrincipalCredentialType property: Specify the credential type (key or cert) is used for service - * principal. - * - * @return the aadServicePrincipalCredentialType value. - */ - public ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().aadServicePrincipalCredentialType(); - } - - /** - * Set the aadServicePrincipalCredentialType property: Specify the credential type (key or cert) is used for service - * principal. - * - * @param aadServicePrincipalCredentialType the aadServicePrincipalCredentialType value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withAadServicePrincipalCredentialType( - ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadServicePrincipalCredentialType(aadServicePrincipalCredentialType); - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application - * registered in Azure Active Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalEmbeddedCert value. - */ - public SecretBase servicePrincipalEmbeddedCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalEmbeddedCert(); - } - - /** - * Set the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application - * registered in Azure Active Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalEmbeddedCert the servicePrincipalEmbeddedCert value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withServicePrincipalEmbeddedCert(SecretBase servicePrincipalEmbeddedCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalEmbeddedCert(servicePrincipalEmbeddedCert); - return this; - } - - /** - * Get the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your - * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalEmbeddedCertPassword value. - */ - public SecretBase servicePrincipalEmbeddedCertPassword() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().servicePrincipalEmbeddedCertPassword(); - } - - /** - * Set the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your - * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalEmbeddedCertPassword the servicePrincipalEmbeddedCertPassword value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withServicePrincipalEmbeddedCertPassword( - SecretBase servicePrincipalEmbeddedCertPassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalEmbeddedCertPassword(servicePrincipalEmbeddedCertPassword); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ODataLinkedService object itself. - */ - public ODataLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ODataLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ODataLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java deleted file mode 100644 index be19528bb056d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.ODataResourceDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Open Data Protocol (OData) resource dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ODataResource") -@Fluent -public final class ODataResourceDataset extends Dataset { - /* - * OData dataset properties. - */ - @JsonProperty(value = "typeProperties") - private ODataResourceDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: OData dataset properties. - * - * @return the innerTypeProperties value. - */ - private ODataResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ODataResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the ODataResourceDataset object itself. - */ - public ODataResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataSource.java deleted file mode 100644 index f7345655a7ceb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataSource.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for OData source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ODataSource") -@Fluent -public final class ODataSource extends CopySource { - /* - * OData query. For example, "$top=1". Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get - * a response, not the timeout to read response data. Default value: - * 00:05:00. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: OData query. For example, "$top=1". Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: OData query. For example, "$top=1". Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the ODataSource object itself. - */ - public ODataSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the ODataSource object itself. - */ - public ODataSource withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the ODataSource object itself. - */ - public ODataSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ODataSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java deleted file mode 100644 index 009526e789749..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OdbcLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Open Database Connectivity (ODBC) linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Odbc") -@Fluent -public final class OdbcLinkedService extends LinkedService { - /* - * ODBC linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private OdbcLinkedServiceTypeProperties innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: ODBC linked service properties. - * - * @return the innerTypeProperties value. - */ - private OdbcLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the OdbcLinkedService object itself. - */ - public OdbcLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the OdbcLinkedService object itself. - */ - public OdbcLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the OdbcLinkedService object itself. - */ - public OdbcLinkedService withCredential(SecretBase credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the OdbcLinkedService object itself. - */ - public OdbcLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the OdbcLinkedService object itself. - */ - public OdbcLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OdbcLinkedService object itself. - */ - public OdbcLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model OdbcLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OdbcLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcSink.java deleted file mode 100644 index b0eac363095a0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcSink.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity ODBC sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OdbcSink") -@Fluent -public final class OdbcSink extends CopySink { - /* - * A query to execute before starting the copy. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /** - * Get the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: A query to execute before starting the copy. Type: string (or Expression with - * resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the OdbcSink object itself. - */ - public OdbcSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcSource.java deleted file mode 100644 index e0d8c0c3a1464..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcSource.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for ODBC databases. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OdbcSource") -@Fluent -public final class OdbcSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the OdbcSource object itself. - */ - public OdbcSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java deleted file mode 100644 index d0965383366d9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.OdbcTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The ODBC table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OdbcTable") -@Fluent -public final class OdbcTableDataset extends Dataset { - /* - * ODBC table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private OdbcTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: ODBC table dataset properties. - * - * @return the innerTypeProperties value. - */ - private OdbcTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OdbcTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public OdbcTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the OdbcTableDataset object itself. - */ - public OdbcTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java deleted file mode 100644 index 1e35c060ba2a0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.Office365DatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Office365 account. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Office365Table") -@Fluent -public final class Office365Dataset extends Dataset { - /* - * Office365 dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private Office365DatasetTypeProperties innerTypeProperties = new Office365DatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Office365 dataset properties. - * - * @return the innerTypeProperties value. - */ - private Office365DatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public Office365Dataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Dataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Dataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Dataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Dataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Dataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Dataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the Office365Dataset object itself. - */ - public Office365Dataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365DatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @return the predicate value. - */ - public Object predicate() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().predicate(); - } - - /** - * Set the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @param predicate the predicate value to set. - * @return the Office365Dataset object itself. - */ - public Office365Dataset withPredicate(Object predicate) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365DatasetTypeProperties(); - } - this.innerTypeProperties().withPredicate(predicate); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model Office365Dataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Office365Dataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java deleted file mode 100644 index d2176258036e7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.Office365LinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Office365 linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Office365") -@Fluent -public final class Office365LinkedService extends LinkedService { - /* - * Office365 linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private Office365LinkedServiceTypeProperties innerTypeProperties = new Office365LinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Office365 linked service properties. - * - * @return the innerTypeProperties value. - */ - private Office365LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public Office365LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the office365TenantId property: Azure tenant ID to which the Office 365 account belongs. Type: string (or - * Expression with resultType string). - * - * @return the office365TenantId value. - */ - public Object office365TenantId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().office365TenantId(); - } - - /** - * Set the office365TenantId property: Azure tenant ID to which the Office 365 account belongs. Type: string (or - * Expression with resultType string). - * - * @param office365TenantId the office365TenantId value to set. - * @return the Office365LinkedService object itself. - */ - public Office365LinkedService withOffice365TenantId(Object office365TenantId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOffice365TenantId(office365TenantId); - return this; - } - - /** - * Get the servicePrincipalTenantId property: Specify the tenant information under which your Azure AD web - * application resides. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalTenantId value. - */ - public Object servicePrincipalTenantId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalTenantId(); - } - - /** - * Set the servicePrincipalTenantId property: Specify the tenant information under which your Azure AD web - * application resides. Type: string (or Expression with resultType string). - * - * @param servicePrincipalTenantId the servicePrincipalTenantId value to set. - * @return the Office365LinkedService object itself. - */ - public Office365LinkedService withServicePrincipalTenantId(Object servicePrincipalTenantId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalTenantId(servicePrincipalTenantId); - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the Office365LinkedService object itself. - */ - public Office365LinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the application's key. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: Specify the application's key. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the Office365LinkedService object itself. - */ - public Office365LinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the Office365LinkedService object itself. - */ - public Office365LinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model Office365LinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Office365LinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Source.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Source.java deleted file mode 100644 index 80bc2d53194c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Source.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for an Office 365 service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Office365Source") -@Fluent -public final class Office365Source extends CopySource { - /* - * The groups containing all the users. Type: array of strings (or - * Expression with resultType array of strings). - */ - @JsonProperty(value = "allowedGroups") - private Object allowedGroups; - - /* - * The user scope uri. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "userScopeFilterUri") - private Object userScopeFilterUri; - - /* - * The Column to apply the and . Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "dateFilterColumn") - private Object dateFilterColumn; - - /* - * Start time of the requested range for this dataset. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "startTime") - private Object startTime; - - /* - * End time of the requested range for this dataset. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "endTime") - private Object endTime; - - /* - * The columns to be read out from the Office 365 table. Type: array of - * objects (or Expression with resultType array of objects). Example: [ { - * "name": "Id" }, { "name": "CreatedDateTime" } ] - */ - @JsonProperty(value = "outputColumns") - private Object outputColumns; - - /** - * Get the allowedGroups property: The groups containing all the users. Type: array of strings (or Expression with - * resultType array of strings). - * - * @return the allowedGroups value. - */ - public Object allowedGroups() { - return this.allowedGroups; - } - - /** - * Set the allowedGroups property: The groups containing all the users. Type: array of strings (or Expression with - * resultType array of strings). - * - * @param allowedGroups the allowedGroups value to set. - * @return the Office365Source object itself. - */ - public Office365Source withAllowedGroups(Object allowedGroups) { - this.allowedGroups = allowedGroups; - return this; - } - - /** - * Get the userScopeFilterUri property: The user scope uri. Type: string (or Expression with resultType string). - * - * @return the userScopeFilterUri value. - */ - public Object userScopeFilterUri() { - return this.userScopeFilterUri; - } - - /** - * Set the userScopeFilterUri property: The user scope uri. Type: string (or Expression with resultType string). - * - * @param userScopeFilterUri the userScopeFilterUri value to set. - * @return the Office365Source object itself. - */ - public Office365Source withUserScopeFilterUri(Object userScopeFilterUri) { - this.userScopeFilterUri = userScopeFilterUri; - return this; - } - - /** - * Get the dateFilterColumn property: The Column to apply the <paramref name="StartTime"/> and <paramref - * name="EndTime"/>. Type: string (or Expression with resultType string). - * - * @return the dateFilterColumn value. - */ - public Object dateFilterColumn() { - return this.dateFilterColumn; - } - - /** - * Set the dateFilterColumn property: The Column to apply the <paramref name="StartTime"/> and <paramref - * name="EndTime"/>. Type: string (or Expression with resultType string). - * - * @param dateFilterColumn the dateFilterColumn value to set. - * @return the Office365Source object itself. - */ - public Office365Source withDateFilterColumn(Object dateFilterColumn) { - this.dateFilterColumn = dateFilterColumn; - return this; - } - - /** - * Get the startTime property: Start time of the requested range for this dataset. Type: string (or Expression with - * resultType string). - * - * @return the startTime value. - */ - public Object startTime() { - return this.startTime; - } - - /** - * Set the startTime property: Start time of the requested range for this dataset. Type: string (or Expression with - * resultType string). - * - * @param startTime the startTime value to set. - * @return the Office365Source object itself. - */ - public Office365Source withStartTime(Object startTime) { - this.startTime = startTime; - return this; - } - - /** - * Get the endTime property: End time of the requested range for this dataset. Type: string (or Expression with - * resultType string). - * - * @return the endTime value. - */ - public Object endTime() { - return this.endTime; - } - - /** - * Set the endTime property: End time of the requested range for this dataset. Type: string (or Expression with - * resultType string). - * - * @param endTime the endTime value to set. - * @return the Office365Source object itself. - */ - public Office365Source withEndTime(Object endTime) { - this.endTime = endTime; - return this; - } - - /** - * Get the outputColumns property: The columns to be read out from the Office 365 table. Type: array of objects (or - * Expression with resultType array of objects). Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ]. - * - * @return the outputColumns value. - */ - public Object outputColumns() { - return this.outputColumns; - } - - /** - * Set the outputColumns property: The columns to be read out from the Office 365 table. Type: array of objects (or - * Expression with resultType array of objects). Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ]. - * - * @param outputColumns the outputColumns value to set. - * @return the Office365Source object itself. - */ - public Office365Source withOutputColumns(Object outputColumns) { - this.outputColumns = outputColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Source withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Source withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Source withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public Office365Source withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operation.java deleted file mode 100644 index 492eb5ce7d3cc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operation.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; - -/** An immutable client-side representation of Operation. */ -public interface Operation { - /** - * Gets the name property: Operation name: {provider}/{resource}/{operation}. - * - * @return the name value. - */ - String name(); - - /** - * Gets the origin property: The intended executor of the operation. - * - * @return the origin value. - */ - String origin(); - - /** - * Gets the display property: Metadata associated with the operation. - * - * @return the display value. - */ - OperationDisplay display(); - - /** - * Gets the serviceSpecification property: Details about a service operation. - * - * @return the serviceSpecification value. - */ - OperationServiceSpecification serviceSpecification(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.OperationInner object. - * - * @return the inner object. - */ - OperationInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationDisplay.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationDisplay.java deleted file mode 100644 index f4968a0be3588..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationDisplay.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Metadata associated with the operation. */ -@Fluent -public final class OperationDisplay { - /* - * The description of the operation. - */ - @JsonProperty(value = "description") - private String description; - - /* - * The name of the provider. - */ - @JsonProperty(value = "provider") - private String provider; - - /* - * The name of the resource type on which the operation is performed. - */ - @JsonProperty(value = "resource") - private String resource; - - /* - * The type of operation: get, read, delete, etc. - */ - @JsonProperty(value = "operation") - private String operation; - - /** - * Get the description property: The description of the operation. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The description of the operation. - * - * @param description the description value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the provider property: The name of the provider. - * - * @return the provider value. - */ - public String provider() { - return this.provider; - } - - /** - * Set the provider property: The name of the provider. - * - * @param provider the provider value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withProvider(String provider) { - this.provider = provider; - return this; - } - - /** - * Get the resource property: The name of the resource type on which the operation is performed. - * - * @return the resource value. - */ - public String resource() { - return this.resource; - } - - /** - * Set the resource property: The name of the resource type on which the operation is performed. - * - * @param resource the resource value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withResource(String resource) { - this.resource = resource; - return this; - } - - /** - * Get the operation property: The type of operation: get, read, delete, etc. - * - * @return the operation value. - */ - public String operation() { - return this.operation; - } - - /** - * Set the operation property: The type of operation: get, read, delete, etc. - * - * @param operation the operation value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withOperation(String operation) { - this.operation = operation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationListResponse.java deleted file mode 100644 index 3cb0f4f9fc728..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationListResponse.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of operations that can be performed by the Data Factory service. */ -@Fluent -public final class OperationListResponse { - /* - * List of Data Factory operations supported by the Data Factory resource - * provider. - */ - @JsonProperty(value = "value") - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of Data Factory operations supported by the Data Factory resource provider. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of Data Factory operations supported by the Data Factory resource provider. - * - * @param value the value value to set. - * @return the OperationListResponse object itself. - */ - public OperationListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the OperationListResponse object itself. - */ - public OperationListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationLogSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationLogSpecification.java deleted file mode 100644 index b0669455110ea..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationLogSpecification.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Details about an operation related to logs. */ -@Fluent -public final class OperationLogSpecification { - /* - * The name of the log category. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Localized display name. - */ - @JsonProperty(value = "displayName") - private String displayName; - - /* - * Blobs created in the customer storage account, per hour. - */ - @JsonProperty(value = "blobDuration") - private String blobDuration; - - /** - * Get the name property: The name of the log category. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the log category. - * - * @param name the name value to set. - * @return the OperationLogSpecification object itself. - */ - public OperationLogSpecification withName(String name) { - this.name = name; - return this; - } - - /** - * Get the displayName property: Localized display name. - * - * @return the displayName value. - */ - public String displayName() { - return this.displayName; - } - - /** - * Set the displayName property: Localized display name. - * - * @param displayName the displayName value to set. - * @return the OperationLogSpecification object itself. - */ - public OperationLogSpecification withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Get the blobDuration property: Blobs created in the customer storage account, per hour. - * - * @return the blobDuration value. - */ - public String blobDuration() { - return this.blobDuration; - } - - /** - * Set the blobDuration property: Blobs created in the customer storage account, per hour. - * - * @param blobDuration the blobDuration value to set. - * @return the OperationLogSpecification object itself. - */ - public OperationLogSpecification withBlobDuration(String blobDuration) { - this.blobDuration = blobDuration; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricAvailability.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricAvailability.java deleted file mode 100644 index 653d511df8950..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricAvailability.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Defines how often data for a metric becomes available. */ -@Fluent -public final class OperationMetricAvailability { - /* - * The granularity for the metric. - */ - @JsonProperty(value = "timeGrain") - private String timeGrain; - - /* - * Blob created in the customer storage account, per hour. - */ - @JsonProperty(value = "blobDuration") - private String blobDuration; - - /** - * Get the timeGrain property: The granularity for the metric. - * - * @return the timeGrain value. - */ - public String timeGrain() { - return this.timeGrain; - } - - /** - * Set the timeGrain property: The granularity for the metric. - * - * @param timeGrain the timeGrain value to set. - * @return the OperationMetricAvailability object itself. - */ - public OperationMetricAvailability withTimeGrain(String timeGrain) { - this.timeGrain = timeGrain; - return this; - } - - /** - * Get the blobDuration property: Blob created in the customer storage account, per hour. - * - * @return the blobDuration value. - */ - public String blobDuration() { - return this.blobDuration; - } - - /** - * Set the blobDuration property: Blob created in the customer storage account, per hour. - * - * @param blobDuration the blobDuration value to set. - * @return the OperationMetricAvailability object itself. - */ - public OperationMetricAvailability withBlobDuration(String blobDuration) { - this.blobDuration = blobDuration; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricDimension.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricDimension.java deleted file mode 100644 index 395fae49eb37b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricDimension.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Defines the metric dimension. */ -@Fluent -public final class OperationMetricDimension { - /* - * The name of the dimension for the metric. - */ - @JsonProperty(value = "name") - private String name; - - /* - * The display name of the metric dimension. - */ - @JsonProperty(value = "displayName") - private String displayName; - - /* - * Whether the dimension should be exported to Azure Monitor. - */ - @JsonProperty(value = "toBeExportedForShoebox") - private Boolean toBeExportedForShoebox; - - /** - * Get the name property: The name of the dimension for the metric. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the dimension for the metric. - * - * @param name the name value to set. - * @return the OperationMetricDimension object itself. - */ - public OperationMetricDimension withName(String name) { - this.name = name; - return this; - } - - /** - * Get the displayName property: The display name of the metric dimension. - * - * @return the displayName value. - */ - public String displayName() { - return this.displayName; - } - - /** - * Set the displayName property: The display name of the metric dimension. - * - * @param displayName the displayName value to set. - * @return the OperationMetricDimension object itself. - */ - public OperationMetricDimension withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Get the toBeExportedForShoebox property: Whether the dimension should be exported to Azure Monitor. - * - * @return the toBeExportedForShoebox value. - */ - public Boolean toBeExportedForShoebox() { - return this.toBeExportedForShoebox; - } - - /** - * Set the toBeExportedForShoebox property: Whether the dimension should be exported to Azure Monitor. - * - * @param toBeExportedForShoebox the toBeExportedForShoebox value to set. - * @return the OperationMetricDimension object itself. - */ - public OperationMetricDimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox) { - this.toBeExportedForShoebox = toBeExportedForShoebox; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricSpecification.java deleted file mode 100644 index 53e069100cfe2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationMetricSpecification.java +++ /dev/null @@ -1,287 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Details about an operation related to metrics. */ -@Fluent -public final class OperationMetricSpecification { - /* - * The name of the metric. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Localized display name of the metric. - */ - @JsonProperty(value = "displayName") - private String displayName; - - /* - * The description of the metric. - */ - @JsonProperty(value = "displayDescription") - private String displayDescription; - - /* - * The unit that the metric is measured in. - */ - @JsonProperty(value = "unit") - private String unit; - - /* - * The type of metric aggregation. - */ - @JsonProperty(value = "aggregationType") - private String aggregationType; - - /* - * Whether or not the service is using regional MDM accounts. - */ - @JsonProperty(value = "enableRegionalMdmAccount") - private String enableRegionalMdmAccount; - - /* - * The name of the MDM account. - */ - @JsonProperty(value = "sourceMdmAccount") - private String sourceMdmAccount; - - /* - * The name of the MDM namespace. - */ - @JsonProperty(value = "sourceMdmNamespace") - private String sourceMdmNamespace; - - /* - * Defines how often data for metrics becomes available. - */ - @JsonProperty(value = "availabilities") - private List availabilities; - - /* - * Defines the metric dimension. - */ - @JsonProperty(value = "dimensions") - private List dimensions; - - /** - * Get the name property: The name of the metric. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the metric. - * - * @param name the name value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withName(String name) { - this.name = name; - return this; - } - - /** - * Get the displayName property: Localized display name of the metric. - * - * @return the displayName value. - */ - public String displayName() { - return this.displayName; - } - - /** - * Set the displayName property: Localized display name of the metric. - * - * @param displayName the displayName value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Get the displayDescription property: The description of the metric. - * - * @return the displayDescription value. - */ - public String displayDescription() { - return this.displayDescription; - } - - /** - * Set the displayDescription property: The description of the metric. - * - * @param displayDescription the displayDescription value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withDisplayDescription(String displayDescription) { - this.displayDescription = displayDescription; - return this; - } - - /** - * Get the unit property: The unit that the metric is measured in. - * - * @return the unit value. - */ - public String unit() { - return this.unit; - } - - /** - * Set the unit property: The unit that the metric is measured in. - * - * @param unit the unit value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withUnit(String unit) { - this.unit = unit; - return this; - } - - /** - * Get the aggregationType property: The type of metric aggregation. - * - * @return the aggregationType value. - */ - public String aggregationType() { - return this.aggregationType; - } - - /** - * Set the aggregationType property: The type of metric aggregation. - * - * @param aggregationType the aggregationType value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withAggregationType(String aggregationType) { - this.aggregationType = aggregationType; - return this; - } - - /** - * Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. - * - * @return the enableRegionalMdmAccount value. - */ - public String enableRegionalMdmAccount() { - return this.enableRegionalMdmAccount; - } - - /** - * Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. - * - * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withEnableRegionalMdmAccount(String enableRegionalMdmAccount) { - this.enableRegionalMdmAccount = enableRegionalMdmAccount; - return this; - } - - /** - * Get the sourceMdmAccount property: The name of the MDM account. - * - * @return the sourceMdmAccount value. - */ - public String sourceMdmAccount() { - return this.sourceMdmAccount; - } - - /** - * Set the sourceMdmAccount property: The name of the MDM account. - * - * @param sourceMdmAccount the sourceMdmAccount value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withSourceMdmAccount(String sourceMdmAccount) { - this.sourceMdmAccount = sourceMdmAccount; - return this; - } - - /** - * Get the sourceMdmNamespace property: The name of the MDM namespace. - * - * @return the sourceMdmNamespace value. - */ - public String sourceMdmNamespace() { - return this.sourceMdmNamespace; - } - - /** - * Set the sourceMdmNamespace property: The name of the MDM namespace. - * - * @param sourceMdmNamespace the sourceMdmNamespace value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { - this.sourceMdmNamespace = sourceMdmNamespace; - return this; - } - - /** - * Get the availabilities property: Defines how often data for metrics becomes available. - * - * @return the availabilities value. - */ - public List availabilities() { - return this.availabilities; - } - - /** - * Set the availabilities property: Defines how often data for metrics becomes available. - * - * @param availabilities the availabilities value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withAvailabilities(List availabilities) { - this.availabilities = availabilities; - return this; - } - - /** - * Get the dimensions property: Defines the metric dimension. - * - * @return the dimensions value. - */ - public List dimensions() { - return this.dimensions; - } - - /** - * Set the dimensions property: Defines the metric dimension. - * - * @param dimensions the dimensions value to set. - * @return the OperationMetricSpecification object itself. - */ - public OperationMetricSpecification withDimensions(List dimensions) { - this.dimensions = dimensions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (availabilities() != null) { - availabilities().forEach(e -> e.validate()); - } - if (dimensions() != null) { - dimensions().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationServiceSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationServiceSpecification.java deleted file mode 100644 index 7ea87544b1659..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OperationServiceSpecification.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Details about a service operation. */ -@Fluent -public final class OperationServiceSpecification { - /* - * Details about operations related to logs. - */ - @JsonProperty(value = "logSpecifications") - private List logSpecifications; - - /* - * Details about operations related to metrics. - */ - @JsonProperty(value = "metricSpecifications") - private List metricSpecifications; - - /** - * Get the logSpecifications property: Details about operations related to logs. - * - * @return the logSpecifications value. - */ - public List logSpecifications() { - return this.logSpecifications; - } - - /** - * Set the logSpecifications property: Details about operations related to logs. - * - * @param logSpecifications the logSpecifications value to set. - * @return the OperationServiceSpecification object itself. - */ - public OperationServiceSpecification withLogSpecifications(List logSpecifications) { - this.logSpecifications = logSpecifications; - return this; - } - - /** - * Get the metricSpecifications property: Details about operations related to metrics. - * - * @return the metricSpecifications value. - */ - public List metricSpecifications() { - return this.metricSpecifications; - } - - /** - * Set the metricSpecifications property: Details about operations related to metrics. - * - * @param metricSpecifications the metricSpecifications value to set. - * @return the OperationServiceSpecification object itself. - */ - public OperationServiceSpecification withMetricSpecifications( - List metricSpecifications) { - this.metricSpecifications = metricSpecifications; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (logSpecifications() != null) { - logSpecifications().forEach(e -> e.validate()); - } - if (metricSpecifications() != null) { - metricSpecifications().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java deleted file mode 100644 index db5ba8f4e1140..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; - -/** Resource collection API of Operations. */ -public interface Operations { - /** - * Lists the available Azure Data Factory API operations. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedIterable}. - */ - PagedIterable list(); - - /** - * Lists the available Azure Data Factory API operations. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link - * PagedIterable}. - */ - PagedIterable list(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java deleted file mode 100644 index 04903971a2916..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OracleCloudStorageLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Oracle Cloud Storage. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleCloudStorage") -@Fluent -public final class OracleCloudStorageLinkedService extends LinkedService { - /* - * Oracle Cloud Storage linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private OracleCloudStorageLinkedServiceTypeProperties innerTypeProperties = - new OracleCloudStorageLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Oracle Cloud Storage linked service properties. - * - * @return the innerTypeProperties value. - */ - private OracleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the accessKeyId property: The access key identifier of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); - } - - /** - * Set the accessKeyId property: The access key identifier of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the OracleCloudStorageLinkedService object itself. - */ - public OracleCloudStorageLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); - } - - /** - * Set the secretAccessKey property: The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the OracleCloudStorageLinkedService object itself. - */ - public OracleCloudStorageLinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Oracle Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Oracle Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the OracleCloudStorageLinkedService object itself. - */ - public OracleCloudStorageLinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleCloudStorageLinkedService object itself. - */ - public OracleCloudStorageLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model OracleCloudStorageLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OracleCloudStorageLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLocation.java deleted file mode 100644 index f62e7351c4406..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLocation.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of Oracle Cloud Storage dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleCloudStorageLocation") -@Fluent -public final class OracleCloudStorageLocation extends DatasetLocation { - /* - * Specify the bucketName of Oracle Cloud Storage. Type: string (or - * Expression with resultType string) - */ - @JsonProperty(value = "bucketName") - private Object bucketName; - - /* - * Specify the version of Oracle Cloud Storage. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /** - * Get the bucketName property: Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.bucketName; - } - - /** - * Set the bucketName property: Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @param bucketName the bucketName value to set. - * @return the OracleCloudStorageLocation object itself. - */ - public OracleCloudStorageLocation withBucketName(Object bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Get the version property: Specify the version of Oracle Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Specify the version of Oracle Cloud Storage. Type: string (or Expression with - * resultType string). - * - * @param version the version value to set. - * @return the OracleCloudStorageLocation object itself. - */ - public OracleCloudStorageLocation withVersion(Object version) { - this.version = version; - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageReadSettings.java deleted file mode 100644 index 39aabd8f700df..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageReadSettings.java +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Oracle Cloud Storage read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleCloudStorageReadSettings") -@Fluent -public final class OracleCloudStorageReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Oracle Cloud Storage wildcardFileName. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * The prefix filter for the Oracle Cloud Storage object name. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with - * resultType string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Oracle Cloud Storage wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Oracle Cloud Storage wildcardFileName. Type: string (or Expression with - * resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the prefix property: The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression - * with resultType string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression - * with resultType string). - * - * @param prefix the prefix value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the OracleCloudStorageReadSettings object itself. - */ - public OracleCloudStorageReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java deleted file mode 100644 index dd4037d2f8f3f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OracleLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Oracle database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Oracle") -@Fluent -public final class OracleLinkedService extends LinkedService { - /* - * Oracle database linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private OracleLinkedServiceTypeProperties innerTypeProperties = new OracleLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Oracle database linked service properties. - * - * @return the innerTypeProperties value. - */ - private OracleLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OracleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the OracleLinkedService object itself. - */ - public OracleLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the OracleLinkedService object itself. - */ - public OracleLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleLinkedService object itself. - */ - public OracleLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model OracleLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OracleLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OraclePartitionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OraclePartitionSettings.java deleted file mode 100644 index cc79dc4c1771e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OraclePartitionSettings.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The settings that will be leveraged for Oracle source partitioning. */ -@Fluent -public final class OraclePartitionSettings { - /* - * Names of the physical partitions of Oracle table. - */ - @JsonProperty(value = "partitionNames") - private Object partitionNames; - - /* - * The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionColumnName") - private Object partitionColumnName; - - /* - * The maximum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionUpperBound") - private Object partitionUpperBound; - - /* - * The minimum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionLowerBound") - private Object partitionLowerBound; - - /** - * Get the partitionNames property: Names of the physical partitions of Oracle table. - * - * @return the partitionNames value. - */ - public Object partitionNames() { - return this.partitionNames; - } - - /** - * Set the partitionNames property: Names of the physical partitions of Oracle table. - * - * @param partitionNames the partitionNames value to set. - * @return the OraclePartitionSettings object itself. - */ - public OraclePartitionSettings withPartitionNames(Object partitionNames) { - this.partitionNames = partitionNames; - return this; - } - - /** - * Get the partitionColumnName property: The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionColumnName value. - */ - public Object partitionColumnName() { - return this.partitionColumnName; - } - - /** - * Set the partitionColumnName property: The name of the column in integer type that will be used for proceeding - * range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionColumnName the partitionColumnName value to set. - * @return the OraclePartitionSettings object itself. - */ - public OraclePartitionSettings withPartitionColumnName(Object partitionColumnName) { - this.partitionColumnName = partitionColumnName; - return this; - } - - /** - * Get the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionUpperBound value. - */ - public Object partitionUpperBound() { - return this.partitionUpperBound; - } - - /** - * Set the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionUpperBound the partitionUpperBound value to set. - * @return the OraclePartitionSettings object itself. - */ - public OraclePartitionSettings withPartitionUpperBound(Object partitionUpperBound) { - this.partitionUpperBound = partitionUpperBound; - return this; - } - - /** - * Get the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionLowerBound value. - */ - public Object partitionLowerBound() { - return this.partitionLowerBound; - } - - /** - * Set the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionLowerBound the partitionLowerBound value to set. - * @return the OraclePartitionSettings object itself. - */ - public OraclePartitionSettings withPartitionLowerBound(Object partitionLowerBound) { - this.partitionLowerBound = partitionLowerBound; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java deleted file mode 100644 index 949479ddfbe02..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OracleServiceCloudLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Oracle Service Cloud linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleServiceCloud") -@Fluent -public final class OracleServiceCloudLinkedService extends LinkedService { - /* - * Oracle Service Cloud linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private OracleServiceCloudLinkedServiceTypeProperties innerTypeProperties = - new OracleServiceCloudLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Oracle Service Cloud linked service properties. - * - * @return the innerTypeProperties value. - */ - private OracleServiceCloudLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The URL of the Oracle Service Cloud instance. - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The URL of the Oracle Service Cloud instance. - * - * @param host the host value to set. - * @return the OracleServiceCloudLinkedService object itself. - */ - public OracleServiceCloudLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the username property: The user name that you use to access Oracle Service Cloud server. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name that you use to access Oracle Service Cloud server. - * - * @param username the username value to set. - * @return the OracleServiceCloudLinkedService object itself. - */ - public OracleServiceCloudLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username key. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username key. - * - * @param password the password value to set. - * @return the OracleServiceCloudLinkedService object itself. - */ - public OracleServiceCloudLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the OracleServiceCloudLinkedService object itself. - */ - public OracleServiceCloudLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the OracleServiceCloudLinkedService object itself. - */ - public OracleServiceCloudLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the OracleServiceCloudLinkedService object itself. - */ - public OracleServiceCloudLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleServiceCloudLinkedService object itself. - */ - public OracleServiceCloudLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model OracleServiceCloudLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OracleServiceCloudLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java deleted file mode 100644 index 4a652ac3efabb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Oracle Service Cloud dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleServiceCloudObject") -@Fluent -public final class OracleServiceCloudObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the OracleServiceCloudObjectDataset object itself. - */ - public OracleServiceCloudObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudSource.java deleted file mode 100644 index ee1da1eea4d33..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Oracle Service Cloud source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleServiceCloudSource") -@Fluent -public final class OracleServiceCloudSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the OracleServiceCloudSource object itself. - */ - public OracleServiceCloudSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleServiceCloudSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleSink.java deleted file mode 100644 index 6456d764c79a5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleSink.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Oracle sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleSink") -@Fluent -public final class OracleSink extends CopySink { - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the OracleSink object itself. - */ - public OracleSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleSource.java deleted file mode 100644 index 2080459384cae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleSource.java +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Oracle source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleSource") -@Fluent -public final class OracleSource extends CopySource { - /* - * Oracle reader query. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "oracleReaderQuery") - private Object oracleReaderQuery; - - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * The partition mechanism that will be used for Oracle read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Oracle source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private OraclePartitionSettings partitionSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the oracleReaderQuery property: Oracle reader query. Type: string (or Expression with resultType string). - * - * @return the oracleReaderQuery value. - */ - public Object oracleReaderQuery() { - return this.oracleReaderQuery; - } - - /** - * Set the oracleReaderQuery property: Oracle reader query. Type: string (or Expression with resultType string). - * - * @param oracleReaderQuery the oracleReaderQuery value to set. - * @return the OracleSource object itself. - */ - public OracleSource withOracleReaderQuery(Object oracleReaderQuery) { - this.oracleReaderQuery = oracleReaderQuery; - return this; - } - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param queryTimeout the queryTimeout value to set. - * @return the OracleSource object itself. - */ - public OracleSource withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Oracle read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Oracle read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the OracleSource object itself. - */ - public OracleSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Oracle source partitioning. - * - * @return the partitionSettings value. - */ - public OraclePartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Oracle source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the OracleSource object itself. - */ - public OracleSource withPartitionSettings(OraclePartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the OracleSource object itself. - */ - public OracleSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java deleted file mode 100644 index b03306c609bee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.OracleTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The on-premises Oracle database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OracleTable") -@Fluent -public final class OracleTableDataset extends Dataset { - /* - * On-premises Oracle dataset properties. - */ - @JsonProperty(value = "typeProperties") - private OracleTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: On-premises Oracle dataset properties. - * - * @return the innerTypeProperties value. - */ - private OracleTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the OracleTableDataset object itself. - */ - public OracleTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the OracleTableDataset object itself. - */ - public OracleTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the OracleTableDataset object itself. - */ - public OracleTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java deleted file mode 100644 index 90c920a675911..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.OrcDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** ORC dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Orc") -@Fluent -public final class OrcDataset extends Dataset { - /* - * ORC dataset properties. - */ - @JsonProperty(value = "typeProperties") - private OrcDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: ORC dataset properties. - * - * @return the innerTypeProperties value. - */ - private OrcDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OrcDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the ORC data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the ORC data storage. - * - * @param location the location value to set. - * @return the OrcDataset object itself. - */ - public OrcDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OrcDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the orcCompressionCodec value. - */ - public Object orcCompressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().orcCompressionCodec(); - } - - /** - * Set the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @param orcCompressionCodec the orcCompressionCodec value to set. - * @return the OrcDataset object itself. - */ - public OrcDataset withOrcCompressionCodec(Object orcCompressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OrcDatasetTypeProperties(); - } - this.innerTypeProperties().withOrcCompressionCodec(orcCompressionCodec); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcFormat.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcFormat.java deleted file mode 100644 index 7dabe4f6a21c1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcFormat.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The data stored in Optimized Row Columnar (ORC) format. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OrcFormat") -@Fluent -public final class OrcFormat extends DatasetStorageFormat { - /** {@inheritDoc} */ - @Override - public OrcFormat withSerializer(Object serializer) { - super.withSerializer(serializer); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcFormat withDeserializer(Object deserializer) { - super.withDeserializer(deserializer); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcSink.java deleted file mode 100644 index 0cf0ab700c87e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcSink.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity ORC sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OrcSink") -@Fluent -public final class OrcSink extends CopySink { - /* - * ORC store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreWriteSettings storeSettings; - - /* - * ORC format settings. - */ - @JsonProperty(value = "formatSettings") - private OrcWriteSettings formatSettings; - - /** - * Get the storeSettings property: ORC store settings. - * - * @return the storeSettings value. - */ - public StoreWriteSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: ORC store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the OrcSink object itself. - */ - public OrcSink withStoreSettings(StoreWriteSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: ORC format settings. - * - * @return the formatSettings value. - */ - public OrcWriteSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: ORC format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the OrcSink object itself. - */ - public OrcSink withFormatSettings(OrcWriteSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcSource.java deleted file mode 100644 index c4049153a60ea..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcSource.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity ORC source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OrcSource") -@Fluent -public final class OrcSource extends CopySource { - /* - * ORC store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the storeSettings property: ORC store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: ORC store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the OrcSource object itself. - */ - public OrcSource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the OrcSource object itself. - */ - public OrcSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public OrcSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcWriteSettings.java deleted file mode 100644 index 57dfc29feb12a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcWriteSettings.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Orc write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("OrcWriteSettings") -@Fluent -public final class OrcWriteSettings extends FormatWriteSettings { - /* - * Limit the written file's row count to be smaller than or equal to the - * specified count. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxRowsPerFile") - private Object maxRowsPerFile; - - /* - * Specifies the file name pattern - * _. when copy from non-file - * based store without partitionOptions. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileNamePrefix") - private Object fileNamePrefix; - - /** - * Get the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @return the maxRowsPerFile value. - */ - public Object maxRowsPerFile() { - return this.maxRowsPerFile; - } - - /** - * Set the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @param maxRowsPerFile the maxRowsPerFile value to set. - * @return the OrcWriteSettings object itself. - */ - public OrcWriteSettings withMaxRowsPerFile(Object maxRowsPerFile) { - this.maxRowsPerFile = maxRowsPerFile; - return this; - } - - /** - * Get the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @return the fileNamePrefix value. - */ - public Object fileNamePrefix() { - return this.fileNamePrefix; - } - - /** - * Set the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @param fileNamePrefix the fileNamePrefix value to set. - * @return the OrcWriteSettings object itself. - */ - public OrcWriteSettings withFileNamePrefix(Object fileNamePrefix) { - this.fileNamePrefix = fileNamePrefix; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PackageStore.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PackageStore.java deleted file mode 100644 index efe559a4331ae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PackageStore.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Package store for the SSIS integration runtime. */ -@Fluent -public final class PackageStore { - /* - * The name of the package store - */ - @JsonProperty(value = "name", required = true) - private String name; - - /* - * The package store linked service reference. - */ - @JsonProperty(value = "packageStoreLinkedService", required = true) - private EntityReference packageStoreLinkedService; - - /** - * Get the name property: The name of the package store. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the package store. - * - * @param name the name value to set. - * @return the PackageStore object itself. - */ - public PackageStore withName(String name) { - this.name = name; - return this; - } - - /** - * Get the packageStoreLinkedService property: The package store linked service reference. - * - * @return the packageStoreLinkedService value. - */ - public EntityReference packageStoreLinkedService() { - return this.packageStoreLinkedService; - } - - /** - * Set the packageStoreLinkedService property: The package store linked service reference. - * - * @param packageStoreLinkedService the packageStoreLinkedService value to set. - * @return the PackageStore object itself. - */ - public PackageStore withPackageStoreLinkedService(EntityReference packageStoreLinkedService) { - this.packageStoreLinkedService = packageStoreLinkedService; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model PackageStore")); - } - if (packageStoreLinkedService() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property packageStoreLinkedService in model PackageStore")); - } else { - packageStoreLinkedService().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PackageStore.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParameterSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParameterSpecification.java deleted file mode 100644 index 98a3b775f9bf4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParameterSpecification.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Definition of a single parameter for an entity. */ -@Fluent -public final class ParameterSpecification { - /* - * Parameter type. - */ - @JsonProperty(value = "type", required = true) - private ParameterType type; - - /* - * Default value of parameter. - */ - @JsonProperty(value = "defaultValue") - private Object defaultValue; - - /** - * Get the type property: Parameter type. - * - * @return the type value. - */ - public ParameterType type() { - return this.type; - } - - /** - * Set the type property: Parameter type. - * - * @param type the type value to set. - * @return the ParameterSpecification object itself. - */ - public ParameterSpecification withType(ParameterType type) { - this.type = type; - return this; - } - - /** - * Get the defaultValue property: Default value of parameter. - * - * @return the defaultValue value. - */ - public Object defaultValue() { - return this.defaultValue; - } - - /** - * Set the defaultValue property: Default value of parameter. - * - * @param defaultValue the defaultValue value to set. - * @return the ParameterSpecification object itself. - */ - public ParameterSpecification withDefaultValue(Object defaultValue) { - this.defaultValue = defaultValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model ParameterSpecification")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ParameterSpecification.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParameterType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParameterType.java deleted file mode 100644 index a35bbb2381c2b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParameterType.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ParameterType. */ -public final class ParameterType extends ExpandableStringEnum { - /** Static value Object for ParameterType. */ - public static final ParameterType OBJECT = fromString("Object"); - - /** Static value String for ParameterType. */ - public static final ParameterType STRING = fromString("String"); - - /** Static value Int for ParameterType. */ - public static final ParameterType INT = fromString("Int"); - - /** Static value Float for ParameterType. */ - public static final ParameterType FLOAT = fromString("Float"); - - /** Static value Bool for ParameterType. */ - public static final ParameterType BOOL = fromString("Bool"); - - /** Static value Array for ParameterType. */ - public static final ParameterType ARRAY = fromString("Array"); - - /** Static value SecureString for ParameterType. */ - public static final ParameterType SECURE_STRING = fromString("SecureString"); - - /** - * Creates or finds a ParameterType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ParameterType. - */ - @JsonCreator - public static ParameterType fromString(String name) { - return fromString(name, ParameterType.class); - } - - /** @return known ParameterType values. */ - public static Collection values() { - return values(ParameterType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java deleted file mode 100644 index 26b27f32a2037..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.ParquetDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Parquet dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Parquet") -@Fluent -public final class ParquetDataset extends Dataset { - /* - * Parquet dataset properties. - */ - @JsonProperty(value = "typeProperties") - private ParquetDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Parquet dataset properties. - * - * @return the innerTypeProperties value. - */ - private ParquetDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ParquetDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the parquet storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the parquet storage. - * - * @param location the location value to set. - * @return the ParquetDataset object itself. - */ - public ParquetDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ParquetDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the compressionCodec value. - */ - public Object compressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compressionCodec(); - } - - /** - * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @param compressionCodec the compressionCodec value to set. - * @return the ParquetDataset object itself. - */ - public ParquetDataset withCompressionCodec(Object compressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ParquetDatasetTypeProperties(); - } - this.innerTypeProperties().withCompressionCodec(compressionCodec); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetFormat.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetFormat.java deleted file mode 100644 index 4c7591d78cc9e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetFormat.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The data stored in Parquet format. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ParquetFormat") -@Fluent -public final class ParquetFormat extends DatasetStorageFormat { - /** {@inheritDoc} */ - @Override - public ParquetFormat withSerializer(Object serializer) { - super.withSerializer(serializer); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetFormat withDeserializer(Object deserializer) { - super.withDeserializer(deserializer); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetSink.java deleted file mode 100644 index 5c52a78e78446..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetSink.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Parquet sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ParquetSink") -@Fluent -public final class ParquetSink extends CopySink { - /* - * Parquet store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreWriteSettings storeSettings; - - /* - * Parquet format settings. - */ - @JsonProperty(value = "formatSettings") - private ParquetWriteSettings formatSettings; - - /** - * Get the storeSettings property: Parquet store settings. - * - * @return the storeSettings value. - */ - public StoreWriteSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Parquet store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the ParquetSink object itself. - */ - public ParquetSink withStoreSettings(StoreWriteSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: Parquet format settings. - * - * @return the formatSettings value. - */ - public ParquetWriteSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: Parquet format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the ParquetSink object itself. - */ - public ParquetSink withFormatSettings(ParquetWriteSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetSource.java deleted file mode 100644 index 379b52a27cb31..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetSource.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Parquet source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ParquetSource") -@Fluent -public final class ParquetSource extends CopySource { - /* - * Parquet store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the storeSettings property: Parquet store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Parquet store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the ParquetSource object itself. - */ - public ParquetSource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the ParquetSource object itself. - */ - public ParquetSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ParquetSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetWriteSettings.java deleted file mode 100644 index 8aba341488a1b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetWriteSettings.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Parquet write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ParquetWriteSettings") -@Fluent -public final class ParquetWriteSettings extends FormatWriteSettings { - /* - * Limit the written file's row count to be smaller than or equal to the - * specified count. Type: integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxRowsPerFile") - private Object maxRowsPerFile; - - /* - * Specifies the file name pattern - * _. when copy from non-file - * based store without partitionOptions. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileNamePrefix") - private Object fileNamePrefix; - - /** - * Get the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @return the maxRowsPerFile value. - */ - public Object maxRowsPerFile() { - return this.maxRowsPerFile; - } - - /** - * Set the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified - * count. Type: integer (or Expression with resultType integer). - * - * @param maxRowsPerFile the maxRowsPerFile value to set. - * @return the ParquetWriteSettings object itself. - */ - public ParquetWriteSettings withMaxRowsPerFile(Object maxRowsPerFile) { - this.maxRowsPerFile = maxRowsPerFile; - return this; - } - - /** - * Get the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @return the fileNamePrefix value. - */ - public Object fileNamePrefix() { - return this.fileNamePrefix; - } - - /** - * Set the fileNamePrefix property: Specifies the file name pattern - * <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without - * partitionOptions. Type: string (or Expression with resultType string). - * - * @param fileNamePrefix the fileNamePrefix value to set. - * @return the ParquetWriteSettings object itself. - */ - public ParquetWriteSettings withFileNamePrefix(Object fileNamePrefix) { - this.fileNamePrefix = fileNamePrefix; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java deleted file mode 100644 index f0311ce8bc8ce..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PaypalLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Paypal Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Paypal") -@Fluent -public final class PaypalLinkedService extends LinkedService { - /* - * Paypal Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private PaypalLinkedServiceTypeProperties innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Paypal Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private PaypalLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). - * - * @param host the host value to set. - * @return the PaypalLinkedService object itself. - */ - public PaypalLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the clientId property: The client ID associated with your PayPal application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client ID associated with your PayPal application. - * - * @param clientId the clientId value to set. - * @return the PaypalLinkedService object itself. - */ - public PaypalLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your PayPal application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret associated with your PayPal application. - * - * @param clientSecret the clientSecret value to set. - * @return the PaypalLinkedService object itself. - */ - public PaypalLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the PaypalLinkedService object itself. - */ - public PaypalLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the PaypalLinkedService object itself. - */ - public PaypalLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the PaypalLinkedService object itself. - */ - public PaypalLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PaypalLinkedService object itself. - */ - public PaypalLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model PaypalLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PaypalLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java deleted file mode 100644 index 012041131ec42..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Paypal Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PaypalObject") -@Fluent -public final class PaypalObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PaypalObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the PaypalObjectDataset object itself. - */ - public PaypalObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalSource.java deleted file mode 100644 index ef23272add001..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Paypal Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PaypalSource") -@Fluent -public final class PaypalSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the PaypalSource object itself. - */ - public PaypalSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public PaypalSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixAuthenticationType.java deleted file mode 100644 index 9f87a4fc739a8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixAuthenticationType.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for PhoenixAuthenticationType. */ -public final class PhoenixAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for PhoenixAuthenticationType. */ - public static final PhoenixAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value UsernameAndPassword for PhoenixAuthenticationType. */ - public static final PhoenixAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); - - /** Static value WindowsAzureHDInsightService for PhoenixAuthenticationType. */ - public static final PhoenixAuthenticationType WINDOWS_AZURE_HDINSIGHT_SERVICE = - fromString("WindowsAzureHDInsightService"); - - /** - * Creates or finds a PhoenixAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding PhoenixAuthenticationType. - */ - @JsonCreator - public static PhoenixAuthenticationType fromString(String name) { - return fromString(name, PhoenixAuthenticationType.class); - } - - /** @return known PhoenixAuthenticationType values. */ - public static Collection values() { - return values(PhoenixAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java deleted file mode 100644 index e0748824c755c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java +++ /dev/null @@ -1,377 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PhoenixLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Phoenix server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Phoenix") -@Fluent -public final class PhoenixLinkedService extends LinkedService { - /* - * Phoenix server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private PhoenixLinkedServiceTypeProperties innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Phoenix server linked service properties. - * - * @return the innerTypeProperties value. - */ - private PhoenixLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port that the Phoenix server uses to listen for client connections. The default - * value is 8765. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port that the Phoenix server uses to listen for client connections. The default - * value is 8765. - * - * @param port the port value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); - } - - /** - * Set the httpPath property: The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. - * - * @param httpPath the httpPath value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism used to connect to the Phoenix server. - * - * @return the authenticationType value. - */ - public PhoenixAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication mechanism used to connect to the Phoenix server. - * - * @param authenticationType the authenticationType value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withAuthenticationType(PhoenixAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The user name used to connect to the Phoenix server. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name used to connect to the Phoenix server. - * - * @param username the username value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PhoenixLinkedService object itself. - */ - public PhoenixLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model PhoenixLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PhoenixLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java deleted file mode 100644 index f2956efe3feac..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.PhoenixDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Phoenix server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PhoenixObject") -@Fluent -public final class PhoenixObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private PhoenixDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private PhoenixDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PhoenixObjectDataset object itself. - */ - public PhoenixObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Phoenix. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Phoenix. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PhoenixObjectDataset object itself. - */ - public PhoenixObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PhoenixObjectDataset object itself. - */ - public PhoenixObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixSource.java deleted file mode 100644 index c95cef6e6c1f3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Phoenix server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PhoenixSource") -@Fluent -public final class PhoenixSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the PhoenixSource object itself. - */ - public PhoenixSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineElapsedTimeMetricPolicy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineElapsedTimeMetricPolicy.java deleted file mode 100644 index 788dfac9c48f2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineElapsedTimeMetricPolicy.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Pipeline ElapsedTime Metric Policy. */ -@Fluent -public final class PipelineElapsedTimeMetricPolicy { - /* - * TimeSpan value, after which an Azure Monitoring Metric is fired. - */ - @JsonProperty(value = "duration") - private Object duration; - - /** - * Get the duration property: TimeSpan value, after which an Azure Monitoring Metric is fired. - * - * @return the duration value. - */ - public Object duration() { - return this.duration; - } - - /** - * Set the duration property: TimeSpan value, after which an Azure Monitoring Metric is fired. - * - * @param duration the duration value to set. - * @return the PipelineElapsedTimeMetricPolicy object itself. - */ - public PipelineElapsedTimeMetricPolicy withDuration(Object duration) { - this.duration = duration; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineFolder.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineFolder.java deleted file mode 100644 index 1edd2ed943422..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineFolder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. */ -@Fluent -public final class PipelineFolder { - /* - * The name of the folder that this Pipeline is in. - */ - @JsonProperty(value = "name") - private String name; - - /** - * Get the name property: The name of the folder that this Pipeline is in. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the folder that this Pipeline is in. - * - * @param name the name value to set. - * @return the PipelineFolder object itself. - */ - public PipelineFolder withName(String name) { - this.name = name; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineListResponse.java deleted file mode 100644 index 8e1cb212ca7b3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineListResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of pipeline resources. */ -@Fluent -public final class PipelineListResponse { - /* - * List of pipelines. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of pipelines. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of pipelines. - * - * @param value the value value to set. - * @return the PipelineListResponse object itself. - */ - public PipelineListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the PipelineListResponse object itself. - */ - public PipelineListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model PipelineListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PipelineListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelinePolicy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelinePolicy.java deleted file mode 100644 index 70525accf1959..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelinePolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Pipeline Policy. */ -@Fluent -public final class PipelinePolicy { - /* - * Pipeline ElapsedTime Metric Policy. - */ - @JsonProperty(value = "elapsedTimeMetric") - private PipelineElapsedTimeMetricPolicy elapsedTimeMetric; - - /** - * Get the elapsedTimeMetric property: Pipeline ElapsedTime Metric Policy. - * - * @return the elapsedTimeMetric value. - */ - public PipelineElapsedTimeMetricPolicy elapsedTimeMetric() { - return this.elapsedTimeMetric; - } - - /** - * Set the elapsedTimeMetric property: Pipeline ElapsedTime Metric Policy. - * - * @param elapsedTimeMetric the elapsedTimeMetric value to set. - * @return the PipelinePolicy object itself. - */ - public PipelinePolicy withElapsedTimeMetric(PipelineElapsedTimeMetricPolicy elapsedTimeMetric) { - this.elapsedTimeMetric = elapsedTimeMetric; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (elapsedTimeMetric() != null) { - elapsedTimeMetric().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineReference.java deleted file mode 100644 index b210f4e078fb5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineReference.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Pipeline reference type. */ -@Fluent -public final class PipelineReference { - /* - * Pipeline reference type. - */ - @JsonProperty(value = "type", required = true) - private String type = "PipelineReference"; - - /* - * Reference pipeline name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /* - * Reference name. - */ - @JsonProperty(value = "name") - private String name; - - /** Creates an instance of PipelineReference class. */ - public PipelineReference() { - type = "PipelineReference"; - } - - /** - * Get the type property: Pipeline reference type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Pipeline reference type. - * - * @param type the type value to set. - * @return the PipelineReference object itself. - */ - public PipelineReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference pipeline name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference pipeline name. - * - * @param referenceName the referenceName value to set. - * @return the PipelineReference object itself. - */ - public PipelineReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Get the name property: Reference name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Reference name. - * - * @param name the name value to set. - * @return the PipelineReference object itself. - */ - public PipelineReference withName(String name) { - this.name = name; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property referenceName in model PipelineReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PipelineReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineResource.java deleted file mode 100644 index 57d99688b6b7b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineResource.java +++ /dev/null @@ -1,489 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import java.util.List; -import java.util.Map; - -/** An immutable client-side representation of PipelineResource. */ -public interface PipelineResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the additionalProperties property: Pipeline resource type. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - - /** - * Gets the description property: The description of the pipeline. - * - * @return the description value. - */ - String description(); - - /** - * Gets the activities property: List of activities in pipeline. - * - * @return the activities value. - */ - List activities(); - - /** - * Gets the parameters property: List of parameters for pipeline. - * - * @return the parameters value. - */ - Map parameters(); - - /** - * Gets the variables property: List of variables for pipeline. - * - * @return the variables value. - */ - Map variables(); - - /** - * Gets the concurrency property: The max number of concurrent runs for the pipeline. - * - * @return the concurrency value. - */ - Integer concurrency(); - - /** - * Gets the annotations property: List of tags that can be used for describing the Pipeline. - * - * @return the annotations value. - */ - List annotations(); - - /** - * Gets the runDimensions property: Dimensions emitted by Pipeline. - * - * @return the runDimensions value. - */ - Map runDimensions(); - - /** - * Gets the folder property: The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * - * @return the folder value. - */ - PipelineFolder folder(); - - /** - * Gets the policy property: Pipeline Policy. - * - * @return the policy value. - */ - PipelinePolicy policy(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner object. - * - * @return the inner object. - */ - PipelineResourceInner innerModel(); - - /** The entirety of the PipelineResource definition. */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - /** The PipelineResource definition stages. */ - interface DefinitionStages { - /** The first stage of the PipelineResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the PipelineResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithCreate withExistingFactory(String resourceGroupName, String factoryName); - } - /** - * The stage of the PipelineResource definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithAdditionalProperties, - DefinitionStages.WithDescription, - DefinitionStages.WithActivities, - DefinitionStages.WithParameters, - DefinitionStages.WithVariables, - DefinitionStages.WithConcurrency, - DefinitionStages.WithAnnotations, - DefinitionStages.WithRunDimensions, - DefinitionStages.WithFolder, - DefinitionStages.WithPolicy, - DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - PipelineResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - PipelineResource create(Context context); - } - /** The stage of the PipelineResource definition allowing to specify additionalProperties. */ - interface WithAdditionalProperties { - /** - * Specifies the additionalProperties property: Pipeline resource type.. - * - * @param additionalProperties Pipeline resource type. - * @return the next definition stage. - */ - WithCreate withAdditionalProperties(Map additionalProperties); - } - /** The stage of the PipelineResource definition allowing to specify description. */ - interface WithDescription { - /** - * Specifies the description property: The description of the pipeline.. - * - * @param description The description of the pipeline. - * @return the next definition stage. - */ - WithCreate withDescription(String description); - } - /** The stage of the PipelineResource definition allowing to specify activities. */ - interface WithActivities { - /** - * Specifies the activities property: List of activities in pipeline.. - * - * @param activities List of activities in pipeline. - * @return the next definition stage. - */ - WithCreate withActivities(List activities); - } - /** The stage of the PipelineResource definition allowing to specify parameters. */ - interface WithParameters { - /** - * Specifies the parameters property: List of parameters for pipeline.. - * - * @param parameters List of parameters for pipeline. - * @return the next definition stage. - */ - WithCreate withParameters(Map parameters); - } - /** The stage of the PipelineResource definition allowing to specify variables. */ - interface WithVariables { - /** - * Specifies the variables property: List of variables for pipeline.. - * - * @param variables List of variables for pipeline. - * @return the next definition stage. - */ - WithCreate withVariables(Map variables); - } - /** The stage of the PipelineResource definition allowing to specify concurrency. */ - interface WithConcurrency { - /** - * Specifies the concurrency property: The max number of concurrent runs for the pipeline.. - * - * @param concurrency The max number of concurrent runs for the pipeline. - * @return the next definition stage. - */ - WithCreate withConcurrency(Integer concurrency); - } - /** The stage of the PipelineResource definition allowing to specify annotations. */ - interface WithAnnotations { - /** - * Specifies the annotations property: List of tags that can be used for describing the Pipeline.. - * - * @param annotations List of tags that can be used for describing the Pipeline. - * @return the next definition stage. - */ - WithCreate withAnnotations(List annotations); - } - /** The stage of the PipelineResource definition allowing to specify runDimensions. */ - interface WithRunDimensions { - /** - * Specifies the runDimensions property: Dimensions emitted by Pipeline.. - * - * @param runDimensions Dimensions emitted by Pipeline. - * @return the next definition stage. - */ - WithCreate withRunDimensions(Map runDimensions); - } - /** The stage of the PipelineResource definition allowing to specify folder. */ - interface WithFolder { - /** - * Specifies the folder property: The folder that this Pipeline is in. If not specified, Pipeline will - * appear at the root level.. - * - * @param folder The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * @return the next definition stage. - */ - WithCreate withFolder(PipelineFolder folder); - } - /** The stage of the PipelineResource definition allowing to specify policy. */ - interface WithPolicy { - /** - * Specifies the policy property: Pipeline Policy.. - * - * @param policy Pipeline Policy. - * @return the next definition stage. - */ - WithCreate withPolicy(PipelinePolicy policy); - } - /** The stage of the PipelineResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the pipeline entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the PipelineResource resource. - * - * @return the stage of resource update. - */ - PipelineResource.Update update(); - - /** The template for PipelineResource update. */ - interface Update - extends UpdateStages.WithAdditionalProperties, - UpdateStages.WithDescription, - UpdateStages.WithActivities, - UpdateStages.WithParameters, - UpdateStages.WithVariables, - UpdateStages.WithConcurrency, - UpdateStages.WithAnnotations, - UpdateStages.WithRunDimensions, - UpdateStages.WithFolder, - UpdateStages.WithPolicy, - UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - PipelineResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - PipelineResource apply(Context context); - } - /** The PipelineResource update stages. */ - interface UpdateStages { - /** The stage of the PipelineResource update allowing to specify additionalProperties. */ - interface WithAdditionalProperties { - /** - * Specifies the additionalProperties property: Pipeline resource type.. - * - * @param additionalProperties Pipeline resource type. - * @return the next definition stage. - */ - Update withAdditionalProperties(Map additionalProperties); - } - /** The stage of the PipelineResource update allowing to specify description. */ - interface WithDescription { - /** - * Specifies the description property: The description of the pipeline.. - * - * @param description The description of the pipeline. - * @return the next definition stage. - */ - Update withDescription(String description); - } - /** The stage of the PipelineResource update allowing to specify activities. */ - interface WithActivities { - /** - * Specifies the activities property: List of activities in pipeline.. - * - * @param activities List of activities in pipeline. - * @return the next definition stage. - */ - Update withActivities(List activities); - } - /** The stage of the PipelineResource update allowing to specify parameters. */ - interface WithParameters { - /** - * Specifies the parameters property: List of parameters for pipeline.. - * - * @param parameters List of parameters for pipeline. - * @return the next definition stage. - */ - Update withParameters(Map parameters); - } - /** The stage of the PipelineResource update allowing to specify variables. */ - interface WithVariables { - /** - * Specifies the variables property: List of variables for pipeline.. - * - * @param variables List of variables for pipeline. - * @return the next definition stage. - */ - Update withVariables(Map variables); - } - /** The stage of the PipelineResource update allowing to specify concurrency. */ - interface WithConcurrency { - /** - * Specifies the concurrency property: The max number of concurrent runs for the pipeline.. - * - * @param concurrency The max number of concurrent runs for the pipeline. - * @return the next definition stage. - */ - Update withConcurrency(Integer concurrency); - } - /** The stage of the PipelineResource update allowing to specify annotations. */ - interface WithAnnotations { - /** - * Specifies the annotations property: List of tags that can be used for describing the Pipeline.. - * - * @param annotations List of tags that can be used for describing the Pipeline. - * @return the next definition stage. - */ - Update withAnnotations(List annotations); - } - /** The stage of the PipelineResource update allowing to specify runDimensions. */ - interface WithRunDimensions { - /** - * Specifies the runDimensions property: Dimensions emitted by Pipeline.. - * - * @param runDimensions Dimensions emitted by Pipeline. - * @return the next definition stage. - */ - Update withRunDimensions(Map runDimensions); - } - /** The stage of the PipelineResource update allowing to specify folder. */ - interface WithFolder { - /** - * Specifies the folder property: The folder that this Pipeline is in. If not specified, Pipeline will - * appear at the root level.. - * - * @param folder The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * @return the next definition stage. - */ - Update withFolder(PipelineFolder folder); - } - /** The stage of the PipelineResource update allowing to specify policy. */ - interface WithPolicy { - /** - * Specifies the policy property: Pipeline Policy.. - * - * @param policy Pipeline Policy. - * @return the next definition stage. - */ - Update withPolicy(PipelinePolicy policy); - } - /** The stage of the PipelineResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the pipeline entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - PipelineResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - PipelineResource refresh(Context context); - - /** - * Creates a run of a pipeline. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier. - */ - CreateRunResponse createRun(); - - /** - * Creates a run of a pipeline. - * - * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified - * run will be used to create a new run. - * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and - * the new run will be grouped under the same groupId. - * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all - * activities will run. - * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The - * property will be used only if startActivityName is not specified. - * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not - * specified. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier along with {@link Response}. - */ - Response createRunWithResponse( - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters, - Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRun.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRun.java deleted file mode 100644 index b46c988a3088b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRun.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import java.time.OffsetDateTime; -import java.util.Map; - -/** An immutable client-side representation of PipelineRun. */ -public interface PipelineRun { - /** - * Gets the runId property: Identifier of a run. - * - * @return the runId value. - */ - String runId(); - - /** - * Gets the runGroupId property: Identifier that correlates all the recovery runs of a pipeline run. - * - * @return the runGroupId value. - */ - String runGroupId(); - - /** - * Gets the isLatest property: Indicates if the recovered pipeline run is the latest in its group. - * - * @return the isLatest value. - */ - Boolean isLatest(); - - /** - * Gets the pipelineName property: The pipeline name. - * - * @return the pipelineName value. - */ - String pipelineName(); - - /** - * Gets the parameters property: The full or partial list of parameter name, value pair used in the pipeline run. - * - * @return the parameters value. - */ - Map parameters(); - - /** - * Gets the runDimensions property: Run dimensions emitted by Pipeline run. - * - * @return the runDimensions value. - */ - Map runDimensions(); - - /** - * Gets the invokedBy property: Entity that started the pipeline run. - * - * @return the invokedBy value. - */ - PipelineRunInvokedBy invokedBy(); - - /** - * Gets the lastUpdated property: The last updated timestamp for the pipeline run event in ISO8601 format. - * - * @return the lastUpdated value. - */ - OffsetDateTime lastUpdated(); - - /** - * Gets the runStart property: The start time of a pipeline run in ISO8601 format. - * - * @return the runStart value. - */ - OffsetDateTime runStart(); - - /** - * Gets the runEnd property: The end time of a pipeline run in ISO8601 format. - * - * @return the runEnd value. - */ - OffsetDateTime runEnd(); - - /** - * Gets the durationInMs property: The duration of a pipeline run. - * - * @return the durationInMs value. - */ - Integer durationInMs(); - - /** - * Gets the status property: The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, - * Canceling, Cancelled. - * - * @return the status value. - */ - String status(); - - /** - * Gets the message property: The message from a pipeline run. - * - * @return the message value. - */ - String message(); - - /** - * Gets the additionalProperties property: Information about a pipeline run. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner object. - * - * @return the inner object. - */ - PipelineRunInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRunInvokedBy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRunInvokedBy.java deleted file mode 100644 index d2ad7716f91f9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRunInvokedBy.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Provides entity name and id that started the pipeline run. */ -@Immutable -public final class PipelineRunInvokedBy { - /* - * Name of the entity that started the pipeline run. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The ID of the entity that started the run. - */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) - private String id; - - /* - * The type of the entity that started the run. - */ - @JsonProperty(value = "invokedByType", access = JsonProperty.Access.WRITE_ONLY) - private String invokedByType; - - /* - * The name of the pipeline that triggered the run, if any. - */ - @JsonProperty(value = "pipelineName", access = JsonProperty.Access.WRITE_ONLY) - private String pipelineName; - - /* - * The run id of the pipeline that triggered the run, if any. - */ - @JsonProperty(value = "pipelineRunId", access = JsonProperty.Access.WRITE_ONLY) - private String pipelineRunId; - - /** - * Get the name property: Name of the entity that started the pipeline run. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the id property: The ID of the entity that started the run. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Get the invokedByType property: The type of the entity that started the run. - * - * @return the invokedByType value. - */ - public String invokedByType() { - return this.invokedByType; - } - - /** - * Get the pipelineName property: The name of the pipeline that triggered the run, if any. - * - * @return the pipelineName value. - */ - public String pipelineName() { - return this.pipelineName; - } - - /** - * Get the pipelineRunId property: The run id of the pipeline that triggered the run, if any. - * - * @return the pipelineRunId value. - */ - public String pipelineRunId() { - return this.pipelineRunId; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRuns.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRuns.java deleted file mode 100644 index c4039d6b84bee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRuns.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of PipelineRuns. */ -public interface PipelineRuns { - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs. - */ - PipelineRunsQueryResponse queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters); - - /** - * Query pipeline runs in the factory based on input filter conditions. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list pipeline runs along with {@link Response}. - */ - Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context); - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID. - */ - PipelineRun get(String resourceGroupName, String factoryName, String runId); - - /** - * Get a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline run by its run ID along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String factoryName, String runId, Context context); - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void cancel(String resourceGroupName, String factoryName, String runId); - - /** - * Cancel a pipeline run by its run ID. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param runId The pipeline run identifier. - * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response cancelWithResponse( - String resourceGroupName, String factoryName, String runId, Boolean isRecursive, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRunsQueryResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRunsQueryResponse.java deleted file mode 100644 index 4248448dd51ea..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineRunsQueryResponse.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner; -import java.util.List; - -/** An immutable client-side representation of PipelineRunsQueryResponse. */ -public interface PipelineRunsQueryResponse { - /** - * Gets the value property: List of pipeline runs. - * - * @return the value value. - */ - List value(); - - /** - * Gets the continuationToken property: The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - * - * @return the continuationToken value. - */ - String continuationToken(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner object. - * - * @return the inner object. - */ - PipelineRunsQueryResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Pipelines.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Pipelines.java deleted file mode 100644 index d2aac1589126e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Pipelines.java +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import java.util.Map; - -/** Resource collection API of Pipelines. */ -public interface Pipelines { - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists pipelines. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline. - */ - PipelineResource get(String resourceGroupName, String factoryName, String pipelineName); - - /** - * Gets a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch, Context context); - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String pipelineName); - - /** - * Deletes a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String pipelineName, Context context); - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier. - */ - CreateRunResponse createRun(String resourceGroupName, String factoryName, String pipelineName); - - /** - * Creates a run of a pipeline. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param pipelineName The pipeline name. - * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified - * run will be used to create a new run. - * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and - * the new run will be grouped under the same groupId. - * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all - * activities will run. - * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The - * property will be used only if startActivityName is not specified. - * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not - * specified. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body with a run identifier along with {@link Response}. - */ - Response createRunWithResponse( - String resourceGroupName, - String factoryName, - String pipelineName, - String referencePipelineRunId, - Boolean isRecovery, - String startActivityName, - Boolean startFromFailure, - Map parameters, - Context context); - - /** - * Gets a pipeline. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline along with {@link Response}. - */ - PipelineResource getById(String id); - - /** - * Gets a pipeline. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a pipeline along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a pipeline. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a pipeline. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new PipelineResource resource. - * - * @param name resource name. - * @return the first stage of the new PipelineResource definition. - */ - PipelineResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PolybaseSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PolybaseSettings.java deleted file mode 100644 index af085c141adca..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PolybaseSettings.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** PolyBase settings. */ -@Fluent -public final class PolybaseSettings { - /* - * Reject type. - */ - @JsonProperty(value = "rejectType") - private PolybaseSettingsRejectType rejectType; - - /* - * Specifies the value or the percentage of rows that can be rejected - * before the query fails. Type: number (or Expression with resultType - * number), minimum: 0. - */ - @JsonProperty(value = "rejectValue") - private Object rejectValue; - - /* - * Determines the number of rows to attempt to retrieve before the PolyBase - * recalculates the percentage of rejected rows. Type: integer (or - * Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "rejectSampleValue") - private Object rejectSampleValue; - - /* - * Specifies how to handle missing values in delimited text files when - * PolyBase retrieves data from the text file. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "useTypeDefault") - private Object useTypeDefault; - - /* - * PolyBase settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the rejectType property: Reject type. - * - * @return the rejectType value. - */ - public PolybaseSettingsRejectType rejectType() { - return this.rejectType; - } - - /** - * Set the rejectType property: Reject type. - * - * @param rejectType the rejectType value to set. - * @return the PolybaseSettings object itself. - */ - public PolybaseSettings withRejectType(PolybaseSettingsRejectType rejectType) { - this.rejectType = rejectType; - return this; - } - - /** - * Get the rejectValue property: Specifies the value or the percentage of rows that can be rejected before the query - * fails. Type: number (or Expression with resultType number), minimum: 0. - * - * @return the rejectValue value. - */ - public Object rejectValue() { - return this.rejectValue; - } - - /** - * Set the rejectValue property: Specifies the value or the percentage of rows that can be rejected before the query - * fails. Type: number (or Expression with resultType number), minimum: 0. - * - * @param rejectValue the rejectValue value to set. - * @return the PolybaseSettings object itself. - */ - public PolybaseSettings withRejectValue(Object rejectValue) { - this.rejectValue = rejectValue; - return this; - } - - /** - * Get the rejectSampleValue property: Determines the number of rows to attempt to retrieve before the PolyBase - * recalculates the percentage of rejected rows. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the rejectSampleValue value. - */ - public Object rejectSampleValue() { - return this.rejectSampleValue; - } - - /** - * Set the rejectSampleValue property: Determines the number of rows to attempt to retrieve before the PolyBase - * recalculates the percentage of rejected rows. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param rejectSampleValue the rejectSampleValue value to set. - * @return the PolybaseSettings object itself. - */ - public PolybaseSettings withRejectSampleValue(Object rejectSampleValue) { - this.rejectSampleValue = rejectSampleValue; - return this; - } - - /** - * Get the useTypeDefault property: Specifies how to handle missing values in delimited text files when PolyBase - * retrieves data from the text file. Type: boolean (or Expression with resultType boolean). - * - * @return the useTypeDefault value. - */ - public Object useTypeDefault() { - return this.useTypeDefault; - } - - /** - * Set the useTypeDefault property: Specifies how to handle missing values in delimited text files when PolyBase - * retrieves data from the text file. Type: boolean (or Expression with resultType boolean). - * - * @param useTypeDefault the useTypeDefault value to set. - * @return the PolybaseSettings object itself. - */ - public PolybaseSettings withUseTypeDefault(Object useTypeDefault) { - this.useTypeDefault = useTypeDefault; - return this; - } - - /** - * Get the additionalProperties property: PolyBase settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: PolyBase settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the PolybaseSettings object itself. - */ - public PolybaseSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PolybaseSettingsRejectType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PolybaseSettingsRejectType.java deleted file mode 100644 index a71f8f5ce52aa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PolybaseSettingsRejectType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for PolybaseSettingsRejectType. */ -public final class PolybaseSettingsRejectType extends ExpandableStringEnum { - /** Static value value for PolybaseSettingsRejectType. */ - public static final PolybaseSettingsRejectType VALUE = fromString("value"); - - /** Static value percentage for PolybaseSettingsRejectType. */ - public static final PolybaseSettingsRejectType PERCENTAGE = fromString("percentage"); - - /** - * Creates or finds a PolybaseSettingsRejectType from its string representation. - * - * @param name a name to look for. - * @return the corresponding PolybaseSettingsRejectType. - */ - @JsonCreator - public static PolybaseSettingsRejectType fromString(String name) { - return fromString(name, PolybaseSettingsRejectType.class); - } - - /** @return known PolybaseSettingsRejectType values. */ - public static Collection values() { - return values(PolybaseSettingsRejectType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java deleted file mode 100644 index 4414ba00454b7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for PostgreSQL data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PostgreSql") -@Fluent -public final class PostgreSqlLinkedService extends LinkedService { - /* - * PostgreSQL linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private PostgreSqlLinkedServiceTypeProperties innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: PostgreSQL linked service properties. - * - * @return the innerTypeProperties value. - */ - private PostgreSqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. - * - * @param connectionString the connectionString value to set. - * @return the PostgreSqlLinkedService object itself. - */ - public PostgreSqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the PostgreSqlLinkedService object itself. - */ - public PostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PostgreSqlLinkedService object itself. - */ - public PostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model PostgreSqlLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PostgreSqlLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlSource.java deleted file mode 100644 index 98807aaada021..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlSource.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for PostgreSQL databases. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PostgreSqlSource") -@Fluent -public final class PostgreSqlSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the PostgreSqlSource object itself. - */ - public PostgreSqlSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java deleted file mode 100644 index a8d4fb4ac48cb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The PostgreSQL table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PostgreSqlTable") -@Fluent -public final class PostgreSqlTableDataset extends Dataset { - /* - * PostgreSQL table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private PostgreSqlTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: PostgreSQL table dataset properties. - * - * @return the innerTypeProperties value. - */ - private PostgreSqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PostgreSqlTableDataset object itself. - */ - public PostgreSqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The PostgreSQL table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The PostgreSQL table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PostgreSqlTableDataset object itself. - */ - public PostgreSqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PostgreSqlTableDataset object itself. - */ - public PostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySink.java deleted file mode 100644 index 0e2e5047c20d5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySink.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Power query sink. */ -@Fluent -public final class PowerQuerySink extends DataFlowSink { - /* - * sink script. - */ - @JsonProperty(value = "script") - private String script; - - /** - * Get the script property: sink script. - * - * @return the script value. - */ - public String script() { - return this.script; - } - - /** - * Set the script property: sink script. - * - * @param script the script value to set. - * @return the PowerQuerySink object itself. - */ - public PowerQuerySink withScript(String script) { - this.script = script; - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySink withSchemaLinkedService(LinkedServiceReference schemaLinkedService) { - super.withSchemaLinkedService(schemaLinkedService); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySink withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySink withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySink withDataset(DatasetReference dataset) { - super.withDataset(dataset); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySink withLinkedService(LinkedServiceReference linkedService) { - super.withLinkedService(linkedService); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySink withFlowlet(DataFlowReference flowlet) { - super.withFlowlet(flowlet); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySinkMapping.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySinkMapping.java deleted file mode 100644 index 65b35b0586ff7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySinkMapping.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Map Power Query mashup query to sink dataset(s). */ -@Fluent -public final class PowerQuerySinkMapping { - /* - * Name of the query in Power Query mashup document. - */ - @JsonProperty(value = "queryName") - private String queryName; - - /* - * List of sinks mapped to Power Query mashup query. - */ - @JsonProperty(value = "dataflowSinks") - private List dataflowSinks; - - /** - * Get the queryName property: Name of the query in Power Query mashup document. - * - * @return the queryName value. - */ - public String queryName() { - return this.queryName; - } - - /** - * Set the queryName property: Name of the query in Power Query mashup document. - * - * @param queryName the queryName value to set. - * @return the PowerQuerySinkMapping object itself. - */ - public PowerQuerySinkMapping withQueryName(String queryName) { - this.queryName = queryName; - return this; - } - - /** - * Get the dataflowSinks property: List of sinks mapped to Power Query mashup query. - * - * @return the dataflowSinks value. - */ - public List dataflowSinks() { - return this.dataflowSinks; - } - - /** - * Set the dataflowSinks property: List of sinks mapped to Power Query mashup query. - * - * @param dataflowSinks the dataflowSinks value to set. - * @return the PowerQuerySinkMapping object itself. - */ - public PowerQuerySinkMapping withDataflowSinks(List dataflowSinks) { - this.dataflowSinks = dataflowSinks; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataflowSinks() != null) { - dataflowSinks().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySource.java deleted file mode 100644 index 3e3075eb5f2c0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySource.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Power query source. */ -@Fluent -public final class PowerQuerySource extends DataFlowSource { - /* - * source script. - */ - @JsonProperty(value = "script") - private String script; - - /** - * Get the script property: source script. - * - * @return the script value. - */ - public String script() { - return this.script; - } - - /** - * Set the script property: source script. - * - * @param script the script value to set. - * @return the PowerQuerySource object itself. - */ - public PowerQuerySource withScript(String script) { - this.script = script; - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySource withSchemaLinkedService(LinkedServiceReference schemaLinkedService) { - super.withSchemaLinkedService(schemaLinkedService); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySource withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySource withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySource withDataset(DatasetReference dataset) { - super.withDataset(dataset); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySource withLinkedService(LinkedServiceReference linkedService) { - super.withLinkedService(linkedService); - return this; - } - - /** {@inheritDoc} */ - @Override - public PowerQuerySource withFlowlet(DataFlowReference flowlet) { - super.withFlowlet(flowlet); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoAuthenticationType.java deleted file mode 100644 index 5c8bbc653066e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for PrestoAuthenticationType. */ -public final class PrestoAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for PrestoAuthenticationType. */ - public static final PrestoAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value LDAP for PrestoAuthenticationType. */ - public static final PrestoAuthenticationType LDAP = fromString("LDAP"); - - /** - * Creates or finds a PrestoAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding PrestoAuthenticationType. - */ - @JsonCreator - public static PrestoAuthenticationType fromString(String name) { - return fromString(name, PrestoAuthenticationType.class); - } - - /** @return known PrestoAuthenticationType values. */ - public static Collection values() { - return values(PrestoAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java deleted file mode 100644 index 991f4a070ea4f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java +++ /dev/null @@ -1,423 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PrestoLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Presto server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Presto") -@Fluent -public final class PrestoLinkedService extends LinkedService { - /* - * Presto server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private PrestoLinkedServiceTypeProperties innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Presto server linked service properties. - * - * @return the innerTypeProperties value. - */ - private PrestoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the serverVersion property: The version of the Presto server. (i.e. 0.148-t). - * - * @return the serverVersion value. - */ - public Object serverVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serverVersion(); - } - - /** - * Set the serverVersion property: The version of the Presto server. (i.e. 0.148-t). - * - * @param serverVersion the serverVersion value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withServerVersion(Object serverVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServerVersion(serverVersion); - return this; - } - - /** - * Get the catalog property: The catalog context for all request against the server. - * - * @return the catalog value. - */ - public Object catalog() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().catalog(); - } - - /** - * Set the catalog property: The catalog context for all request against the server. - * - * @param catalog the catalog value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withCatalog(Object catalog) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCatalog(catalog); - return this; - } - - /** - * Get the port property: The TCP port that the Presto server uses to listen for client connections. The default - * value is 8080. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port that the Presto server uses to listen for client connections. The default - * value is 8080. - * - * @param port the port value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism used to connect to the Presto server. - * - * @return the authenticationType value. - */ - public PrestoAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication mechanism used to connect to the Presto server. - * - * @param authenticationType the authenticationType value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withAuthenticationType(PrestoAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The user name used to connect to the Presto server. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name used to connect to the Presto server. - * - * @param username the username value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); - return this; - } - - /** - * Get the timeZoneId property: The local time zone used by the connection. Valid values for this option are - * specified in the IANA Time Zone Database. The default value is the system time zone. - * - * @return the timeZoneId value. - */ - public Object timeZoneId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeZoneId(); - } - - /** - * Set the timeZoneId property: The local time zone used by the connection. Valid values for this option are - * specified in the IANA Time Zone Database. The default value is the system time zone. - * - * @param timeZoneId the timeZoneId value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withTimeZoneId(Object timeZoneId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTimeZoneId(timeZoneId); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PrestoLinkedService object itself. - */ - public PrestoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model PrestoLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrestoLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java deleted file mode 100644 index f2fad8c4bf38a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.PrestoDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Presto server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PrestoObject") -@Fluent -public final class PrestoObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private PrestoDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private PrestoDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PrestoObjectDataset object itself. - */ - public PrestoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Presto. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Presto. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PrestoObjectDataset object itself. - */ - public PrestoObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PrestoObjectDataset object itself. - */ - public PrestoObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoSource.java deleted file mode 100644 index d34323d6bac89..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Presto server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("PrestoSource") -@Fluent -public final class PrestoSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the PrestoSource object itself. - */ - public PrestoSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndPointConnections.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndPointConnections.java deleted file mode 100644 index ba186b6292a89..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndPointConnections.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; - -/** Resource collection API of PrivateEndPointConnections. */ -public interface PrivateEndPointConnections { - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists Private endpoint connections. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionListResponse.java deleted file mode 100644 index cef26553c3d5f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionListResponse.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of linked service resources. */ -@Fluent -public final class PrivateEndpointConnectionListResponse { - /* - * List of Private Endpoint Connections. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of Private Endpoint Connections. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of Private Endpoint Connections. - * - * @param value the value value to set. - * @return the PrivateEndpointConnectionListResponse object itself. - */ - public PrivateEndpointConnectionListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the PrivateEndpointConnectionListResponse object itself. - */ - public PrivateEndpointConnectionListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model PrivateEndpointConnectionListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionOperations.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionOperations.java deleted file mode 100644 index 1329b72420a5a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionOperations.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of PrivateEndpointConnectionOperations. */ -public interface PrivateEndpointConnectionOperations { - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection. - */ - PrivateEndpointConnectionResource get( - String resourceGroupName, String factoryName, String privateEndpointConnectionName); - - /** - * Gets a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, - String factoryName, - String privateEndpointConnectionName, - String ifNoneMatch, - Context context); - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String privateEndpointConnectionName); - - /** - * Deletes a private endpoint connection. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param privateEndpointConnectionName The private endpoint connection name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String privateEndpointConnectionName, Context context); - - /** - * Gets a private endpoint connection. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response}. - */ - PrivateEndpointConnectionResource getById(String id); - - /** - * Gets a private endpoint connection. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag - * matches the existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a private endpoint connection. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a private endpoint connection. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new PrivateEndpointConnectionResource resource. - * - * @param name resource name. - * @return the first stage of the new PrivateEndpointConnectionResource definition. - */ - PrivateEndpointConnectionResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionResource.java deleted file mode 100644 index 84a7a3b9373f2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndpointConnectionResource.java +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; - -/** An immutable client-side representation of PrivateEndpointConnectionResource. */ -public interface PrivateEndpointConnectionResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Core resource properties. - * - * @return the properties value. - */ - RemotePrivateEndpointConnection properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner object. - * - * @return the inner object. - */ - PrivateEndpointConnectionResourceInner innerModel(); - - /** The entirety of the PrivateEndpointConnectionResource definition. */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - /** The PrivateEndpointConnectionResource definition stages. */ - interface DefinitionStages { - /** The first stage of the PrivateEndpointConnectionResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the PrivateEndpointConnectionResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithCreate withExistingFactory(String resourceGroupName, String factoryName); - } - /** - * The stage of the PrivateEndpointConnectionResource definition which contains all the minimum required - * properties for the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithProperties, DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - PrivateEndpointConnectionResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - PrivateEndpointConnectionResource create(Context context); - } - /** The stage of the PrivateEndpointConnectionResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Core resource properties. - * - * @param properties Core resource properties. - * @return the next definition stage. - */ - WithCreate withProperties(PrivateLinkConnectionApprovalRequest properties); - } - /** The stage of the PrivateEndpointConnectionResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the private endpoint connection entity. Should only be specified - * for update, for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the PrivateEndpointConnectionResource resource. - * - * @return the stage of resource update. - */ - PrivateEndpointConnectionResource.Update update(); - - /** The template for PrivateEndpointConnectionResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - PrivateEndpointConnectionResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - PrivateEndpointConnectionResource apply(Context context); - } - /** The PrivateEndpointConnectionResource update stages. */ - interface UpdateStages { - /** The stage of the PrivateEndpointConnectionResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Core resource properties. - * - * @param properties Core resource properties. - * @return the next definition stage. - */ - Update withProperties(PrivateLinkConnectionApprovalRequest properties); - } - /** The stage of the PrivateEndpointConnectionResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the private endpoint connection entity. Should only be specified - * for update, for which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - PrivateEndpointConnectionResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - PrivateEndpointConnectionResource refresh(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionApprovalRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionApprovalRequest.java deleted file mode 100644 index 0ed68e4af2da0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionApprovalRequest.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** A request to approve or reject a private endpoint connection. */ -@Fluent -public final class PrivateLinkConnectionApprovalRequest { - /* - * The state of a private link connection - */ - @JsonProperty(value = "privateLinkServiceConnectionState") - private PrivateLinkConnectionState privateLinkServiceConnectionState; - - /** - * Get the privateLinkServiceConnectionState property: The state of a private link connection. - * - * @return the privateLinkServiceConnectionState value. - */ - public PrivateLinkConnectionState privateLinkServiceConnectionState() { - return this.privateLinkServiceConnectionState; - } - - /** - * Set the privateLinkServiceConnectionState property: The state of a private link connection. - * - * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. - * @return the PrivateLinkConnectionApprovalRequest object itself. - */ - public PrivateLinkConnectionApprovalRequest withPrivateLinkServiceConnectionState( - PrivateLinkConnectionState privateLinkServiceConnectionState) { - this.privateLinkServiceConnectionState = privateLinkServiceConnectionState; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (privateLinkServiceConnectionState() != null) { - privateLinkServiceConnectionState().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionApprovalRequestResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionApprovalRequestResource.java deleted file mode 100644 index fb36cf9d250e8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionApprovalRequestResource.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Private Endpoint Connection Approval ARM resource. */ -@Fluent -public final class PrivateLinkConnectionApprovalRequestResource extends SubResource { - /* - * Core resource properties - */ - @JsonProperty(value = "properties") - private PrivateLinkConnectionApprovalRequest properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Core resource properties. - * - * @return the properties value. - */ - public PrivateLinkConnectionApprovalRequest properties() { - return this.properties; - } - - /** - * Set the properties property: Core resource properties. - * - * @param properties the properties value to set. - * @return the PrivateLinkConnectionApprovalRequestResource object itself. - */ - public PrivateLinkConnectionApprovalRequestResource withProperties( - PrivateLinkConnectionApprovalRequest properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public PrivateLinkConnectionApprovalRequestResource withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionState.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionState.java deleted file mode 100644 index 9b093a2f1f45b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkConnectionState.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The state of a private link connection. */ -@Fluent -public final class PrivateLinkConnectionState { - /* - * Status of a private link connection - */ - @JsonProperty(value = "status") - private String status; - - /* - * Description of a private link connection - */ - @JsonProperty(value = "description") - private String description; - - /* - * ActionsRequired for a private link connection - */ - @JsonProperty(value = "actionsRequired") - private String actionsRequired; - - /** - * Get the status property: Status of a private link connection. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Set the status property: Status of a private link connection. - * - * @param status the status value to set. - * @return the PrivateLinkConnectionState object itself. - */ - public PrivateLinkConnectionState withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the description property: Description of a private link connection. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description of a private link connection. - * - * @param description the description value to set. - * @return the PrivateLinkConnectionState object itself. - */ - public PrivateLinkConnectionState withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the actionsRequired property: ActionsRequired for a private link connection. - * - * @return the actionsRequired value. - */ - public String actionsRequired() { - return this.actionsRequired; - } - - /** - * Set the actionsRequired property: ActionsRequired for a private link connection. - * - * @param actionsRequired the actionsRequired value to set. - * @return the PrivateLinkConnectionState object itself. - */ - public PrivateLinkConnectionState withActionsRequired(String actionsRequired) { - this.actionsRequired = actionsRequired; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResource.java deleted file mode 100644 index cc51234a36898..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResource.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** A private link resource. */ -@Fluent -public final class PrivateLinkResource extends SubResource { - /* - * Core resource properties - */ - @JsonProperty(value = "properties") - private PrivateLinkResourceProperties properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** - * Get the properties property: Core resource properties. - * - * @return the properties value. - */ - public PrivateLinkResourceProperties properties() { - return this.properties; - } - - /** - * Set the properties property: Core resource properties. - * - * @param properties the properties value to set. - * @return the PrivateLinkResource object itself. - */ - public PrivateLinkResource withProperties(PrivateLinkResourceProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public PrivateLinkResource withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResourceProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResourceProperties.java deleted file mode 100644 index 4146d1b65d952..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResourceProperties.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Properties of a private link resource. */ -@Immutable -public final class PrivateLinkResourceProperties { - /* - * GroupId of a private link resource - */ - @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY) - private String groupId; - - /* - * RequiredMembers of a private link resource - */ - @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY) - private List requiredMembers; - - /* - * RequiredZoneNames of a private link resource - */ - @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY) - private List requiredZoneNames; - - /** - * Get the groupId property: GroupId of a private link resource. - * - * @return the groupId value. - */ - public String groupId() { - return this.groupId; - } - - /** - * Get the requiredMembers property: RequiredMembers of a private link resource. - * - * @return the requiredMembers value. - */ - public List requiredMembers() { - return this.requiredMembers; - } - - /** - * Get the requiredZoneNames property: RequiredZoneNames of a private link resource. - * - * @return the requiredZoneNames value. - */ - public List requiredZoneNames() { - return this.requiredZoneNames; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResources.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResources.java deleted file mode 100644 index 1a8626f9c9d0c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResources.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of PrivateLinkResources. */ -public interface PrivateLinkResources { - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources. - */ - PrivateLinkResourcesWrapper get(String resourceGroupName, String factoryName); - - /** - * Gets the private link resources. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResourcesWrapper.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResourcesWrapper.java deleted file mode 100644 index dfa1a0f3ceebd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateLinkResourcesWrapper.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; -import java.util.List; - -/** An immutable client-side representation of PrivateLinkResourcesWrapper. */ -public interface PrivateLinkResourcesWrapper { - /** - * Gets the value property: The value property. - * - * @return the value value. - */ - List value(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner object. - * - * @return the inner object. - */ - PrivateLinkResourcesWrapperInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PublicNetworkAccess.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PublicNetworkAccess.java deleted file mode 100644 index 021b6e1abac15..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PublicNetworkAccess.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for PublicNetworkAccess. */ -public final class PublicNetworkAccess extends ExpandableStringEnum { - /** Static value Enabled for PublicNetworkAccess. */ - public static final PublicNetworkAccess ENABLED = fromString("Enabled"); - - /** Static value Disabled for PublicNetworkAccess. */ - public static final PublicNetworkAccess DISABLED = fromString("Disabled"); - - /** - * Creates or finds a PublicNetworkAccess from its string representation. - * - * @param name a name to look for. - * @return the corresponding PublicNetworkAccess. - */ - @JsonCreator - public static PublicNetworkAccess fromString(String name) { - return fromString(name, PublicNetworkAccess.class); - } - - /** @return known PublicNetworkAccess values. */ - public static Collection values() { - return values(PublicNetworkAccess.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QueryDataFlowDebugSessionsResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QueryDataFlowDebugSessionsResponse.java deleted file mode 100644 index 85f56e2962c8d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QueryDataFlowDebugSessionsResponse.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of active debug sessions. */ -@Fluent -public final class QueryDataFlowDebugSessionsResponse { - /* - * Array with all active debug sessions. - */ - @JsonProperty(value = "value") - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: Array with all active debug sessions. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: Array with all active debug sessions. - * - * @param value the value value to set. - * @return the QueryDataFlowDebugSessionsResponse object itself. - */ - public QueryDataFlowDebugSessionsResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the QueryDataFlowDebugSessionsResponse object itself. - */ - public QueryDataFlowDebugSessionsResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java deleted file mode 100644 index 01ca66a95973f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.QuickBooksLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** QuickBooks server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("QuickBooks") -@Fluent -public final class QuickBooksLinkedService extends LinkedService { - /* - * QuickBooks server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private QuickBooksLinkedServiceTypeProperties innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: QuickBooks server linked service properties. - * - * @return the innerTypeProperties value. - */ - private QuickBooksLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); - } - - /** - * Set the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); - return this; - } - - /** - * Get the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - * - * @param endpoint the endpoint value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the companyId property: The company ID of the QuickBooks company to authorize. - * - * @return the companyId value. - */ - public Object companyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().companyId(); - } - - /** - * Set the companyId property: The company ID of the QuickBooks company to authorize. - * - * @param companyId the companyId value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withCompanyId(Object companyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCompanyId(companyId); - return this; - } - - /** - * Get the consumerKey property: The consumer key for OAuth 1.0 authentication. - * - * @return the consumerKey value. - */ - public Object consumerKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().consumerKey(); - } - - /** - * Set the consumerKey property: The consumer key for OAuth 1.0 authentication. - * - * @param consumerKey the consumerKey value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withConsumerKey(Object consumerKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConsumerKey(consumerKey); - return this; - } - - /** - * Get the consumerSecret property: The consumer secret for OAuth 1.0 authentication. - * - * @return the consumerSecret value. - */ - public SecretBase consumerSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().consumerSecret(); - } - - /** - * Set the consumerSecret property: The consumer secret for OAuth 1.0 authentication. - * - * @param consumerSecret the consumerSecret value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withConsumerSecret(SecretBase consumerSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConsumerSecret(consumerSecret); - return this; - } - - /** - * Get the accessToken property: The access token for OAuth 1.0 authentication. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); - } - - /** - * Set the accessToken property: The access token for OAuth 1.0 authentication. - * - * @param accessToken the accessToken value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); - return this; - } - - /** - * Get the accessTokenSecret property: The access token secret for OAuth 1.0 authentication. - * - * @return the accessTokenSecret value. - */ - public SecretBase accessTokenSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessTokenSecret(); - } - - /** - * Set the accessTokenSecret property: The access token secret for OAuth 1.0 authentication. - * - * @param accessTokenSecret the accessTokenSecret value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withAccessTokenSecret(SecretBase accessTokenSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessTokenSecret(accessTokenSecret); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the QuickBooksLinkedService object itself. - */ - public QuickBooksLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model QuickBooksLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(QuickBooksLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java deleted file mode 100644 index 84fd4211ccb3a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** QuickBooks server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("QuickBooksObject") -@Fluent -public final class QuickBooksObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the QuickBooksObjectDataset object itself. - */ - public QuickBooksObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksSource.java deleted file mode 100644 index adb82cff0754c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity QuickBooks server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("QuickBooksSource") -@Fluent -public final class QuickBooksSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the QuickBooksSource object itself. - */ - public QuickBooksSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickBooksSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java deleted file mode 100644 index e2e6123bc8cee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.QuickbaseLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Quickbase. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Quickbase") -@Fluent -public final class QuickbaseLinkedService extends LinkedService { - /* - * Quickbase linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private QuickbaseLinkedServiceTypeProperties innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Quickbase linked service properties. - * - * @return the innerTypeProperties value. - */ - private QuickbaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public QuickbaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickbaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickbaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public QuickbaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the QuickbaseLinkedService object itself. - */ - public QuickbaseLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the userToken property: The user token for the Quickbase source. - * - * @return the userToken value. - */ - public SecretBase userToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().userToken(); - } - - /** - * Set the userToken property: The user token for the Quickbase source. - * - * @param userToken the userToken value to set. - * @return the QuickbaseLinkedService object itself. - */ - public QuickbaseLinkedService withUserToken(SecretBase userToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUserToken(userToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the QuickbaseLinkedService object itself. - */ - public QuickbaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model QuickbaseLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(QuickbaseLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceFrequency.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceFrequency.java deleted file mode 100644 index 3065571129b3e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceFrequency.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for RecurrenceFrequency. */ -public final class RecurrenceFrequency extends ExpandableStringEnum { - /** Static value NotSpecified for RecurrenceFrequency. */ - public static final RecurrenceFrequency NOT_SPECIFIED = fromString("NotSpecified"); - - /** Static value Minute for RecurrenceFrequency. */ - public static final RecurrenceFrequency MINUTE = fromString("Minute"); - - /** Static value Hour for RecurrenceFrequency. */ - public static final RecurrenceFrequency HOUR = fromString("Hour"); - - /** Static value Day for RecurrenceFrequency. */ - public static final RecurrenceFrequency DAY = fromString("Day"); - - /** Static value Week for RecurrenceFrequency. */ - public static final RecurrenceFrequency WEEK = fromString("Week"); - - /** Static value Month for RecurrenceFrequency. */ - public static final RecurrenceFrequency MONTH = fromString("Month"); - - /** Static value Year for RecurrenceFrequency. */ - public static final RecurrenceFrequency YEAR = fromString("Year"); - - /** - * Creates or finds a RecurrenceFrequency from its string representation. - * - * @param name a name to look for. - * @return the corresponding RecurrenceFrequency. - */ - @JsonCreator - public static RecurrenceFrequency fromString(String name) { - return fromString(name, RecurrenceFrequency.class); - } - - /** @return known RecurrenceFrequency values. */ - public static Collection values() { - return values(RecurrenceFrequency.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceSchedule.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceSchedule.java deleted file mode 100644 index 86605a7b8505b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceSchedule.java +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** The recurrence schedule. */ -@Fluent -public final class RecurrenceSchedule { - /* - * The minutes. - */ - @JsonProperty(value = "minutes") - private List minutes; - - /* - * The hours. - */ - @JsonProperty(value = "hours") - private List hours; - - /* - * The days of the week. - */ - @JsonProperty(value = "weekDays") - private List weekDays; - - /* - * The month days. - */ - @JsonProperty(value = "monthDays") - private List monthDays; - - /* - * The monthly occurrences. - */ - @JsonProperty(value = "monthlyOccurrences") - private List monthlyOccurrences; - - /* - * The recurrence schedule. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the minutes property: The minutes. - * - * @return the minutes value. - */ - public List minutes() { - return this.minutes; - } - - /** - * Set the minutes property: The minutes. - * - * @param minutes the minutes value to set. - * @return the RecurrenceSchedule object itself. - */ - public RecurrenceSchedule withMinutes(List minutes) { - this.minutes = minutes; - return this; - } - - /** - * Get the hours property: The hours. - * - * @return the hours value. - */ - public List hours() { - return this.hours; - } - - /** - * Set the hours property: The hours. - * - * @param hours the hours value to set. - * @return the RecurrenceSchedule object itself. - */ - public RecurrenceSchedule withHours(List hours) { - this.hours = hours; - return this; - } - - /** - * Get the weekDays property: The days of the week. - * - * @return the weekDays value. - */ - public List weekDays() { - return this.weekDays; - } - - /** - * Set the weekDays property: The days of the week. - * - * @param weekDays the weekDays value to set. - * @return the RecurrenceSchedule object itself. - */ - public RecurrenceSchedule withWeekDays(List weekDays) { - this.weekDays = weekDays; - return this; - } - - /** - * Get the monthDays property: The month days. - * - * @return the monthDays value. - */ - public List monthDays() { - return this.monthDays; - } - - /** - * Set the monthDays property: The month days. - * - * @param monthDays the monthDays value to set. - * @return the RecurrenceSchedule object itself. - */ - public RecurrenceSchedule withMonthDays(List monthDays) { - this.monthDays = monthDays; - return this; - } - - /** - * Get the monthlyOccurrences property: The monthly occurrences. - * - * @return the monthlyOccurrences value. - */ - public List monthlyOccurrences() { - return this.monthlyOccurrences; - } - - /** - * Set the monthlyOccurrences property: The monthly occurrences. - * - * @param monthlyOccurrences the monthlyOccurrences value to set. - * @return the RecurrenceSchedule object itself. - */ - public RecurrenceSchedule withMonthlyOccurrences(List monthlyOccurrences) { - this.monthlyOccurrences = monthlyOccurrences; - return this; - } - - /** - * Get the additionalProperties property: The recurrence schedule. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The recurrence schedule. - * - * @param additionalProperties the additionalProperties value to set. - * @return the RecurrenceSchedule object itself. - */ - public RecurrenceSchedule withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (monthlyOccurrences() != null) { - monthlyOccurrences().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceScheduleOccurrence.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceScheduleOccurrence.java deleted file mode 100644 index f28e7ce84348a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RecurrenceScheduleOccurrence.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** The recurrence schedule occurrence. */ -@Fluent -public final class RecurrenceScheduleOccurrence { - /* - * The day of the week. - */ - @JsonProperty(value = "day") - private DayOfWeek day; - - /* - * The occurrence. - */ - @JsonProperty(value = "occurrence") - private Integer occurrence; - - /* - * The recurrence schedule occurrence. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the day property: The day of the week. - * - * @return the day value. - */ - public DayOfWeek day() { - return this.day; - } - - /** - * Set the day property: The day of the week. - * - * @param day the day value to set. - * @return the RecurrenceScheduleOccurrence object itself. - */ - public RecurrenceScheduleOccurrence withDay(DayOfWeek day) { - this.day = day; - return this; - } - - /** - * Get the occurrence property: The occurrence. - * - * @return the occurrence value. - */ - public Integer occurrence() { - return this.occurrence; - } - - /** - * Set the occurrence property: The occurrence. - * - * @param occurrence the occurrence value to set. - * @return the RecurrenceScheduleOccurrence object itself. - */ - public RecurrenceScheduleOccurrence withOccurrence(Integer occurrence) { - this.occurrence = occurrence; - return this; - } - - /** - * Get the additionalProperties property: The recurrence schedule occurrence. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The recurrence schedule occurrence. - * - * @param additionalProperties the additionalProperties value to set. - * @return the RecurrenceScheduleOccurrence object itself. - */ - public RecurrenceScheduleOccurrence withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RedirectIncompatibleRowSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RedirectIncompatibleRowSettings.java deleted file mode 100644 index 3dc60ed627d91..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RedirectIncompatibleRowSettings.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Redirect incompatible row settings. */ -@Fluent -public final class RedirectIncompatibleRowSettings { - /* - * Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked - * service used for redirecting incompatible row. Must be specified if - * redirectIncompatibleRowSettings is specified. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "linkedServiceName", required = true) - private Object linkedServiceName; - - /* - * The path for storing the redirect incompatible row data. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "path") - private Object path; - - /* - * Redirect incompatible row settings - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the linkedServiceName property: Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked - * service used for redirecting incompatible row. Must be specified if redirectIncompatibleRowSettings is specified. - * Type: string (or Expression with resultType string). - * - * @return the linkedServiceName value. - */ - public Object linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked - * service used for redirecting incompatible row. Must be specified if redirectIncompatibleRowSettings is specified. - * Type: string (or Expression with resultType string). - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the RedirectIncompatibleRowSettings object itself. - */ - public RedirectIncompatibleRowSettings withLinkedServiceName(Object linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the path property: The path for storing the redirect incompatible row data. Type: string (or Expression with - * resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path for storing the redirect incompatible row data. Type: string (or Expression with - * resultType string). - * - * @param path the path value to set. - * @return the RedirectIncompatibleRowSettings object itself. - */ - public RedirectIncompatibleRowSettings withPath(Object path) { - this.path = path; - return this; - } - - /** - * Get the additionalProperties property: Redirect incompatible row settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Redirect incompatible row settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the RedirectIncompatibleRowSettings object itself. - */ - public RedirectIncompatibleRowSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model RedirectIncompatibleRowSettings")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RedirectIncompatibleRowSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RedshiftUnloadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RedshiftUnloadSettings.java deleted file mode 100644 index f004990bfb4a4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RedshiftUnloadSettings.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with unload. With this, - * data from Amazon Redshift source will be unloaded into S3 first and then copied into the targeted sink from the - * interim S3. - */ -@Fluent -public final class RedshiftUnloadSettings { - /* - * The name of the Amazon S3 linked service which will be used for the - * unload operation when copying from the Amazon Redshift source. - */ - @JsonProperty(value = "s3LinkedServiceName", required = true) - private LinkedServiceReference s3LinkedServiceName; - - /* - * The bucket of the interim Amazon S3 which will be used to store the - * unloaded data from Amazon Redshift source. The bucket must be in the - * same region as the Amazon Redshift source. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "bucketName", required = true) - private Object bucketName; - - /** - * Get the s3LinkedServiceName property: The name of the Amazon S3 linked service which will be used for the unload - * operation when copying from the Amazon Redshift source. - * - * @return the s3LinkedServiceName value. - */ - public LinkedServiceReference s3LinkedServiceName() { - return this.s3LinkedServiceName; - } - - /** - * Set the s3LinkedServiceName property: The name of the Amazon S3 linked service which will be used for the unload - * operation when copying from the Amazon Redshift source. - * - * @param s3LinkedServiceName the s3LinkedServiceName value to set. - * @return the RedshiftUnloadSettings object itself. - */ - public RedshiftUnloadSettings withS3LinkedServiceName(LinkedServiceReference s3LinkedServiceName) { - this.s3LinkedServiceName = s3LinkedServiceName; - return this; - } - - /** - * Get the bucketName property: The bucket of the interim Amazon S3 which will be used to store the unloaded data - * from Amazon Redshift source. The bucket must be in the same region as the Amazon Redshift source. Type: string - * (or Expression with resultType string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.bucketName; - } - - /** - * Set the bucketName property: The bucket of the interim Amazon S3 which will be used to store the unloaded data - * from Amazon Redshift source. The bucket must be in the same region as the Amazon Redshift source. Type: string - * (or Expression with resultType string). - * - * @param bucketName the bucketName value to set. - * @return the RedshiftUnloadSettings object itself. - */ - public RedshiftUnloadSettings withBucketName(Object bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (s3LinkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property s3LinkedServiceName in model RedshiftUnloadSettings")); - } else { - s3LinkedServiceName().validate(); - } - if (bucketName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property bucketName in model RedshiftUnloadSettings")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RedshiftUnloadSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalSource.java deleted file mode 100644 index 2c08bad993033..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalSource.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for various relational databases. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("RelationalSource") -@Fluent -public final class RelationalSource extends CopySource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the RelationalSource object itself. - */ - public RelationalSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the RelationalSource object itself. - */ - public RelationalSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java deleted file mode 100644 index 122181dc8cddb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.RelationalTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The relational table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("RelationalTable") -@Fluent -public final class RelationalTableDataset extends Dataset { - /* - * Relational table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private RelationalTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Relational table dataset properties. - * - * @return the innerTypeProperties value. - */ - private RelationalTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public RelationalTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public RelationalTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the RelationalTableDataset object itself. - */ - public RelationalTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RelationalTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RemotePrivateEndpointConnection.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RemotePrivateEndpointConnection.java deleted file mode 100644 index ca7edabda2041..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RemotePrivateEndpointConnection.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** A remote private endpoint connection. */ -@Fluent -public final class RemotePrivateEndpointConnection { - /* - * The provisioningState property. - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * PrivateEndpoint of a remote private endpoint connection - */ - @JsonProperty(value = "privateEndpoint") - private ArmIdWrapper privateEndpoint; - - /* - * The state of a private link connection - */ - @JsonProperty(value = "privateLinkServiceConnectionState") - private PrivateLinkConnectionState privateLinkServiceConnectionState; - - /** - * Get the provisioningState property: The provisioningState property. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the privateEndpoint property: PrivateEndpoint of a remote private endpoint connection. - * - * @return the privateEndpoint value. - */ - public ArmIdWrapper privateEndpoint() { - return this.privateEndpoint; - } - - /** - * Set the privateEndpoint property: PrivateEndpoint of a remote private endpoint connection. - * - * @param privateEndpoint the privateEndpoint value to set. - * @return the RemotePrivateEndpointConnection object itself. - */ - public RemotePrivateEndpointConnection withPrivateEndpoint(ArmIdWrapper privateEndpoint) { - this.privateEndpoint = privateEndpoint; - return this; - } - - /** - * Get the privateLinkServiceConnectionState property: The state of a private link connection. - * - * @return the privateLinkServiceConnectionState value. - */ - public PrivateLinkConnectionState privateLinkServiceConnectionState() { - return this.privateLinkServiceConnectionState; - } - - /** - * Set the privateLinkServiceConnectionState property: The state of a private link connection. - * - * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. - * @return the RemotePrivateEndpointConnection object itself. - */ - public RemotePrivateEndpointConnection withPrivateLinkServiceConnectionState( - PrivateLinkConnectionState privateLinkServiceConnectionState) { - this.privateLinkServiceConnectionState = privateLinkServiceConnectionState; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (privateEndpoint() != null) { - privateEndpoint().validate(); - } - if (privateLinkServiceConnectionState() != null) { - privateLinkServiceConnectionState().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java deleted file mode 100644 index 9712bd7a80654..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.RerunTumblingWindowTriggerTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.List; - -/** - * Trigger that schedules pipeline reruns for all fixed time interval windows from a requested start time to requested - * end time. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("RerunTumblingWindowTrigger") -@Fluent -public final class RerunTumblingWindowTrigger extends Trigger { - /* - * Rerun Trigger properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private RerunTumblingWindowTriggerTypeProperties innerTypeProperties = - new RerunTumblingWindowTriggerTypeProperties(); - - /** - * Get the innerTypeProperties property: Rerun Trigger properties. - * - * @return the innerTypeProperties value. - */ - private RerunTumblingWindowTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public RerunTumblingWindowTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public RerunTumblingWindowTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the parentTrigger property: The parent trigger reference. - * - * @return the parentTrigger value. - */ - public Object parentTrigger() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parentTrigger(); - } - - /** - * Set the parentTrigger property: The parent trigger reference. - * - * @param parentTrigger the parentTrigger value to set. - * @return the RerunTumblingWindowTrigger object itself. - */ - public RerunTumblingWindowTrigger withParentTrigger(Object parentTrigger) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withParentTrigger(parentTrigger); - return this; - } - - /** - * Get the requestedStartTime property: The start time for the time period for which restatement is initiated. Only - * UTC time is currently supported. - * - * @return the requestedStartTime value. - */ - public OffsetDateTime requestedStartTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestedStartTime(); - } - - /** - * Set the requestedStartTime property: The start time for the time period for which restatement is initiated. Only - * UTC time is currently supported. - * - * @param requestedStartTime the requestedStartTime value to set. - * @return the RerunTumblingWindowTrigger object itself. - */ - public RerunTumblingWindowTrigger withRequestedStartTime(OffsetDateTime requestedStartTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRequestedStartTime(requestedStartTime); - return this; - } - - /** - * Get the requestedEndTime property: The end time for the time period for which restatement is initiated. Only UTC - * time is currently supported. - * - * @return the requestedEndTime value. - */ - public OffsetDateTime requestedEndTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestedEndTime(); - } - - /** - * Set the requestedEndTime property: The end time for the time period for which restatement is initiated. Only UTC - * time is currently supported. - * - * @param requestedEndTime the requestedEndTime value to set. - * @return the RerunTumblingWindowTrigger object itself. - */ - public RerunTumblingWindowTrigger withRequestedEndTime(OffsetDateTime requestedEndTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRequestedEndTime(requestedEndTime); - return this; - } - - /** - * Get the rerunConcurrency property: The max number of parallel time windows (ready for execution) for which a - * rerun is triggered. - * - * @return the rerunConcurrency value. - */ - public int rerunConcurrency() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().rerunConcurrency(); - } - - /** - * Set the rerunConcurrency property: The max number of parallel time windows (ready for execution) for which a - * rerun is triggered. - * - * @param rerunConcurrency the rerunConcurrency value to set. - * @return the RerunTumblingWindowTrigger object itself. - */ - public RerunTumblingWindowTrigger withRerunConcurrency(int rerunConcurrency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRerunConcurrency(rerunConcurrency); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model RerunTumblingWindowTrigger")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RerunTumblingWindowTrigger.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java deleted file mode 100644 index 545f1b0060820..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java +++ /dev/null @@ -1,258 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ResponsysLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Responsys linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Responsys") -@Fluent -public final class ResponsysLinkedService extends LinkedService { - /* - * Responsys linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ResponsysLinkedServiceTypeProperties innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Responsys linked service properties. - * - * @return the innerTypeProperties value. - */ - private ResponsysLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the endpoint property: The endpoint of the Responsys server. - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of the Responsys server. - * - * @param endpoint the endpoint value to set. - * @return the ResponsysLinkedService object itself. - */ - public ResponsysLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the clientId property: The client ID associated with the Responsys application. Type: string (or Expression - * with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client ID associated with the Responsys application. Type: string (or Expression - * with resultType string). - * - * @param clientId the clientId value to set. - * @return the ResponsysLinkedService object itself. - */ - public ResponsysLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret associated with the Responsys application. Type: string (or - * Expression with resultType string). - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret associated with the Responsys application. Type: string (or - * Expression with resultType string). - * - * @param clientSecret the clientSecret value to set. - * @return the ResponsysLinkedService object itself. - */ - public ResponsysLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ResponsysLinkedService object itself. - */ - public ResponsysLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the ResponsysLinkedService object itself. - */ - public ResponsysLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ResponsysLinkedService object itself. - */ - public ResponsysLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ResponsysLinkedService object itself. - */ - public ResponsysLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ResponsysLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ResponsysLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java deleted file mode 100644 index 67d8ca5d520d7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Responsys dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ResponsysObject") -@Fluent -public final class ResponsysObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ResponsysObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ResponsysObjectDataset object itself. - */ - public ResponsysObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysSource.java deleted file mode 100644 index 85df5870482d5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Responsys source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ResponsysSource") -@Fluent -public final class ResponsysSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the ResponsysSource object itself. - */ - public ResponsysSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ResponsysSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java deleted file mode 100644 index 9cf8cc56cb6d2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.RestResourceDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** A Rest service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("RestResource") -@Fluent -public final class RestResourceDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private RestResourceDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private RestResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the relativeUrl property: The relative URL to the resource that the RESTful API provides. Type: string (or - * Expression with resultType string). - * - * @return the relativeUrl value. - */ - public Object relativeUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().relativeUrl(); - } - - /** - * Set the relativeUrl property: The relative URL to the resource that the RESTful API provides. Type: string (or - * Expression with resultType string). - * - * @param relativeUrl the relativeUrl value to set. - * @return the RestResourceDataset object itself. - */ - public RestResourceDataset withRelativeUrl(Object relativeUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withRelativeUrl(relativeUrl); - return this; - } - - /** - * Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestMethod(); - } - - /** - * Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @param requestMethod the requestMethod value to set. - * @return the RestResourceDataset object itself. - */ - public RestResourceDataset withRequestMethod(Object requestMethod) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestMethod(requestMethod); - return this; - } - - /** - * Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestBody(); - } - - /** - * Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the RestResourceDataset object itself. - */ - public RestResourceDataset withRequestBody(Object requestBody) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestBody(requestBody); - return this; - } - - /** - * Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalHeaders(); - } - - /** - * Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the RestResourceDataset object itself. - */ - public RestResourceDataset withAdditionalHeaders(Object additionalHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withAdditionalHeaders(additionalHeaders); - return this; - } - - /** - * Get the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @return the paginationRules value. - */ - public Object paginationRules() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().paginationRules(); - } - - /** - * Set the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @param paginationRules the paginationRules value to set. - * @return the RestResourceDataset object itself. - */ - public RestResourceDataset withPaginationRules(Object paginationRules) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPaginationRules(paginationRules); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceAuthenticationType.java deleted file mode 100644 index 47c683c5d087a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceAuthenticationType.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for RestServiceAuthenticationType. */ -public final class RestServiceAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for RestServiceAuthenticationType. */ - public static final RestServiceAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value Basic for RestServiceAuthenticationType. */ - public static final RestServiceAuthenticationType BASIC = fromString("Basic"); - - /** Static value AadServicePrincipal for RestServiceAuthenticationType. */ - public static final RestServiceAuthenticationType AAD_SERVICE_PRINCIPAL = fromString("AadServicePrincipal"); - - /** Static value ManagedServiceIdentity for RestServiceAuthenticationType. */ - public static final RestServiceAuthenticationType MANAGED_SERVICE_IDENTITY = fromString("ManagedServiceIdentity"); - - /** - * Creates or finds a RestServiceAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding RestServiceAuthenticationType. - */ - @JsonCreator - public static RestServiceAuthenticationType fromString(String name) { - return fromString(name, RestServiceAuthenticationType.class); - } - - /** @return known RestServiceAuthenticationType values. */ - public static Collection values() { - return values(RestServiceAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java deleted file mode 100644 index 038a203af842f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java +++ /dev/null @@ -1,396 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.RestServiceLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Rest Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("RestService") -@Fluent -public final class RestServiceLinkedService extends LinkedService { - /* - * Rest Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private RestServiceLinkedServiceTypeProperties innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Rest Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private RestServiceLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The base URL of the REST service. - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The base URL of the REST service. - * - * @param url the url value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the enableServerCertificateValidation property: Whether to validate server side SSL certificate when - * connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().enableServerCertificateValidation(); - } - - /** - * Set the enableServerCertificateValidation property: Whether to validate server side SSL certificate when - * connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableServerCertificateValidation(enableServerCertificateValidation); - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the REST service. - * - * @return the authenticationType value. - */ - public RestServiceAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the REST service. - * - * @param authenticationType the authenticationType value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withAuthenticationType(RestServiceAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The user name used in Basic authentication type. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name used in Basic authentication type. - * - * @param username the username value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password used in Basic authentication type. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password used in Basic authentication type. - * - * @param password the password value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authHeaders(); - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withAuthHeaders(Object authHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthHeaders(authHeaders); - return this; - } - - /** - * Get the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type. - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type. - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal - * authentication type under which your application resides. - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal - * authentication type under which your application resides. - * - * @param tenant the tenant value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); - return this; - } - - /** - * Get the aadResourceId property: The resource you are requesting authorization to use. - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().aadResourceId(); - } - - /** - * Set the aadResourceId property: The resource you are requesting authorization to use. - * - * @param aadResourceId the aadResourceId value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withAadResourceId(Object aadResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadResourceId(aadResourceId); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the RestServiceLinkedService object itself. - */ - public RestServiceLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model RestServiceLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RestServiceLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestSink.java deleted file mode 100644 index fca4a4e2ccab0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestSink.java +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Rest service Sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("RestSink") -@Fluent -public final class RestSink extends CopySink { - /* - * The HTTP method used to call the RESTful API. The default is POST. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestMethod") - private Object requestMethod; - - /* - * The additional HTTP headers in the request to the RESTful API. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "additionalHeaders") - private Object additionalHeaders; - - /* - * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get - * a response, not the timeout to read response data. Default value: - * 00:01:40. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /* - * The time to await before sending next request, in milliseconds - */ - @JsonProperty(value = "requestInterval") - private Object requestInterval; - - /* - * Http Compression Type to Send data in compressed format with Optimal - * Compression Level, Default is None. And The Only Supported option is - * Gzip. - */ - @JsonProperty(value = "httpCompressionType") - private Object httpCompressionType; - - /** - * Get the requestMethod property: The HTTP method used to call the RESTful API. The default is POST. Type: string - * (or Expression with resultType string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.requestMethod; - } - - /** - * Set the requestMethod property: The HTTP method used to call the RESTful API. The default is POST. Type: string - * (or Expression with resultType string). - * - * @param requestMethod the requestMethod value to set. - * @return the RestSink object itself. - */ - public RestSink withRequestMethod(Object requestMethod) { - this.requestMethod = requestMethod; - return this; - } - - /** - * Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.additionalHeaders; - } - - /** - * Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the RestSink object itself. - */ - public RestSink withAdditionalHeaders(Object additionalHeaders) { - this.additionalHeaders = additionalHeaders; - return this; - } - - /** - * Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the RestSink object itself. - */ - public RestSink withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** - * Get the requestInterval property: The time to await before sending next request, in milliseconds. - * - * @return the requestInterval value. - */ - public Object requestInterval() { - return this.requestInterval; - } - - /** - * Set the requestInterval property: The time to await before sending next request, in milliseconds. - * - * @param requestInterval the requestInterval value to set. - * @return the RestSink object itself. - */ - public RestSink withRequestInterval(Object requestInterval) { - this.requestInterval = requestInterval; - return this; - } - - /** - * Get the httpCompressionType property: Http Compression Type to Send data in compressed format with Optimal - * Compression Level, Default is None. And The Only Supported option is Gzip. - * - * @return the httpCompressionType value. - */ - public Object httpCompressionType() { - return this.httpCompressionType; - } - - /** - * Set the httpCompressionType property: Http Compression Type to Send data in compressed format with Optimal - * Compression Level, Default is None. And The Only Supported option is Gzip. - * - * @param httpCompressionType the httpCompressionType value to set. - * @return the RestSink object itself. - */ - public RestSink withHttpCompressionType(Object httpCompressionType) { - this.httpCompressionType = httpCompressionType; - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestSource.java deleted file mode 100644 index b58a926bfe3b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestSource.java +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Rest service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("RestSource") -@Fluent -public final class RestSource extends CopySource { - /* - * The HTTP method used to call the RESTful API. The default is GET. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestMethod") - private Object requestMethod; - - /* - * The HTTP request body to the RESTful API if requestMethod is POST. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestBody") - private Object requestBody; - - /* - * The additional HTTP headers in the request to the RESTful API. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "additionalHeaders") - private Object additionalHeaders; - - /* - * The pagination rules to compose next page requests. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "paginationRules") - private Object paginationRules; - - /* - * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get - * a response, not the timeout to read response data. Default value: - * 00:01:40. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /* - * The time to await before sending next page request. - */ - @JsonProperty(value = "requestInterval") - private Object requestInterval; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.requestMethod; - } - - /** - * Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @param requestMethod the requestMethod value to set. - * @return the RestSource object itself. - */ - public RestSource withRequestMethod(Object requestMethod) { - this.requestMethod = requestMethod; - return this; - } - - /** - * Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.requestBody; - } - - /** - * Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the RestSource object itself. - */ - public RestSource withRequestBody(Object requestBody) { - this.requestBody = requestBody; - return this; - } - - /** - * Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.additionalHeaders; - } - - /** - * Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the RestSource object itself. - */ - public RestSource withAdditionalHeaders(Object additionalHeaders) { - this.additionalHeaders = additionalHeaders; - return this; - } - - /** - * Get the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @return the paginationRules value. - */ - public Object paginationRules() { - return this.paginationRules; - } - - /** - * Set the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @param paginationRules the paginationRules value to set. - * @return the RestSource object itself. - */ - public RestSource withPaginationRules(Object paginationRules) { - this.paginationRules = paginationRules; - return this; - } - - /** - * Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the RestSource object itself. - */ - public RestSource withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** - * Get the requestInterval property: The time to await before sending next page request. - * - * @return the requestInterval value. - */ - public Object requestInterval() { - return this.requestInterval; - } - - /** - * Set the requestInterval property: The time to await before sending next page request. - * - * @param requestInterval the requestInterval value to set. - * @return the RestSource object itself. - */ - public RestSource withRequestInterval(Object requestInterval) { - this.requestInterval = requestInterval; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the RestSource object itself. - */ - public RestSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RetryPolicy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RetryPolicy.java deleted file mode 100644 index e7beea616ed93..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RetryPolicy.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Execution policy for an activity. */ -@Fluent -public final class RetryPolicy { - /* - * Maximum ordinary retry attempts. Default is 0. Type: integer (or - * Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "count") - private Object count; - - /* - * Interval between retries in seconds. Default is 30. - */ - @JsonProperty(value = "intervalInSeconds") - private Integer intervalInSeconds; - - /** - * Get the count property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @return the count value. - */ - public Object count() { - return this.count; - } - - /** - * Set the count property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @param count the count value to set. - * @return the RetryPolicy object itself. - */ - public RetryPolicy withCount(Object count) { - this.count = count; - return this; - } - - /** - * Get the intervalInSeconds property: Interval between retries in seconds. Default is 30. - * - * @return the intervalInSeconds value. - */ - public Integer intervalInSeconds() { - return this.intervalInSeconds; - } - - /** - * Set the intervalInSeconds property: Interval between retries in seconds. Default is 30. - * - * @param intervalInSeconds the intervalInSeconds value to set. - * @return the RetryPolicy object itself. - */ - public RetryPolicy withIntervalInSeconds(Integer intervalInSeconds) { - this.intervalInSeconds = intervalInSeconds; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunFilterParameters.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunFilterParameters.java deleted file mode 100644 index 436317e460886..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunFilterParameters.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.List; - -/** Query parameters for listing runs. */ -@Fluent -public final class RunFilterParameters { - /* - * The continuation token for getting the next page of results. Null for - * first page. - */ - @JsonProperty(value = "continuationToken") - private String continuationToken; - - /* - * The time at or after which the run event was updated in 'ISO 8601' - * format. - */ - @JsonProperty(value = "lastUpdatedAfter", required = true) - private OffsetDateTime lastUpdatedAfter; - - /* - * The time at or before which the run event was updated in 'ISO 8601' - * format. - */ - @JsonProperty(value = "lastUpdatedBefore", required = true) - private OffsetDateTime lastUpdatedBefore; - - /* - * List of filters. - */ - @JsonProperty(value = "filters") - private List filters; - - /* - * List of OrderBy option. - */ - @JsonProperty(value = "orderBy") - private List orderBy; - - /** - * Get the continuationToken property: The continuation token for getting the next page of results. Null for first - * page. - * - * @return the continuationToken value. - */ - public String continuationToken() { - return this.continuationToken; - } - - /** - * Set the continuationToken property: The continuation token for getting the next page of results. Null for first - * page. - * - * @param continuationToken the continuationToken value to set. - * @return the RunFilterParameters object itself. - */ - public RunFilterParameters withContinuationToken(String continuationToken) { - this.continuationToken = continuationToken; - return this; - } - - /** - * Get the lastUpdatedAfter property: The time at or after which the run event was updated in 'ISO 8601' format. - * - * @return the lastUpdatedAfter value. - */ - public OffsetDateTime lastUpdatedAfter() { - return this.lastUpdatedAfter; - } - - /** - * Set the lastUpdatedAfter property: The time at or after which the run event was updated in 'ISO 8601' format. - * - * @param lastUpdatedAfter the lastUpdatedAfter value to set. - * @return the RunFilterParameters object itself. - */ - public RunFilterParameters withLastUpdatedAfter(OffsetDateTime lastUpdatedAfter) { - this.lastUpdatedAfter = lastUpdatedAfter; - return this; - } - - /** - * Get the lastUpdatedBefore property: The time at or before which the run event was updated in 'ISO 8601' format. - * - * @return the lastUpdatedBefore value. - */ - public OffsetDateTime lastUpdatedBefore() { - return this.lastUpdatedBefore; - } - - /** - * Set the lastUpdatedBefore property: The time at or before which the run event was updated in 'ISO 8601' format. - * - * @param lastUpdatedBefore the lastUpdatedBefore value to set. - * @return the RunFilterParameters object itself. - */ - public RunFilterParameters withLastUpdatedBefore(OffsetDateTime lastUpdatedBefore) { - this.lastUpdatedBefore = lastUpdatedBefore; - return this; - } - - /** - * Get the filters property: List of filters. - * - * @return the filters value. - */ - public List filters() { - return this.filters; - } - - /** - * Set the filters property: List of filters. - * - * @param filters the filters value to set. - * @return the RunFilterParameters object itself. - */ - public RunFilterParameters withFilters(List filters) { - this.filters = filters; - return this; - } - - /** - * Get the orderBy property: List of OrderBy option. - * - * @return the orderBy value. - */ - public List orderBy() { - return this.orderBy; - } - - /** - * Set the orderBy property: List of OrderBy option. - * - * @param orderBy the orderBy value to set. - * @return the RunFilterParameters object itself. - */ - public RunFilterParameters withOrderBy(List orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (lastUpdatedAfter() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property lastUpdatedAfter in model RunFilterParameters")); - } - if (lastUpdatedBefore() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property lastUpdatedBefore in model RunFilterParameters")); - } - if (filters() != null) { - filters().forEach(e -> e.validate()); - } - if (orderBy() != null) { - orderBy().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RunFilterParameters.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilter.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilter.java deleted file mode 100644 index 9dbd1e4f23191..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilter.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Query filter option for listing runs. */ -@Fluent -public final class RunQueryFilter { - /* - * Parameter name to be used for filter. The allowed operands to query - * pipeline runs are PipelineName, RunStart, RunEnd and Status; to query - * activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, - * ActivityType and Status, and to query trigger runs are TriggerName, - * TriggerRunTimestamp and Status. - */ - @JsonProperty(value = "operand", required = true) - private RunQueryFilterOperand operand; - - /* - * Operator to be used for filter. - */ - @JsonProperty(value = "operator", required = true) - private RunQueryFilterOperator operator; - - /* - * List of filter values. - */ - @JsonProperty(value = "values", required = true) - private List values; - - /** - * Get the operand property: Parameter name to be used for filter. The allowed operands to query pipeline runs are - * PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, - * ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and - * Status. - * - * @return the operand value. - */ - public RunQueryFilterOperand operand() { - return this.operand; - } - - /** - * Set the operand property: Parameter name to be used for filter. The allowed operands to query pipeline runs are - * PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, - * ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and - * Status. - * - * @param operand the operand value to set. - * @return the RunQueryFilter object itself. - */ - public RunQueryFilter withOperand(RunQueryFilterOperand operand) { - this.operand = operand; - return this; - } - - /** - * Get the operator property: Operator to be used for filter. - * - * @return the operator value. - */ - public RunQueryFilterOperator operator() { - return this.operator; - } - - /** - * Set the operator property: Operator to be used for filter. - * - * @param operator the operator value to set. - * @return the RunQueryFilter object itself. - */ - public RunQueryFilter withOperator(RunQueryFilterOperator operator) { - this.operator = operator; - return this; - } - - /** - * Get the values property: List of filter values. - * - * @return the values value. - */ - public List values() { - return this.values; - } - - /** - * Set the values property: List of filter values. - * - * @param values the values value to set. - * @return the RunQueryFilter object itself. - */ - public RunQueryFilter withValues(List values) { - this.values = values; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (operand() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property operand in model RunQueryFilter")); - } - if (operator() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property operator in model RunQueryFilter")); - } - if (values() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property values in model RunQueryFilter")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RunQueryFilter.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilterOperand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilterOperand.java deleted file mode 100644 index 428db0682f6d2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilterOperand.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for RunQueryFilterOperand. */ -public final class RunQueryFilterOperand extends ExpandableStringEnum { - /** Static value PipelineName for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand PIPELINE_NAME = fromString("PipelineName"); - - /** Static value Status for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand STATUS = fromString("Status"); - - /** Static value RunStart for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand RUN_START = fromString("RunStart"); - - /** Static value RunEnd for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand RUN_END = fromString("RunEnd"); - - /** Static value ActivityName for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand ACTIVITY_NAME = fromString("ActivityName"); - - /** Static value ActivityRunStart for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand ACTIVITY_RUN_START = fromString("ActivityRunStart"); - - /** Static value ActivityRunEnd for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand ACTIVITY_RUN_END = fromString("ActivityRunEnd"); - - /** Static value ActivityType for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand ACTIVITY_TYPE = fromString("ActivityType"); - - /** Static value TriggerName for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand TRIGGER_NAME = fromString("TriggerName"); - - /** Static value TriggerRunTimestamp for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand TRIGGER_RUN_TIMESTAMP = fromString("TriggerRunTimestamp"); - - /** Static value RunGroupId for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand RUN_GROUP_ID = fromString("RunGroupId"); - - /** Static value LatestOnly for RunQueryFilterOperand. */ - public static final RunQueryFilterOperand LATEST_ONLY = fromString("LatestOnly"); - - /** - * Creates or finds a RunQueryFilterOperand from its string representation. - * - * @param name a name to look for. - * @return the corresponding RunQueryFilterOperand. - */ - @JsonCreator - public static RunQueryFilterOperand fromString(String name) { - return fromString(name, RunQueryFilterOperand.class); - } - - /** @return known RunQueryFilterOperand values. */ - public static Collection values() { - return values(RunQueryFilterOperand.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilterOperator.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilterOperator.java deleted file mode 100644 index 06052cbf29854..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryFilterOperator.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for RunQueryFilterOperator. */ -public final class RunQueryFilterOperator extends ExpandableStringEnum { - /** Static value Equals for RunQueryFilterOperator. */ - public static final RunQueryFilterOperator EQUALS = fromString("Equals"); - - /** Static value NotEquals for RunQueryFilterOperator. */ - public static final RunQueryFilterOperator NOT_EQUALS = fromString("NotEquals"); - - /** Static value In for RunQueryFilterOperator. */ - public static final RunQueryFilterOperator IN = fromString("In"); - - /** Static value NotIn for RunQueryFilterOperator. */ - public static final RunQueryFilterOperator NOT_IN = fromString("NotIn"); - - /** - * Creates or finds a RunQueryFilterOperator from its string representation. - * - * @param name a name to look for. - * @return the corresponding RunQueryFilterOperator. - */ - @JsonCreator - public static RunQueryFilterOperator fromString(String name) { - return fromString(name, RunQueryFilterOperator.class); - } - - /** @return known RunQueryFilterOperator values. */ - public static Collection values() { - return values(RunQueryFilterOperator.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrder.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrder.java deleted file mode 100644 index 550b683ac7a20..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for RunQueryOrder. */ -public final class RunQueryOrder extends ExpandableStringEnum { - /** Static value ASC for RunQueryOrder. */ - public static final RunQueryOrder ASC = fromString("ASC"); - - /** Static value DESC for RunQueryOrder. */ - public static final RunQueryOrder DESC = fromString("DESC"); - - /** - * Creates or finds a RunQueryOrder from its string representation. - * - * @param name a name to look for. - * @return the corresponding RunQueryOrder. - */ - @JsonCreator - public static RunQueryOrder fromString(String name) { - return fromString(name, RunQueryOrder.class); - } - - /** @return known RunQueryOrder values. */ - public static Collection values() { - return values(RunQueryOrder.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrderBy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrderBy.java deleted file mode 100644 index 5f1be6fc67542..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrderBy.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** An object to provide order by options for listing runs. */ -@Fluent -public final class RunQueryOrderBy { - /* - * Parameter name to be used for order by. The allowed parameters to order - * by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for - * activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and - * Status; for trigger runs are TriggerName, TriggerRunTimestamp and - * Status. - */ - @JsonProperty(value = "orderBy", required = true) - private RunQueryOrderByField orderBy; - - /* - * Sorting order of the parameter. - */ - @JsonProperty(value = "order", required = true) - private RunQueryOrder order; - - /** - * Get the orderBy property: Parameter name to be used for order by. The allowed parameters to order by for pipeline - * runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, - * ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. - * - * @return the orderBy value. - */ - public RunQueryOrderByField orderBy() { - return this.orderBy; - } - - /** - * Set the orderBy property: Parameter name to be used for order by. The allowed parameters to order by for pipeline - * runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, - * ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. - * - * @param orderBy the orderBy value to set. - * @return the RunQueryOrderBy object itself. - */ - public RunQueryOrderBy withOrderBy(RunQueryOrderByField orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Get the order property: Sorting order of the parameter. - * - * @return the order value. - */ - public RunQueryOrder order() { - return this.order; - } - - /** - * Set the order property: Sorting order of the parameter. - * - * @param order the order value to set. - * @return the RunQueryOrderBy object itself. - */ - public RunQueryOrderBy withOrder(RunQueryOrder order) { - this.order = order; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (orderBy() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property orderBy in model RunQueryOrderBy")); - } - if (order() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property order in model RunQueryOrderBy")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RunQueryOrderBy.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrderByField.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrderByField.java deleted file mode 100644 index 7e440c872fc39..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RunQueryOrderByField.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for RunQueryOrderByField. */ -public final class RunQueryOrderByField extends ExpandableStringEnum { - /** Static value RunStart for RunQueryOrderByField. */ - public static final RunQueryOrderByField RUN_START = fromString("RunStart"); - - /** Static value RunEnd for RunQueryOrderByField. */ - public static final RunQueryOrderByField RUN_END = fromString("RunEnd"); - - /** Static value PipelineName for RunQueryOrderByField. */ - public static final RunQueryOrderByField PIPELINE_NAME = fromString("PipelineName"); - - /** Static value Status for RunQueryOrderByField. */ - public static final RunQueryOrderByField STATUS = fromString("Status"); - - /** Static value ActivityName for RunQueryOrderByField. */ - public static final RunQueryOrderByField ACTIVITY_NAME = fromString("ActivityName"); - - /** Static value ActivityRunStart for RunQueryOrderByField. */ - public static final RunQueryOrderByField ACTIVITY_RUN_START = fromString("ActivityRunStart"); - - /** Static value ActivityRunEnd for RunQueryOrderByField. */ - public static final RunQueryOrderByField ACTIVITY_RUN_END = fromString("ActivityRunEnd"); - - /** Static value TriggerName for RunQueryOrderByField. */ - public static final RunQueryOrderByField TRIGGER_NAME = fromString("TriggerName"); - - /** Static value TriggerRunTimestamp for RunQueryOrderByField. */ - public static final RunQueryOrderByField TRIGGER_RUN_TIMESTAMP = fromString("TriggerRunTimestamp"); - - /** - * Creates or finds a RunQueryOrderByField from its string representation. - * - * @param name a name to look for. - * @return the corresponding RunQueryOrderByField. - */ - @JsonCreator - public static RunQueryOrderByField fromString(String name) { - return fromString(name, RunQueryOrderByField.class); - } - - /** @return known RunQueryOrderByField values. */ - public static Collection values() { - return values(RunQueryOrderByField.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java deleted file mode 100644 index 922f01694ec93..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Salesforce. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Salesforce") -@Fluent -public final class SalesforceLinkedService extends LinkedService { - /* - * Salesforce linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SalesforceLinkedServiceTypeProperties innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Salesforce linked service properties. - * - * @return the innerTypeProperties value. - */ - private SalesforceLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the environmentUrl property: The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To - * copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for - * example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - * - * @return the environmentUrl value. - */ - public Object environmentUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().environmentUrl(); - } - - /** - * Set the environmentUrl property: The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To - * copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for - * example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - * - * @param environmentUrl the environmentUrl value to set. - * @return the SalesforceLinkedService object itself. - */ - public SalesforceLinkedService withEnvironmentUrl(Object environmentUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnvironmentUrl(environmentUrl); - return this; - } - - /** - * Get the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SalesforceLinkedService object itself. - */ - public SalesforceLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password for Basic authentication of the Salesforce instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password for Basic authentication of the Salesforce instance. - * - * @param password the password value to set. - * @return the SalesforceLinkedService object itself. - */ - public SalesforceLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @return the securityToken value. - */ - public SecretBase securityToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().securityToken(); - } - - /** - * Set the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @param securityToken the securityToken value to set. - * @return the SalesforceLinkedService object itself. - */ - public SalesforceLinkedService withSecurityToken(SecretBase securityToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecurityToken(securityToken); - return this; - } - - /** - * Get the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @return the apiVersion value. - */ - public Object apiVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiVersion(); - } - - /** - * Set the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @param apiVersion the apiVersion value to set. - * @return the SalesforceLinkedService object itself. - */ - public SalesforceLinkedService withApiVersion(Object apiVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiVersion(apiVersion); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceLinkedService object itself. - */ - public SalesforceLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SalesforceLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SalesforceLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java deleted file mode 100644 index ae5ee2c1b8b31..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java +++ /dev/null @@ -1,262 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceMarketingCloudLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Salesforce Marketing Cloud linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceMarketingCloud") -@Fluent -public final class SalesforceMarketingCloudLinkedService extends LinkedService { - /* - * Salesforce Marketing Cloud linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SalesforceMarketingCloudLinkedServiceTypeProperties innerTypeProperties = - new SalesforceMarketingCloudLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Salesforce Marketing Cloud linked service properties. - * - * @return the innerTypeProperties value. - */ - private SalesforceMarketingCloudLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionProperties property: Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); - } - - /** - * Set the connectionProperties property: Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the SalesforceMarketingCloudLinkedService object itself. - */ - public SalesforceMarketingCloudLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); - return this; - } - - /** - * Get the clientId property: The client ID associated with the Salesforce Marketing Cloud application. Type: string - * (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client ID associated with the Salesforce Marketing Cloud application. Type: string - * (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SalesforceMarketingCloudLinkedService object itself. - */ - public SalesforceMarketingCloudLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret associated with the Salesforce Marketing Cloud application. - * Type: string (or Expression with resultType string). - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret associated with the Salesforce Marketing Cloud application. - * Type: string (or Expression with resultType string). - * - * @param clientSecret the clientSecret value to set. - * @return the SalesforceMarketingCloudLinkedService object itself. - */ - public SalesforceMarketingCloudLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the SalesforceMarketingCloudLinkedService object itself. - */ - public SalesforceMarketingCloudLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the SalesforceMarketingCloudLinkedService object itself. - */ - public SalesforceMarketingCloudLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the SalesforceMarketingCloudLinkedService object itself. - */ - public SalesforceMarketingCloudLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceMarketingCloudLinkedService object itself. - */ - public SalesforceMarketingCloudLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model" - + " SalesforceMarketingCloudLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SalesforceMarketingCloudLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java deleted file mode 100644 index 58e0126d47e04..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Salesforce Marketing Cloud dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceMarketingCloudObject") -@Fluent -public final class SalesforceMarketingCloudObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SalesforceMarketingCloudObjectDataset object itself. - */ - public SalesforceMarketingCloudObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudSource.java deleted file mode 100644 index 2e108e595f8a4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Salesforce Marketing Cloud source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceMarketingCloudSource") -@Fluent -public final class SalesforceMarketingCloudSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the SalesforceMarketingCloudSource object itself. - */ - public SalesforceMarketingCloudSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java deleted file mode 100644 index d9592ad20dd59..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceObjectDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Salesforce object dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceObject") -@Fluent -public final class SalesforceObjectDataset extends Dataset { - /* - * Salesforce object dataset properties. - */ - @JsonProperty(value = "typeProperties") - private SalesforceObjectDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Salesforce object dataset properties. - * - * @return the innerTypeProperties value. - */ - private SalesforceObjectDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SalesforceObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().objectApiName(); - } - - /** - * Set the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceObjectDataset object itself. - */ - public SalesforceObjectDataset withObjectApiName(Object objectApiName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceObjectDatasetTypeProperties(); - } - this.innerTypeProperties().withObjectApiName(objectApiName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java deleted file mode 100644 index d407e2acd8a0f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Salesforce Service Cloud. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceServiceCloud") -@Fluent -public final class SalesforceServiceCloudLinkedService extends LinkedService { - /* - * Salesforce Service Cloud linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SalesforceServiceCloudLinkedServiceTypeProperties innerTypeProperties = - new SalesforceServiceCloudLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Salesforce Service Cloud linked service properties. - * - * @return the innerTypeProperties value. - */ - private SalesforceServiceCloudLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the environmentUrl property: The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data - * from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with - * resultType string). - * - * @return the environmentUrl value. - */ - public Object environmentUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().environmentUrl(); - } - - /** - * Set the environmentUrl property: The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data - * from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with - * resultType string). - * - * @param environmentUrl the environmentUrl value to set. - * @return the SalesforceServiceCloudLinkedService object itself. - */ - public SalesforceServiceCloudLinkedService withEnvironmentUrl(Object environmentUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnvironmentUrl(environmentUrl); - return this; - } - - /** - * Get the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SalesforceServiceCloudLinkedService object itself. - */ - public SalesforceServiceCloudLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password for Basic authentication of the Salesforce instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password for Basic authentication of the Salesforce instance. - * - * @param password the password value to set. - * @return the SalesforceServiceCloudLinkedService object itself. - */ - public SalesforceServiceCloudLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @return the securityToken value. - */ - public SecretBase securityToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().securityToken(); - } - - /** - * Set the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @param securityToken the securityToken value to set. - * @return the SalesforceServiceCloudLinkedService object itself. - */ - public SalesforceServiceCloudLinkedService withSecurityToken(SecretBase securityToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecurityToken(securityToken); - return this; - } - - /** - * Get the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @return the apiVersion value. - */ - public Object apiVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiVersion(); - } - - /** - * Set the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @param apiVersion the apiVersion value to set. - * @return the SalesforceServiceCloudLinkedService object itself. - */ - public SalesforceServiceCloudLinkedService withApiVersion(Object apiVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiVersion(apiVersion); - return this; - } - - /** - * Get the extendedProperties property: Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - * - * @return the extendedProperties value. - */ - public Object extendedProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().extendedProperties(); - } - - /** - * Set the extendedProperties property: Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - * - * @param extendedProperties the extendedProperties value to set. - * @return the SalesforceServiceCloudLinkedService object itself. - */ - public SalesforceServiceCloudLinkedService withExtendedProperties(Object extendedProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withExtendedProperties(extendedProperties); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceServiceCloudLinkedService object itself. - */ - public SalesforceServiceCloudLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SalesforceServiceCloudLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SalesforceServiceCloudLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java deleted file mode 100644 index 52faafb1a5639..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudObjectDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Salesforce Service Cloud object dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceServiceCloudObject") -@Fluent -public final class SalesforceServiceCloudObjectDataset extends Dataset { - /* - * Salesforce Service Cloud object dataset properties. - */ - @JsonProperty(value = "typeProperties") - private SalesforceServiceCloudObjectDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Salesforce Service Cloud object dataset properties. - * - * @return the innerTypeProperties value. - */ - private SalesforceServiceCloudObjectDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().objectApiName(); - } - - /** - * Set the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceServiceCloudObjectDataset object itself. - */ - public SalesforceServiceCloudObjectDataset withObjectApiName(Object objectApiName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudObjectDatasetTypeProperties(); - } - this.innerTypeProperties().withObjectApiName(objectApiName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudSink.java deleted file mode 100644 index eb58d49f93719..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudSink.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Salesforce Service Cloud sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceServiceCloudSink") -@Fluent -public final class SalesforceServiceCloudSink extends CopySink { - /* - * The write behavior for the operation. Default is Insert. - */ - @JsonProperty(value = "writeBehavior") - private SalesforceSinkWriteBehavior writeBehavior; - - /* - * The name of the external ID field for upsert operation. Default value is - * 'Id' column. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "externalIdFieldName") - private Object externalIdFieldName; - - /* - * The flag indicating whether or not to ignore null values from input - * dataset (except key fields) during write operation. Default value is - * false. If set it to true, it means ADF will leave the data in the - * destination object unchanged when doing upsert/update operation and - * insert defined default value when doing insert operation, versus ADF - * will update the data in the destination object to NULL when doing - * upsert/update operation and insert NULL value when doing insert - * operation. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "ignoreNullValues") - private Object ignoreNullValues; - - /** - * Get the writeBehavior property: The write behavior for the operation. Default is Insert. - * - * @return the writeBehavior value. - */ - public SalesforceSinkWriteBehavior writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: The write behavior for the operation. Default is Insert. - * - * @param writeBehavior the writeBehavior value to set. - * @return the SalesforceServiceCloudSink object itself. - */ - public SalesforceServiceCloudSink withWriteBehavior(SalesforceSinkWriteBehavior writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the externalIdFieldName property: The name of the external ID field for upsert operation. Default value is - * 'Id' column. Type: string (or Expression with resultType string). - * - * @return the externalIdFieldName value. - */ - public Object externalIdFieldName() { - return this.externalIdFieldName; - } - - /** - * Set the externalIdFieldName property: The name of the external ID field for upsert operation. Default value is - * 'Id' column. Type: string (or Expression with resultType string). - * - * @param externalIdFieldName the externalIdFieldName value to set. - * @return the SalesforceServiceCloudSink object itself. - */ - public SalesforceServiceCloudSink withExternalIdFieldName(Object externalIdFieldName) { - this.externalIdFieldName = externalIdFieldName; - return this; - } - - /** - * Get the ignoreNullValues property: The flag indicating whether or not to ignore null values from input dataset - * (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave - * the data in the destination object unchanged when doing upsert/update operation and insert defined default value - * when doing insert operation, versus ADF will update the data in the destination object to NULL when doing - * upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with - * resultType boolean). - * - * @return the ignoreNullValues value. - */ - public Object ignoreNullValues() { - return this.ignoreNullValues; - } - - /** - * Set the ignoreNullValues property: The flag indicating whether or not to ignore null values from input dataset - * (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave - * the data in the destination object unchanged when doing upsert/update operation and insert defined default value - * when doing insert operation, versus ADF will update the data in the destination object to NULL when doing - * upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with - * resultType boolean). - * - * @param ignoreNullValues the ignoreNullValues value to set. - * @return the SalesforceServiceCloudSink object itself. - */ - public SalesforceServiceCloudSink withIgnoreNullValues(Object ignoreNullValues) { - this.ignoreNullValues = ignoreNullValues; - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudSource.java deleted file mode 100644 index 65b4b68a61bb1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudSource.java +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Salesforce Service Cloud source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceServiceCloudSource") -@Fluent -public final class SalesforceServiceCloudSource extends CopySource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The read behavior for the operation. Default is Query. - */ - @JsonProperty(value = "readBehavior") - private SalesforceSourceReadBehavior readBehavior; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the SalesforceServiceCloudSource object itself. - */ - public SalesforceServiceCloudSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the readBehavior property: The read behavior for the operation. Default is Query. - * - * @return the readBehavior value. - */ - public SalesforceSourceReadBehavior readBehavior() { - return this.readBehavior; - } - - /** - * Set the readBehavior property: The read behavior for the operation. Default is Query. - * - * @param readBehavior the readBehavior value to set. - * @return the SalesforceServiceCloudSource object itself. - */ - public SalesforceServiceCloudSource withReadBehavior(SalesforceSourceReadBehavior readBehavior) { - this.readBehavior = readBehavior; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the SalesforceServiceCloudSource object itself. - */ - public SalesforceServiceCloudSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSink.java deleted file mode 100644 index 0d02cc7b5a8e0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSink.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Salesforce sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceSink") -@Fluent -public final class SalesforceSink extends CopySink { - /* - * The write behavior for the operation. Default is Insert. - */ - @JsonProperty(value = "writeBehavior") - private SalesforceSinkWriteBehavior writeBehavior; - - /* - * The name of the external ID field for upsert operation. Default value is - * 'Id' column. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "externalIdFieldName") - private Object externalIdFieldName; - - /* - * The flag indicating whether or not to ignore null values from input - * dataset (except key fields) during write operation. Default value is - * false. If set it to true, it means ADF will leave the data in the - * destination object unchanged when doing upsert/update operation and - * insert defined default value when doing insert operation, versus ADF - * will update the data in the destination object to NULL when doing - * upsert/update operation and insert NULL value when doing insert - * operation. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "ignoreNullValues") - private Object ignoreNullValues; - - /** - * Get the writeBehavior property: The write behavior for the operation. Default is Insert. - * - * @return the writeBehavior value. - */ - public SalesforceSinkWriteBehavior writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: The write behavior for the operation. Default is Insert. - * - * @param writeBehavior the writeBehavior value to set. - * @return the SalesforceSink object itself. - */ - public SalesforceSink withWriteBehavior(SalesforceSinkWriteBehavior writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the externalIdFieldName property: The name of the external ID field for upsert operation. Default value is - * 'Id' column. Type: string (or Expression with resultType string). - * - * @return the externalIdFieldName value. - */ - public Object externalIdFieldName() { - return this.externalIdFieldName; - } - - /** - * Set the externalIdFieldName property: The name of the external ID field for upsert operation. Default value is - * 'Id' column. Type: string (or Expression with resultType string). - * - * @param externalIdFieldName the externalIdFieldName value to set. - * @return the SalesforceSink object itself. - */ - public SalesforceSink withExternalIdFieldName(Object externalIdFieldName) { - this.externalIdFieldName = externalIdFieldName; - return this; - } - - /** - * Get the ignoreNullValues property: The flag indicating whether or not to ignore null values from input dataset - * (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave - * the data in the destination object unchanged when doing upsert/update operation and insert defined default value - * when doing insert operation, versus ADF will update the data in the destination object to NULL when doing - * upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with - * resultType boolean). - * - * @return the ignoreNullValues value. - */ - public Object ignoreNullValues() { - return this.ignoreNullValues; - } - - /** - * Set the ignoreNullValues property: The flag indicating whether or not to ignore null values from input dataset - * (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave - * the data in the destination object unchanged when doing upsert/update operation and insert defined default value - * when doing insert operation, versus ADF will update the data in the destination object to NULL when doing - * upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with - * resultType boolean). - * - * @param ignoreNullValues the ignoreNullValues value to set. - * @return the SalesforceSink object itself. - */ - public SalesforceSink withIgnoreNullValues(Object ignoreNullValues) { - this.ignoreNullValues = ignoreNullValues; - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSinkWriteBehavior.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSinkWriteBehavior.java deleted file mode 100644 index 631f651cbbf41..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSinkWriteBehavior.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SalesforceSinkWriteBehavior. */ -public final class SalesforceSinkWriteBehavior extends ExpandableStringEnum { - /** Static value Insert for SalesforceSinkWriteBehavior. */ - public static final SalesforceSinkWriteBehavior INSERT = fromString("Insert"); - - /** Static value Upsert for SalesforceSinkWriteBehavior. */ - public static final SalesforceSinkWriteBehavior UPSERT = fromString("Upsert"); - - /** - * Creates or finds a SalesforceSinkWriteBehavior from its string representation. - * - * @param name a name to look for. - * @return the corresponding SalesforceSinkWriteBehavior. - */ - @JsonCreator - public static SalesforceSinkWriteBehavior fromString(String name) { - return fromString(name, SalesforceSinkWriteBehavior.class); - } - - /** @return known SalesforceSinkWriteBehavior values. */ - public static Collection values() { - return values(SalesforceSinkWriteBehavior.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSource.java deleted file mode 100644 index caefe15349b5f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSource.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Salesforce source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SalesforceSource") -@Fluent -public final class SalesforceSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The read behavior for the operation. Default is Query. - */ - @JsonProperty(value = "readBehavior") - private SalesforceSourceReadBehavior readBehavior; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the SalesforceSource object itself. - */ - public SalesforceSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the readBehavior property: The read behavior for the operation. Default is Query. - * - * @return the readBehavior value. - */ - public SalesforceSourceReadBehavior readBehavior() { - return this.readBehavior; - } - - /** - * Set the readBehavior property: The read behavior for the operation. Default is Query. - * - * @param readBehavior the readBehavior value to set. - * @return the SalesforceSource object itself. - */ - public SalesforceSource withReadBehavior(SalesforceSourceReadBehavior readBehavior) { - this.readBehavior = readBehavior; - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SalesforceSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSourceReadBehavior.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSourceReadBehavior.java deleted file mode 100644 index ce4ef256f7ffe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceSourceReadBehavior.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SalesforceSourceReadBehavior. */ -public final class SalesforceSourceReadBehavior extends ExpandableStringEnum { - /** Static value Query for SalesforceSourceReadBehavior. */ - public static final SalesforceSourceReadBehavior QUERY = fromString("Query"); - - /** Static value QueryAll for SalesforceSourceReadBehavior. */ - public static final SalesforceSourceReadBehavior QUERY_ALL = fromString("QueryAll"); - - /** - * Creates or finds a SalesforceSourceReadBehavior from its string representation. - * - * @param name a name to look for. - * @return the corresponding SalesforceSourceReadBehavior. - */ - @JsonCreator - public static SalesforceSourceReadBehavior fromString(String name) { - return fromString(name, SalesforceSourceReadBehavior.class); - } - - /** @return known SalesforceSourceReadBehavior values. */ - public static Collection values() { - return values(SalesforceSourceReadBehavior.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java deleted file mode 100644 index 65ff2b4dd9574..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapBWLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SAP Business Warehouse Linked Service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapBW") -@Fluent -public final class SapBWLinkedService extends LinkedService { - /* - * Properties specific to this linked service type. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapBWLinkedServiceTypeProperties innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. - */ - private SapBWLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the server property: Host name of the SAP BW instance. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: Host name of the SAP BW instance. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapBWLinkedService object itself. - */ - public SapBWLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the systemNumber property: System number of the BW system. (Usually a two-digit decimal number represented as - * a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemNumber(); - } - - /** - * Set the systemNumber property: System number of the BW system. (Usually a two-digit decimal number represented as - * a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapBWLinkedService object itself. - */ - public SapBWLinkedService withSystemNumber(Object systemNumber) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemNumber(systemNumber); - return this; - } - - /** - * Get the clientId property: Client ID of the client on the BW system. (Usually a three-digit decimal number - * represented as a string) Type: string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: Client ID of the client on the BW system. (Usually a three-digit decimal number - * represented as a string) Type: string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SapBWLinkedService object itself. - */ - public SapBWLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the username property: Username to access the SAP BW server. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username to access the SAP BW server. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapBWLinkedService object itself. - */ - public SapBWLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to access the SAP BW server. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to access the SAP BW server. - * - * @param password the password value to set. - * @return the SapBWLinkedService object itself. - */ - public SapBWLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapBWLinkedService object itself. - */ - public SapBWLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapBWLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapBWLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBwCubeDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBwCubeDataset.java deleted file mode 100644 index cd89fdb891085..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBwCubeDataset.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The SAP BW cube dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapBwCube") -@Fluent -public final class SapBwCubeDataset extends Dataset { - /** {@inheritDoc} */ - @Override - public SapBwCubeDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwCubeDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwCubeDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwCubeDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwCubeDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwCubeDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwCubeDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBwSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBwSource.java deleted file mode 100644 index b5611941c3451..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBwSource.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for SapBW server via MDX. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapBwSource") -@Fluent -public final class SapBwSource extends TabularSource { - /* - * MDX query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: MDX query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: MDX query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the SapBwSource object itself. - */ - public SapBwSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapBwSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java deleted file mode 100644 index 9a56220231e3f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for SAP Cloud for Customer. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapCloudForCustomer") -@Fluent -public final class SapCloudForCustomerLinkedService extends LinkedService { - /* - * SAP Cloud for Customer linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapCloudForCustomerLinkedServiceTypeProperties innerTypeProperties = - new SapCloudForCustomerLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: SAP Cloud for Customer linked service properties. - * - * @return the innerTypeProperties value. - */ - private SapCloudForCustomerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the SapCloudForCustomerLinkedService object itself. - */ - public SapCloudForCustomerLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapCloudForCustomerLinkedService object itself. - */ - public SapCloudForCustomerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password for Basic authentication. - * - * @param password the password value to set. - * @return the SapCloudForCustomerLinkedService object itself. - */ - public SapCloudForCustomerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapCloudForCustomerLinkedService object itself. - */ - public SapCloudForCustomerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapCloudForCustomerLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapCloudForCustomerLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java deleted file mode 100644 index 350902d85732f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerResourceDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The path of the SAP Cloud for Customer OData entity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapCloudForCustomerResource") -@Fluent -public final class SapCloudForCustomerResourceDataset extends Dataset { - /* - * SAP Cloud For Customer OData resource dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapCloudForCustomerResourceDatasetTypeProperties innerTypeProperties = - new SapCloudForCustomerResourceDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: SAP Cloud For Customer OData resource dataset properties. - * - * @return the innerTypeProperties value. - */ - private SapCloudForCustomerResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @param path the path value to set. - * @return the SapCloudForCustomerResourceDataset object itself. - */ - public SapCloudForCustomerResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapCloudForCustomerResourceDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapCloudForCustomerResourceDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSink.java deleted file mode 100644 index 57ad6ccd5ec2f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSink.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity SAP Cloud for Customer sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapCloudForCustomerSink") -@Fluent -public final class SapCloudForCustomerSink extends CopySink { - /* - * The write behavior for the operation. Default is 'Insert'. - */ - @JsonProperty(value = "writeBehavior") - private SapCloudForCustomerSinkWriteBehavior writeBehavior; - - /* - * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get - * a response, not the timeout to read response data. Default value: - * 00:05:00. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /** - * Get the writeBehavior property: The write behavior for the operation. Default is 'Insert'. - * - * @return the writeBehavior value. - */ - public SapCloudForCustomerSinkWriteBehavior writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: The write behavior for the operation. Default is 'Insert'. - * - * @param writeBehavior the writeBehavior value to set. - * @return the SapCloudForCustomerSink object itself. - */ - public SapCloudForCustomerSink withWriteBehavior(SapCloudForCustomerSinkWriteBehavior writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the SapCloudForCustomerSink object itself. - */ - public SapCloudForCustomerSink withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSinkWriteBehavior.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSinkWriteBehavior.java deleted file mode 100644 index 134cc0211d6a5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSinkWriteBehavior.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SapCloudForCustomerSinkWriteBehavior. */ -public final class SapCloudForCustomerSinkWriteBehavior - extends ExpandableStringEnum { - /** Static value Insert for SapCloudForCustomerSinkWriteBehavior. */ - public static final SapCloudForCustomerSinkWriteBehavior INSERT = fromString("Insert"); - - /** Static value Update for SapCloudForCustomerSinkWriteBehavior. */ - public static final SapCloudForCustomerSinkWriteBehavior UPDATE = fromString("Update"); - - /** - * Creates or finds a SapCloudForCustomerSinkWriteBehavior from its string representation. - * - * @param name a name to look for. - * @return the corresponding SapCloudForCustomerSinkWriteBehavior. - */ - @JsonCreator - public static SapCloudForCustomerSinkWriteBehavior fromString(String name) { - return fromString(name, SapCloudForCustomerSinkWriteBehavior.class); - } - - /** @return known SapCloudForCustomerSinkWriteBehavior values. */ - public static Collection values() { - return values(SapCloudForCustomerSinkWriteBehavior.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSource.java deleted file mode 100644 index 6b53cb6a41a00..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerSource.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for SAP Cloud for Customer source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapCloudForCustomerSource") -@Fluent -public final class SapCloudForCustomerSource extends TabularSource { - /* - * SAP Cloud for Customer OData query. For example, "$top=1". Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get - * a response, not the timeout to read response data. Default value: - * 00:05:00. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /** - * Get the query property: SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression - * with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression - * with resultType string). - * - * @param query the query value to set. - * @return the SapCloudForCustomerSource object itself. - */ - public SapCloudForCustomerSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the SapCloudForCustomerSource object itself. - */ - public SapCloudForCustomerSource withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java deleted file mode 100644 index a82da865ee9a6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapEccLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for SAP ERP Central Component(SAP ECC). */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapEcc") -@Fluent -public final class SapEccLinkedService extends LinkedService { - /* - * SAP ECC linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapEccLinkedServiceTypeProperties innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: SAP ECC linked service properties. - * - * @return the innerTypeProperties value. - */ - private SapEccLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the url property: The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public String url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the SapEccLinkedService object itself. - */ - public SapEccLinkedService withUrl(String url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public String username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapEccLinkedService object itself. - */ - public SapEccLinkedService withUsername(String username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password for Basic authentication. - * - * @param password the password value to set. - * @return the SapEccLinkedService object itself. - */ - public SapEccLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapEccLinkedService object itself. - */ - public SapEccLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapEccLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapEccLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java deleted file mode 100644 index ac312d679acc0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapEccResourceDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The path of the SAP ECC OData entity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapEccResource") -@Fluent -public final class SapEccResourceDataset extends Dataset { - /* - * SAP ECC OData resource dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapEccResourceDatasetTypeProperties innerTypeProperties = new SapEccResourceDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: SAP ECC OData resource dataset properties. - * - * @return the innerTypeProperties value. - */ - private SapEccResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapEccResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the SapEccResourceDataset object itself. - */ - public SapEccResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapEccResourceDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapEccResourceDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccSource.java deleted file mode 100644 index 649c5c7562390..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccSource.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for SAP ECC source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapEccSource") -@Fluent -public final class SapEccSource extends TabularSource { - /* - * SAP ECC OData query. For example, "$top=1". Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get - * a response, not the timeout to read response data. Default value: - * 00:05:00. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /** - * Get the query property: SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the SapEccSource object itself. - */ - public SapEccSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a - * response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the SapEccSource object itself. - */ - public SapEccSource withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaAuthenticationType.java deleted file mode 100644 index d3dd22655698c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SapHanaAuthenticationType. */ -public final class SapHanaAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for SapHanaAuthenticationType. */ - public static final SapHanaAuthenticationType BASIC = fromString("Basic"); - - /** Static value Windows for SapHanaAuthenticationType. */ - public static final SapHanaAuthenticationType WINDOWS = fromString("Windows"); - - /** - * Creates or finds a SapHanaAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SapHanaAuthenticationType. - */ - @JsonCreator - public static SapHanaAuthenticationType fromString(String name) { - return fromString(name, SapHanaAuthenticationType.class); - } - - /** @return known SapHanaAuthenticationType values. */ - public static Collection values() { - return values(SapHanaAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java deleted file mode 100644 index 89e2c89f8374a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java +++ /dev/null @@ -1,227 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapHanaLinkedServiceProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SAP HANA Linked Service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapHana") -@Fluent -public final class SapHanaLinkedService extends LinkedService { - /* - * Properties specific to this linked service type. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapHanaLinkedServiceProperties innerTypeProperties = new SapHanaLinkedServiceProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. - */ - private SapHanaLinkedServiceProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the SapHanaLinkedService object itself. - */ - public SapHanaLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapHanaLinkedService object itself. - */ - public SapHanaLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the SAP HANA server. - * - * @return the authenticationType value. - */ - public SapHanaAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the SAP HANA server. - * - * @param authenticationType the authenticationType value to set. - * @return the SapHanaLinkedService object itself. - */ - public SapHanaLinkedService withAuthenticationType(SapHanaAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: Username to access the SAP HANA server. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username to access the SAP HANA server. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapHanaLinkedService object itself. - */ - public SapHanaLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to access the SAP HANA server. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to access the SAP HANA server. - * - * @param password the password value to set. - * @return the SapHanaLinkedService object itself. - */ - public SapHanaLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapHanaLinkedService object itself. - */ - public SapHanaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapHanaLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapHanaLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaPartitionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaPartitionSettings.java deleted file mode 100644 index af4384608c4d2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaPartitionSettings.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The settings that will be leveraged for SAP HANA source partitioning. */ -@Fluent -public final class SapHanaPartitionSettings { - /* - * The name of the column that will be used for proceeding range - * partitioning. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionColumnName") - private Object partitionColumnName; - - /** - * Get the partitionColumnName property: The name of the column that will be used for proceeding range partitioning. - * Type: string (or Expression with resultType string). - * - * @return the partitionColumnName value. - */ - public Object partitionColumnName() { - return this.partitionColumnName; - } - - /** - * Set the partitionColumnName property: The name of the column that will be used for proceeding range partitioning. - * Type: string (or Expression with resultType string). - * - * @param partitionColumnName the partitionColumnName value to set. - * @return the SapHanaPartitionSettings object itself. - */ - public SapHanaPartitionSettings withPartitionColumnName(Object partitionColumnName) { - this.partitionColumnName = partitionColumnName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaSource.java deleted file mode 100644 index bedfd16d29da8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaSource.java +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for SAP HANA source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapHanaSource") -@Fluent -public final class SapHanaSource extends TabularSource { - /* - * SAP HANA Sql query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The packet size of data read from SAP HANA. Type: integer(or Expression - * with resultType integer). - */ - @JsonProperty(value = "packetSize") - private Object packetSize; - - /* - * The partition mechanism that will be used for SAP HANA read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "SapHanaDynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for SAP HANA source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SapHanaPartitionSettings partitionSettings; - - /** - * Get the query property: SAP HANA Sql query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: SAP HANA Sql query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the SapHanaSource object itself. - */ - public SapHanaSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the packetSize property: The packet size of data read from SAP HANA. Type: integer(or Expression with - * resultType integer). - * - * @return the packetSize value. - */ - public Object packetSize() { - return this.packetSize; - } - - /** - * Set the packetSize property: The packet size of data read from SAP HANA. Type: integer(or Expression with - * resultType integer). - * - * @param packetSize the packetSize value to set. - * @return the SapHanaSource object itself. - */ - public SapHanaSource withPacketSize(Object packetSize) { - this.packetSize = packetSize; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for SAP HANA read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for SAP HANA read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the SapHanaSource object itself. - */ - public SapHanaSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for SAP HANA source partitioning. - * - * @return the partitionSettings value. - */ - public SapHanaPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for SAP HANA source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the SapHanaSource object itself. - */ - public SapHanaSource withPartitionSettings(SapHanaPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java deleted file mode 100644 index f172e2db05c4f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SapHanaTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SAP HANA Table properties. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapHanaTable") -@Fluent -public final class SapHanaTableDataset extends Dataset { - /* - * SAP HANA Table properties. - */ - @JsonProperty(value = "typeProperties") - private SapHanaTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: SAP HANA Table properties. - * - * @return the innerTypeProperties value. - */ - private SapHanaTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapHanaTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapHanaTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SapHanaTableDataset object itself. - */ - public SapHanaTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the SapHanaTableDataset object itself. - */ - public SapHanaTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java deleted file mode 100644 index 2f6095389a3d6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java +++ /dev/null @@ -1,360 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SAP Business Warehouse Open Hub Destination Linked Service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapOpenHub") -@Fluent -public final class SapOpenHubLinkedService extends LinkedService { - /* - * Properties specific to SAP Business Warehouse Open Hub Destination - * linked service type. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapOpenHubLinkedServiceTypeProperties innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to SAP Business Warehouse Open Hub Destination linked - * service type. - * - * @return the innerTypeProperties value. - */ - private SapOpenHubLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the server property: Host name of the SAP BW instance where the open hub destination is located. Type: string - * (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: Host name of the SAP BW instance where the open hub destination is located. Type: string - * (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the systemNumber property: System number of the BW system where the open hub destination is located. (Usually - * a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemNumber(); - } - - /** - * Set the systemNumber property: System number of the BW system where the open hub destination is located. (Usually - * a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withSystemNumber(Object systemNumber) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemNumber(systemNumber); - return this; - } - - /** - * Get the clientId property: Client ID of the client on the BW system where the open hub destination is located. - * (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType - * string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: Client ID of the client on the BW system where the open hub destination is located. - * (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType - * string). - * - * @param clientId the clientId value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the language property: Language of the BW system where the open hub destination is located. The default value - * is EN. Type: string (or Expression with resultType string). - * - * @return the language value. - */ - public Object language() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().language(); - } - - /** - * Set the language property: Language of the BW system where the open hub destination is located. The default value - * is EN. Type: string (or Expression with resultType string). - * - * @param language the language value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withLanguage(Object language) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLanguage(language); - return this; - } - - /** - * Get the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the systemId value. - */ - public Object systemId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemId(); - } - - /** - * Set the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @param systemId the systemId value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withSystemId(Object systemId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemId(systemId); - return this; - } - - /** - * Get the username property: Username to access the SAP BW server where the open hub destination is located. Type: - * string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username to access the SAP BW server where the open hub destination is located. Type: - * string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to access the SAP BW server where the open hub destination is located. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to access the SAP BW server where the open hub destination is located. - * - * @param password the password value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @return the messageServer value. - */ - public Object messageServer() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServer(); - } - - /** - * Set the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @param messageServer the messageServer value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withMessageServer(Object messageServer) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServer(messageServer); - return this; - } - - /** - * Get the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @return the messageServerService value. - */ - public Object messageServerService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServerService(); - } - - /** - * Set the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @param messageServerService the messageServerService value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withMessageServerService(Object messageServerService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServerService(messageServerService); - return this; - } - - /** - * Get the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @return the logonGroup value. - */ - public Object logonGroup() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logonGroup(); - } - - /** - * Set the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @param logonGroup the logonGroup value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withLogonGroup(Object logonGroup) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLogonGroup(logonGroup); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapOpenHubLinkedService object itself. - */ - public SapOpenHubLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapOpenHubLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapOpenHubLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubSource.java deleted file mode 100644 index 2f14c1e77532d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubSource.java +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for SAP Business Warehouse Open Hub Destination source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapOpenHubSource") -@Fluent -public final class SapOpenHubSource extends TabularSource { - /* - * Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "excludeLastRequest") - private Object excludeLastRequest; - - /* - * The ID of request for delta loading. Once it is set, only data with - * requestId larger than the value of this property will be retrieved. The - * default value is 0. Type: integer (or Expression with resultType integer - * ). - */ - @JsonProperty(value = "baseRequestId") - private Object baseRequestId; - - /* - * Specifies the custom RFC function module that will be used to read data - * from SAP Table. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "customRfcReadTableFunctionModule") - private Object customRfcReadTableFunctionModule; - - /* - * The single character that will be used as delimiter passed to SAP RFC as - * well as splitting the output data retrieved. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sapDataColumnDelimiter") - private Object sapDataColumnDelimiter; - - /** - * Get the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @return the excludeLastRequest value. - */ - public Object excludeLastRequest() { - return this.excludeLastRequest; - } - - /** - * Set the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @param excludeLastRequest the excludeLastRequest value to set. - * @return the SapOpenHubSource object itself. - */ - public SapOpenHubSource withExcludeLastRequest(Object excludeLastRequest) { - this.excludeLastRequest = excludeLastRequest; - return this; - } - - /** - * Get the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @return the baseRequestId value. - */ - public Object baseRequestId() { - return this.baseRequestId; - } - - /** - * Set the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @param baseRequestId the baseRequestId value to set. - * @return the SapOpenHubSource object itself. - */ - public SapOpenHubSource withBaseRequestId(Object baseRequestId) { - this.baseRequestId = baseRequestId; - return this; - } - - /** - * Get the customRfcReadTableFunctionModule property: Specifies the custom RFC function module that will be used to - * read data from SAP Table. Type: string (or Expression with resultType string). - * - * @return the customRfcReadTableFunctionModule value. - */ - public Object customRfcReadTableFunctionModule() { - return this.customRfcReadTableFunctionModule; - } - - /** - * Set the customRfcReadTableFunctionModule property: Specifies the custom RFC function module that will be used to - * read data from SAP Table. Type: string (or Expression with resultType string). - * - * @param customRfcReadTableFunctionModule the customRfcReadTableFunctionModule value to set. - * @return the SapOpenHubSource object itself. - */ - public SapOpenHubSource withCustomRfcReadTableFunctionModule(Object customRfcReadTableFunctionModule) { - this.customRfcReadTableFunctionModule = customRfcReadTableFunctionModule; - return this; - } - - /** - * Get the sapDataColumnDelimiter property: The single character that will be used as delimiter passed to SAP RFC as - * well as splitting the output data retrieved. Type: string (or Expression with resultType string). - * - * @return the sapDataColumnDelimiter value. - */ - public Object sapDataColumnDelimiter() { - return this.sapDataColumnDelimiter; - } - - /** - * Set the sapDataColumnDelimiter property: The single character that will be used as delimiter passed to SAP RFC as - * well as splitting the output data retrieved. Type: string (or Expression with resultType string). - * - * @param sapDataColumnDelimiter the sapDataColumnDelimiter value to set. - * @return the SapOpenHubSource object itself. - */ - public SapOpenHubSource withSapDataColumnDelimiter(Object sapDataColumnDelimiter) { - this.sapDataColumnDelimiter = sapDataColumnDelimiter; - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java deleted file mode 100644 index d1d5843e8f6e5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Sap Business Warehouse Open Hub Destination Table properties. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapOpenHubTable") -@Fluent -public final class SapOpenHubTableDataset extends Dataset { - /* - * Sap Business Warehouse Open Hub Destination Table properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapOpenHubTableDatasetTypeProperties innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Sap Business Warehouse Open Hub Destination Table properties. - * - * @return the innerTypeProperties value. - */ - private SapOpenHubTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the openHubDestinationName property: The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - * - * @return the openHubDestinationName value. - */ - public Object openHubDestinationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().openHubDestinationName(); - } - - /** - * Set the openHubDestinationName property: The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - * - * @param openHubDestinationName the openHubDestinationName value to set. - * @return the SapOpenHubTableDataset object itself. - */ - public SapOpenHubTableDataset withOpenHubDestinationName(Object openHubDestinationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); - } - this.innerTypeProperties().withOpenHubDestinationName(openHubDestinationName); - return this; - } - - /** - * Get the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @return the excludeLastRequest value. - */ - public Object excludeLastRequest() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().excludeLastRequest(); - } - - /** - * Set the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @param excludeLastRequest the excludeLastRequest value to set. - * @return the SapOpenHubTableDataset object itself. - */ - public SapOpenHubTableDataset withExcludeLastRequest(Object excludeLastRequest) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); - } - this.innerTypeProperties().withExcludeLastRequest(excludeLastRequest); - return this; - } - - /** - * Get the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @return the baseRequestId value. - */ - public Object baseRequestId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().baseRequestId(); - } - - /** - * Set the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @param baseRequestId the baseRequestId value to set. - * @return the SapOpenHubTableDataset object itself. - */ - public SapOpenHubTableDataset withBaseRequestId(Object baseRequestId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); - } - this.innerTypeProperties().withBaseRequestId(baseRequestId); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapOpenHubTableDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapOpenHubTableDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java deleted file mode 100644 index 5b1280b761c05..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java +++ /dev/null @@ -1,481 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapTableLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SAP Table Linked Service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapTable") -@Fluent -public final class SapTableLinkedService extends LinkedService { - /* - * Properties specific to this linked service type. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapTableLinkedServiceTypeProperties innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. - */ - private SapTableLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the server property: Host name of the SAP instance where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: Host name of the SAP instance where the table is located. Type: string (or Expression - * with resultType string). - * - * @param server the server value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the systemNumber property: System number of the SAP system where the table is located. (Usually a two-digit - * decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemNumber(); - } - - /** - * Set the systemNumber property: System number of the SAP system where the table is located. (Usually a two-digit - * decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withSystemNumber(Object systemNumber) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemNumber(systemNumber); - return this; - } - - /** - * Get the clientId property: Client ID of the client on the SAP system where the table is located. (Usually a - * three-digit decimal number represented as a string) Type: string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: Client ID of the client on the SAP system where the table is located. (Usually a - * three-digit decimal number represented as a string) Type: string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the language property: Language of the SAP system where the table is located. The default value is EN. Type: - * string (or Expression with resultType string). - * - * @return the language value. - */ - public Object language() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().language(); - } - - /** - * Set the language property: Language of the SAP system where the table is located. The default value is EN. Type: - * string (or Expression with resultType string). - * - * @param language the language value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withLanguage(Object language) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLanguage(language); - return this; - } - - /** - * Get the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the systemId value. - */ - public Object systemId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemId(); - } - - /** - * Set the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @param systemId the systemId value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withSystemId(Object systemId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemId(systemId); - return this; - } - - /** - * Get the username property: Username to access the SAP server where the table is located. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username to access the SAP server where the table is located. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to access the SAP server where the table is located. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to access the SAP server where the table is located. - * - * @param password the password value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @return the messageServer value. - */ - public Object messageServer() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServer(); - } - - /** - * Set the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @param messageServer the messageServer value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withMessageServer(Object messageServer) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServer(messageServer); - return this; - } - - /** - * Get the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @return the messageServerService value. - */ - public Object messageServerService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServerService(); - } - - /** - * Set the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @param messageServerService the messageServerService value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withMessageServerService(Object messageServerService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServerService(messageServerService); - return this; - } - - /** - * Get the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). - * - * @return the sncMode value. - */ - public Object sncMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncMode(); - } - - /** - * Set the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). - * - * @param sncMode the sncMode value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withSncMode(Object sncMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncMode(sncMode); - return this; - } - - /** - * Get the sncMyName property: Initiator's SNC name to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - * - * @return the sncMyName value. - */ - public Object sncMyName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncMyName(); - } - - /** - * Set the sncMyName property: Initiator's SNC name to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - * - * @param sncMyName the sncMyName value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withSncMyName(Object sncMyName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncMyName(sncMyName); - return this; - } - - /** - * Get the sncPartnerName property: Communication partner's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @return the sncPartnerName value. - */ - public Object sncPartnerName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncPartnerName(); - } - - /** - * Set the sncPartnerName property: Communication partner's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @param sncPartnerName the sncPartnerName value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withSncPartnerName(Object sncPartnerName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncPartnerName(sncPartnerName); - return this; - } - - /** - * Get the sncLibraryPath property: External security product's library to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @return the sncLibraryPath value. - */ - public Object sncLibraryPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncLibraryPath(); - } - - /** - * Set the sncLibraryPath property: External security product's library to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @param sncLibraryPath the sncLibraryPath value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withSncLibraryPath(Object sncLibraryPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncLibraryPath(sncLibraryPath); - return this; - } - - /** - * Get the sncQop property: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or - * Expression with resultType string). - * - * @return the sncQop value. - */ - public Object sncQop() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncQop(); - } - - /** - * Set the sncQop property: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or - * Expression with resultType string). - * - * @param sncQop the sncQop value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withSncQop(Object sncQop) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncQop(sncQop); - return this; - } - - /** - * Get the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @return the logonGroup value. - */ - public Object logonGroup() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logonGroup(); - } - - /** - * Set the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @param logonGroup the logonGroup value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withLogonGroup(Object logonGroup) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLogonGroup(logonGroup); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapTableLinkedService object itself. - */ - public SapTableLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapTableLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapTableLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTablePartitionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTablePartitionSettings.java deleted file mode 100644 index 19fe6f876389d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTablePartitionSettings.java +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The settings that will be leveraged for SAP table source partitioning. */ -@Fluent -public final class SapTablePartitionSettings { - /* - * The name of the column that will be used for proceeding range - * partitioning. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionColumnName") - private Object partitionColumnName; - - /* - * The maximum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionUpperBound") - private Object partitionUpperBound; - - /* - * The minimum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionLowerBound") - private Object partitionLowerBound; - - /* - * The maximum value of partitions the table will be split into. Type: - * integer (or Expression with resultType string). - */ - @JsonProperty(value = "maxPartitionsNumber") - private Object maxPartitionsNumber; - - /** - * Get the partitionColumnName property: The name of the column that will be used for proceeding range partitioning. - * Type: string (or Expression with resultType string). - * - * @return the partitionColumnName value. - */ - public Object partitionColumnName() { - return this.partitionColumnName; - } - - /** - * Set the partitionColumnName property: The name of the column that will be used for proceeding range partitioning. - * Type: string (or Expression with resultType string). - * - * @param partitionColumnName the partitionColumnName value to set. - * @return the SapTablePartitionSettings object itself. - */ - public SapTablePartitionSettings withPartitionColumnName(Object partitionColumnName) { - this.partitionColumnName = partitionColumnName; - return this; - } - - /** - * Get the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionUpperBound value. - */ - public Object partitionUpperBound() { - return this.partitionUpperBound; - } - - /** - * Set the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionUpperBound the partitionUpperBound value to set. - * @return the SapTablePartitionSettings object itself. - */ - public SapTablePartitionSettings withPartitionUpperBound(Object partitionUpperBound) { - this.partitionUpperBound = partitionUpperBound; - return this; - } - - /** - * Get the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionLowerBound value. - */ - public Object partitionLowerBound() { - return this.partitionLowerBound; - } - - /** - * Set the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionLowerBound the partitionLowerBound value to set. - * @return the SapTablePartitionSettings object itself. - */ - public SapTablePartitionSettings withPartitionLowerBound(Object partitionLowerBound) { - this.partitionLowerBound = partitionLowerBound; - return this; - } - - /** - * Get the maxPartitionsNumber property: The maximum value of partitions the table will be split into. Type: integer - * (or Expression with resultType string). - * - * @return the maxPartitionsNumber value. - */ - public Object maxPartitionsNumber() { - return this.maxPartitionsNumber; - } - - /** - * Set the maxPartitionsNumber property: The maximum value of partitions the table will be split into. Type: integer - * (or Expression with resultType string). - * - * @param maxPartitionsNumber the maxPartitionsNumber value to set. - * @return the SapTablePartitionSettings object itself. - */ - public SapTablePartitionSettings withMaxPartitionsNumber(Object maxPartitionsNumber) { - this.maxPartitionsNumber = maxPartitionsNumber; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java deleted file mode 100644 index cf17692979e4e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapTableResourceDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SAP Table Resource properties. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapTableResource") -@Fluent -public final class SapTableResourceDataset extends Dataset { - /* - * SAP Table Resource properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SapTableResourceDatasetTypeProperties innerTypeProperties = new SapTableResourceDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: SAP Table Resource properties. - * - * @return the innerTypeProperties value. - */ - private SapTableResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapTableResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SapTableResourceDataset object itself. - */ - public SapTableResourceDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapTableResourceDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SapTableResourceDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableSource.java deleted file mode 100644 index e5783d44f503e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableSource.java +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for SAP Table source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SapTableSource") -@Fluent -public final class SapTableSource extends TabularSource { - /* - * The number of rows to be retrieved. Type: integer(or Expression with - * resultType integer). - */ - @JsonProperty(value = "rowCount") - private Object rowCount; - - /* - * The number of rows that will be skipped. Type: integer (or Expression - * with resultType integer). - */ - @JsonProperty(value = "rowSkips") - private Object rowSkips; - - /* - * The fields of the SAP table that will be retrieved. For example, - * column0, column1. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "rfcTableFields") - private Object rfcTableFields; - - /* - * The options for the filtering of the SAP Table. For example, COLUMN0 EQ - * SOME VALUE. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "rfcTableOptions") - private Object rfcTableOptions; - - /* - * Specifies the maximum number of rows that will be retrieved at a time - * when retrieving data from SAP Table. Type: integer (or Expression with - * resultType integer). - */ - @JsonProperty(value = "batchSize") - private Object batchSize; - - /* - * Specifies the custom RFC function module that will be used to read data - * from SAP Table. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "customRfcReadTableFunctionModule") - private Object customRfcReadTableFunctionModule; - - /* - * The single character that will be used as delimiter passed to SAP RFC as - * well as splitting the output data retrieved. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sapDataColumnDelimiter") - private Object sapDataColumnDelimiter; - - /* - * The partition mechanism that will be used for SAP table read in - * parallel. Possible values include: "None", "PartitionOnInt", - * "PartitionOnCalendarYear", "PartitionOnCalendarMonth", - * "PartitionOnCalendarDate", "PartitionOnTime". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for SAP table source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SapTablePartitionSettings partitionSettings; - - /** - * Get the rowCount property: The number of rows to be retrieved. Type: integer(or Expression with resultType - * integer). - * - * @return the rowCount value. - */ - public Object rowCount() { - return this.rowCount; - } - - /** - * Set the rowCount property: The number of rows to be retrieved. Type: integer(or Expression with resultType - * integer). - * - * @param rowCount the rowCount value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withRowCount(Object rowCount) { - this.rowCount = rowCount; - return this; - } - - /** - * Get the rowSkips property: The number of rows that will be skipped. Type: integer (or Expression with resultType - * integer). - * - * @return the rowSkips value. - */ - public Object rowSkips() { - return this.rowSkips; - } - - /** - * Set the rowSkips property: The number of rows that will be skipped. Type: integer (or Expression with resultType - * integer). - * - * @param rowSkips the rowSkips value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withRowSkips(Object rowSkips) { - this.rowSkips = rowSkips; - return this; - } - - /** - * Get the rfcTableFields property: The fields of the SAP table that will be retrieved. For example, column0, - * column1. Type: string (or Expression with resultType string). - * - * @return the rfcTableFields value. - */ - public Object rfcTableFields() { - return this.rfcTableFields; - } - - /** - * Set the rfcTableFields property: The fields of the SAP table that will be retrieved. For example, column0, - * column1. Type: string (or Expression with resultType string). - * - * @param rfcTableFields the rfcTableFields value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withRfcTableFields(Object rfcTableFields) { - this.rfcTableFields = rfcTableFields; - return this; - } - - /** - * Get the rfcTableOptions property: The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME - * VALUE. Type: string (or Expression with resultType string). - * - * @return the rfcTableOptions value. - */ - public Object rfcTableOptions() { - return this.rfcTableOptions; - } - - /** - * Set the rfcTableOptions property: The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME - * VALUE. Type: string (or Expression with resultType string). - * - * @param rfcTableOptions the rfcTableOptions value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withRfcTableOptions(Object rfcTableOptions) { - this.rfcTableOptions = rfcTableOptions; - return this; - } - - /** - * Get the batchSize property: Specifies the maximum number of rows that will be retrieved at a time when retrieving - * data from SAP Table. Type: integer (or Expression with resultType integer). - * - * @return the batchSize value. - */ - public Object batchSize() { - return this.batchSize; - } - - /** - * Set the batchSize property: Specifies the maximum number of rows that will be retrieved at a time when retrieving - * data from SAP Table. Type: integer (or Expression with resultType integer). - * - * @param batchSize the batchSize value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withBatchSize(Object batchSize) { - this.batchSize = batchSize; - return this; - } - - /** - * Get the customRfcReadTableFunctionModule property: Specifies the custom RFC function module that will be used to - * read data from SAP Table. Type: string (or Expression with resultType string). - * - * @return the customRfcReadTableFunctionModule value. - */ - public Object customRfcReadTableFunctionModule() { - return this.customRfcReadTableFunctionModule; - } - - /** - * Set the customRfcReadTableFunctionModule property: Specifies the custom RFC function module that will be used to - * read data from SAP Table. Type: string (or Expression with resultType string). - * - * @param customRfcReadTableFunctionModule the customRfcReadTableFunctionModule value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withCustomRfcReadTableFunctionModule(Object customRfcReadTableFunctionModule) { - this.customRfcReadTableFunctionModule = customRfcReadTableFunctionModule; - return this; - } - - /** - * Get the sapDataColumnDelimiter property: The single character that will be used as delimiter passed to SAP RFC as - * well as splitting the output data retrieved. Type: string (or Expression with resultType string). - * - * @return the sapDataColumnDelimiter value. - */ - public Object sapDataColumnDelimiter() { - return this.sapDataColumnDelimiter; - } - - /** - * Set the sapDataColumnDelimiter property: The single character that will be used as delimiter passed to SAP RFC as - * well as splitting the output data retrieved. Type: string (or Expression with resultType string). - * - * @param sapDataColumnDelimiter the sapDataColumnDelimiter value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withSapDataColumnDelimiter(Object sapDataColumnDelimiter) { - this.sapDataColumnDelimiter = sapDataColumnDelimiter; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for SAP table read in parallel. - * Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", "PartitionOnCalendarMonth", - * "PartitionOnCalendarDate", "PartitionOnTime". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for SAP table read in parallel. - * Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", "PartitionOnCalendarMonth", - * "PartitionOnCalendarDate", "PartitionOnTime". - * - * @param partitionOption the partitionOption value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for SAP table source partitioning. - * - * @return the partitionSettings value. - */ - public SapTablePartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for SAP table source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the SapTableSource object itself. - */ - public SapTableSource withPartitionSettings(SapTablePartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapTableSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java deleted file mode 100644 index d8d7ecbe9239d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ScheduleTriggerTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Trigger that creates pipeline runs periodically, on schedule. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ScheduleTrigger") -@Fluent -public final class ScheduleTrigger extends MultiplePipelineTrigger { - /* - * Schedule Trigger properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ScheduleTriggerTypeProperties innerTypeProperties = new ScheduleTriggerTypeProperties(); - - /** - * Get the innerTypeProperties property: Schedule Trigger properties. - * - * @return the innerTypeProperties value. - */ - private ScheduleTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ScheduleTrigger withPipelines(List pipelines) { - super.withPipelines(pipelines); - return this; - } - - /** {@inheritDoc} */ - @Override - public ScheduleTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ScheduleTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the recurrence property: Recurrence schedule configuration. - * - * @return the recurrence value. - */ - public ScheduleTriggerRecurrence recurrence() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().recurrence(); - } - - /** - * Set the recurrence property: Recurrence schedule configuration. - * - * @param recurrence the recurrence value to set. - * @return the ScheduleTrigger object itself. - */ - public ScheduleTrigger withRecurrence(ScheduleTriggerRecurrence recurrence) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ScheduleTriggerTypeProperties(); - } - this.innerTypeProperties().withRecurrence(recurrence); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ScheduleTrigger")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ScheduleTrigger.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTriggerRecurrence.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTriggerRecurrence.java deleted file mode 100644 index 4a1a5c5820ef5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTriggerRecurrence.java +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; - -/** The workflow trigger recurrence. */ -@Fluent -public final class ScheduleTriggerRecurrence { - /* - * The frequency. - */ - @JsonProperty(value = "frequency") - private RecurrenceFrequency frequency; - - /* - * The interval. - */ - @JsonProperty(value = "interval") - private Integer interval; - - /* - * The start time. - */ - @JsonProperty(value = "startTime") - private OffsetDateTime startTime; - - /* - * The end time. - */ - @JsonProperty(value = "endTime") - private OffsetDateTime endTime; - - /* - * The time zone. - */ - @JsonProperty(value = "timeZone") - private String timeZone; - - /* - * The recurrence schedule. - */ - @JsonProperty(value = "schedule") - private RecurrenceSchedule schedule; - - /* - * The workflow trigger recurrence. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the frequency property: The frequency. - * - * @return the frequency value. - */ - public RecurrenceFrequency frequency() { - return this.frequency; - } - - /** - * Set the frequency property: The frequency. - * - * @param frequency the frequency value to set. - * @return the ScheduleTriggerRecurrence object itself. - */ - public ScheduleTriggerRecurrence withFrequency(RecurrenceFrequency frequency) { - this.frequency = frequency; - return this; - } - - /** - * Get the interval property: The interval. - * - * @return the interval value. - */ - public Integer interval() { - return this.interval; - } - - /** - * Set the interval property: The interval. - * - * @param interval the interval value to set. - * @return the ScheduleTriggerRecurrence object itself. - */ - public ScheduleTriggerRecurrence withInterval(Integer interval) { - this.interval = interval; - return this; - } - - /** - * Get the startTime property: The start time. - * - * @return the startTime value. - */ - public OffsetDateTime startTime() { - return this.startTime; - } - - /** - * Set the startTime property: The start time. - * - * @param startTime the startTime value to set. - * @return the ScheduleTriggerRecurrence object itself. - */ - public ScheduleTriggerRecurrence withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; - return this; - } - - /** - * Get the endTime property: The end time. - * - * @return the endTime value. - */ - public OffsetDateTime endTime() { - return this.endTime; - } - - /** - * Set the endTime property: The end time. - * - * @param endTime the endTime value to set. - * @return the ScheduleTriggerRecurrence object itself. - */ - public ScheduleTriggerRecurrence withEndTime(OffsetDateTime endTime) { - this.endTime = endTime; - return this; - } - - /** - * Get the timeZone property: The time zone. - * - * @return the timeZone value. - */ - public String timeZone() { - return this.timeZone; - } - - /** - * Set the timeZone property: The time zone. - * - * @param timeZone the timeZone value to set. - * @return the ScheduleTriggerRecurrence object itself. - */ - public ScheduleTriggerRecurrence withTimeZone(String timeZone) { - this.timeZone = timeZone; - return this; - } - - /** - * Get the schedule property: The recurrence schedule. - * - * @return the schedule value. - */ - public RecurrenceSchedule schedule() { - return this.schedule; - } - - /** - * Set the schedule property: The recurrence schedule. - * - * @param schedule the schedule value to set. - * @return the ScheduleTriggerRecurrence object itself. - */ - public ScheduleTriggerRecurrence withSchedule(RecurrenceSchedule schedule) { - this.schedule = schedule; - return this; - } - - /** - * Get the additionalProperties property: The workflow trigger recurrence. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: The workflow trigger recurrence. - * - * @param additionalProperties the additionalProperties value to set. - * @return the ScheduleTriggerRecurrence object itself. - */ - public ScheduleTriggerRecurrence withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (schedule() != null) { - schedule().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptAction.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptAction.java deleted file mode 100644 index 91b6f76016878..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptAction.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Custom script action to run on HDI ondemand cluster once it's up. */ -@Fluent -public final class ScriptAction { - /* - * The user provided name of the script action. - */ - @JsonProperty(value = "name", required = true) - private String name; - - /* - * The URI for the script action. - */ - @JsonProperty(value = "uri", required = true) - private String uri; - - /* - * The node types on which the script action should be executed. - */ - @JsonProperty(value = "roles", required = true) - private Object roles; - - /* - * The parameters for the script action. - */ - @JsonProperty(value = "parameters") - private String parameters; - - /** - * Get the name property: The user provided name of the script action. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The user provided name of the script action. - * - * @param name the name value to set. - * @return the ScriptAction object itself. - */ - public ScriptAction withName(String name) { - this.name = name; - return this; - } - - /** - * Get the uri property: The URI for the script action. - * - * @return the uri value. - */ - public String uri() { - return this.uri; - } - - /** - * Set the uri property: The URI for the script action. - * - * @param uri the uri value to set. - * @return the ScriptAction object itself. - */ - public ScriptAction withUri(String uri) { - this.uri = uri; - return this; - } - - /** - * Get the roles property: The node types on which the script action should be executed. - * - * @return the roles value. - */ - public Object roles() { - return this.roles; - } - - /** - * Set the roles property: The node types on which the script action should be executed. - * - * @param roles the roles value to set. - * @return the ScriptAction object itself. - */ - public ScriptAction withRoles(Object roles) { - this.roles = roles; - return this; - } - - /** - * Get the parameters property: The parameters for the script action. - * - * @return the parameters value. - */ - public String parameters() { - return this.parameters; - } - - /** - * Set the parameters property: The parameters for the script action. - * - * @param parameters the parameters value to set. - * @return the ScriptAction object itself. - */ - public ScriptAction withParameters(String parameters) { - this.parameters = parameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model ScriptAction")); - } - if (uri() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property uri in model ScriptAction")); - } - if (roles() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property roles in model ScriptAction")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ScriptAction.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java deleted file mode 100644 index fd1de81ebe864..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ScriptActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Script activity type. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Script") -@Fluent -public final class ScriptActivity extends ExecutionActivity { - /* - * Script activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ScriptActivityTypeProperties innerTypeProperties = new ScriptActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Script activity properties. - * - * @return the innerTypeProperties value. - */ - private ScriptActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ScriptActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ScriptActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public ScriptActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ScriptActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ScriptActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ScriptActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the scripts property: Array of script blocks. Type: array. - * - * @return the scripts value. - */ - public List scripts() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scripts(); - } - - /** - * Set the scripts property: Array of script blocks. Type: array. - * - * @param scripts the scripts value to set. - * @return the ScriptActivity object itself. - */ - public ScriptActivity withScripts(List scripts) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ScriptActivityTypeProperties(); - } - this.innerTypeProperties().withScripts(scripts); - return this; - } - - /** - * Get the logSettings property: Log settings of script activity. - * - * @return the logSettings value. - */ - public ScriptActivityTypePropertiesLogSettings logSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logSettings(); - } - - /** - * Set the logSettings property: Log settings of script activity. - * - * @param logSettings the logSettings value to set. - * @return the ScriptActivity object itself. - */ - public ScriptActivity withLogSettings(ScriptActivityTypePropertiesLogSettings logSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ScriptActivityTypeProperties(); - } - this.innerTypeProperties().withLogSettings(logSettings); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ScriptActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ScriptActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityLogDestination.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityLogDestination.java deleted file mode 100644 index 688c5ca27d341..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityLogDestination.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ScriptActivityLogDestination. */ -public final class ScriptActivityLogDestination extends ExpandableStringEnum { - /** Static value ActivityOutput for ScriptActivityLogDestination. */ - public static final ScriptActivityLogDestination ACTIVITY_OUTPUT = fromString("ActivityOutput"); - - /** Static value ExternalStore for ScriptActivityLogDestination. */ - public static final ScriptActivityLogDestination EXTERNAL_STORE = fromString("ExternalStore"); - - /** - * Creates or finds a ScriptActivityLogDestination from its string representation. - * - * @param name a name to look for. - * @return the corresponding ScriptActivityLogDestination. - */ - @JsonCreator - public static ScriptActivityLogDestination fromString(String name) { - return fromString(name, ScriptActivityLogDestination.class); - } - - /** @return known ScriptActivityLogDestination values. */ - public static Collection values() { - return values(ScriptActivityLogDestination.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameter.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameter.java deleted file mode 100644 index c048be8d2714b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameter.java +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Parameters of a script block. */ -@Fluent -public final class ScriptActivityParameter { - /* - * The name of the parameter. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "name") - private Object name; - - /* - * The type of the parameter. - */ - @JsonProperty(value = "type") - private ScriptActivityParameterType type; - - /* - * The value of the parameter. - */ - @JsonProperty(value = "value") - private Object value; - - /* - * The direction of the parameter. - */ - @JsonProperty(value = "direction") - private ScriptActivityParameterDirection direction; - - /* - * The size of the output direction parameter. - */ - @JsonProperty(value = "size") - private Integer size; - - /** - * Get the name property: The name of the parameter. Type: string (or Expression with resultType string). - * - * @return the name value. - */ - public Object name() { - return this.name; - } - - /** - * Set the name property: The name of the parameter. Type: string (or Expression with resultType string). - * - * @param name the name value to set. - * @return the ScriptActivityParameter object itself. - */ - public ScriptActivityParameter withName(Object name) { - this.name = name; - return this; - } - - /** - * Get the type property: The type of the parameter. - * - * @return the type value. - */ - public ScriptActivityParameterType type() { - return this.type; - } - - /** - * Set the type property: The type of the parameter. - * - * @param type the type value to set. - * @return the ScriptActivityParameter object itself. - */ - public ScriptActivityParameter withType(ScriptActivityParameterType type) { - this.type = type; - return this; - } - - /** - * Get the value property: The value of the parameter. - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: The value of the parameter. - * - * @param value the value value to set. - * @return the ScriptActivityParameter object itself. - */ - public ScriptActivityParameter withValue(Object value) { - this.value = value; - return this; - } - - /** - * Get the direction property: The direction of the parameter. - * - * @return the direction value. - */ - public ScriptActivityParameterDirection direction() { - return this.direction; - } - - /** - * Set the direction property: The direction of the parameter. - * - * @param direction the direction value to set. - * @return the ScriptActivityParameter object itself. - */ - public ScriptActivityParameter withDirection(ScriptActivityParameterDirection direction) { - this.direction = direction; - return this; - } - - /** - * Get the size property: The size of the output direction parameter. - * - * @return the size value. - */ - public Integer size() { - return this.size; - } - - /** - * Set the size property: The size of the output direction parameter. - * - * @param size the size value to set. - * @return the ScriptActivityParameter object itself. - */ - public ScriptActivityParameter withSize(Integer size) { - this.size = size; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterDirection.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterDirection.java deleted file mode 100644 index 586c6469bf886..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterDirection.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ScriptActivityParameterDirection. */ -public final class ScriptActivityParameterDirection extends ExpandableStringEnum { - /** Static value Input for ScriptActivityParameterDirection. */ - public static final ScriptActivityParameterDirection INPUT = fromString("Input"); - - /** Static value Output for ScriptActivityParameterDirection. */ - public static final ScriptActivityParameterDirection OUTPUT = fromString("Output"); - - /** Static value InputOutput for ScriptActivityParameterDirection. */ - public static final ScriptActivityParameterDirection INPUT_OUTPUT = fromString("InputOutput"); - - /** - * Creates or finds a ScriptActivityParameterDirection from its string representation. - * - * @param name a name to look for. - * @return the corresponding ScriptActivityParameterDirection. - */ - @JsonCreator - public static ScriptActivityParameterDirection fromString(String name) { - return fromString(name, ScriptActivityParameterDirection.class); - } - - /** @return known ScriptActivityParameterDirection values. */ - public static Collection values() { - return values(ScriptActivityParameterDirection.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterType.java deleted file mode 100644 index 3651c706f092b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterType.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ScriptActivityParameterType. */ -public final class ScriptActivityParameterType extends ExpandableStringEnum { - /** Static value Boolean for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType BOOLEAN = fromString("Boolean"); - - /** Static value DateTime for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType DATE_TIME = fromString("DateTime"); - - /** Static value DateTimeOffset for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType DATE_TIME_OFFSET = fromString("DateTimeOffset"); - - /** Static value Decimal for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType DECIMAL = fromString("Decimal"); - - /** Static value Double for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType DOUBLE = fromString("Double"); - - /** Static value Guid for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType GUID = fromString("Guid"); - - /** Static value Int16 for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType INT16 = fromString("Int16"); - - /** Static value Int32 for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType INT32 = fromString("Int32"); - - /** Static value Int64 for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType INT64 = fromString("Int64"); - - /** Static value Single for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType SINGLE = fromString("Single"); - - /** Static value String for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType STRING = fromString("String"); - - /** Static value Timespan for ScriptActivityParameterType. */ - public static final ScriptActivityParameterType TIMESPAN = fromString("Timespan"); - - /** - * Creates or finds a ScriptActivityParameterType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ScriptActivityParameterType. - */ - @JsonCreator - public static ScriptActivityParameterType fromString(String name) { - return fromString(name, ScriptActivityParameterType.class); - } - - /** @return known ScriptActivityParameterType values. */ - public static Collection values() { - return values(ScriptActivityParameterType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityScriptBlock.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityScriptBlock.java deleted file mode 100644 index 61899e47f52df..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityScriptBlock.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Script block of scripts. */ -@Fluent -public final class ScriptActivityScriptBlock { - /* - * The query text. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "text", required = true) - private Object text; - - /* - * The type of the query. Type: string. - */ - @JsonProperty(value = "type", required = true) - private ScriptType type; - - /* - * Array of script parameters. Type: array. - */ - @JsonProperty(value = "parameters") - private List parameters; - - /** - * Get the text property: The query text. Type: string (or Expression with resultType string). - * - * @return the text value. - */ - public Object text() { - return this.text; - } - - /** - * Set the text property: The query text. Type: string (or Expression with resultType string). - * - * @param text the text value to set. - * @return the ScriptActivityScriptBlock object itself. - */ - public ScriptActivityScriptBlock withText(Object text) { - this.text = text; - return this; - } - - /** - * Get the type property: The type of the query. Type: string. - * - * @return the type value. - */ - public ScriptType type() { - return this.type; - } - - /** - * Set the type property: The type of the query. Type: string. - * - * @param type the type value to set. - * @return the ScriptActivityScriptBlock object itself. - */ - public ScriptActivityScriptBlock withType(ScriptType type) { - this.type = type; - return this; - } - - /** - * Get the parameters property: Array of script parameters. Type: array. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Array of script parameters. Type: array. - * - * @param parameters the parameters value to set. - * @return the ScriptActivityScriptBlock object itself. - */ - public ScriptActivityScriptBlock withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (text() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property text in model ScriptActivityScriptBlock")); - } - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model ScriptActivityScriptBlock")); - } - if (parameters() != null) { - parameters().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ScriptActivityScriptBlock.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityTypePropertiesLogSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityTypePropertiesLogSettings.java deleted file mode 100644 index 1528ab69b18b3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityTypePropertiesLogSettings.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Log settings of script activity. */ -@Fluent -public final class ScriptActivityTypePropertiesLogSettings { - /* - * The destination of logs. Type: string. - */ - @JsonProperty(value = "logDestination", required = true) - private ScriptActivityLogDestination logDestination; - - /* - * Log location settings customer needs to provide when enabling log. - */ - @JsonProperty(value = "logLocationSettings") - private LogLocationSettings logLocationSettings; - - /** - * Get the logDestination property: The destination of logs. Type: string. - * - * @return the logDestination value. - */ - public ScriptActivityLogDestination logDestination() { - return this.logDestination; - } - - /** - * Set the logDestination property: The destination of logs. Type: string. - * - * @param logDestination the logDestination value to set. - * @return the ScriptActivityTypePropertiesLogSettings object itself. - */ - public ScriptActivityTypePropertiesLogSettings withLogDestination(ScriptActivityLogDestination logDestination) { - this.logDestination = logDestination; - return this; - } - - /** - * Get the logLocationSettings property: Log location settings customer needs to provide when enabling log. - * - * @return the logLocationSettings value. - */ - public LogLocationSettings logLocationSettings() { - return this.logLocationSettings; - } - - /** - * Set the logLocationSettings property: Log location settings customer needs to provide when enabling log. - * - * @param logLocationSettings the logLocationSettings value to set. - * @return the ScriptActivityTypePropertiesLogSettings object itself. - */ - public ScriptActivityTypePropertiesLogSettings withLogLocationSettings(LogLocationSettings logLocationSettings) { - this.logLocationSettings = logLocationSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (logDestination() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property logDestination in model ScriptActivityTypePropertiesLogSettings")); - } - if (logLocationSettings() != null) { - logLocationSettings().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ScriptActivityTypePropertiesLogSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptType.java deleted file mode 100644 index 90c2d8230ee44..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ScriptType. */ -public final class ScriptType extends ExpandableStringEnum { - /** Static value Query for ScriptType. */ - public static final ScriptType QUERY = fromString("Query"); - - /** Static value NonQuery for ScriptType. */ - public static final ScriptType NON_QUERY = fromString("NonQuery"); - - /** - * Creates or finds a ScriptType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ScriptType. - */ - @JsonCreator - public static ScriptType fromString(String name) { - return fromString(name, ScriptType.class); - } - - /** @return known ScriptType values. */ - public static Collection values() { - return values(ScriptType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SecretBase.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SecretBase.java deleted file mode 100644 index d3f27a8c943fb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SecretBase.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The base definition of a secret type. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = SecretBase.class) -@JsonTypeName("SecretBase") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "SecureString", value = SecureString.class), - @JsonSubTypes.Type(name = "AzureKeyVaultSecret", value = AzureKeyVaultSecretReference.class) -}) -@Immutable -public class SecretBase { - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SecureString.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SecureString.java deleted file mode 100644 index f244ac0d24b7f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SecureString.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get or List - * API calls. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SecureString") -@Fluent -public final class SecureString extends SecretBase { - /* - * Value of secure string. - */ - @JsonProperty(value = "value", required = true) - private String value; - - /** - * Get the value property: Value of secure string. - * - * @return the value value. - */ - public String value() { - return this.value; - } - - /** - * Set the value property: Value of secure string. - * - * @param value the value value to set. - * @return the SecureString object itself. - */ - public SecureString withValue(String value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model SecureString")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SecureString.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfDependencyTumblingWindowTriggerReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfDependencyTumblingWindowTriggerReference.java deleted file mode 100644 index 7f33956cb02e5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfDependencyTumblingWindowTriggerReference.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Self referenced tumbling window trigger dependency. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SelfDependencyTumblingWindowTriggerReference") -@Fluent -public final class SelfDependencyTumblingWindowTriggerReference extends DependencyReference { - /* - * Timespan applied to the start time of a tumbling window when evaluating - * dependency. - */ - @JsonProperty(value = "offset", required = true) - private String offset; - - /* - * The size of the window when evaluating the dependency. If undefined the - * frequency of the tumbling window will be used. - */ - @JsonProperty(value = "size") - private String size; - - /** - * Get the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency. - * - * @return the offset value. - */ - public String offset() { - return this.offset; - } - - /** - * Set the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency. - * - * @param offset the offset value to set. - * @return the SelfDependencyTumblingWindowTriggerReference object itself. - */ - public SelfDependencyTumblingWindowTriggerReference withOffset(String offset) { - this.offset = offset; - return this; - } - - /** - * Get the size property: The size of the window when evaluating the dependency. If undefined the frequency of the - * tumbling window will be used. - * - * @return the size value. - */ - public String size() { - return this.size; - } - - /** - * Set the size property: The size of the window when evaluating the dependency. If undefined the frequency of the - * tumbling window will be used. - * - * @param size the size value to set. - * @return the SelfDependencyTumblingWindowTriggerReference object itself. - */ - public SelfDependencyTumblingWindowTriggerReference withSize(String size) { - this.size = size; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (offset() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property offset in model SelfDependencyTumblingWindowTriggerReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SelfDependencyTumblingWindowTriggerReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java deleted file mode 100644 index 61cab5dc2a52a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Self-hosted integration runtime. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SelfHosted") -@Fluent -public final class SelfHostedIntegrationRuntime extends IntegrationRuntime { - /* - * When this property is not null, means this is a linked integration - * runtime. The property is used to access original integration runtime. - */ - @JsonProperty(value = "typeProperties") - private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: When this property is not null, means this is a linked integration runtime. - * The property is used to access original integration runtime. - * - * @return the innerTypeProperties value. - */ - private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SelfHostedIntegrationRuntime withDescription(String description) { - super.withDescription(description); - return this; - } - - /** - * Get the linkedInfo property: The base definition of a linked integration runtime. - * - * @return the linkedInfo value. - */ - public LinkedIntegrationRuntimeType linkedInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedInfo(); - } - - /** - * Set the linkedInfo property: The base definition of a linked integration runtime. - * - * @param linkedInfo the linkedInfo value to set. - * @return the SelfHostedIntegrationRuntime object itself. - */ - public SelfHostedIntegrationRuntime withLinkedInfo(LinkedIntegrationRuntimeType linkedInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withLinkedInfo(linkedInfo); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeNode.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeNode.java deleted file mode 100644 index 00a29f7e78f77..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeNode.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import java.time.OffsetDateTime; -import java.util.Map; - -/** An immutable client-side representation of SelfHostedIntegrationRuntimeNode. */ -public interface SelfHostedIntegrationRuntimeNode { - /** - * Gets the nodeName property: Name of the integration runtime node. - * - * @return the nodeName value. - */ - String nodeName(); - - /** - * Gets the machineName property: Machine name of the integration runtime node. - * - * @return the machineName value. - */ - String machineName(); - - /** - * Gets the hostServiceUri property: URI for the host machine of the integration runtime. - * - * @return the hostServiceUri value. - */ - String hostServiceUri(); - - /** - * Gets the status property: Status of the integration runtime node. - * - * @return the status value. - */ - SelfHostedIntegrationRuntimeNodeStatus status(); - - /** - * Gets the capabilities property: The integration runtime capabilities dictionary. - * - * @return the capabilities value. - */ - Map capabilities(); - - /** - * Gets the versionStatus property: Status of the integration runtime node version. - * - * @return the versionStatus value. - */ - String versionStatus(); - - /** - * Gets the version property: Version of the integration runtime node. - * - * @return the version value. - */ - String version(); - - /** - * Gets the registerTime property: The time at which the integration runtime node was registered in ISO8601 format. - * - * @return the registerTime value. - */ - OffsetDateTime registerTime(); - - /** - * Gets the lastConnectTime property: The most recent time at which the integration runtime was connected in ISO8601 - * format. - * - * @return the lastConnectTime value. - */ - OffsetDateTime lastConnectTime(); - - /** - * Gets the expiryTime property: The time at which the integration runtime will expire in ISO8601 format. - * - * @return the expiryTime value. - */ - OffsetDateTime expiryTime(); - - /** - * Gets the lastStartTime property: The time the node last started up. - * - * @return the lastStartTime value. - */ - OffsetDateTime lastStartTime(); - - /** - * Gets the lastStopTime property: The integration runtime node last stop time. - * - * @return the lastStopTime value. - */ - OffsetDateTime lastStopTime(); - - /** - * Gets the lastUpdateResult property: The result of the last integration runtime node update. - * - * @return the lastUpdateResult value. - */ - IntegrationRuntimeUpdateResult lastUpdateResult(); - - /** - * Gets the lastStartUpdateTime property: The last time for the integration runtime node update start. - * - * @return the lastStartUpdateTime value. - */ - OffsetDateTime lastStartUpdateTime(); - - /** - * Gets the lastEndUpdateTime property: The last time for the integration runtime node update end. - * - * @return the lastEndUpdateTime value. - */ - OffsetDateTime lastEndUpdateTime(); - - /** - * Gets the isActiveDispatcher property: Indicates whether this node is the active dispatcher for integration - * runtime requests. - * - * @return the isActiveDispatcher value. - */ - Boolean isActiveDispatcher(); - - /** - * Gets the concurrentJobsLimit property: Maximum concurrent jobs on the integration runtime node. - * - * @return the concurrentJobsLimit value. - */ - Integer concurrentJobsLimit(); - - /** - * Gets the maxConcurrentJobs property: The maximum concurrent jobs in this integration runtime. - * - * @return the maxConcurrentJobs value. - */ - Integer maxConcurrentJobs(); - - /** - * Gets the additionalProperties property: Properties of Self-hosted integration runtime node. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner object. - * - * @return the inner object. - */ - SelfHostedIntegrationRuntimeNodeInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeNodeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeNodeStatus.java deleted file mode 100644 index 060310e997915..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeNodeStatus.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SelfHostedIntegrationRuntimeNodeStatus. */ -public final class SelfHostedIntegrationRuntimeNodeStatus - extends ExpandableStringEnum { - /** Static value NeedRegistration for SelfHostedIntegrationRuntimeNodeStatus. */ - public static final SelfHostedIntegrationRuntimeNodeStatus NEED_REGISTRATION = fromString("NeedRegistration"); - - /** Static value Online for SelfHostedIntegrationRuntimeNodeStatus. */ - public static final SelfHostedIntegrationRuntimeNodeStatus ONLINE = fromString("Online"); - - /** Static value Limited for SelfHostedIntegrationRuntimeNodeStatus. */ - public static final SelfHostedIntegrationRuntimeNodeStatus LIMITED = fromString("Limited"); - - /** Static value Offline for SelfHostedIntegrationRuntimeNodeStatus. */ - public static final SelfHostedIntegrationRuntimeNodeStatus OFFLINE = fromString("Offline"); - - /** Static value Upgrading for SelfHostedIntegrationRuntimeNodeStatus. */ - public static final SelfHostedIntegrationRuntimeNodeStatus UPGRADING = fromString("Upgrading"); - - /** Static value Initializing for SelfHostedIntegrationRuntimeNodeStatus. */ - public static final SelfHostedIntegrationRuntimeNodeStatus INITIALIZING = fromString("Initializing"); - - /** Static value InitializeFailed for SelfHostedIntegrationRuntimeNodeStatus. */ - public static final SelfHostedIntegrationRuntimeNodeStatus INITIALIZE_FAILED = fromString("InitializeFailed"); - - /** - * Creates or finds a SelfHostedIntegrationRuntimeNodeStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding SelfHostedIntegrationRuntimeNodeStatus. - */ - @JsonCreator - public static SelfHostedIntegrationRuntimeNodeStatus fromString(String name) { - return fromString(name, SelfHostedIntegrationRuntimeNodeStatus.class); - } - - /** @return known SelfHostedIntegrationRuntimeNodeStatus values. */ - public static Collection values() { - return values(SelfHostedIntegrationRuntimeNodeStatus.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java deleted file mode 100644 index d9b5805427778..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -/** Self-hosted integration runtime status. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SelfHosted") -@Fluent -public final class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { - /* - * Self-hosted integration runtime status type properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties = - new SelfHostedIntegrationRuntimeStatusTypeProperties(); - - /** - * Get the innerTypeProperties property: Self-hosted integration runtime status type properties. - * - * @return the innerTypeProperties value. - */ - private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().createTime(); - } - - /** - * Get the taskQueueId property: The task queue id of the integration runtime. - * - * @return the taskQueueId value. - */ - public String taskQueueId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().taskQueueId(); - } - - /** - * Get the internalChannelEncryption property: It is used to set the encryption mode for node-node communication - * channel (when more than 2 self-hosted integration runtime nodes exist). - * - * @return the internalChannelEncryption value. - */ - public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().internalChannelEncryption(); - } - - /** - * Get the version property: Version of the integration runtime. - * - * @return the version value. - */ - public String version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); - } - - /** - * Get the nodes property: The list of nodes for this integration runtime. - * - * @return the nodes value. - */ - public List nodes() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nodes(); - } - - /** - * Set the nodes property: The list of nodes for this integration runtime. - * - * @param nodes the nodes value to set. - * @return the SelfHostedIntegrationRuntimeStatus object itself. - */ - public SelfHostedIntegrationRuntimeStatus withNodes(List nodes) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - } - this.innerTypeProperties().withNodes(nodes); - return this; - } - - /** - * Get the scheduledUpdateDate property: The date at which the integration runtime will be scheduled to update, in - * ISO8601 format. - * - * @return the scheduledUpdateDate value. - */ - public OffsetDateTime scheduledUpdateDate() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scheduledUpdateDate(); - } - - /** - * Get the updateDelayOffset property: The time in the date scheduled by service to update the integration runtime, - * e.g., PT03H is 3 hours. - * - * @return the updateDelayOffset value. - */ - public String updateDelayOffset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().updateDelayOffset(); - } - - /** - * Get the localTimeZoneOffset property: The local time zone offset in hours. - * - * @return the localTimeZoneOffset value. - */ - public String localTimeZoneOffset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().localTimeZoneOffset(); - } - - /** - * Get the capabilities property: Object with additional information about integration runtime capabilities. - * - * @return the capabilities value. - */ - public Map capabilities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().capabilities(); - } - - /** - * Get the serviceUrls property: The URLs for the services used in integration runtime backend service. - * - * @return the serviceUrls value. - */ - public List serviceUrls() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrls(); - } - - /** - * Get the autoUpdate property: Whether Self-hosted integration runtime auto update has been turned on. - * - * @return the autoUpdate value. - */ - public IntegrationRuntimeAutoUpdate autoUpdate() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().autoUpdate(); - } - - /** - * Get the versionStatus property: Status of the integration runtime version. - * - * @return the versionStatus value. - */ - public String versionStatus() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().versionStatus(); - } - - /** - * Get the links property: The list of linked integration runtimes that are created to share with this integration - * runtime. - * - * @return the links value. - */ - public List links() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().links(); - } - - /** - * Set the links property: The list of linked integration runtimes that are created to share with this integration - * runtime. - * - * @param links the links value to set. - * @return the SelfHostedIntegrationRuntimeStatus object itself. - */ - public SelfHostedIntegrationRuntimeStatus withLinks(List links) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - } - this.innerTypeProperties().withLinks(links); - return this; - } - - /** - * Get the pushedVersion property: The version that the integration runtime is going to update to. - * - * @return the pushedVersion value. - */ - public String pushedVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pushedVersion(); - } - - /** - * Get the latestVersion property: The latest version on download center. - * - * @return the latestVersion value. - */ - public String latestVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().latestVersion(); - } - - /** - * Get the autoUpdateEta property: The estimated time when the self-hosted integration runtime will be updated. - * - * @return the autoUpdateEta value. - */ - public OffsetDateTime autoUpdateEta() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().autoUpdateEta(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SelfHostedIntegrationRuntimeStatus")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SelfHostedIntegrationRuntimeStatus.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowAuthenticationType.java deleted file mode 100644 index 479811696d4cd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ServiceNowAuthenticationType. */ -public final class ServiceNowAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for ServiceNowAuthenticationType. */ - public static final ServiceNowAuthenticationType BASIC = fromString("Basic"); - - /** Static value OAuth2 for ServiceNowAuthenticationType. */ - public static final ServiceNowAuthenticationType OAUTH2 = fromString("OAuth2"); - - /** - * Creates or finds a ServiceNowAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ServiceNowAuthenticationType. - */ - @JsonCreator - public static ServiceNowAuthenticationType fromString(String name) { - return fromString(name, ServiceNowAuthenticationType.class); - } - - /** @return known ServiceNowAuthenticationType values. */ - public static Collection values() { - return values(ServiceNowAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java deleted file mode 100644 index bae7457204208..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java +++ /dev/null @@ -1,323 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ServiceNowLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** ServiceNow server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ServiceNow") -@Fluent -public final class ServiceNowLinkedService extends LinkedService { - /* - * ServiceNow server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ServiceNowLinkedServiceTypeProperties innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: ServiceNow server linked service properties. - * - * @return the innerTypeProperties value. - */ - private ServiceNowLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). - * - * @param endpoint the endpoint value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ServiceNowAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withAuthenticationType(ServiceNowAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2 - * authentication. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2 - * authentication. - * - * @param username the username value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name for Basic and OAuth2 authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name for Basic and OAuth2 authentication. - * - * @param password the password value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the clientId property: The client id for OAuth2 authentication. - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client id for OAuth2 authentication. - * - * @param clientId the clientId value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret for OAuth2 authentication. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret for OAuth2 authentication. - * - * @param clientSecret the clientSecret value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ServiceNowLinkedService object itself. - */ - public ServiceNowLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ServiceNowLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ServiceNowLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java deleted file mode 100644 index 1cd2206fc7c40..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** ServiceNow server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ServiceNowObject") -@Fluent -public final class ServiceNowObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ServiceNowObjectDataset object itself. - */ - public ServiceNowObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowSource.java deleted file mode 100644 index 514181493441d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity ServiceNow server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ServiceNowSource") -@Fluent -public final class ServiceNowSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the ServiceNowSource object itself. - */ - public ServiceNowSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServiceNowSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServicePrincipalCredential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServicePrincipalCredential.java deleted file mode 100644 index af2ad4d062106..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServicePrincipalCredential.java +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ServicePrincipalCredentialTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Service principal credential. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ServicePrincipal") -@Fluent -public final class ServicePrincipalCredential extends Credential { - /* - * Service Principal credential properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ServicePrincipalCredentialTypeProperties innerTypeProperties = - new ServicePrincipalCredentialTypeProperties(); - - /** - * Get the innerTypeProperties property: Service Principal credential properties. - * - * @return the innerTypeProperties value. - */ - private ServicePrincipalCredentialTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ServicePrincipalCredential withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ServicePrincipalCredential withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the servicePrincipalId property: The app ID of the service principal used to authenticate. - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The app ID of the service principal used to authenticate. - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the ServicePrincipalCredential object itself. - */ - public ServicePrincipalCredential withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServicePrincipalCredentialTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate. - * - * @return the servicePrincipalKey value. - */ - public AzureKeyVaultSecretReference servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the ServicePrincipalCredential object itself. - */ - public ServicePrincipalCredential withServicePrincipalKey(AzureKeyVaultSecretReference servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServicePrincipalCredentialTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the tenant property: The ID of the tenant to which the service principal belongs. - * - * @return the tenant value. - */ - public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); - } - - /** - * Set the tenant property: The ID of the tenant to which the service principal belongs. - * - * @param tenant the tenant value to set. - * @return the ServicePrincipalCredential object itself. - */ - public ServicePrincipalCredential withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServicePrincipalCredentialTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ServicePrincipalCredential")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ServicePrincipalCredential.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java deleted file mode 100644 index 06bc0594defcb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SetVariableActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Set value for a Variable. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SetVariable") -@Fluent -public final class SetVariableActivity extends ControlActivity { - /* - * Set Variable activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SetVariableActivityTypeProperties innerTypeProperties = new SetVariableActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Set Variable activity properties. - * - * @return the innerTypeProperties value. - */ - private SetVariableActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the variableName property: Name of the variable whose value needs to be set. - * - * @return the variableName value. - */ - public String variableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableName(); - } - - /** - * Set the variableName property: Name of the variable whose value needs to be set. - * - * @param variableName the variableName value to set. - * @return the SetVariableActivity object itself. - */ - public SetVariableActivity withVariableName(String variableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SetVariableActivityTypeProperties(); - } - this.innerTypeProperties().withVariableName(variableName); - return this; - } - - /** - * Get the value property: Value to be set. Could be a static value or Expression. - * - * @return the value value. - */ - public Object value() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().value(); - } - - /** - * Set the value property: Value to be set. Could be a static value or Expression. - * - * @param value the value value to set. - * @return the SetVariableActivity object itself. - */ - public SetVariableActivity withValue(Object value) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SetVariableActivityTypeProperties(); - } - this.innerTypeProperties().withValue(value); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SetVariableActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SetVariableActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpAuthenticationType.java deleted file mode 100644 index 3b1951e26a196..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpAuthenticationType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SftpAuthenticationType. */ -public final class SftpAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for SftpAuthenticationType. */ - public static final SftpAuthenticationType BASIC = fromString("Basic"); - - /** Static value SshPublicKey for SftpAuthenticationType. */ - public static final SftpAuthenticationType SSH_PUBLIC_KEY = fromString("SshPublicKey"); - - /** Static value MultiFactor for SftpAuthenticationType. */ - public static final SftpAuthenticationType MULTI_FACTOR = fromString("MultiFactor"); - - /** - * Creates or finds a SftpAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SftpAuthenticationType. - */ - @JsonCreator - public static SftpAuthenticationType fromString(String name) { - return fromString(name, SftpAuthenticationType.class); - } - - /** @return known SftpAuthenticationType values. */ - public static Collection values() { - return values(SftpAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpLocation.java deleted file mode 100644 index cb8232e48ae3f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpLocation.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The location of SFTP dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SftpLocation") -@Fluent -public final class SftpLocation extends DatasetLocation { - /** {@inheritDoc} */ - @Override - public SftpLocation withFolderPath(Object folderPath) { - super.withFolderPath(folderPath); - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpLocation withFileName(Object fileName) { - super.withFileName(fileName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpReadSettings.java deleted file mode 100644 index c4c594f4325fd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpReadSettings.java +++ /dev/null @@ -1,327 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Sftp read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SftpReadSettings") -@Fluent -public final class SftpReadSettings extends StoreReadSettings { - /* - * If true, files under the folder path will be read recursively. Default - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * Sftp wildcardFolderPath. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFolderPath") - private Object wildcardFolderPath; - - /* - * Sftp wildcardFileName. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "wildcardFileName") - private Object wildcardFileName; - - /* - * Indicates whether to enable partition discovery. - */ - @JsonProperty(value = "enablePartitionDiscovery") - private Boolean enablePartitionDiscovery; - - /* - * Specify the root path where partition discovery starts from. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionRootPath") - private Object partitionRootPath; - - /* - * Point to a text file that lists each file (relative path to the path - * configured in the dataset) that you want to copy. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileListPath") - private Object fileListPath; - - /* - * Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "deleteFilesAfterCompletion") - private Object deleteFilesAfterCompletion; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * If true, disable parallel reading within each file. Default is false. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "disableChunking") - private Object disableChunking; - - /** - * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the wildcardFolderPath property: Sftp wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @return the wildcardFolderPath value. - */ - public Object wildcardFolderPath() { - return this.wildcardFolderPath; - } - - /** - * Set the wildcardFolderPath property: Sftp wildcardFolderPath. Type: string (or Expression with resultType - * string). - * - * @param wildcardFolderPath the wildcardFolderPath value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withWildcardFolderPath(Object wildcardFolderPath) { - this.wildcardFolderPath = wildcardFolderPath; - return this; - } - - /** - * Get the wildcardFileName property: Sftp wildcardFileName. Type: string (or Expression with resultType string). - * - * @return the wildcardFileName value. - */ - public Object wildcardFileName() { - return this.wildcardFileName; - } - - /** - * Set the wildcardFileName property: Sftp wildcardFileName. Type: string (or Expression with resultType string). - * - * @param wildcardFileName the wildcardFileName value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withWildcardFileName(Object wildcardFileName) { - this.wildcardFileName = wildcardFileName; - return this; - } - - /** - * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @return the enablePartitionDiscovery value. - */ - public Boolean enablePartitionDiscovery() { - return this.enablePartitionDiscovery; - } - - /** - * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. - * - * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { - this.enablePartitionDiscovery = enablePartitionDiscovery; - return this; - } - - /** - * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @return the partitionRootPath value. - */ - public Object partitionRootPath() { - return this.partitionRootPath; - } - - /** - * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or - * Expression with resultType string). - * - * @param partitionRootPath the partitionRootPath value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withPartitionRootPath(Object partitionRootPath) { - this.partitionRootPath = partitionRootPath; - return this; - } - - /** - * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @return the fileListPath value. - */ - public Object fileListPath() { - return this.fileListPath; - } - - /** - * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in - * the dataset) that you want to copy. Type: string (or Expression with resultType string). - * - * @param fileListPath the fileListPath value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withFileListPath(Object fileListPath) { - this.fileListPath = fileListPath; - return this; - } - - /** - * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the deleteFilesAfterCompletion value. - */ - public Object deleteFilesAfterCompletion() { - return this.deleteFilesAfterCompletion; - } - - /** - * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy - * completion. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { - this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the disableChunking property: If true, disable parallel reading within each file. Default is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the disableChunking value. - */ - public Object disableChunking() { - return this.disableChunking; - } - - /** - * Set the disableChunking property: If true, disable parallel reading within each file. Default is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param disableChunking the disableChunking value to set. - * @return the SftpReadSettings object itself. - */ - public SftpReadSettings withDisableChunking(Object disableChunking) { - this.disableChunking = disableChunking; - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java deleted file mode 100644 index cf49669ee6fc3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java +++ /dev/null @@ -1,356 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SftpServerLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** A linked service for an SSH File Transfer Protocol (SFTP) server. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Sftp") -@Fluent -public final class SftpServerLinkedService extends LinkedService { - /* - * Properties specific to this linked service type. - */ - @JsonProperty(value = "typeProperties", required = true) - private SftpServerLinkedServiceTypeProperties innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. - */ - private SftpServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The SFTP server host name. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The SFTP server host name. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port number that the SFTP server uses to listen for client connections. Default - * value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port number that the SFTP server uses to listen for client connections. Default - * value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @return the authenticationType value. - */ - public SftpAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withAuthenticationType(SftpAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The username used to log on to the SFTP server. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username used to log on to the SFTP server. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password to logon the SFTP server for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password to logon the SFTP server for Basic authentication. - * - * @param password the password value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the privateKeyPath property: The SSH private key file path for SshPublicKey authentication. Only valid for - * on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - * PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with - * resultType string). - * - * @return the privateKeyPath value. - */ - public Object privateKeyPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().privateKeyPath(); - } - - /** - * Set the privateKeyPath property: The SSH private key file path for SshPublicKey authentication. Only valid for - * on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - * PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with - * resultType string). - * - * @param privateKeyPath the privateKeyPath value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withPrivateKeyPath(Object privateKeyPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPrivateKeyPath(privateKeyPath); - return this; - } - - /** - * Get the privateKeyContent property: Base64 encoded SSH private key content for SshPublicKey authentication. For - * on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. - * - * @return the privateKeyContent value. - */ - public SecretBase privateKeyContent() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().privateKeyContent(); - } - - /** - * Set the privateKeyContent property: Base64 encoded SSH private key content for SshPublicKey authentication. For - * on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. - * - * @param privateKeyContent the privateKeyContent value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withPrivateKeyContent(SecretBase privateKeyContent) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPrivateKeyContent(privateKeyContent); - return this; - } - - /** - * Get the passPhrase property: The password to decrypt the SSH private key if the SSH private key is encrypted. - * - * @return the passPhrase value. - */ - public SecretBase passPhrase() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().passPhrase(); - } - - /** - * Set the passPhrase property: The password to decrypt the SSH private key if the SSH private key is encrypted. - * - * @param passPhrase the passPhrase value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withPassPhrase(SecretBase passPhrase) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassPhrase(passPhrase); - return this; - } - - /** - * Get the skipHostKeyValidation property: If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the skipHostKeyValidation value. - */ - public Object skipHostKeyValidation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().skipHostKeyValidation(); - } - - /** - * Set the skipHostKeyValidation property: If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param skipHostKeyValidation the skipHostKeyValidation value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withSkipHostKeyValidation(Object skipHostKeyValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSkipHostKeyValidation(skipHostKeyValidation); - return this; - } - - /** - * Get the hostKeyFingerprint property: The host key finger-print of the SFTP server. When SkipHostKeyValidation is - * false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - * - * @return the hostKeyFingerprint value. - */ - public Object hostKeyFingerprint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostKeyFingerprint(); - } - - /** - * Set the hostKeyFingerprint property: The host key finger-print of the SFTP server. When SkipHostKeyValidation is - * false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - * - * @param hostKeyFingerprint the hostKeyFingerprint value to set. - * @return the SftpServerLinkedService object itself. - */ - public SftpServerLinkedService withHostKeyFingerprint(Object hostKeyFingerprint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostKeyFingerprint(hostKeyFingerprint); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SftpServerLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SftpServerLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpWriteSettings.java deleted file mode 100644 index 869d35985cf60..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpWriteSettings.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Sftp write settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SftpWriteSettings") -@Fluent -public final class SftpWriteSettings extends StoreWriteSettings { - /* - * Specifies the timeout for writing each chunk to SFTP server. Default - * value: 01:00:00 (one hour). Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "operationTimeout") - private Object operationTimeout; - - /* - * Upload to temporary file(s) and rename. Disable this option if your SFTP - * server doesn't support rename operation. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "useTempFileRename") - private Object useTempFileRename; - - /** - * Get the operationTimeout property: Specifies the timeout for writing each chunk to SFTP server. Default value: - * 01:00:00 (one hour). Type: string (or Expression with resultType string). - * - * @return the operationTimeout value. - */ - public Object operationTimeout() { - return this.operationTimeout; - } - - /** - * Set the operationTimeout property: Specifies the timeout for writing each chunk to SFTP server. Default value: - * 01:00:00 (one hour). Type: string (or Expression with resultType string). - * - * @param operationTimeout the operationTimeout value to set. - * @return the SftpWriteSettings object itself. - */ - public SftpWriteSettings withOperationTimeout(Object operationTimeout) { - this.operationTimeout = operationTimeout; - return this; - } - - /** - * Get the useTempFileRename property: Upload to temporary file(s) and rename. Disable this option if your SFTP - * server doesn't support rename operation. Type: boolean (or Expression with resultType boolean). - * - * @return the useTempFileRename value. - */ - public Object useTempFileRename() { - return this.useTempFileRename; - } - - /** - * Set the useTempFileRename property: Upload to temporary file(s) and rename. Disable this option if your SFTP - * server doesn't support rename operation. Type: boolean (or Expression with resultType boolean). - * - * @param useTempFileRename the useTempFileRename value to set. - * @return the SftpWriteSettings object itself. - */ - public SftpWriteSettings withUseTempFileRename(Object useTempFileRename) { - this.useTempFileRename = useTempFileRename; - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpWriteSettings withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** {@inheritDoc} */ - @Override - public SftpWriteSettings withCopyBehavior(Object copyBehavior) { - super.withCopyBehavior(copyBehavior); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java deleted file mode 100644 index bc678220869f2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SharePoint Online List linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SharePointOnlineList") -@Fluent -public final class SharePointOnlineListLinkedService extends LinkedService { - /* - * SharePoint Online List linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SharePointOnlineListLinkedServiceTypeProperties innerTypeProperties = - new SharePointOnlineListLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: SharePoint Online List linked service properties. - * - * @return the innerTypeProperties value. - */ - private SharePointOnlineListLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the siteUrl property: The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). - * - * @return the siteUrl value. - */ - public Object siteUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().siteUrl(); - } - - /** - * Set the siteUrl property: The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). - * - * @param siteUrl the siteUrl value to set. - * @return the SharePointOnlineListLinkedService object itself. - */ - public SharePointOnlineListLinkedService withSiteUrl(Object siteUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSiteUrl(siteUrl); - return this; - } - - /** - * Get the tenantId property: The tenant ID under which your application resides. You can find it from Azure portal - * Active Directory overview page. Type: string (or Expression with resultType string). - * - * @return the tenantId value. - */ - public Object tenantId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenantId(); - } - - /** - * Set the tenantId property: The tenant ID under which your application resides. You can find it from Azure portal - * Active Directory overview page. Type: string (or Expression with resultType string). - * - * @param tenantId the tenantId value to set. - * @return the SharePointOnlineListLinkedService object itself. - */ - public SharePointOnlineListLinkedService withTenantId(Object tenantId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenantId(tenantId); - return this; - } - - /** - * Get the servicePrincipalId property: The application (client) ID of your application registered in Azure Active - * Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); - } - - /** - * Set the servicePrincipalId property: The application (client) ID of your application registered in Azure Active - * Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the SharePointOnlineListLinkedService object itself. - */ - public SharePointOnlineListLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); - return this; - } - - /** - * Get the servicePrincipalKey property: The client secret of your application registered in Azure Active Directory. - * Type: string (or Expression with resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); - } - - /** - * Set the servicePrincipalKey property: The client secret of your application registered in Azure Active Directory. - * Type: string (or Expression with resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the SharePointOnlineListLinkedService object itself. - */ - public SharePointOnlineListLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SharePointOnlineListLinkedService object itself. - */ - public SharePointOnlineListLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SharePointOnlineListLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SharePointOnlineListLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java deleted file mode 100644 index a57cbff7edf0e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The sharepoint online list resource dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SharePointOnlineListResource") -@Fluent -public final class SharePointOnlineListResourceDataset extends Dataset { - /* - * Sharepoint online list dataset properties. - */ - @JsonProperty(value = "typeProperties") - private SharePointOnlineListDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Sharepoint online list dataset properties. - * - * @return the innerTypeProperties value. - */ - private SharePointOnlineListDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @return the listName value. - */ - public Object listName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().listName(); - } - - /** - * Set the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @param listName the listName value to set. - * @return the SharePointOnlineListResourceDataset object itself. - */ - public SharePointOnlineListResourceDataset withListName(Object listName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListDatasetTypeProperties(); - } - this.innerTypeProperties().withListName(listName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListSource.java deleted file mode 100644 index 9ec9d18791688..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListSource.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for sharePoint online list source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SharePointOnlineListSource") -@Fluent -public final class SharePointOnlineListSource extends CopySource { - /* - * The OData query to filter the data in SharePoint Online list. For - * example, "$top=1". Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The wait time to get a response from SharePoint Online. Default value is - * 5 minutes (00:05:00). Type: string (or Expression with resultType - * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "httpRequestTimeout") - private Object httpRequestTimeout; - - /** - * Get the query property: The OData query to filter the data in SharePoint Online list. For example, "$top=1". - * Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: The OData query to filter the data in SharePoint Online list. For example, "$top=1". - * Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the SharePointOnlineListSource object itself. - */ - public SharePointOnlineListSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the httpRequestTimeout property: The wait time to get a response from SharePoint Online. Default value is 5 - * minutes (00:05:00). Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the httpRequestTimeout value. - */ - public Object httpRequestTimeout() { - return this.httpRequestTimeout; - } - - /** - * Set the httpRequestTimeout property: The wait time to get a response from SharePoint Online. Default value is 5 - * minutes (00:05:00). Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param httpRequestTimeout the httpRequestTimeout value to set. - * @return the SharePointOnlineListSource object itself. - */ - public SharePointOnlineListSource withHttpRequestTimeout(Object httpRequestTimeout) { - this.httpRequestTimeout = httpRequestTimeout; - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java deleted file mode 100644 index 8cfd76b40e1b8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ShopifyLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Shopify Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Shopify") -@Fluent -public final class ShopifyLinkedService extends LinkedService { - /* - * Shopify Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ShopifyLinkedServiceTypeProperties innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Shopify Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private ShopifyLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). - * - * @param host the host value to set. - * @return the ShopifyLinkedService object itself. - */ - public ShopifyLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the accessToken property: The API access token that can be used to access Shopify’s data. The token won't - * expire if it is offline mode. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); - } - - /** - * Set the accessToken property: The API access token that can be used to access Shopify’s data. The token won't - * expire if it is offline mode. - * - * @param accessToken the accessToken value to set. - * @return the ShopifyLinkedService object itself. - */ - public ShopifyLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ShopifyLinkedService object itself. - */ - public ShopifyLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ShopifyLinkedService object itself. - */ - public ShopifyLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ShopifyLinkedService object itself. - */ - public ShopifyLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ShopifyLinkedService object itself. - */ - public ShopifyLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ShopifyLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ShopifyLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java deleted file mode 100644 index 19ccc52d9e2c9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Shopify Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ShopifyObject") -@Fluent -public final class ShopifyObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ShopifyObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifyObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ShopifyObjectDataset object itself. - */ - public ShopifyObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifySource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifySource.java deleted file mode 100644 index 4130a9748c4b7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifySource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Shopify Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ShopifySource") -@Fluent -public final class ShopifySource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the ShopifySource object itself. - */ - public ShopifySource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifySource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifySource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifySource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifySource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifySource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ShopifySource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SkipErrorFile.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SkipErrorFile.java deleted file mode 100644 index 9b95231c63aa1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SkipErrorFile.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Skip error file. */ -@Fluent -public final class SkipErrorFile { - /* - * Skip if file is deleted by other client during copy. Default is true. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "fileMissing") - private Object fileMissing; - - /* - * Skip if source/sink file changed by other concurrent write. Default is - * false. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "dataInconsistency") - private Object dataInconsistency; - - /** - * Get the fileMissing property: Skip if file is deleted by other client during copy. Default is true. Type: boolean - * (or Expression with resultType boolean). - * - * @return the fileMissing value. - */ - public Object fileMissing() { - return this.fileMissing; - } - - /** - * Set the fileMissing property: Skip if file is deleted by other client during copy. Default is true. Type: boolean - * (or Expression with resultType boolean). - * - * @param fileMissing the fileMissing value to set. - * @return the SkipErrorFile object itself. - */ - public SkipErrorFile withFileMissing(Object fileMissing) { - this.fileMissing = fileMissing; - return this; - } - - /** - * Get the dataInconsistency property: Skip if source/sink file changed by other concurrent write. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the dataInconsistency value. - */ - public Object dataInconsistency() { - return this.dataInconsistency; - } - - /** - * Set the dataInconsistency property: Skip if source/sink file changed by other concurrent write. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param dataInconsistency the dataInconsistency value to set. - * @return the SkipErrorFile object itself. - */ - public SkipErrorFile withDataInconsistency(Object dataInconsistency) { - this.dataInconsistency = dataInconsistency; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java deleted file mode 100644 index e274e525eff8a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SmartsheetLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Smartsheet. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Smartsheet") -@Fluent -public final class SmartsheetLinkedService extends LinkedService { - /* - * Smartsheet linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SmartsheetLinkedServiceTypeProperties innerTypeProperties = new SmartsheetLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Smartsheet linked service properties. - * - * @return the innerTypeProperties value. - */ - private SmartsheetLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SmartsheetLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SmartsheetLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SmartsheetLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SmartsheetLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the apiToken property: The api token for the Smartsheet source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiToken(); - } - - /** - * Set the apiToken property: The api token for the Smartsheet source. - * - * @param apiToken the apiToken value to set. - * @return the SmartsheetLinkedService object itself. - */ - public SmartsheetLinkedService withApiToken(SecretBase apiToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SmartsheetLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiToken(apiToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SmartsheetLinkedService object itself. - */ - public SmartsheetLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SmartsheetLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SmartsheetLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SmartsheetLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java deleted file mode 100644 index e407733b340c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SnowflakeDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The snowflake dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SnowflakeTable") -@Fluent -public final class SnowflakeDataset extends Dataset { - /* - * Snowflake dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SnowflakeDatasetTypeProperties innerTypeProperties = new SnowflakeDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Snowflake dataset properties. - * - * @return the innerTypeProperties value. - */ - private SnowflakeDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the SnowflakeDataset object itself. - */ - public SnowflakeDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the SnowflakeDataset object itself. - */ - public SnowflakeDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SnowflakeDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SnowflakeDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeExportCopyCommand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeExportCopyCommand.java deleted file mode 100644 index 27ac6d88229fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeExportCopyCommand.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** Snowflake export command settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SnowflakeExportCopyCommand") -@Fluent -public final class SnowflakeExportCopyCommand extends ExportSettings { - /* - * Additional copy options directly passed to snowflake Copy Command. Type: - * key value pairs (value should be string type) (or Expression with - * resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": - * "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } - */ - @JsonProperty(value = "additionalCopyOptions") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map additionalCopyOptions; - - /* - * Additional format options directly passed to snowflake Copy Command. - * Type: key value pairs (value should be string type) (or Expression with - * resultType object). Example: "additionalFormatOptions": { "OVERWRITE": - * "TRUE", "MAX_FILE_SIZE": "'FALSE'" } - */ - @JsonProperty(value = "additionalFormatOptions") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map additionalFormatOptions; - - /** - * Get the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: - * key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }. - * - * @return the additionalCopyOptions value. - */ - public Map additionalCopyOptions() { - return this.additionalCopyOptions; - } - - /** - * Set the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: - * key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }. - * - * @param additionalCopyOptions the additionalCopyOptions value to set. - * @return the SnowflakeExportCopyCommand object itself. - */ - public SnowflakeExportCopyCommand withAdditionalCopyOptions(Map additionalCopyOptions) { - this.additionalCopyOptions = additionalCopyOptions; - return this; - } - - /** - * Get the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. - * Type: key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" }. - * - * @return the additionalFormatOptions value. - */ - public Map additionalFormatOptions() { - return this.additionalFormatOptions; - } - - /** - * Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. - * Type: key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" }. - * - * @param additionalFormatOptions the additionalFormatOptions value to set. - * @return the SnowflakeExportCopyCommand object itself. - */ - public SnowflakeExportCopyCommand withAdditionalFormatOptions(Map additionalFormatOptions) { - this.additionalFormatOptions = additionalFormatOptions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeImportCopyCommand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeImportCopyCommand.java deleted file mode 100644 index 018dfa6d24b7c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeImportCopyCommand.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** Snowflake import command settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SnowflakeImportCopyCommand") -@Fluent -public final class SnowflakeImportCopyCommand extends ImportSettings { - /* - * Additional copy options directly passed to snowflake Copy Command. Type: - * key value pairs (value should be string type) (or Expression with - * resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": - * "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } - */ - @JsonProperty(value = "additionalCopyOptions") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map additionalCopyOptions; - - /* - * Additional format options directly passed to snowflake Copy Command. - * Type: key value pairs (value should be string type) (or Expression with - * resultType object). Example: "additionalFormatOptions": { "FORCE": - * "TRUE", "LOAD_UNCERTAIN_FILES": "'FALSE'" } - */ - @JsonProperty(value = "additionalFormatOptions") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map additionalFormatOptions; - - /** - * Get the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: - * key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }. - * - * @return the additionalCopyOptions value. - */ - public Map additionalCopyOptions() { - return this.additionalCopyOptions; - } - - /** - * Set the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: - * key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }. - * - * @param additionalCopyOptions the additionalCopyOptions value to set. - * @return the SnowflakeImportCopyCommand object itself. - */ - public SnowflakeImportCopyCommand withAdditionalCopyOptions(Map additionalCopyOptions) { - this.additionalCopyOptions = additionalCopyOptions; - return this; - } - - /** - * Get the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. - * Type: key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": "'FALSE'" }. - * - * @return the additionalFormatOptions value. - */ - public Map additionalFormatOptions() { - return this.additionalFormatOptions; - } - - /** - * Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. - * Type: key value pairs (value should be string type) (or Expression with resultType object). Example: - * "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": "'FALSE'" }. - * - * @param additionalFormatOptions the additionalFormatOptions value to set. - * @return the SnowflakeImportCopyCommand object itself. - */ - public SnowflakeImportCopyCommand withAdditionalFormatOptions(Map additionalFormatOptions) { - this.additionalFormatOptions = additionalFormatOptions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java deleted file mode 100644 index d131aaa3bd237..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SnowflakeLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Snowflake linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Snowflake") -@Fluent -public final class SnowflakeLinkedService extends LinkedService { - /* - * Snowflake linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SnowflakeLinkedServiceTypeProperties innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Snowflake linked service properties. - * - * @return the innerTypeProperties value. - */ - private SnowflakeLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string of snowflake. Type: string, SecureString. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string of snowflake. Type: string, SecureString. - * - * @param connectionString the connectionString value to set. - * @return the SnowflakeLinkedService object itself. - */ - public SnowflakeLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the SnowflakeLinkedService object itself. - */ - public SnowflakeLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SnowflakeLinkedService object itself. - */ - public SnowflakeLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SnowflakeLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SnowflakeLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSink.java deleted file mode 100644 index 60da09a40d718..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSink.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity snowflake sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SnowflakeSink") -@Fluent -public final class SnowflakeSink extends CopySink { - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /* - * Snowflake import settings. - */ - @JsonProperty(value = "importSettings") - private SnowflakeImportCopyCommand importSettings; - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the SnowflakeSink object itself. - */ - public SnowflakeSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** - * Get the importSettings property: Snowflake import settings. - * - * @return the importSettings value. - */ - public SnowflakeImportCopyCommand importSettings() { - return this.importSettings; - } - - /** - * Set the importSettings property: Snowflake import settings. - * - * @param importSettings the importSettings value to set. - * @return the SnowflakeSink object itself. - */ - public SnowflakeSink withImportSettings(SnowflakeImportCopyCommand importSettings) { - this.importSettings = importSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (importSettings() != null) { - importSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSource.java deleted file mode 100644 index 304227ae2b423..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSource.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity snowflake source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SnowflakeSource") -@Fluent -public final class SnowflakeSource extends CopySource { - /* - * Snowflake Sql query. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * Snowflake export settings. - */ - @JsonProperty(value = "exportSettings") - private SnowflakeExportCopyCommand exportSettings; - - /** - * Get the query property: Snowflake Sql query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Snowflake Sql query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the SnowflakeSource object itself. - */ - public SnowflakeSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the exportSettings property: Snowflake export settings. - * - * @return the exportSettings value. - */ - public SnowflakeExportCopyCommand exportSettings() { - return this.exportSettings; - } - - /** - * Set the exportSettings property: Snowflake export settings. - * - * @param exportSettings the exportSettings value to set. - * @return the SnowflakeSource object itself. - */ - public SnowflakeSource withExportSettings(SnowflakeExportCopyCommand exportSettings) { - this.exportSettings = exportSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (exportSettings() != null) { - exportSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkAuthenticationType.java deleted file mode 100644 index 9f243940e18e4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkAuthenticationType.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SparkAuthenticationType. */ -public final class SparkAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for SparkAuthenticationType. */ - public static final SparkAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value Username for SparkAuthenticationType. */ - public static final SparkAuthenticationType USERNAME = fromString("Username"); - - /** Static value UsernameAndPassword for SparkAuthenticationType. */ - public static final SparkAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); - - /** Static value WindowsAzureHDInsightService for SparkAuthenticationType. */ - public static final SparkAuthenticationType WINDOWS_AZURE_HDINSIGHT_SERVICE = - fromString("WindowsAzureHDInsightService"); - - /** - * Creates or finds a SparkAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SparkAuthenticationType. - */ - @JsonCreator - public static SparkAuthenticationType fromString(String name) { - return fromString(name, SparkAuthenticationType.class); - } - - /** @return known SparkAuthenticationType values. */ - public static Collection values() { - return values(SparkAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java deleted file mode 100644 index 936a9c69b1028..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java +++ /dev/null @@ -1,419 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SparkLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Spark Server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Spark") -@Fluent -public final class SparkLinkedService extends LinkedService { - /* - * Spark Server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SparkLinkedServiceTypeProperties innerTypeProperties = new SparkLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Spark Server linked service properties. - * - * @return the innerTypeProperties value. - */ - private SparkLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SparkLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the host property: IP address or host name of the Spark server. - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: IP address or host name of the Spark server. - * - * @param host the host value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the port property: The TCP port that the Spark server uses to listen for client connections. - * - * @return the port value. - */ - public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); - } - - /** - * Set the port property: The TCP port that the Spark server uses to listen for client connections. - * - * @param port the port value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); - return this; - } - - /** - * Get the serverType property: The type of Spark server. - * - * @return the serverType value. - */ - public SparkServerType serverType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serverType(); - } - - /** - * Set the serverType property: The type of Spark server. - * - * @param serverType the serverType value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withServerType(SparkServerType serverType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServerType(serverType); - return this; - } - - /** - * Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @return the thriftTransportProtocol value. - */ - public SparkThriftTransportProtocol thriftTransportProtocol() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().thriftTransportProtocol(); - } - - /** - * Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @param thriftTransportProtocol the thriftTransportProtocol value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withThriftTransportProtocol(SparkThriftTransportProtocol thriftTransportProtocol) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withThriftTransportProtocol(thriftTransportProtocol); - return this; - } - - /** - * Get the authenticationType property: The authentication method used to access the Spark server. - * - * @return the authenticationType value. - */ - public SparkAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication method used to access the Spark server. - * - * @param authenticationType the authenticationType value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withAuthenticationType(SparkAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: The user name that you use to access Spark Server. - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The user name that you use to access Spark Server. - * - * @param username the username value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the Username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the Username field. - * - * @param password the password value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Spark server. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); - } - - /** - * Set the httpPath property: The partial URL corresponding to the Spark server. - * - * @param httpPath the httpPath value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SparkLinkedService object itself. - */ - public SparkLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SparkLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SparkLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java deleted file mode 100644 index 509fa86ed2d9c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SparkDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Spark Server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SparkObject") -@Fluent -public final class SparkObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private SparkDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private SparkDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the SparkObjectDataset object itself. - */ - public SparkObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Spark. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Spark. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the SparkObjectDataset object itself. - */ - public SparkObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SparkObjectDataset object itself. - */ - public SparkObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkServerType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkServerType.java deleted file mode 100644 index 439697913d700..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkServerType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SparkServerType. */ -public final class SparkServerType extends ExpandableStringEnum { - /** Static value SharkServer for SparkServerType. */ - public static final SparkServerType SHARK_SERVER = fromString("SharkServer"); - - /** Static value SharkServer2 for SparkServerType. */ - public static final SparkServerType SHARK_SERVER2 = fromString("SharkServer2"); - - /** Static value SparkThriftServer for SparkServerType. */ - public static final SparkServerType SPARK_THRIFT_SERVER = fromString("SparkThriftServer"); - - /** - * Creates or finds a SparkServerType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SparkServerType. - */ - @JsonCreator - public static SparkServerType fromString(String name) { - return fromString(name, SparkServerType.class); - } - - /** @return known SparkServerType values. */ - public static Collection values() { - return values(SparkServerType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkSource.java deleted file mode 100644 index ca3cd3846fa25..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Spark Server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SparkSource") -@Fluent -public final class SparkSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the SparkSource object itself. - */ - public SparkSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkThriftTransportProtocol.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkThriftTransportProtocol.java deleted file mode 100644 index d8e829700963f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkThriftTransportProtocol.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SparkThriftTransportProtocol. */ -public final class SparkThriftTransportProtocol extends ExpandableStringEnum { - /** Static value Binary for SparkThriftTransportProtocol. */ - public static final SparkThriftTransportProtocol BINARY = fromString("Binary"); - - /** Static value SASL for SparkThriftTransportProtocol. */ - public static final SparkThriftTransportProtocol SASL = fromString("SASL"); - - /** Static value HTTP for SparkThriftTransportProtocol. */ - public static final SparkThriftTransportProtocol HTTP = fromString("HTTP "); - - /** - * Creates or finds a SparkThriftTransportProtocol from its string representation. - * - * @param name a name to look for. - * @return the corresponding SparkThriftTransportProtocol. - */ - @JsonCreator - public static SparkThriftTransportProtocol fromString(String name) { - return fromString(name, SparkThriftTransportProtocol.class); - } - - /** @return known SparkThriftTransportProtocol values. */ - public static Collection values() { - return values(SparkThriftTransportProtocol.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlAlwaysEncryptedAkvAuthType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlAlwaysEncryptedAkvAuthType.java deleted file mode 100644 index afa51cc556a01..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlAlwaysEncryptedAkvAuthType.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SqlAlwaysEncryptedAkvAuthType. */ -public final class SqlAlwaysEncryptedAkvAuthType extends ExpandableStringEnum { - /** Static value ServicePrincipal for SqlAlwaysEncryptedAkvAuthType. */ - public static final SqlAlwaysEncryptedAkvAuthType SERVICE_PRINCIPAL = fromString("ServicePrincipal"); - - /** Static value ManagedIdentity for SqlAlwaysEncryptedAkvAuthType. */ - public static final SqlAlwaysEncryptedAkvAuthType MANAGED_IDENTITY = fromString("ManagedIdentity"); - - /** Static value UserAssignedManagedIdentity for SqlAlwaysEncryptedAkvAuthType. */ - public static final SqlAlwaysEncryptedAkvAuthType USER_ASSIGNED_MANAGED_IDENTITY = - fromString("UserAssignedManagedIdentity"); - - /** - * Creates or finds a SqlAlwaysEncryptedAkvAuthType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SqlAlwaysEncryptedAkvAuthType. - */ - @JsonCreator - public static SqlAlwaysEncryptedAkvAuthType fromString(String name) { - return fromString(name, SqlAlwaysEncryptedAkvAuthType.class); - } - - /** @return known SqlAlwaysEncryptedAkvAuthType values. */ - public static Collection values() { - return values(SqlAlwaysEncryptedAkvAuthType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlAlwaysEncryptedProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlAlwaysEncryptedProperties.java deleted file mode 100644 index e9e0612fafc1e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlAlwaysEncryptedProperties.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sql always encrypted properties. */ -@Fluent -public final class SqlAlwaysEncryptedProperties { - /* - * Sql always encrypted AKV authentication type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "alwaysEncryptedAkvAuthType", required = true) - private SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType; - - /* - * The client ID of the application in Azure Active Directory used for - * Azure Key Vault authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure Key - * Vault. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the alwaysEncryptedAkvAuthType property: Sql always encrypted AKV authentication type. Type: string (or - * Expression with resultType string). - * - * @return the alwaysEncryptedAkvAuthType value. - */ - public SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType() { - return this.alwaysEncryptedAkvAuthType; - } - - /** - * Set the alwaysEncryptedAkvAuthType property: Sql always encrypted AKV authentication type. Type: string (or - * Expression with resultType string). - * - * @param alwaysEncryptedAkvAuthType the alwaysEncryptedAkvAuthType value to set. - * @return the SqlAlwaysEncryptedProperties object itself. - */ - public SqlAlwaysEncryptedProperties withAlwaysEncryptedAkvAuthType( - SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType) { - this.alwaysEncryptedAkvAuthType = alwaysEncryptedAkvAuthType; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Azure - * Key Vault authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Azure - * Key Vault authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the SqlAlwaysEncryptedProperties object itself. - */ - public SqlAlwaysEncryptedProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure Key - * Vault. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure Key - * Vault. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the SqlAlwaysEncryptedProperties object itself. - */ - public SqlAlwaysEncryptedProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the SqlAlwaysEncryptedProperties object itself. - */ - public SqlAlwaysEncryptedProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (alwaysEncryptedAkvAuthType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property alwaysEncryptedAkvAuthType in model SqlAlwaysEncryptedProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SqlAlwaysEncryptedProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWSink.java deleted file mode 100644 index 6fdb5548bbaf0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWSink.java +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity SQL Data Warehouse sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlDWSink") -@Fluent -public final class SqlDWSink extends CopySink { - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /* - * Indicates to use PolyBase to copy data into SQL Data Warehouse when - * applicable. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "allowPolyBase") - private Object allowPolyBase; - - /* - * Specifies PolyBase-related settings when allowPolyBase is true. - */ - @JsonProperty(value = "polyBaseSettings") - private PolybaseSettings polyBaseSettings; - - /* - * Indicates to use Copy Command to copy data into SQL Data Warehouse. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "allowCopyCommand") - private Object allowCopyCommand; - - /* - * Specifies Copy Command related settings when allowCopyCommand is true. - */ - @JsonProperty(value = "copyCommandSettings") - private DWCopyCommandSettings copyCommandSettings; - - /* - * The option to handle sink table, such as autoCreate. For now only - * 'autoCreate' value is supported. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableOption") - private Object tableOption; - - /* - * Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "sqlWriterUseTableLock") - private Object sqlWriterUseTableLock; - - /* - * Write behavior when copying data into azure SQL DW. Type: - * SqlDWWriteBehaviorEnum (or Expression with resultType - * SqlDWWriteBehaviorEnum) - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /* - * SQL DW upsert settings. - */ - @JsonProperty(value = "upsertSettings") - private SqlDWUpsertSettings upsertSettings; - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** - * Get the allowPolyBase property: Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. - * Type: boolean (or Expression with resultType boolean). - * - * @return the allowPolyBase value. - */ - public Object allowPolyBase() { - return this.allowPolyBase; - } - - /** - * Set the allowPolyBase property: Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. - * Type: boolean (or Expression with resultType boolean). - * - * @param allowPolyBase the allowPolyBase value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withAllowPolyBase(Object allowPolyBase) { - this.allowPolyBase = allowPolyBase; - return this; - } - - /** - * Get the polyBaseSettings property: Specifies PolyBase-related settings when allowPolyBase is true. - * - * @return the polyBaseSettings value. - */ - public PolybaseSettings polyBaseSettings() { - return this.polyBaseSettings; - } - - /** - * Set the polyBaseSettings property: Specifies PolyBase-related settings when allowPolyBase is true. - * - * @param polyBaseSettings the polyBaseSettings value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withPolyBaseSettings(PolybaseSettings polyBaseSettings) { - this.polyBaseSettings = polyBaseSettings; - return this; - } - - /** - * Get the allowCopyCommand property: Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: - * boolean (or Expression with resultType boolean). - * - * @return the allowCopyCommand value. - */ - public Object allowCopyCommand() { - return this.allowCopyCommand; - } - - /** - * Set the allowCopyCommand property: Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: - * boolean (or Expression with resultType boolean). - * - * @param allowCopyCommand the allowCopyCommand value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withAllowCopyCommand(Object allowCopyCommand) { - this.allowCopyCommand = allowCopyCommand; - return this; - } - - /** - * Get the copyCommandSettings property: Specifies Copy Command related settings when allowCopyCommand is true. - * - * @return the copyCommandSettings value. - */ - public DWCopyCommandSettings copyCommandSettings() { - return this.copyCommandSettings; - } - - /** - * Set the copyCommandSettings property: Specifies Copy Command related settings when allowCopyCommand is true. - * - * @param copyCommandSettings the copyCommandSettings value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withCopyCommandSettings(DWCopyCommandSettings copyCommandSettings) { - this.copyCommandSettings = copyCommandSettings; - return this; - } - - /** - * Get the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @return the tableOption value. - */ - public Object tableOption() { - return this.tableOption; - } - - /** - * Set the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @param tableOption the tableOption value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withTableOption(Object tableOption) { - this.tableOption = tableOption; - return this; - } - - /** - * Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @return the sqlWriterUseTableLock value. - */ - public Object sqlWriterUseTableLock() { - return this.sqlWriterUseTableLock; - } - - /** - * Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @param sqlWriterUseTableLock the sqlWriterUseTableLock value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withSqlWriterUseTableLock(Object sqlWriterUseTableLock) { - this.sqlWriterUseTableLock = sqlWriterUseTableLock; - return this; - } - - /** - * Get the writeBehavior property: Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum - * (or Expression with resultType SqlDWWriteBehaviorEnum). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum - * (or Expression with resultType SqlDWWriteBehaviorEnum). - * - * @param writeBehavior the writeBehavior value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the upsertSettings property: SQL DW upsert settings. - * - * @return the upsertSettings value. - */ - public SqlDWUpsertSettings upsertSettings() { - return this.upsertSettings; - } - - /** - * Set the upsertSettings property: SQL DW upsert settings. - * - * @param upsertSettings the upsertSettings value to set. - * @return the SqlDWSink object itself. - */ - public SqlDWSink withUpsertSettings(SqlDWUpsertSettings upsertSettings) { - this.upsertSettings = upsertSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (polyBaseSettings() != null) { - polyBaseSettings().validate(); - } - if (copyCommandSettings() != null) { - copyCommandSettings().validate(); - } - if (upsertSettings() != null) { - upsertSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWSource.java deleted file mode 100644 index 6ce0f24c6b3bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWSource.java +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity SQL Data Warehouse source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlDWSource") -@Fluent -public final class SqlDWSource extends TabularSource { - /* - * SQL Data Warehouse reader query. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "sqlReaderQuery") - private Object sqlReaderQuery; - - /* - * Name of the stored procedure for a SQL Data Warehouse source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "sqlReaderStoredProcedureName") - private Object sqlReaderStoredProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression - * with resultType object), itemType: StoredProcedureParameter. - */ - @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; - - /* - * The partition mechanism that will be used for Sql read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Sql source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SqlPartitionSettings partitionSettings; - - /** - * Get the sqlReaderQuery property: SQL Data Warehouse reader query. Type: string (or Expression with resultType - * string). - * - * @return the sqlReaderQuery value. - */ - public Object sqlReaderQuery() { - return this.sqlReaderQuery; - } - - /** - * Set the sqlReaderQuery property: SQL Data Warehouse reader query. Type: string (or Expression with resultType - * string). - * - * @param sqlReaderQuery the sqlReaderQuery value to set. - * @return the SqlDWSource object itself. - */ - public SqlDWSource withSqlReaderQuery(Object sqlReaderQuery) { - this.sqlReaderQuery = sqlReaderQuery; - return this; - } - - /** - * Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Data Warehouse source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @return the sqlReaderStoredProcedureName value. - */ - public Object sqlReaderStoredProcedureName() { - return this.sqlReaderStoredProcedureName; - } - - /** - * Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Data Warehouse source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set. - * @return the SqlDWSource object itself. - */ - public SqlDWSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { - this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: - * StoredProcedureParameter. - * - * @return the storedProcedureParameters value. - */ - public Object storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: - * StoredProcedureParameter. - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlDWSource object itself. - */ - public SqlDWSource withStoredProcedureParameters(Object storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the SqlDWSource object itself. - */ - public SqlDWSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @return the partitionSettings value. - */ - public SqlPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the SqlDWSource object itself. - */ - public SqlDWSource withPartitionSettings(SqlPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlDWSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWUpsertSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWUpsertSettings.java deleted file mode 100644 index 509331da9ec94..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlDWUpsertSettings.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sql DW upsert option settings. */ -@Fluent -public final class SqlDWUpsertSettings { - /* - * Schema name for interim table. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "interimSchemaName") - private Object interimSchemaName; - - /* - * Key column names for unique row identification. Type: array of strings - * (or Expression with resultType array of strings). - */ - @JsonProperty(value = "keys") - private Object keys; - - /** - * Get the interimSchemaName property: Schema name for interim table. Type: string (or Expression with resultType - * string). - * - * @return the interimSchemaName value. - */ - public Object interimSchemaName() { - return this.interimSchemaName; - } - - /** - * Set the interimSchemaName property: Schema name for interim table. Type: string (or Expression with resultType - * string). - * - * @param interimSchemaName the interimSchemaName value to set. - * @return the SqlDWUpsertSettings object itself. - */ - public SqlDWUpsertSettings withInterimSchemaName(Object interimSchemaName) { - this.interimSchemaName = interimSchemaName; - return this; - } - - /** - * Get the keys property: Key column names for unique row identification. Type: array of strings (or Expression with - * resultType array of strings). - * - * @return the keys value. - */ - public Object keys() { - return this.keys; - } - - /** - * Set the keys property: Key column names for unique row identification. Type: array of strings (or Expression with - * resultType array of strings). - * - * @param keys the keys value to set. - * @return the SqlDWUpsertSettings object itself. - */ - public SqlDWUpsertSettings withKeys(Object keys) { - this.keys = keys; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISink.java deleted file mode 100644 index 0fc9b0f98d449..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISink.java +++ /dev/null @@ -1,337 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity Azure SQL Managed Instance sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlMISink") -@Fluent -public final class SqlMISink extends CopySink { - /* - * SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "sqlWriterStoredProcedureName") - private Object sqlWriterStoredProcedureName; - - /* - * SQL writer table type. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "sqlWriterTableType") - private Object sqlWriterTableType; - - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /* - * SQL stored procedure parameters. - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * The stored procedure parameter name of the table type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "storedProcedureTableTypeParameterName") - private Object storedProcedureTableTypeParameterName; - - /* - * The option to handle sink table, such as autoCreate. For now only - * 'autoCreate' value is supported. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableOption") - private Object tableOption; - - /* - * Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "sqlWriterUseTableLock") - private Object sqlWriterUseTableLock; - - /* - * White behavior when copying data into azure SQL MI. Type: - * SqlWriteBehaviorEnum (or Expression with resultType - * SqlWriteBehaviorEnum) - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /* - * SQL upsert settings. - */ - @JsonProperty(value = "upsertSettings") - private SqlUpsertSettings upsertSettings; - - /** - * Get the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @return the sqlWriterStoredProcedureName value. - */ - public Object sqlWriterStoredProcedureName() { - return this.sqlWriterStoredProcedureName; - } - - /** - * Set the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { - this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; - return this; - } - - /** - * Get the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @return the sqlWriterTableType value. - */ - public Object sqlWriterTableType() { - return this.sqlWriterTableType; - } - - /** - * Set the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @param sqlWriterTableType the sqlWriterTableType value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withSqlWriterTableType(Object sqlWriterTableType) { - this.sqlWriterTableType = sqlWriterTableType; - return this; - } - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** - * Get the storedProcedureParameters property: SQL stored procedure parameters. - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: SQL stored procedure parameters. - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withStoredProcedureParameters(Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @return the storedProcedureTableTypeParameterName value. - */ - public Object storedProcedureTableTypeParameterName() { - return this.storedProcedureTableTypeParameterName; - } - - /** - * Set the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { - this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - return this; - } - - /** - * Get the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @return the tableOption value. - */ - public Object tableOption() { - return this.tableOption; - } - - /** - * Set the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @param tableOption the tableOption value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withTableOption(Object tableOption) { - this.tableOption = tableOption; - return this; - } - - /** - * Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @return the sqlWriterUseTableLock value. - */ - public Object sqlWriterUseTableLock() { - return this.sqlWriterUseTableLock; - } - - /** - * Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @param sqlWriterUseTableLock the sqlWriterUseTableLock value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withSqlWriterUseTableLock(Object sqlWriterUseTableLock) { - this.sqlWriterUseTableLock = sqlWriterUseTableLock; - return this; - } - - /** - * Get the writeBehavior property: White behavior when copying data into azure SQL MI. Type: SqlWriteBehaviorEnum - * (or Expression with resultType SqlWriteBehaviorEnum). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: White behavior when copying data into azure SQL MI. Type: SqlWriteBehaviorEnum - * (or Expression with resultType SqlWriteBehaviorEnum). - * - * @param writeBehavior the writeBehavior value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the upsertSettings property: SQL upsert settings. - * - * @return the upsertSettings value. - */ - public SqlUpsertSettings upsertSettings() { - return this.upsertSettings; - } - - /** - * Set the upsertSettings property: SQL upsert settings. - * - * @param upsertSettings the upsertSettings value to set. - * @return the SqlMISink object itself. - */ - public SqlMISink withUpsertSettings(SqlUpsertSettings upsertSettings) { - this.upsertSettings = upsertSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (upsertSettings() != null) { - upsertSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISource.java deleted file mode 100644 index 81606b9620f43..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISource.java +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity Azure SQL Managed Instance source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlMISource") -@Fluent -public final class SqlMISource extends TabularSource { - /* - * SQL reader query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sqlReaderQuery") - private Object sqlReaderQuery; - - /* - * Name of the stored procedure for a Azure SQL Managed Instance source. - * This cannot be used at the same time as SqlReaderQuery. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "sqlReaderStoredProcedureName") - private Object sqlReaderStoredProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * Which additional types to produce. - */ - @JsonProperty(value = "produceAdditionalTypes") - private Object produceAdditionalTypes; - - /* - * The partition mechanism that will be used for Sql read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Sql source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SqlPartitionSettings partitionSettings; - - /** - * Get the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @return the sqlReaderQuery value. - */ - public Object sqlReaderQuery() { - return this.sqlReaderQuery; - } - - /** - * Set the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @param sqlReaderQuery the sqlReaderQuery value to set. - * @return the SqlMISource object itself. - */ - public SqlMISource withSqlReaderQuery(Object sqlReaderQuery) { - this.sqlReaderQuery = sqlReaderQuery; - return this; - } - - /** - * Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a Azure SQL Managed Instance - * source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType - * string). - * - * @return the sqlReaderStoredProcedureName value. - */ - public Object sqlReaderStoredProcedureName() { - return this.sqlReaderStoredProcedureName; - } - - /** - * Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a Azure SQL Managed Instance - * source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType - * string). - * - * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set. - * @return the SqlMISource object itself. - */ - public SqlMISource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { - this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlMISource object itself. - */ - public SqlMISource withStoredProcedureParameters(Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the produceAdditionalTypes property: Which additional types to produce. - * - * @return the produceAdditionalTypes value. - */ - public Object produceAdditionalTypes() { - return this.produceAdditionalTypes; - } - - /** - * Set the produceAdditionalTypes property: Which additional types to produce. - * - * @param produceAdditionalTypes the produceAdditionalTypes value to set. - * @return the SqlMISource object itself. - */ - public SqlMISource withProduceAdditionalTypes(Object produceAdditionalTypes) { - this.produceAdditionalTypes = produceAdditionalTypes; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the SqlMISource object itself. - */ - public SqlMISource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @return the partitionSettings value. - */ - public SqlPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the SqlMISource object itself. - */ - public SqlMISource withPartitionSettings(SqlPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlMISource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlPartitionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlPartitionSettings.java deleted file mode 100644 index de4a7be44caf2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlPartitionSettings.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The settings that will be leveraged for Sql source partitioning. */ -@Fluent -public final class SqlPartitionSettings { - /* - * The name of the column in integer or datetime type that will be used for - * proceeding partitioning. If not specified, the primary key of the table - * is auto-detected and used as the partition column. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "partitionColumnName") - private Object partitionColumnName; - - /* - * The maximum value of the partition column for partition range splitting. - * This value is used to decide the partition stride, not for filtering the - * rows in table. All rows in the table or query result will be partitioned - * and copied. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionUpperBound") - private Object partitionUpperBound; - - /* - * The minimum value of the partition column for partition range splitting. - * This value is used to decide the partition stride, not for filtering the - * rows in table. All rows in the table or query result will be partitioned - * and copied. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionLowerBound") - private Object partitionLowerBound; - - /** - * Get the partitionColumnName property: The name of the column in integer or datetime type that will be used for - * proceeding partitioning. If not specified, the primary key of the table is auto-detected and used as the - * partition column. Type: string (or Expression with resultType string). - * - * @return the partitionColumnName value. - */ - public Object partitionColumnName() { - return this.partitionColumnName; - } - - /** - * Set the partitionColumnName property: The name of the column in integer or datetime type that will be used for - * proceeding partitioning. If not specified, the primary key of the table is auto-detected and used as the - * partition column. Type: string (or Expression with resultType string). - * - * @param partitionColumnName the partitionColumnName value to set. - * @return the SqlPartitionSettings object itself. - */ - public SqlPartitionSettings withPartitionColumnName(Object partitionColumnName) { - this.partitionColumnName = partitionColumnName; - return this; - } - - /** - * Get the partitionUpperBound property: The maximum value of the partition column for partition range splitting. - * This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or - * query result will be partitioned and copied. Type: string (or Expression with resultType string). - * - * @return the partitionUpperBound value. - */ - public Object partitionUpperBound() { - return this.partitionUpperBound; - } - - /** - * Set the partitionUpperBound property: The maximum value of the partition column for partition range splitting. - * This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or - * query result will be partitioned and copied. Type: string (or Expression with resultType string). - * - * @param partitionUpperBound the partitionUpperBound value to set. - * @return the SqlPartitionSettings object itself. - */ - public SqlPartitionSettings withPartitionUpperBound(Object partitionUpperBound) { - this.partitionUpperBound = partitionUpperBound; - return this; - } - - /** - * Get the partitionLowerBound property: The minimum value of the partition column for partition range splitting. - * This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or - * query result will be partitioned and copied. Type: string (or Expression with resultType string). - * - * @return the partitionLowerBound value. - */ - public Object partitionLowerBound() { - return this.partitionLowerBound; - } - - /** - * Set the partitionLowerBound property: The minimum value of the partition column for partition range splitting. - * This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or - * query result will be partitioned and copied. Type: string (or Expression with resultType string). - * - * @param partitionLowerBound the partitionLowerBound value to set. - * @return the SqlPartitionSettings object itself. - */ - public SqlPartitionSettings withPartitionLowerBound(Object partitionLowerBound) { - this.partitionLowerBound = partitionLowerBound; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java deleted file mode 100644 index b63ab6a259c42..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SQL Server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlServer") -@Fluent -public final class SqlServerLinkedService extends LinkedService { - /* - * SQL Server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SqlServerLinkedServiceTypeProperties innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: SQL Server linked service properties. - * - * @return the innerTypeProperties value. - */ - private SqlServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the SqlServerLinkedService object itself. - */ - public SqlServerLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the SqlServerLinkedService object itself. - */ - public SqlServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The on-premises Windows authentication password. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The on-premises Windows authentication password. - * - * @param password the password value to set. - * @return the SqlServerLinkedService object itself. - */ - public SqlServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SqlServerLinkedService object itself. - */ - public SqlServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the SqlServerLinkedService object itself. - */ - public SqlServerLinkedService withAlwaysEncryptedSettings(SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SqlServerLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SqlServerLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSink.java deleted file mode 100644 index 8760f686c2480..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSink.java +++ /dev/null @@ -1,338 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity SQL server sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlServerSink") -@Fluent -public final class SqlServerSink extends CopySink { - /* - * SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "sqlWriterStoredProcedureName") - private Object sqlWriterStoredProcedureName; - - /* - * SQL writer table type. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "sqlWriterTableType") - private Object sqlWriterTableType; - - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /* - * SQL stored procedure parameters. - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * The stored procedure parameter name of the table type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "storedProcedureTableTypeParameterName") - private Object storedProcedureTableTypeParameterName; - - /* - * The option to handle sink table, such as autoCreate. For now only - * 'autoCreate' value is supported. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableOption") - private Object tableOption; - - /* - * Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "sqlWriterUseTableLock") - private Object sqlWriterUseTableLock; - - /* - * Write behavior when copying data into sql server. Type: - * SqlWriteBehaviorEnum (or Expression with resultType - * SqlWriteBehaviorEnum) - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /* - * SQL upsert settings. - */ - @JsonProperty(value = "upsertSettings") - private SqlUpsertSettings upsertSettings; - - /** - * Get the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @return the sqlWriterStoredProcedureName value. - */ - public Object sqlWriterStoredProcedureName() { - return this.sqlWriterStoredProcedureName; - } - - /** - * Set the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { - this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; - return this; - } - - /** - * Get the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @return the sqlWriterTableType value. - */ - public Object sqlWriterTableType() { - return this.sqlWriterTableType; - } - - /** - * Set the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @param sqlWriterTableType the sqlWriterTableType value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withSqlWriterTableType(Object sqlWriterTableType) { - this.sqlWriterTableType = sqlWriterTableType; - return this; - } - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** - * Get the storedProcedureParameters property: SQL stored procedure parameters. - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: SQL stored procedure parameters. - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withStoredProcedureParameters( - Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @return the storedProcedureTableTypeParameterName value. - */ - public Object storedProcedureTableTypeParameterName() { - return this.storedProcedureTableTypeParameterName; - } - - /** - * Set the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { - this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - return this; - } - - /** - * Get the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @return the tableOption value. - */ - public Object tableOption() { - return this.tableOption; - } - - /** - * Set the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @param tableOption the tableOption value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withTableOption(Object tableOption) { - this.tableOption = tableOption; - return this; - } - - /** - * Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @return the sqlWriterUseTableLock value. - */ - public Object sqlWriterUseTableLock() { - return this.sqlWriterUseTableLock; - } - - /** - * Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @param sqlWriterUseTableLock the sqlWriterUseTableLock value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withSqlWriterUseTableLock(Object sqlWriterUseTableLock) { - this.sqlWriterUseTableLock = sqlWriterUseTableLock; - return this; - } - - /** - * Get the writeBehavior property: Write behavior when copying data into sql server. Type: SqlWriteBehaviorEnum (or - * Expression with resultType SqlWriteBehaviorEnum). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Write behavior when copying data into sql server. Type: SqlWriteBehaviorEnum (or - * Expression with resultType SqlWriteBehaviorEnum). - * - * @param writeBehavior the writeBehavior value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the upsertSettings property: SQL upsert settings. - * - * @return the upsertSettings value. - */ - public SqlUpsertSettings upsertSettings() { - return this.upsertSettings; - } - - /** - * Set the upsertSettings property: SQL upsert settings. - * - * @param upsertSettings the upsertSettings value to set. - * @return the SqlServerSink object itself. - */ - public SqlServerSink withUpsertSettings(SqlUpsertSettings upsertSettings) { - this.upsertSettings = upsertSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (upsertSettings() != null) { - upsertSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSource.java deleted file mode 100644 index 57d33dfcfaffc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSource.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity SQL server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlServerSource") -@Fluent -public final class SqlServerSource extends TabularSource { - /* - * SQL reader query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sqlReaderQuery") - private Object sqlReaderQuery; - - /* - * Name of the stored procedure for a SQL Database source. This cannot be - * used at the same time as SqlReaderQuery. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sqlReaderStoredProcedureName") - private Object sqlReaderStoredProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * Which additional types to produce. - */ - @JsonProperty(value = "produceAdditionalTypes") - private Object produceAdditionalTypes; - - /* - * The partition mechanism that will be used for Sql read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Sql source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SqlPartitionSettings partitionSettings; - - /** - * Get the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @return the sqlReaderQuery value. - */ - public Object sqlReaderQuery() { - return this.sqlReaderQuery; - } - - /** - * Set the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @param sqlReaderQuery the sqlReaderQuery value to set. - * @return the SqlServerSource object itself. - */ - public SqlServerSource withSqlReaderQuery(Object sqlReaderQuery) { - this.sqlReaderQuery = sqlReaderQuery; - return this; - } - - /** - * Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @return the sqlReaderStoredProcedureName value. - */ - public Object sqlReaderStoredProcedureName() { - return this.sqlReaderStoredProcedureName; - } - - /** - * Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set. - * @return the SqlServerSource object itself. - */ - public SqlServerSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { - this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlServerSource object itself. - */ - public SqlServerSource withStoredProcedureParameters( - Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the produceAdditionalTypes property: Which additional types to produce. - * - * @return the produceAdditionalTypes value. - */ - public Object produceAdditionalTypes() { - return this.produceAdditionalTypes; - } - - /** - * Set the produceAdditionalTypes property: Which additional types to produce. - * - * @param produceAdditionalTypes the produceAdditionalTypes value to set. - * @return the SqlServerSource object itself. - */ - public SqlServerSource withProduceAdditionalTypes(Object produceAdditionalTypes) { - this.produceAdditionalTypes = produceAdditionalTypes; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the SqlServerSource object itself. - */ - public SqlServerSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @return the partitionSettings value. - */ - public SqlPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the SqlServerSource object itself. - */ - public SqlServerSource withPartitionSettings(SqlPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java deleted file mode 100644 index f7918ad4933d1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerStoredProcedureActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** SQL stored procedure activity type. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlServerStoredProcedure") -@Fluent -public final class SqlServerStoredProcedureActivity extends ExecutionActivity { - /* - * SQL stored procedure activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SqlServerStoredProcedureActivityTypeProperties innerTypeProperties = - new SqlServerStoredProcedureActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: SQL stored procedure activity properties. - * - * @return the innerTypeProperties value. - */ - private SqlServerStoredProcedureActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SqlServerStoredProcedureActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerStoredProcedureActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerStoredProcedureActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerStoredProcedureActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerStoredProcedureActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerStoredProcedureActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @return the storedProcedureName value. - */ - public Object storedProcedureName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storedProcedureName(); - } - - /** - * Set the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @param storedProcedureName the storedProcedureName value to set. - * @return the SqlServerStoredProcedureActivity object itself. - */ - public SqlServerStoredProcedureActivity withStoredProcedureName(Object storedProcedureName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerStoredProcedureActivityTypeProperties(); - } - this.innerTypeProperties().withStoredProcedureName(storedProcedureName); - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storedProcedureParameters(); - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlServerStoredProcedureActivity object itself. - */ - public SqlServerStoredProcedureActivity withStoredProcedureParameters( - Map storedProcedureParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerStoredProcedureActivityTypeProperties(); - } - this.innerTypeProperties().withStoredProcedureParameters(storedProcedureParameters); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SqlServerStoredProcedureActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SqlServerStoredProcedureActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java deleted file mode 100644 index ffcbcf44ccb01..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The on-premises SQL Server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlServerTable") -@Fluent -public final class SqlServerTableDataset extends Dataset { - /* - * On-premises SQL Server dataset properties. - */ - @JsonProperty(value = "typeProperties") - private SqlServerTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: On-premises SQL Server dataset properties. - * - * @return the innerTypeProperties value. - */ - private SqlServerTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the SqlServerTableDataset object itself. - */ - public SqlServerTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the SqlServerTableDataset object itself. - */ - public SqlServerTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the SqlServerTableDataset object itself. - */ - public SqlServerTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSink.java deleted file mode 100644 index 69b5734463abd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSink.java +++ /dev/null @@ -1,336 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity SQL sink. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlSink") -@Fluent -public final class SqlSink extends CopySink { - /* - * SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "sqlWriterStoredProcedureName") - private Object sqlWriterStoredProcedureName; - - /* - * SQL writer table type. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "sqlWriterTableType") - private Object sqlWriterTableType; - - /* - * SQL pre-copy script. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "preCopyScript") - private Object preCopyScript; - - /* - * SQL stored procedure parameters. - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * The stored procedure parameter name of the table type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "storedProcedureTableTypeParameterName") - private Object storedProcedureTableTypeParameterName; - - /* - * The option to handle sink table, such as autoCreate. For now only - * 'autoCreate' value is supported. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableOption") - private Object tableOption; - - /* - * Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "sqlWriterUseTableLock") - private Object sqlWriterUseTableLock; - - /* - * Write behavior when copying data into sql. Type: SqlWriteBehaviorEnum - * (or Expression with resultType SqlWriteBehaviorEnum) - */ - @JsonProperty(value = "writeBehavior") - private Object writeBehavior; - - /* - * SQL upsert settings. - */ - @JsonProperty(value = "upsertSettings") - private SqlUpsertSettings upsertSettings; - - /** - * Get the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @return the sqlWriterStoredProcedureName value. - */ - public Object sqlWriterStoredProcedureName() { - return this.sqlWriterStoredProcedureName; - } - - /** - * Set the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with - * resultType string). - * - * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set. - * @return the SqlSink object itself. - */ - public SqlSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { - this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; - return this; - } - - /** - * Get the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @return the sqlWriterTableType value. - */ - public Object sqlWriterTableType() { - return this.sqlWriterTableType; - } - - /** - * Set the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string). - * - * @param sqlWriterTableType the sqlWriterTableType value to set. - * @return the SqlSink object itself. - */ - public SqlSink withSqlWriterTableType(Object sqlWriterTableType) { - this.sqlWriterTableType = sqlWriterTableType; - return this; - } - - /** - * Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @return the preCopyScript value. - */ - public Object preCopyScript() { - return this.preCopyScript; - } - - /** - * Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string). - * - * @param preCopyScript the preCopyScript value to set. - * @return the SqlSink object itself. - */ - public SqlSink withPreCopyScript(Object preCopyScript) { - this.preCopyScript = preCopyScript; - return this; - } - - /** - * Get the storedProcedureParameters property: SQL stored procedure parameters. - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: SQL stored procedure parameters. - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlSink object itself. - */ - public SqlSink withStoredProcedureParameters(Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @return the storedProcedureTableTypeParameterName value. - */ - public Object storedProcedureTableTypeParameterName() { - return this.storedProcedureTableTypeParameterName; - } - - /** - * Set the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. - * Type: string (or Expression with resultType string). - * - * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set. - * @return the SqlSink object itself. - */ - public SqlSink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { - this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; - return this; - } - - /** - * Get the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @return the tableOption value. - */ - public Object tableOption() { - return this.tableOption; - } - - /** - * Set the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' - * value is supported. Type: string (or Expression with resultType string). - * - * @param tableOption the tableOption value to set. - * @return the SqlSink object itself. - */ - public SqlSink withTableOption(Object tableOption) { - this.tableOption = tableOption; - return this; - } - - /** - * Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @return the sqlWriterUseTableLock value. - */ - public Object sqlWriterUseTableLock() { - return this.sqlWriterUseTableLock; - } - - /** - * Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression - * with resultType boolean). - * - * @param sqlWriterUseTableLock the sqlWriterUseTableLock value to set. - * @return the SqlSink object itself. - */ - public SqlSink withSqlWriterUseTableLock(Object sqlWriterUseTableLock) { - this.sqlWriterUseTableLock = sqlWriterUseTableLock; - return this; - } - - /** - * Get the writeBehavior property: Write behavior when copying data into sql. Type: SqlWriteBehaviorEnum (or - * Expression with resultType SqlWriteBehaviorEnum). - * - * @return the writeBehavior value. - */ - public Object writeBehavior() { - return this.writeBehavior; - } - - /** - * Set the writeBehavior property: Write behavior when copying data into sql. Type: SqlWriteBehaviorEnum (or - * Expression with resultType SqlWriteBehaviorEnum). - * - * @param writeBehavior the writeBehavior value to set. - * @return the SqlSink object itself. - */ - public SqlSink withWriteBehavior(Object writeBehavior) { - this.writeBehavior = writeBehavior; - return this; - } - - /** - * Get the upsertSettings property: SQL upsert settings. - * - * @return the upsertSettings value. - */ - public SqlUpsertSettings upsertSettings() { - return this.upsertSettings; - } - - /** - * Set the upsertSettings property: SQL upsert settings. - * - * @param upsertSettings the upsertSettings value to set. - * @return the SqlSink object itself. - */ - public SqlSink withUpsertSettings(SqlUpsertSettings upsertSettings) { - this.upsertSettings = upsertSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSink withWriteBatchSize(Object writeBatchSize) { - super.withWriteBatchSize(writeBatchSize); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSink withWriteBatchTimeout(Object writeBatchTimeout) { - super.withWriteBatchTimeout(writeBatchTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSink withSinkRetryCount(Object sinkRetryCount) { - super.withSinkRetryCount(sinkRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSink withSinkRetryWait(Object sinkRetryWait) { - super.withSinkRetryWait(sinkRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSink withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSink withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (upsertSettings() != null) { - upsertSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSource.java deleted file mode 100644 index 095897c87bfc6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSource.java +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; - -/** A copy activity SQL source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SqlSource") -@Fluent -public final class SqlSource extends TabularSource { - /* - * SQL reader query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sqlReaderQuery") - private Object sqlReaderQuery; - - /* - * Name of the stored procedure for a SQL Database source. This cannot be - * used at the same time as SqlReaderQuery. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sqlReaderStoredProcedureName") - private Object sqlReaderStoredProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /* - * Specifies the transaction locking behavior for the SQL source. Allowed - * values: - * ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The - * default value is ReadCommitted. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "isolationLevel") - private Object isolationLevel; - - /* - * The partition mechanism that will be used for Sql read in parallel. - * Possible values include: "None", "PhysicalPartitionsOfTable", - * "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for Sql source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private SqlPartitionSettings partitionSettings; - - /** - * Get the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @return the sqlReaderQuery value. - */ - public Object sqlReaderQuery() { - return this.sqlReaderQuery; - } - - /** - * Set the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string). - * - * @param sqlReaderQuery the sqlReaderQuery value to set. - * @return the SqlSource object itself. - */ - public SqlSource withSqlReaderQuery(Object sqlReaderQuery) { - this.sqlReaderQuery = sqlReaderQuery; - return this; - } - - /** - * Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @return the sqlReaderStoredProcedureName value. - */ - public Object sqlReaderStoredProcedureName() { - return this.sqlReaderStoredProcedureName; - } - - /** - * Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This - * cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - * - * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set. - * @return the SqlSource object itself. - */ - public SqlSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { - this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlSource object itself. - */ - public SqlSource withStoredProcedureParameters(Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Get the isolationLevel property: Specifies the transaction locking behavior for the SQL source. Allowed values: - * ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: - * string (or Expression with resultType string). - * - * @return the isolationLevel value. - */ - public Object isolationLevel() { - return this.isolationLevel; - } - - /** - * Set the isolationLevel property: Specifies the transaction locking behavior for the SQL source. Allowed values: - * ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: - * string (or Expression with resultType string). - * - * @param isolationLevel the isolationLevel value to set. - * @return the SqlSource object itself. - */ - public SqlSource withIsolationLevel(Object isolationLevel) { - this.isolationLevel = isolationLevel; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible - * values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the SqlSource object itself. - */ - public SqlSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @return the partitionSettings value. - */ - public SqlPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the SqlSource object itself. - */ - public SqlSource withPartitionSettings(SqlPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlUpsertSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlUpsertSettings.java deleted file mode 100644 index 8b3153af45915..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlUpsertSettings.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sql upsert option settings. */ -@Fluent -public final class SqlUpsertSettings { - /* - * Specifies whether to use temp db for upsert interim table. Type: boolean - * (or Expression with resultType boolean). - */ - @JsonProperty(value = "useTempDB") - private Object useTempDB; - - /* - * Schema name for interim table. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "interimSchemaName") - private Object interimSchemaName; - - /* - * Key column names for unique row identification. Type: array of strings - * (or Expression with resultType array of strings). - */ - @JsonProperty(value = "keys") - private Object keys; - - /** - * Get the useTempDB property: Specifies whether to use temp db for upsert interim table. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useTempDB value. - */ - public Object useTempDB() { - return this.useTempDB; - } - - /** - * Set the useTempDB property: Specifies whether to use temp db for upsert interim table. Type: boolean (or - * Expression with resultType boolean). - * - * @param useTempDB the useTempDB value to set. - * @return the SqlUpsertSettings object itself. - */ - public SqlUpsertSettings withUseTempDB(Object useTempDB) { - this.useTempDB = useTempDB; - return this; - } - - /** - * Get the interimSchemaName property: Schema name for interim table. Type: string (or Expression with resultType - * string). - * - * @return the interimSchemaName value. - */ - public Object interimSchemaName() { - return this.interimSchemaName; - } - - /** - * Set the interimSchemaName property: Schema name for interim table. Type: string (or Expression with resultType - * string). - * - * @param interimSchemaName the interimSchemaName value to set. - * @return the SqlUpsertSettings object itself. - */ - public SqlUpsertSettings withInterimSchemaName(Object interimSchemaName) { - this.interimSchemaName = interimSchemaName; - return this; - } - - /** - * Get the keys property: Key column names for unique row identification. Type: array of strings (or Expression with - * resultType array of strings). - * - * @return the keys value. - */ - public Object keys() { - return this.keys; - } - - /** - * Set the keys property: Key column names for unique row identification. Type: array of strings (or Expression with - * resultType array of strings). - * - * @param keys the keys value to set. - * @return the SqlUpsertSettings object itself. - */ - public SqlUpsertSettings withKeys(Object keys) { - this.keys = keys; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java deleted file mode 100644 index 91cc444776d84..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java +++ /dev/null @@ -1,302 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SquareLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Square Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Square") -@Fluent -public final class SquareLinkedService extends LinkedService { - /* - * Square Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SquareLinkedServiceTypeProperties innerTypeProperties = new SquareLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Square Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private SquareLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SquareLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionProperties property: Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); - } - - /** - * Set the connectionProperties property: Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); - return this; - } - - /** - * Get the host property: The URL of the Square instance. (i.e. mystore.mysquare.com). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The URL of the Square instance. (i.e. mystore.mysquare.com). - * - * @param host the host value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the clientId property: The client ID associated with your Square application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); - } - - /** - * Set the clientId property: The client ID associated with your Square application. - * - * @param clientId the clientId value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your Square application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); - } - - /** - * Set the clientSecret property: The client secret associated with your Square application. - * - * @param clientSecret the clientSecret value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); - return this; - } - - /** - * Get the redirectUri property: The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500). - * - * @return the redirectUri value. - */ - public Object redirectUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().redirectUri(); - } - - /** - * Set the redirectUri property: The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500). - * - * @param redirectUri the redirectUri value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withRedirectUri(Object redirectUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRedirectUri(redirectUri); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SquareLinkedService object itself. - */ - public SquareLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SquareLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SquareLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java deleted file mode 100644 index 75b6bfb9eab46..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Square Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SquareObject") -@Fluent -public final class SquareObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SquareObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SquareObjectDataset object itself. - */ - public SquareObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareSource.java deleted file mode 100644 index 17523edf056da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Square Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SquareSource") -@Fluent -public final class SquareSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the SquareSource object itself. - */ - public SquareSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SquareSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisAccessCredential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisAccessCredential.java deleted file mode 100644 index 6e75a7bb5ed15..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisAccessCredential.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS access credential. */ -@Fluent -public final class SsisAccessCredential { - /* - * 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 SecretBase password; - - /** - * Get the domain property: Domain for windows authentication. - * - * @return the domain value. - */ - public Object domain() { - return this.domain; - } - - /** - * Set the domain property: Domain for windows authentication. - * - * @param domain the domain value to set. - * @return the SsisAccessCredential object itself. - */ - public SsisAccessCredential withDomain(Object domain) { - this.domain = domain; - return this; - } - - /** - * Get the username property: UseName for windows authentication. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: UseName for windows authentication. - * - * @param username the username value to set. - * @return the SsisAccessCredential object itself. - */ - public SsisAccessCredential withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for windows authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for windows authentication. - * - * @param password the password value to set. - * @return the SsisAccessCredential object itself. - */ - public SsisAccessCredential withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (domain() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property domain in model SsisAccessCredential")); - } - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property username in model SsisAccessCredential")); - } - if (password() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property password in model SsisAccessCredential")); - } else { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SsisAccessCredential.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisChildPackage.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisChildPackage.java deleted file mode 100644 index 8752c8e2d0ee5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisChildPackage.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS embedded child package. */ -@Fluent -public final class SsisChildPackage { - /* - * Path for embedded child package. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "packagePath", required = true) - private Object packagePath; - - /* - * Name for embedded child package. - */ - @JsonProperty(value = "packageName") - private String packageName; - - /* - * Content for embedded child package. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "packageContent", required = true) - private Object packageContent; - - /* - * Last modified date for embedded child package. - */ - @JsonProperty(value = "packageLastModifiedDate") - private String packageLastModifiedDate; - - /** - * Get the packagePath property: Path for embedded child package. Type: string (or Expression with resultType - * string). - * - * @return the packagePath value. - */ - public Object packagePath() { - return this.packagePath; - } - - /** - * Set the packagePath property: Path for embedded child package. Type: string (or Expression with resultType - * string). - * - * @param packagePath the packagePath value to set. - * @return the SsisChildPackage object itself. - */ - public SsisChildPackage withPackagePath(Object packagePath) { - this.packagePath = packagePath; - return this; - } - - /** - * Get the packageName property: Name for embedded child package. - * - * @return the packageName value. - */ - public String packageName() { - return this.packageName; - } - - /** - * Set the packageName property: Name for embedded child package. - * - * @param packageName the packageName value to set. - * @return the SsisChildPackage object itself. - */ - public SsisChildPackage withPackageName(String packageName) { - this.packageName = packageName; - return this; - } - - /** - * Get the packageContent property: Content for embedded child package. Type: string (or Expression with resultType - * string). - * - * @return the packageContent value. - */ - public Object packageContent() { - return this.packageContent; - } - - /** - * Set the packageContent property: Content for embedded child package. Type: string (or Expression with resultType - * string). - * - * @param packageContent the packageContent value to set. - * @return the SsisChildPackage object itself. - */ - public SsisChildPackage withPackageContent(Object packageContent) { - this.packageContent = packageContent; - return this; - } - - /** - * Get the packageLastModifiedDate property: Last modified date for embedded child package. - * - * @return the packageLastModifiedDate value. - */ - public String packageLastModifiedDate() { - return this.packageLastModifiedDate; - } - - /** - * Set the packageLastModifiedDate property: Last modified date for embedded child package. - * - * @param packageLastModifiedDate the packageLastModifiedDate value to set. - * @return the SsisChildPackage object itself. - */ - public SsisChildPackage withPackageLastModifiedDate(String packageLastModifiedDate) { - this.packageLastModifiedDate = packageLastModifiedDate; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (packagePath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property packagePath in model SsisChildPackage")); - } - if (packageContent() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property packageContent in model SsisChildPackage")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SsisChildPackage.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisEnvironment.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisEnvironment.java deleted file mode 100644 index 8aaa0b698d893..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisEnvironment.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Ssis environment. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Environment") -@Fluent -public final class SsisEnvironment extends SsisObjectMetadata { - /* - * Folder id which contains environment. - */ - @JsonProperty(value = "folderId") - private Long folderId; - - /* - * Variable in environment - */ - @JsonProperty(value = "variables") - private List variables; - - /** - * Get the folderId property: Folder id which contains environment. - * - * @return the folderId value. - */ - public Long folderId() { - return this.folderId; - } - - /** - * Set the folderId property: Folder id which contains environment. - * - * @param folderId the folderId value to set. - * @return the SsisEnvironment object itself. - */ - public SsisEnvironment withFolderId(Long folderId) { - this.folderId = folderId; - return this; - } - - /** - * Get the variables property: Variable in environment. - * - * @return the variables value. - */ - public List variables() { - return this.variables; - } - - /** - * Set the variables property: Variable in environment. - * - * @param variables the variables value to set. - * @return the SsisEnvironment object itself. - */ - public SsisEnvironment withVariables(List variables) { - this.variables = variables; - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisEnvironment withId(Long id) { - super.withId(id); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisEnvironment withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisEnvironment withDescription(String description) { - super.withDescription(description); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (variables() != null) { - variables().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisEnvironmentReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisEnvironmentReference.java deleted file mode 100644 index 2740704ade992..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisEnvironmentReference.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Ssis environment reference. */ -@Fluent -public final class SsisEnvironmentReference { - /* - * Environment reference id. - */ - @JsonProperty(value = "id") - private Long id; - - /* - * Environment folder name. - */ - @JsonProperty(value = "environmentFolderName") - private String environmentFolderName; - - /* - * Environment name. - */ - @JsonProperty(value = "environmentName") - private String environmentName; - - /* - * Reference type - */ - @JsonProperty(value = "referenceType") - private String referenceType; - - /** - * Get the id property: Environment reference id. - * - * @return the id value. - */ - public Long id() { - return this.id; - } - - /** - * Set the id property: Environment reference id. - * - * @param id the id value to set. - * @return the SsisEnvironmentReference object itself. - */ - public SsisEnvironmentReference withId(Long id) { - this.id = id; - return this; - } - - /** - * Get the environmentFolderName property: Environment folder name. - * - * @return the environmentFolderName value. - */ - public String environmentFolderName() { - return this.environmentFolderName; - } - - /** - * Set the environmentFolderName property: Environment folder name. - * - * @param environmentFolderName the environmentFolderName value to set. - * @return the SsisEnvironmentReference object itself. - */ - public SsisEnvironmentReference withEnvironmentFolderName(String environmentFolderName) { - this.environmentFolderName = environmentFolderName; - return this; - } - - /** - * Get the environmentName property: Environment name. - * - * @return the environmentName value. - */ - public String environmentName() { - return this.environmentName; - } - - /** - * Set the environmentName property: Environment name. - * - * @param environmentName the environmentName value to set. - * @return the SsisEnvironmentReference object itself. - */ - public SsisEnvironmentReference withEnvironmentName(String environmentName) { - this.environmentName = environmentName; - return this; - } - - /** - * Get the referenceType property: Reference type. - * - * @return the referenceType value. - */ - public String referenceType() { - return this.referenceType; - } - - /** - * Set the referenceType property: Reference type. - * - * @param referenceType the referenceType value to set. - * @return the SsisEnvironmentReference object itself. - */ - public SsisEnvironmentReference withReferenceType(String referenceType) { - this.referenceType = referenceType; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisExecutionCredential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisExecutionCredential.java deleted file mode 100644 index a7cb5c6bab7dc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisExecutionCredential.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS package execution credential. */ -@Fluent -public final 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 the domain property: Domain for windows authentication. - * - * @return the domain value. - */ - public Object domain() { - return this.domain; - } - - /** - * Set the domain property: 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 the username property: UseName for windows authentication. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: 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 the password property: Password for windows authentication. - * - * @return the password value. - */ - public SecureString password() { - return this.password; - } - - /** - * Set the password property: 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; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (domain() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property domain in model SsisExecutionCredential")); - } - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model SsisExecutionCredential")); - } - if (password() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property password in model SsisExecutionCredential")); - } else { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SsisExecutionCredential.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisExecutionParameter.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisExecutionParameter.java deleted file mode 100644 index ef53dc2f75010..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisExecutionParameter.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS execution parameter. */ -@Fluent -public final class SsisExecutionParameter { - /* - * SSIS package execution parameter value. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "value", required = true) - private Object value; - - /** - * Get the value property: SSIS package execution parameter value. Type: string (or Expression with resultType - * string). - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: SSIS package execution parameter value. Type: string (or Expression with resultType - * string). - * - * @param value the value value to set. - * @return the SsisExecutionParameter object itself. - */ - public SsisExecutionParameter withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model SsisExecutionParameter")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SsisExecutionParameter.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisFolder.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisFolder.java deleted file mode 100644 index 4b4d062396cb4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisFolder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Ssis folder. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Folder") -@Fluent -public final class SsisFolder extends SsisObjectMetadata { - /** {@inheritDoc} */ - @Override - public SsisFolder withId(Long id) { - super.withId(id); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisFolder withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisFolder withDescription(String description) { - super.withDescription(description); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocation.java deleted file mode 100644 index 29c8ffec3ba6d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocation.java +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SsisLogLocationTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS package execution log location. */ -@Fluent -public final class SsisLogLocation { - /* - * The SSIS package execution log path. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "logPath", required = true) - private Object logPath; - - /* - * The type of SSIS log location. - */ - @JsonProperty(value = "type", required = true) - private SsisLogLocationType type; - - /* - * SSIS package execution log location properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SsisLogLocationTypeProperties innerTypeProperties = new SsisLogLocationTypeProperties(); - - /** - * Get the logPath property: The SSIS package execution log path. Type: string (or Expression with resultType - * string). - * - * @return the logPath value. - */ - public Object logPath() { - return this.logPath; - } - - /** - * Set the logPath property: The SSIS package execution log path. Type: string (or Expression with resultType - * string). - * - * @param logPath the logPath value to set. - * @return the SsisLogLocation object itself. - */ - public SsisLogLocation withLogPath(Object logPath) { - this.logPath = logPath; - return this; - } - - /** - * Get the type property: The type of SSIS log location. - * - * @return the type value. - */ - public SsisLogLocationType type() { - return this.type; - } - - /** - * Set the type property: The type of SSIS log location. - * - * @param type the type value to set. - * @return the SsisLogLocation object itself. - */ - public SsisLogLocation withType(SsisLogLocationType type) { - this.type = type; - return this; - } - - /** - * Get the innerTypeProperties property: SSIS package execution log location properties. - * - * @return the innerTypeProperties value. - */ - private SsisLogLocationTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the accessCredential property: The package execution log access credential. - * - * @return the accessCredential value. - */ - public SsisAccessCredential accessCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessCredential(); - } - - /** - * Set the accessCredential property: The package execution log access credential. - * - * @param accessCredential the accessCredential value to set. - * @return the SsisLogLocation object itself. - */ - public SsisLogLocation withAccessCredential(SsisAccessCredential accessCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisLogLocationTypeProperties(); - } - this.innerTypeProperties().withAccessCredential(accessCredential); - return this; - } - - /** - * Get the logRefreshInterval property: Specifies the interval to refresh log. The default interval is 5 minutes. - * Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the logRefreshInterval value. - */ - public Object logRefreshInterval() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logRefreshInterval(); - } - - /** - * Set the logRefreshInterval property: Specifies the interval to refresh log. The default interval is 5 minutes. - * Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param logRefreshInterval the logRefreshInterval value to set. - * @return the SsisLogLocation object itself. - */ - public SsisLogLocation withLogRefreshInterval(Object logRefreshInterval) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisLogLocationTypeProperties(); - } - this.innerTypeProperties().withLogRefreshInterval(logRefreshInterval); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (logPath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property logPath in model SsisLogLocation")); - } - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model SsisLogLocation")); - } - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SsisLogLocation")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SsisLogLocation.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocationType.java deleted file mode 100644 index fe57d22714842..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocationType.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SsisLogLocationType. */ -public final class SsisLogLocationType extends ExpandableStringEnum { - /** Static value File for SsisLogLocationType. */ - public static final SsisLogLocationType FILE = fromString("File"); - - /** - * Creates or finds a SsisLogLocationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SsisLogLocationType. - */ - @JsonCreator - public static SsisLogLocationType fromString(String name) { - return fromString(name, SsisLogLocationType.class); - } - - /** @return known SsisLogLocationType values. */ - public static Collection values() { - return values(SsisLogLocationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadata.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadata.java deleted file mode 100644 index b489a401d1ec4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadata.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** SSIS object metadata. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = SsisObjectMetadata.class) -@JsonTypeName("SsisObjectMetadata") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Folder", value = SsisFolder.class), - @JsonSubTypes.Type(name = "Project", value = SsisProject.class), - @JsonSubTypes.Type(name = "Package", value = SsisPackage.class), - @JsonSubTypes.Type(name = "Environment", value = SsisEnvironment.class) -}) -@Fluent -public class SsisObjectMetadata { - /* - * Metadata id. - */ - @JsonProperty(value = "id") - private Long id; - - /* - * Metadata name. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Metadata description. - */ - @JsonProperty(value = "description") - private String description; - - /** - * Get the id property: Metadata id. - * - * @return the id value. - */ - public Long id() { - return this.id; - } - - /** - * Set the id property: Metadata id. - * - * @param id the id value to set. - * @return the SsisObjectMetadata object itself. - */ - public SsisObjectMetadata withId(Long id) { - this.id = id; - return this; - } - - /** - * Get the name property: Metadata name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Metadata name. - * - * @param name the name value to set. - * @return the SsisObjectMetadata object itself. - */ - public SsisObjectMetadata withName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Metadata description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Metadata description. - * - * @param description the description value to set. - * @return the SsisObjectMetadata object itself. - */ - public SsisObjectMetadata withDescription(String description) { - this.description = description; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataListResponse.java deleted file mode 100644 index f46dd62330067..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataListResponse.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import java.util.List; - -/** An immutable client-side representation of SsisObjectMetadataListResponse. */ -public interface SsisObjectMetadataListResponse { - /** - * Gets the value property: List of SSIS object metadata. - * - * @return the value value. - */ - List value(); - - /** - * Gets the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - String nextLink(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner object. - * - * @return the inner object. - */ - SsisObjectMetadataListResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataStatusResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataStatusResponse.java deleted file mode 100644 index b88a18f1b5ee2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataStatusResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; - -/** An immutable client-side representation of SsisObjectMetadataStatusResponse. */ -public interface SsisObjectMetadataStatusResponse { - /** - * Gets the status property: The status of the operation. - * - * @return the status value. - */ - String status(); - - /** - * Gets the name property: The operation name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the properties property: The operation properties. - * - * @return the properties value. - */ - String properties(); - - /** - * Gets the error property: The operation error message. - * - * @return the error value. - */ - String error(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner object. - * - * @return the inner object. - */ - SsisObjectMetadataStatusResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataType.java deleted file mode 100644 index 1bf3f99204d17..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisObjectMetadataType.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SsisObjectMetadataType. */ -public final class SsisObjectMetadataType extends ExpandableStringEnum { - /** Static value Folder for SsisObjectMetadataType. */ - public static final SsisObjectMetadataType FOLDER = fromString("Folder"); - - /** Static value Project for SsisObjectMetadataType. */ - public static final SsisObjectMetadataType PROJECT = fromString("Project"); - - /** Static value Package for SsisObjectMetadataType. */ - public static final SsisObjectMetadataType PACKAGE = fromString("Package"); - - /** Static value Environment for SsisObjectMetadataType. */ - public static final SsisObjectMetadataType ENVIRONMENT = fromString("Environment"); - - /** - * Creates or finds a SsisObjectMetadataType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SsisObjectMetadataType. - */ - @JsonCreator - public static SsisObjectMetadataType fromString(String name) { - return fromString(name, SsisObjectMetadataType.class); - } - - /** @return known SsisObjectMetadataType values. */ - public static Collection values() { - return values(SsisObjectMetadataType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackage.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackage.java deleted file mode 100644 index d71ee0cd7168b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackage.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Ssis Package. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Package") -@Fluent -public final class SsisPackage extends SsisObjectMetadata { - /* - * Folder id which contains package. - */ - @JsonProperty(value = "folderId") - private Long folderId; - - /* - * Project version which contains package. - */ - @JsonProperty(value = "projectVersion") - private Long projectVersion; - - /* - * Project id which contains package. - */ - @JsonProperty(value = "projectId") - private Long projectId; - - /* - * Parameters in package - */ - @JsonProperty(value = "parameters") - private List parameters; - - /** - * Get the folderId property: Folder id which contains package. - * - * @return the folderId value. - */ - public Long folderId() { - return this.folderId; - } - - /** - * Set the folderId property: Folder id which contains package. - * - * @param folderId the folderId value to set. - * @return the SsisPackage object itself. - */ - public SsisPackage withFolderId(Long folderId) { - this.folderId = folderId; - return this; - } - - /** - * Get the projectVersion property: Project version which contains package. - * - * @return the projectVersion value. - */ - public Long projectVersion() { - return this.projectVersion; - } - - /** - * Set the projectVersion property: Project version which contains package. - * - * @param projectVersion the projectVersion value to set. - * @return the SsisPackage object itself. - */ - public SsisPackage withProjectVersion(Long projectVersion) { - this.projectVersion = projectVersion; - return this; - } - - /** - * Get the projectId property: Project id which contains package. - * - * @return the projectId value. - */ - public Long projectId() { - return this.projectId; - } - - /** - * Set the projectId property: Project id which contains package. - * - * @param projectId the projectId value to set. - * @return the SsisPackage object itself. - */ - public SsisPackage withProjectId(Long projectId) { - this.projectId = projectId; - return this; - } - - /** - * Get the parameters property: Parameters in package. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters in package. - * - * @param parameters the parameters value to set. - * @return the SsisPackage object itself. - */ - public SsisPackage withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisPackage withId(Long id) { - super.withId(id); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisPackage withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisPackage withDescription(String description) { - super.withDescription(description); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (parameters() != null) { - parameters().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocation.java deleted file mode 100644 index 41b63758acf8a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocation.java +++ /dev/null @@ -1,281 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SsisPackageLocationTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** SSIS package location. */ -@Fluent -public final class SsisPackageLocation { - /* - * The SSIS package path. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "packagePath") - private Object packagePath; - - /* - * The type of SSIS package location. - */ - @JsonProperty(value = "type") - private SsisPackageLocationType type; - - /* - * SSIS package location properties. - */ - @JsonProperty(value = "typeProperties") - private SsisPackageLocationTypeProperties innerTypeProperties; - - /** - * Get the packagePath property: The SSIS package path. Type: string (or Expression with resultType string). - * - * @return the packagePath value. - */ - public Object packagePath() { - return this.packagePath; - } - - /** - * Set the packagePath property: 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(Object packagePath) { - this.packagePath = packagePath; - return this; - } - - /** - * Get the type property: The type of SSIS package location. - * - * @return the type value. - */ - public SsisPackageLocationType type() { - return this.type; - } - - /** - * Set the type property: The type of SSIS package location. - * - * @param type the type value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withType(SsisPackageLocationType type) { - this.type = type; - return this; - } - - /** - * Get the innerTypeProperties property: SSIS package location properties. - * - * @return the innerTypeProperties value. - */ - private SsisPackageLocationTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** - * Get the packagePassword property: Password of the package. - * - * @return the packagePassword value. - */ - public SecretBase packagePassword() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packagePassword(); - } - - /** - * Set the packagePassword property: Password of the package. - * - * @param packagePassword the packagePassword value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withPackagePassword(SecretBase packagePassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackagePassword(packagePassword); - return this; - } - - /** - * Get the accessCredential property: The package access credential. - * - * @return the accessCredential value. - */ - public SsisAccessCredential accessCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessCredential(); - } - - /** - * Set the accessCredential property: The package access credential. - * - * @param accessCredential the accessCredential value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withAccessCredential(SsisAccessCredential accessCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withAccessCredential(accessCredential); - return this; - } - - /** - * Get the configurationPath property: The configuration file of the package execution. Type: string (or Expression - * with resultType string). - * - * @return the configurationPath value. - */ - public Object configurationPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().configurationPath(); - } - - /** - * Set the configurationPath property: The configuration file of the package execution. Type: string (or Expression - * with resultType string). - * - * @param configurationPath the configurationPath value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withConfigurationPath(Object configurationPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withConfigurationPath(configurationPath); - return this; - } - - /** - * Get the configurationAccessCredential property: The configuration file access credential. - * - * @return the configurationAccessCredential value. - */ - public SsisAccessCredential configurationAccessCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().configurationAccessCredential(); - } - - /** - * Set the configurationAccessCredential property: The configuration file access credential. - * - * @param configurationAccessCredential the configurationAccessCredential value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withConfigurationAccessCredential(SsisAccessCredential configurationAccessCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withConfigurationAccessCredential(configurationAccessCredential); - return this; - } - - /** - * Get the packageName property: The package name. - * - * @return the packageName value. - */ - public String packageName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageName(); - } - - /** - * Set the packageName property: The package name. - * - * @param packageName the packageName value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withPackageName(String packageName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackageName(packageName); - return this; - } - - /** - * Get the packageContent property: The embedded package content. Type: string (or Expression with resultType - * string). - * - * @return the packageContent value. - */ - public Object packageContent() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageContent(); - } - - /** - * Set the packageContent property: The embedded package content. Type: string (or Expression with resultType - * string). - * - * @param packageContent the packageContent value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withPackageContent(Object packageContent) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackageContent(packageContent); - return this; - } - - /** - * Get the packageLastModifiedDate property: The embedded package last modified date. - * - * @return the packageLastModifiedDate value. - */ - public String packageLastModifiedDate() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageLastModifiedDate(); - } - - /** - * Set the packageLastModifiedDate property: The embedded package last modified date. - * - * @param packageLastModifiedDate the packageLastModifiedDate value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withPackageLastModifiedDate(String packageLastModifiedDate) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackageLastModifiedDate(packageLastModifiedDate); - return this; - } - - /** - * Get the childPackages property: The embedded child package list. - * - * @return the childPackages value. - */ - public List childPackages() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().childPackages(); - } - - /** - * Set the childPackages property: The embedded child package list. - * - * @param childPackages the childPackages value to set. - * @return the SsisPackageLocation object itself. - */ - public SsisPackageLocation withChildPackages(List childPackages) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withChildPackages(childPackages); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocationType.java deleted file mode 100644 index 310eeb97363ee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocationType.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SsisPackageLocationType. */ -public final class SsisPackageLocationType extends ExpandableStringEnum { - /** Static value SSISDB for SsisPackageLocationType. */ - public static final SsisPackageLocationType SSISDB = fromString("SSISDB"); - - /** Static value File for SsisPackageLocationType. */ - public static final SsisPackageLocationType FILE = fromString("File"); - - /** Static value InlinePackage for SsisPackageLocationType. */ - public static final SsisPackageLocationType INLINE_PACKAGE = fromString("InlinePackage"); - - /** Static value PackageStore for SsisPackageLocationType. */ - public static final SsisPackageLocationType PACKAGE_STORE = fromString("PackageStore"); - - /** - * Creates or finds a SsisPackageLocationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SsisPackageLocationType. - */ - @JsonCreator - public static SsisPackageLocationType fromString(String name) { - return fromString(name, SsisPackageLocationType.class); - } - - /** @return known SsisPackageLocationType values. */ - public static Collection values() { - return values(SsisPackageLocationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisParameter.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisParameter.java deleted file mode 100644 index 61434d5480858..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisParameter.java +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Ssis parameter. */ -@Fluent -public final class SsisParameter { - /* - * Parameter id. - */ - @JsonProperty(value = "id") - private Long id; - - /* - * Parameter name. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Parameter description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Parameter type. - */ - @JsonProperty(value = "dataType") - private String dataType; - - /* - * Whether parameter is required. - */ - @JsonProperty(value = "required") - private Boolean required; - - /* - * Whether parameter is sensitive. - */ - @JsonProperty(value = "sensitive") - private Boolean sensitive; - - /* - * Design default value of parameter. - */ - @JsonProperty(value = "designDefaultValue") - private String designDefaultValue; - - /* - * Default value of parameter. - */ - @JsonProperty(value = "defaultValue") - private String defaultValue; - - /* - * Default sensitive value of parameter. - */ - @JsonProperty(value = "sensitiveDefaultValue") - private String sensitiveDefaultValue; - - /* - * Parameter value type. - */ - @JsonProperty(value = "valueType") - private String valueType; - - /* - * Parameter value set. - */ - @JsonProperty(value = "valueSet") - private Boolean valueSet; - - /* - * Parameter reference variable. - */ - @JsonProperty(value = "variable") - private String variable; - - /** - * Get the id property: Parameter id. - * - * @return the id value. - */ - public Long id() { - return this.id; - } - - /** - * Set the id property: Parameter id. - * - * @param id the id value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withId(Long id) { - this.id = id; - return this; - } - - /** - * Get the name property: Parameter name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Parameter name. - * - * @param name the name value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Parameter description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Parameter description. - * - * @param description the description value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the dataType property: Parameter type. - * - * @return the dataType value. - */ - public String dataType() { - return this.dataType; - } - - /** - * Set the dataType property: Parameter type. - * - * @param dataType the dataType value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withDataType(String dataType) { - this.dataType = dataType; - return this; - } - - /** - * Get the required property: Whether parameter is required. - * - * @return the required value. - */ - public Boolean required() { - return this.required; - } - - /** - * Set the required property: Whether parameter is required. - * - * @param required the required value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withRequired(Boolean required) { - this.required = required; - return this; - } - - /** - * Get the sensitive property: Whether parameter is sensitive. - * - * @return the sensitive value. - */ - public Boolean sensitive() { - return this.sensitive; - } - - /** - * Set the sensitive property: Whether parameter is sensitive. - * - * @param sensitive the sensitive value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withSensitive(Boolean sensitive) { - this.sensitive = sensitive; - return this; - } - - /** - * Get the designDefaultValue property: Design default value of parameter. - * - * @return the designDefaultValue value. - */ - public String designDefaultValue() { - return this.designDefaultValue; - } - - /** - * Set the designDefaultValue property: Design default value of parameter. - * - * @param designDefaultValue the designDefaultValue value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withDesignDefaultValue(String designDefaultValue) { - this.designDefaultValue = designDefaultValue; - return this; - } - - /** - * Get the defaultValue property: Default value of parameter. - * - * @return the defaultValue value. - */ - public String defaultValue() { - return this.defaultValue; - } - - /** - * Set the defaultValue property: Default value of parameter. - * - * @param defaultValue the defaultValue value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withDefaultValue(String defaultValue) { - this.defaultValue = defaultValue; - return this; - } - - /** - * Get the sensitiveDefaultValue property: Default sensitive value of parameter. - * - * @return the sensitiveDefaultValue value. - */ - public String sensitiveDefaultValue() { - return this.sensitiveDefaultValue; - } - - /** - * Set the sensitiveDefaultValue property: Default sensitive value of parameter. - * - * @param sensitiveDefaultValue the sensitiveDefaultValue value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withSensitiveDefaultValue(String sensitiveDefaultValue) { - this.sensitiveDefaultValue = sensitiveDefaultValue; - return this; - } - - /** - * Get the valueType property: Parameter value type. - * - * @return the valueType value. - */ - public String valueType() { - return this.valueType; - } - - /** - * Set the valueType property: Parameter value type. - * - * @param valueType the valueType value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withValueType(String valueType) { - this.valueType = valueType; - return this; - } - - /** - * Get the valueSet property: Parameter value set. - * - * @return the valueSet value. - */ - public Boolean valueSet() { - return this.valueSet; - } - - /** - * Set the valueSet property: Parameter value set. - * - * @param valueSet the valueSet value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withValueSet(Boolean valueSet) { - this.valueSet = valueSet; - return this; - } - - /** - * Get the variable property: Parameter reference variable. - * - * @return the variable value. - */ - public String variable() { - return this.variable; - } - - /** - * Set the variable property: Parameter reference variable. - * - * @param variable the variable value to set. - * @return the SsisParameter object itself. - */ - public SsisParameter withVariable(String variable) { - this.variable = variable; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisProject.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisProject.java deleted file mode 100644 index e95e6f5f1ec81..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisProject.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Ssis project. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Project") -@Fluent -public final class SsisProject extends SsisObjectMetadata { - /* - * Folder id which contains project. - */ - @JsonProperty(value = "folderId") - private Long folderId; - - /* - * Project version. - */ - @JsonProperty(value = "version") - private Long version; - - /* - * Environment reference in project - */ - @JsonProperty(value = "environmentRefs") - private List environmentRefs; - - /* - * Parameters in project - */ - @JsonProperty(value = "parameters") - private List parameters; - - /** - * Get the folderId property: Folder id which contains project. - * - * @return the folderId value. - */ - public Long folderId() { - return this.folderId; - } - - /** - * Set the folderId property: Folder id which contains project. - * - * @param folderId the folderId value to set. - * @return the SsisProject object itself. - */ - public SsisProject withFolderId(Long folderId) { - this.folderId = folderId; - return this; - } - - /** - * Get the version property: Project version. - * - * @return the version value. - */ - public Long version() { - return this.version; - } - - /** - * Set the version property: Project version. - * - * @param version the version value to set. - * @return the SsisProject object itself. - */ - public SsisProject withVersion(Long version) { - this.version = version; - return this; - } - - /** - * Get the environmentRefs property: Environment reference in project. - * - * @return the environmentRefs value. - */ - public List environmentRefs() { - return this.environmentRefs; - } - - /** - * Set the environmentRefs property: Environment reference in project. - * - * @param environmentRefs the environmentRefs value to set. - * @return the SsisProject object itself. - */ - public SsisProject withEnvironmentRefs(List environmentRefs) { - this.environmentRefs = environmentRefs; - return this; - } - - /** - * Get the parameters property: Parameters in project. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters in project. - * - * @param parameters the parameters value to set. - * @return the SsisProject object itself. - */ - public SsisProject withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisProject withId(Long id) { - super.withId(id); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisProject withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SsisProject withDescription(String description) { - super.withDescription(description); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (environmentRefs() != null) { - environmentRefs().forEach(e -> e.validate()); - } - if (parameters() != null) { - parameters().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPropertyOverride.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPropertyOverride.java deleted file mode 100644 index 742f133d93b29..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPropertyOverride.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS property override. */ -@Fluent -public final class SsisPropertyOverride { - /* - * SSIS package property override value. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "value", required = true) - private Object value; - - /* - * Whether SSIS package property override value is sensitive data. Value - * will be encrypted in SSISDB if it is true - */ - @JsonProperty(value = "isSensitive") - private Boolean isSensitive; - - /** - * Get the value property: SSIS package property override value. Type: string (or Expression with resultType - * string). - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: SSIS package property override value. Type: string (or Expression with resultType - * string). - * - * @param value the value value to set. - * @return the SsisPropertyOverride object itself. - */ - public SsisPropertyOverride withValue(Object value) { - this.value = value; - return this; - } - - /** - * Get the isSensitive property: Whether SSIS package property override value is sensitive data. Value will be - * encrypted in SSISDB if it is true. - * - * @return the isSensitive value. - */ - public Boolean isSensitive() { - return this.isSensitive; - } - - /** - * Set the isSensitive property: Whether SSIS package property override value is sensitive data. Value will be - * encrypted in SSISDB if it is true. - * - * @param isSensitive the isSensitive value to set. - * @return the SsisPropertyOverride object itself. - */ - public SsisPropertyOverride withIsSensitive(Boolean isSensitive) { - this.isSensitive = isSensitive; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model SsisPropertyOverride")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SsisPropertyOverride.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisVariable.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisVariable.java deleted file mode 100644 index ca19a7b37731b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisVariable.java +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Ssis variable. */ -@Fluent -public final class SsisVariable { - /* - * Variable id. - */ - @JsonProperty(value = "id") - private Long id; - - /* - * Variable name. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Variable description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Variable type. - */ - @JsonProperty(value = "dataType") - private String dataType; - - /* - * Whether variable is sensitive. - */ - @JsonProperty(value = "sensitive") - private Boolean sensitive; - - /* - * Variable value. - */ - @JsonProperty(value = "value") - private String value; - - /* - * Variable sensitive value. - */ - @JsonProperty(value = "sensitiveValue") - private String sensitiveValue; - - /** - * Get the id property: Variable id. - * - * @return the id value. - */ - public Long id() { - return this.id; - } - - /** - * Set the id property: Variable id. - * - * @param id the id value to set. - * @return the SsisVariable object itself. - */ - public SsisVariable withId(Long id) { - this.id = id; - return this; - } - - /** - * Get the name property: Variable name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Variable name. - * - * @param name the name value to set. - * @return the SsisVariable object itself. - */ - public SsisVariable withName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Variable description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Variable description. - * - * @param description the description value to set. - * @return the SsisVariable object itself. - */ - public SsisVariable withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the dataType property: Variable type. - * - * @return the dataType value. - */ - public String dataType() { - return this.dataType; - } - - /** - * Set the dataType property: Variable type. - * - * @param dataType the dataType value to set. - * @return the SsisVariable object itself. - */ - public SsisVariable withDataType(String dataType) { - this.dataType = dataType; - return this; - } - - /** - * Get the sensitive property: Whether variable is sensitive. - * - * @return the sensitive value. - */ - public Boolean sensitive() { - return this.sensitive; - } - - /** - * Set the sensitive property: Whether variable is sensitive. - * - * @param sensitive the sensitive value to set. - * @return the SsisVariable object itself. - */ - public SsisVariable withSensitive(Boolean sensitive) { - this.sensitive = sensitive; - return this; - } - - /** - * Get the value property: Variable value. - * - * @return the value value. - */ - public String value() { - return this.value; - } - - /** - * Set the value property: Variable value. - * - * @param value the value value to set. - * @return the SsisVariable object itself. - */ - public SsisVariable withValue(String value) { - this.value = value; - return this; - } - - /** - * Get the sensitiveValue property: Variable sensitive value. - * - * @return the sensitiveValue value. - */ - public String sensitiveValue() { - return this.sensitiveValue; - } - - /** - * Set the sensitiveValue property: Variable sensitive value. - * - * @param sensitiveValue the sensitiveValue value to set. - * @return the SsisVariable object itself. - */ - public SsisVariable withSensitiveValue(String sensitiveValue) { - this.sensitiveValue = sensitiveValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StagingSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StagingSettings.java deleted file mode 100644 index eca21833c7f01..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StagingSettings.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** Staging settings. */ -@Fluent -public final class StagingSettings { - /* - * Staging linked service reference. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * The path to storage for storing the interim data. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "path") - private Object path; - - /* - * Specifies whether to use compression when copying data via an interim - * staging. Default value is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "enableCompression") - private Object enableCompression; - - /* - * Staging settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the linkedServiceName property: Staging linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Staging linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the StagingSettings object itself. - */ - public StagingSettings withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the path property: The path to storage for storing the interim data. Type: string (or Expression with - * resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path to storage for storing the interim data. Type: string (or Expression with - * resultType string). - * - * @param path the path value to set. - * @return the StagingSettings object itself. - */ - public StagingSettings withPath(Object path) { - this.path = path; - return this; - } - - /** - * Get the enableCompression property: Specifies whether to use compression when copying data via an interim - * staging. Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the enableCompression value. - */ - public Object enableCompression() { - return this.enableCompression; - } - - /** - * Set the enableCompression property: Specifies whether to use compression when copying data via an interim - * staging. Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param enableCompression the enableCompression value to set. - * @return the StagingSettings object itself. - */ - public StagingSettings withEnableCompression(Object enableCompression) { - this.enableCompression = enableCompression; - return this; - } - - /** - * Get the additionalProperties property: Staging settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Staging settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the StagingSettings object itself. - */ - public StagingSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedServiceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model StagingSettings")); - } else { - linkedServiceName().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(StagingSettings.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreReadSettings.java deleted file mode 100644 index a465aa384b334..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreReadSettings.java +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Connector read setting. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = StoreReadSettings.class) -@JsonTypeName("StoreReadSettings") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "AzureBlobStorageReadSettings", value = AzureBlobStorageReadSettings.class), - @JsonSubTypes.Type(name = "AzureBlobFSReadSettings", value = AzureBlobFSReadSettings.class), - @JsonSubTypes.Type(name = "AzureDataLakeStoreReadSettings", value = AzureDataLakeStoreReadSettings.class), - @JsonSubTypes.Type(name = "AmazonS3ReadSettings", value = AmazonS3ReadSettings.class), - @JsonSubTypes.Type(name = "FileServerReadSettings", value = FileServerReadSettings.class), - @JsonSubTypes.Type(name = "AzureFileStorageReadSettings", value = AzureFileStorageReadSettings.class), - @JsonSubTypes.Type(name = "AmazonS3CompatibleReadSettings", value = AmazonS3CompatibleReadSettings.class), - @JsonSubTypes.Type(name = "OracleCloudStorageReadSettings", value = OracleCloudStorageReadSettings.class), - @JsonSubTypes.Type(name = "GoogleCloudStorageReadSettings", value = GoogleCloudStorageReadSettings.class), - @JsonSubTypes.Type(name = "FtpReadSettings", value = FtpReadSettings.class), - @JsonSubTypes.Type(name = "SftpReadSettings", value = SftpReadSettings.class), - @JsonSubTypes.Type(name = "HttpReadSettings", value = HttpReadSettings.class), - @JsonSubTypes.Type(name = "HdfsReadSettings", value = HdfsReadSettings.class) -}) -@Fluent -public class StoreReadSettings { - /* - * The maximum concurrent connection count for the source data store. Type: - * integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxConcurrentConnections") - private Object maxConcurrentConnections; - - /* - * If true, disable data store metrics collection. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "disableMetricsCollection") - private Object disableMetricsCollection; - - /* - * Connector read setting. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. - * Type: integer (or Expression with resultType integer). - * - * @return the maxConcurrentConnections value. - */ - public Object maxConcurrentConnections() { - return this.maxConcurrentConnections; - } - - /** - * Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. - * Type: integer (or Expression with resultType integer). - * - * @param maxConcurrentConnections the maxConcurrentConnections value to set. - * @return the StoreReadSettings object itself. - */ - public StoreReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - this.maxConcurrentConnections = maxConcurrentConnections; - return this; - } - - /** - * Get the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the disableMetricsCollection value. - */ - public Object disableMetricsCollection() { - return this.disableMetricsCollection; - } - - /** - * Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param disableMetricsCollection the disableMetricsCollection value to set. - * @return the StoreReadSettings object itself. - */ - public StoreReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { - this.disableMetricsCollection = disableMetricsCollection; - return this; - } - - /** - * Get the additionalProperties property: Connector read setting. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Connector read setting. - * - * @param additionalProperties the additionalProperties value to set. - * @return the StoreReadSettings object itself. - */ - public StoreReadSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreWriteSettings.java deleted file mode 100644 index 979fe9b159bf6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreWriteSettings.java +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.Map; - -/** Connector write settings. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = StoreWriteSettings.class) -@JsonTypeName("StoreWriteSettings") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "SftpWriteSettings", value = SftpWriteSettings.class), - @JsonSubTypes.Type(name = "AzureBlobStorageWriteSettings", value = AzureBlobStorageWriteSettings.class), - @JsonSubTypes.Type(name = "AzureBlobFSWriteSettings", value = AzureBlobFSWriteSettings.class), - @JsonSubTypes.Type(name = "AzureDataLakeStoreWriteSettings", value = AzureDataLakeStoreWriteSettings.class), - @JsonSubTypes.Type(name = "FileServerWriteSettings", value = FileServerWriteSettings.class), - @JsonSubTypes.Type(name = "AzureFileStorageWriteSettings", value = AzureFileStorageWriteSettings.class) -}) -@Fluent -public class StoreWriteSettings { - /* - * The maximum concurrent connection count for the source data store. Type: - * integer (or Expression with resultType integer). - */ - @JsonProperty(value = "maxConcurrentConnections") - private Object maxConcurrentConnections; - - /* - * If true, disable data store metrics collection. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "disableMetricsCollection") - private Object disableMetricsCollection; - - /* - * The type of copy behavior for copy sink. - */ - @JsonProperty(value = "copyBehavior") - private Object copyBehavior; - - /* - * Connector write settings. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. - * Type: integer (or Expression with resultType integer). - * - * @return the maxConcurrentConnections value. - */ - public Object maxConcurrentConnections() { - return this.maxConcurrentConnections; - } - - /** - * Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. - * Type: integer (or Expression with resultType integer). - * - * @param maxConcurrentConnections the maxConcurrentConnections value to set. - * @return the StoreWriteSettings object itself. - */ - public StoreWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { - this.maxConcurrentConnections = maxConcurrentConnections; - return this; - } - - /** - * Get the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the disableMetricsCollection value. - */ - public Object disableMetricsCollection() { - return this.disableMetricsCollection; - } - - /** - * Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param disableMetricsCollection the disableMetricsCollection value to set. - * @return the StoreWriteSettings object itself. - */ - public StoreWriteSettings withDisableMetricsCollection(Object disableMetricsCollection) { - this.disableMetricsCollection = disableMetricsCollection; - return this; - } - - /** - * Get the copyBehavior property: The type of copy behavior for copy sink. - * - * @return the copyBehavior value. - */ - public Object copyBehavior() { - return this.copyBehavior; - } - - /** - * Set the copyBehavior property: The type of copy behavior for copy sink. - * - * @param copyBehavior the copyBehavior value to set. - * @return the StoreWriteSettings object itself. - */ - public StoreWriteSettings withCopyBehavior(Object copyBehavior) { - this.copyBehavior = copyBehavior; - return this; - } - - /** - * Get the additionalProperties property: Connector write settings. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Connector write settings. - * - * @param additionalProperties the additionalProperties value to set. - * @return the StoreWriteSettings object itself. - */ - public StoreWriteSettings withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameter.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameter.java deleted file mode 100644 index 620b4258567c6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameter.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SQL stored procedure parameter. */ -@Fluent -public final class StoredProcedureParameter { - /* - * Stored procedure parameter value. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "value") - private Object value; - - /* - * Stored procedure parameter type. - */ - @JsonProperty(value = "type") - private StoredProcedureParameterType type; - - /** - * Get the value property: Stored procedure parameter value. Type: string (or Expression with resultType string). - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: Stored procedure parameter value. Type: string (or Expression with resultType string). - * - * @param value the value value to set. - * @return the StoredProcedureParameter object itself. - */ - public StoredProcedureParameter withValue(Object value) { - this.value = value; - return this; - } - - /** - * Get the type property: Stored procedure parameter type. - * - * @return the type value. - */ - public StoredProcedureParameterType type() { - return this.type; - } - - /** - * Set the type property: Stored procedure parameter type. - * - * @param type the type value to set. - * @return the StoredProcedureParameter object itself. - */ - public StoredProcedureParameter withType(StoredProcedureParameterType type) { - this.type = type; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameterType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameterType.java deleted file mode 100644 index cdb15c432bb94..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameterType.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for StoredProcedureParameterType. */ -public final class StoredProcedureParameterType extends ExpandableStringEnum { - /** Static value String for StoredProcedureParameterType. */ - public static final StoredProcedureParameterType STRING = fromString("String"); - - /** Static value Int for StoredProcedureParameterType. */ - public static final StoredProcedureParameterType INT = fromString("Int"); - - /** Static value Int64 for StoredProcedureParameterType. */ - public static final StoredProcedureParameterType INT64 = fromString("Int64"); - - /** Static value Decimal for StoredProcedureParameterType. */ - public static final StoredProcedureParameterType DECIMAL = fromString("Decimal"); - - /** Static value Guid for StoredProcedureParameterType. */ - public static final StoredProcedureParameterType GUID = fromString("Guid"); - - /** Static value Boolean for StoredProcedureParameterType. */ - public static final StoredProcedureParameterType BOOLEAN = fromString("Boolean"); - - /** Static value Date for StoredProcedureParameterType. */ - public static final StoredProcedureParameterType DATE = fromString("Date"); - - /** - * Creates or finds a StoredProcedureParameterType from its string representation. - * - * @param name a name to look for. - * @return the corresponding StoredProcedureParameterType. - */ - @JsonCreator - public static StoredProcedureParameterType fromString(String name) { - return fromString(name, StoredProcedureParameterType.class); - } - - /** @return known StoredProcedureParameterType values. */ - public static Collection values() { - return values(StoredProcedureParameterType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SubResourceDebugResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SubResourceDebugResource.java deleted file mode 100644 index 7f3f384161cbb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SubResourceDebugResource.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Factory nested debug resource. */ -@Fluent -public class SubResourceDebugResource { - /* - * The resource name. - */ - @JsonProperty(value = "name") - private String name; - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The resource name. - * - * @param name the name value to set. - * @return the SubResourceDebugResource object itself. - */ - public SubResourceDebugResource withName(String name) { - this.name = name; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java deleted file mode 100644 index d52bd55b70087..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SwitchActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** - * This activity evaluates an expression and executes activities under the cases property that correspond to the - * expression evaluation expected in the equals property. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Switch") -@Fluent -public final class SwitchActivity extends ControlActivity { - /* - * Switch activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SwitchActivityTypeProperties innerTypeProperties = new SwitchActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Switch activity properties. - * - * @return the innerTypeProperties value. - */ - private SwitchActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SwitchActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SwitchActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SwitchActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public SwitchActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the on property: An expression that would evaluate to a string or integer. This is used to determine the - * block of activities in cases that will be executed. - * - * @return the on value. - */ - public Expression on() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().on(); - } - - /** - * Set the on property: An expression that would evaluate to a string or integer. This is used to determine the - * block of activities in cases that will be executed. - * - * @param on the on value to set. - * @return the SwitchActivity object itself. - */ - public SwitchActivity withOn(Expression on) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SwitchActivityTypeProperties(); - } - this.innerTypeProperties().withOn(on); - return this; - } - - /** - * Get the cases property: List of cases that correspond to expected values of the 'on' property. This is an - * optional property and if not provided, the activity will execute activities provided in defaultActivities. - * - * @return the cases value. - */ - public List cases() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().cases(); - } - - /** - * Set the cases property: List of cases that correspond to expected values of the 'on' property. This is an - * optional property and if not provided, the activity will execute activities provided in defaultActivities. - * - * @param cases the cases value to set. - * @return the SwitchActivity object itself. - */ - public SwitchActivity withCases(List cases) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SwitchActivityTypeProperties(); - } - this.innerTypeProperties().withCases(cases); - return this; - } - - /** - * Get the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the defaultActivities value. - */ - public List defaultActivities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defaultActivities(); - } - - /** - * Set the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param defaultActivities the defaultActivities value to set. - * @return the SwitchActivity object itself. - */ - public SwitchActivity withDefaultActivities(List defaultActivities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SwitchActivityTypeProperties(); - } - this.innerTypeProperties().withDefaultActivities(defaultActivities); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SwitchActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SwitchActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchCase.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchCase.java deleted file mode 100644 index 0ad684dd61ae5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchCase.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Switch cases with have a value and corresponding activities. */ -@Fluent -public final class SwitchCase { - /* - * Expected value that satisfies the expression result of the 'on' - * property. - */ - @JsonProperty(value = "value") - private String value; - - /* - * List of activities to execute for satisfied case condition. - */ - @JsonProperty(value = "activities") - private List activities; - - /** - * Get the value property: Expected value that satisfies the expression result of the 'on' property. - * - * @return the value value. - */ - public String value() { - return this.value; - } - - /** - * Set the value property: Expected value that satisfies the expression result of the 'on' property. - * - * @param value the value value to set. - * @return the SwitchCase object itself. - */ - public SwitchCase withValue(String value) { - this.value = value; - return this; - } - - /** - * Get the activities property: List of activities to execute for satisfied case condition. - * - * @return the activities value. - */ - public List activities() { - return this.activities; - } - - /** - * Set the activities property: List of activities to execute for satisfied case condition. - * - * @param activities the activities value to set. - * @return the SwitchCase object itself. - */ - public SwitchCase withActivities(List activities) { - this.activities = activities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (activities() != null) { - activities().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseAuthenticationType.java deleted file mode 100644 index 370f57eb27d7d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for SybaseAuthenticationType. */ -public final class SybaseAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for SybaseAuthenticationType. */ - public static final SybaseAuthenticationType BASIC = fromString("Basic"); - - /** Static value Windows for SybaseAuthenticationType. */ - public static final SybaseAuthenticationType WINDOWS = fromString("Windows"); - - /** - * Creates or finds a SybaseAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SybaseAuthenticationType. - */ - @JsonCreator - public static SybaseAuthenticationType fromString(String name) { - return fromString(name, SybaseAuthenticationType.class); - } - - /** @return known SybaseAuthenticationType values. */ - public static Collection values() { - return values(SybaseAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java deleted file mode 100644 index 28e98aeb7bb70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SybaseLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Sybase data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Sybase") -@Fluent -public final class SybaseLinkedService extends LinkedService { - /* - * Sybase linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private SybaseLinkedServiceTypeProperties innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Sybase linked service properties. - * - * @return the innerTypeProperties value. - */ - private SybaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SybaseLinkedService object itself. - */ - public SybaseLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the SybaseLinkedService object itself. - */ - public SybaseLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Get the schema property: Schema name for connection. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: Schema name for connection. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SybaseLinkedService object itself. - */ - public SybaseLinkedService withSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. - * - * @return the authenticationType value. - */ - public SybaseAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. - * - * @param authenticationType the authenticationType value to set. - * @return the SybaseLinkedService object itself. - */ - public SybaseLinkedService withAuthenticationType(SybaseAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the SybaseLinkedService object itself. - */ - public SybaseLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the SybaseLinkedService object itself. - */ - public SybaseLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SybaseLinkedService object itself. - */ - public SybaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SybaseLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SybaseLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseSource.java deleted file mode 100644 index 2eef41faa6b25..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseSource.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for Sybase databases. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SybaseSource") -@Fluent -public final class SybaseSource extends TabularSource { - /* - * Database query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: Database query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Database query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the SybaseSource object itself. - */ - public SybaseSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java deleted file mode 100644 index d296b756c6ba1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.SybaseTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Sybase table dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("SybaseTable") -@Fluent -public final class SybaseTableDataset extends Dataset { - /* - * Sybase table dataset properties. - */ - @JsonProperty(value = "typeProperties") - private SybaseTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Sybase table dataset properties. - * - * @return the innerTypeProperties value. - */ - private SybaseTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SybaseTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SybaseTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SybaseTableDataset object itself. - */ - public SybaseTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularSource.java deleted file mode 100644 index 6e7073e5bddab..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularSource.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Copy activity sources of tabular type. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = TabularSource.class) -@JsonTypeName("TabularSource") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "AzureTableSource", value = AzureTableSource.class), - @JsonSubTypes.Type(name = "InformixSource", value = InformixSource.class), - @JsonSubTypes.Type(name = "Db2Source", value = Db2Source.class), - @JsonSubTypes.Type(name = "OdbcSource", value = OdbcSource.class), - @JsonSubTypes.Type(name = "MySqlSource", value = MySqlSource.class), - @JsonSubTypes.Type(name = "PostgreSqlSource", value = PostgreSqlSource.class), - @JsonSubTypes.Type(name = "SybaseSource", value = SybaseSource.class), - @JsonSubTypes.Type(name = "SapBwSource", value = SapBwSource.class), - @JsonSubTypes.Type(name = "SalesforceSource", value = SalesforceSource.class), - @JsonSubTypes.Type(name = "SapCloudForCustomerSource", value = SapCloudForCustomerSource.class), - @JsonSubTypes.Type(name = "SapEccSource", value = SapEccSource.class), - @JsonSubTypes.Type(name = "SapHanaSource", value = SapHanaSource.class), - @JsonSubTypes.Type(name = "SapOpenHubSource", value = SapOpenHubSource.class), - @JsonSubTypes.Type(name = "SapTableSource", value = SapTableSource.class), - @JsonSubTypes.Type(name = "SqlSource", value = SqlSource.class), - @JsonSubTypes.Type(name = "SqlServerSource", value = SqlServerSource.class), - @JsonSubTypes.Type(name = "AmazonRdsForSqlServerSource", value = AmazonRdsForSqlServerSource.class), - @JsonSubTypes.Type(name = "AzureSqlSource", value = AzureSqlSource.class), - @JsonSubTypes.Type(name = "SqlMISource", value = SqlMISource.class), - @JsonSubTypes.Type(name = "SqlDWSource", value = SqlDWSource.class), - @JsonSubTypes.Type(name = "AzureMySqlSource", value = AzureMySqlSource.class), - @JsonSubTypes.Type(name = "TeradataSource", value = TeradataSource.class), - @JsonSubTypes.Type(name = "CassandraSource", value = CassandraSource.class), - @JsonSubTypes.Type(name = "AmazonMWSSource", value = AmazonMwsSource.class), - @JsonSubTypes.Type(name = "AzurePostgreSqlSource", value = AzurePostgreSqlSource.class), - @JsonSubTypes.Type(name = "ConcurSource", value = ConcurSource.class), - @JsonSubTypes.Type(name = "CouchbaseSource", value = CouchbaseSource.class), - @JsonSubTypes.Type(name = "DrillSource", value = DrillSource.class), - @JsonSubTypes.Type(name = "EloquaSource", value = EloquaSource.class), - @JsonSubTypes.Type(name = "GoogleBigQuerySource", value = GoogleBigQuerySource.class), - @JsonSubTypes.Type(name = "GreenplumSource", value = GreenplumSource.class), - @JsonSubTypes.Type(name = "HBaseSource", value = HBaseSource.class), - @JsonSubTypes.Type(name = "HiveSource", value = HiveSource.class), - @JsonSubTypes.Type(name = "HubspotSource", value = HubspotSource.class), - @JsonSubTypes.Type(name = "ImpalaSource", value = ImpalaSource.class), - @JsonSubTypes.Type(name = "JiraSource", value = JiraSource.class), - @JsonSubTypes.Type(name = "MagentoSource", value = MagentoSource.class), - @JsonSubTypes.Type(name = "MariaDBSource", value = MariaDBSource.class), - @JsonSubTypes.Type(name = "AzureMariaDBSource", value = AzureMariaDBSource.class), - @JsonSubTypes.Type(name = "MarketoSource", value = MarketoSource.class), - @JsonSubTypes.Type(name = "PaypalSource", value = PaypalSource.class), - @JsonSubTypes.Type(name = "PhoenixSource", value = PhoenixSource.class), - @JsonSubTypes.Type(name = "PrestoSource", value = PrestoSource.class), - @JsonSubTypes.Type(name = "QuickBooksSource", value = QuickBooksSource.class), - @JsonSubTypes.Type(name = "ServiceNowSource", value = ServiceNowSource.class), - @JsonSubTypes.Type(name = "ShopifySource", value = ShopifySource.class), - @JsonSubTypes.Type(name = "SparkSource", value = SparkSource.class), - @JsonSubTypes.Type(name = "SquareSource", value = SquareSource.class), - @JsonSubTypes.Type(name = "XeroSource", value = XeroSource.class), - @JsonSubTypes.Type(name = "ZohoSource", value = ZohoSource.class), - @JsonSubTypes.Type(name = "NetezzaSource", value = NetezzaSource.class), - @JsonSubTypes.Type(name = "VerticaSource", value = VerticaSource.class), - @JsonSubTypes.Type(name = "SalesforceMarketingCloudSource", value = SalesforceMarketingCloudSource.class), - @JsonSubTypes.Type(name = "ResponsysSource", value = ResponsysSource.class), - @JsonSubTypes.Type(name = "DynamicsAXSource", value = DynamicsAXSource.class), - @JsonSubTypes.Type(name = "OracleServiceCloudSource", value = OracleServiceCloudSource.class), - @JsonSubTypes.Type(name = "GoogleAdWordsSource", value = GoogleAdWordsSource.class), - @JsonSubTypes.Type(name = "AmazonRedshiftSource", value = AmazonRedshiftSource.class) -}) -@Fluent -public class TabularSource extends CopySource { - /* - * Query timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "queryTimeout") - private Object queryTimeout; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the queryTimeout value. - */ - public Object queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param queryTimeout the queryTimeout value to set. - * @return the TabularSource object itself. - */ - public TabularSource withQueryTimeout(Object queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the TabularSource object itself. - */ - public TabularSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public TabularSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public TabularSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public TabularSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public TabularSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularTranslator.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularTranslator.java deleted file mode 100644 index 3bce05e4dba7b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularTranslator.java +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity tabular translator. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TabularTranslator") -@Fluent -public final class TabularTranslator extends CopyTranslator { - /* - * Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: - * MyName" Type: string (or Expression with resultType string). This - * property will be retired. Please use mappings property. - */ - @JsonProperty(value = "columnMappings") - private Object columnMappings; - - /* - * The schema mapping to map between tabular data and hierarchical data. - * Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", - * "Column3": "$.Column2.Property2"}. Type: object (or Expression with - * resultType object). This property will be retired. Please use mappings - * property. - */ - @JsonProperty(value = "schemaMapping") - private Object schemaMapping; - - /* - * The JSON Path of the Nested Array that is going to do cross-apply. Type: - * object (or Expression with resultType object). - */ - @JsonProperty(value = "collectionReference") - private Object collectionReference; - - /* - * Whether to map complex (array and object) values to simple strings in - * json format. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "mapComplexValuesToString") - private Object mapComplexValuesToString; - - /* - * Column mappings with logical types. Tabular->tabular example: - * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" - + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - * Hierarchical->tabular example: - * [{"source":{"path":"$" - + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" - + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - * Type: object (or Expression with resultType object). - */ - @JsonProperty(value = "mappings") - private Object mappings; - - /* - * Whether to enable the advanced type conversion feature in the Copy - * activity. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "typeConversion") - private Object typeConversion; - - /* - * Type conversion settings - */ - @JsonProperty(value = "typeConversionSettings") - private TypeConversionSettings typeConversionSettings; - - /** - * Get the columnMappings property: Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: MyName" Type: - * string (or Expression with resultType string). This property will be retired. Please use mappings property. - * - * @return the columnMappings value. - */ - public Object columnMappings() { - return this.columnMappings; - } - - /** - * Set the columnMappings property: Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: MyName" Type: - * string (or Expression with resultType string). This property will be retired. Please use mappings property. - * - * @param columnMappings the columnMappings value to set. - * @return the TabularTranslator object itself. - */ - public TabularTranslator withColumnMappings(Object columnMappings) { - this.columnMappings = columnMappings; - return this; - } - - /** - * Get the schemaMapping property: The schema mapping to map between tabular data and hierarchical data. Example: - * {"Column1": "$.Column1", "Column2": "$.Column2.Property1", "Column3": "$.Column2.Property2"}. Type: object (or - * Expression with resultType object). This property will be retired. Please use mappings property. - * - * @return the schemaMapping value. - */ - public Object schemaMapping() { - return this.schemaMapping; - } - - /** - * Set the schemaMapping property: The schema mapping to map between tabular data and hierarchical data. Example: - * {"Column1": "$.Column1", "Column2": "$.Column2.Property1", "Column3": "$.Column2.Property2"}. Type: object (or - * Expression with resultType object). This property will be retired. Please use mappings property. - * - * @param schemaMapping the schemaMapping value to set. - * @return the TabularTranslator object itself. - */ - public TabularTranslator withSchemaMapping(Object schemaMapping) { - this.schemaMapping = schemaMapping; - return this; - } - - /** - * Get the collectionReference property: The JSON Path of the Nested Array that is going to do cross-apply. Type: - * object (or Expression with resultType object). - * - * @return the collectionReference value. - */ - public Object collectionReference() { - return this.collectionReference; - } - - /** - * Set the collectionReference property: The JSON Path of the Nested Array that is going to do cross-apply. Type: - * object (or Expression with resultType object). - * - * @param collectionReference the collectionReference value to set. - * @return the TabularTranslator object itself. - */ - public TabularTranslator withCollectionReference(Object collectionReference) { - this.collectionReference = collectionReference; - return this; - } - - /** - * Get the mapComplexValuesToString property: Whether to map complex (array and object) values to simple strings in - * json format. Type: boolean (or Expression with resultType boolean). - * - * @return the mapComplexValuesToString value. - */ - public Object mapComplexValuesToString() { - return this.mapComplexValuesToString; - } - - /** - * Set the mapComplexValuesToString property: Whether to map complex (array and object) values to simple strings in - * json format. Type: boolean (or Expression with resultType boolean). - * - * @param mapComplexValuesToString the mapComplexValuesToString value to set. - * @return the TabularTranslator object itself. - */ - public TabularTranslator withMapComplexValuesToString(Object mapComplexValuesToString) { - this.mapComplexValuesToString = mapComplexValuesToString; - return this; - } - - /** - * Get the mappings property: Column mappings with logical types. Tabular->tabular example: - * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" - + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - * Hierarchical->tabular example: - * [{"source":{"path":"$" - + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" - + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - * Type: object (or Expression with resultType object). - * - * @return the mappings value. - */ - public Object mappings() { - return this.mappings; - } - - /** - * Set the mappings property: Column mappings with logical types. Tabular->tabular example: - * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" - + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - * Hierarchical->tabular example: - * [{"source":{"path":"$" - + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" - + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - * Type: object (or Expression with resultType object). - * - * @param mappings the mappings value to set. - * @return the TabularTranslator object itself. - */ - public TabularTranslator withMappings(Object mappings) { - this.mappings = mappings; - return this; - } - - /** - * Get the typeConversion property: Whether to enable the advanced type conversion feature in the Copy activity. - * Type: boolean (or Expression with resultType boolean). - * - * @return the typeConversion value. - */ - public Object typeConversion() { - return this.typeConversion; - } - - /** - * Set the typeConversion property: Whether to enable the advanced type conversion feature in the Copy activity. - * Type: boolean (or Expression with resultType boolean). - * - * @param typeConversion the typeConversion value to set. - * @return the TabularTranslator object itself. - */ - public TabularTranslator withTypeConversion(Object typeConversion) { - this.typeConversion = typeConversion; - return this; - } - - /** - * Get the typeConversionSettings property: Type conversion settings. - * - * @return the typeConversionSettings value. - */ - public TypeConversionSettings typeConversionSettings() { - return this.typeConversionSettings; - } - - /** - * Set the typeConversionSettings property: Type conversion settings. - * - * @param typeConversionSettings the typeConversionSettings value to set. - * @return the TabularTranslator object itself. - */ - public TabularTranslator withTypeConversionSettings(TypeConversionSettings typeConversionSettings) { - this.typeConversionSettings = typeConversionSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (typeConversionSettings() != null) { - typeConversionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TarGZipReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TarGZipReadSettings.java deleted file mode 100644 index 6381b2eff828d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TarGZipReadSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The TarGZip compression read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TarGZipReadSettings") -@Fluent -public final class TarGZipReadSettings extends CompressionReadSettings { - /* - * Preserve the compression file name as folder path. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "preserveCompressionFileNameAsFolder") - private Object preserveCompressionFileNameAsFolder; - - /** - * Get the preserveCompressionFileNameAsFolder property: Preserve the compression file name as folder path. Type: - * boolean (or Expression with resultType boolean). - * - * @return the preserveCompressionFileNameAsFolder value. - */ - public Object preserveCompressionFileNameAsFolder() { - return this.preserveCompressionFileNameAsFolder; - } - - /** - * Set the preserveCompressionFileNameAsFolder property: Preserve the compression file name as folder path. Type: - * boolean (or Expression with resultType boolean). - * - * @param preserveCompressionFileNameAsFolder the preserveCompressionFileNameAsFolder value to set. - * @return the TarGZipReadSettings object itself. - */ - public TarGZipReadSettings withPreserveCompressionFileNameAsFolder(Object preserveCompressionFileNameAsFolder) { - this.preserveCompressionFileNameAsFolder = preserveCompressionFileNameAsFolder; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TarReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TarReadSettings.java deleted file mode 100644 index 56861a70258b7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TarReadSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The Tar compression read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TarReadSettings") -@Fluent -public final class TarReadSettings extends CompressionReadSettings { - /* - * Preserve the compression file name as folder path. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "preserveCompressionFileNameAsFolder") - private Object preserveCompressionFileNameAsFolder; - - /** - * Get the preserveCompressionFileNameAsFolder property: Preserve the compression file name as folder path. Type: - * boolean (or Expression with resultType boolean). - * - * @return the preserveCompressionFileNameAsFolder value. - */ - public Object preserveCompressionFileNameAsFolder() { - return this.preserveCompressionFileNameAsFolder; - } - - /** - * Set the preserveCompressionFileNameAsFolder property: Preserve the compression file name as folder path. Type: - * boolean (or Expression with resultType boolean). - * - * @param preserveCompressionFileNameAsFolder the preserveCompressionFileNameAsFolder value to set. - * @return the TarReadSettings object itself. - */ - public TarReadSettings withPreserveCompressionFileNameAsFolder(Object preserveCompressionFileNameAsFolder) { - this.preserveCompressionFileNameAsFolder = preserveCompressionFileNameAsFolder; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskAuthenticationType.java deleted file mode 100644 index b77651db457d5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for TeamDeskAuthenticationType. */ -public final class TeamDeskAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for TeamDeskAuthenticationType. */ - public static final TeamDeskAuthenticationType BASIC = fromString("Basic"); - - /** Static value Token for TeamDeskAuthenticationType. */ - public static final TeamDeskAuthenticationType TOKEN = fromString("Token"); - - /** - * Creates or finds a TeamDeskAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding TeamDeskAuthenticationType. - */ - @JsonCreator - public static TeamDeskAuthenticationType fromString(String name) { - return fromString(name, TeamDeskAuthenticationType.class); - } - - /** @return known TeamDeskAuthenticationType values. */ - public static Collection values() { - return values(TeamDeskAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java deleted file mode 100644 index a2ec00066b5c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.TeamDeskLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for TeamDesk. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TeamDesk") -@Fluent -public final class TeamDeskLinkedService extends LinkedService { - /* - * TeamDesk linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private TeamDeskLinkedServiceTypeProperties innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: TeamDesk linked service properties. - * - * @return the innerTypeProperties value. - */ - private TeamDeskLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public TeamDeskLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeamDeskLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeamDeskLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeamDeskLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public TeamDeskAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the TeamDeskLinkedService object itself. - */ - public TeamDeskLinkedService withAuthenticationType(TeamDeskAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the TeamDeskLinkedService object itself. - */ - public TeamDeskLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the username property: The username of the TeamDesk source. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username of the TeamDesk source. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the TeamDeskLinkedService object itself. - */ - public TeamDeskLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password of the TeamDesk source. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password of the TeamDesk source. - * - * @param password the password value to set. - * @return the TeamDeskLinkedService object itself. - */ - public TeamDeskLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the apiToken property: The api token for the TeamDesk source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiToken(); - } - - /** - * Set the apiToken property: The api token for the TeamDesk source. - * - * @param apiToken the apiToken value to set. - * @return the TeamDeskLinkedService object itself. - */ - public TeamDeskLinkedService withApiToken(SecretBase apiToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiToken(apiToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the TeamDeskLinkedService object itself. - */ - public TeamDeskLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model TeamDeskLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TeamDeskLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataAuthenticationType.java deleted file mode 100644 index a1046bb038dd6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for TeradataAuthenticationType. */ -public final class TeradataAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for TeradataAuthenticationType. */ - public static final TeradataAuthenticationType BASIC = fromString("Basic"); - - /** Static value Windows for TeradataAuthenticationType. */ - public static final TeradataAuthenticationType WINDOWS = fromString("Windows"); - - /** - * Creates or finds a TeradataAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding TeradataAuthenticationType. - */ - @JsonCreator - public static TeradataAuthenticationType fromString(String name) { - return fromString(name, TeradataAuthenticationType.class); - } - - /** @return known TeradataAuthenticationType values. */ - public static Collection values() { - return values(TeradataAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java deleted file mode 100644 index a97e9ada4cf88..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.TeradataLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Teradata data source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Teradata") -@Fluent -public final class TeradataLinkedService extends LinkedService { - /* - * Teradata linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private TeradataLinkedServiceTypeProperties innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Teradata linked service properties. - * - * @return the innerTypeProperties value. - */ - private TeradataLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the TeradataLinkedService object itself. - */ - public TeradataLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); - } - - /** - * Set the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the TeradataLinkedService object itself. - */ - public TeradataLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. - * - * @return the authenticationType value. - */ - public TeradataAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. - * - * @param authenticationType the authenticationType value to set. - * @return the TeradataLinkedService object itself. - */ - public TeradataLinkedService withAuthenticationType(TeradataAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the TeradataLinkedService object itself. - */ - public TeradataLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the TeradataLinkedService object itself. - */ - public TeradataLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the TeradataLinkedService object itself. - */ - public TeradataLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model TeradataLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TeradataLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataPartitionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataPartitionSettings.java deleted file mode 100644 index 52e222538560a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataPartitionSettings.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The settings that will be leveraged for teradata source partitioning. */ -@Fluent -public final class TeradataPartitionSettings { - /* - * The name of the column that will be used for proceeding range or hash - * partitioning. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "partitionColumnName") - private Object partitionColumnName; - - /* - * The maximum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionUpperBound") - private Object partitionUpperBound; - - /* - * The minimum value of column specified in partitionColumnName that will - * be used for proceeding range partitioning. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "partitionLowerBound") - private Object partitionLowerBound; - - /** - * Get the partitionColumnName property: The name of the column that will be used for proceeding range or hash - * partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionColumnName value. - */ - public Object partitionColumnName() { - return this.partitionColumnName; - } - - /** - * Set the partitionColumnName property: The name of the column that will be used for proceeding range or hash - * partitioning. Type: string (or Expression with resultType string). - * - * @param partitionColumnName the partitionColumnName value to set. - * @return the TeradataPartitionSettings object itself. - */ - public TeradataPartitionSettings withPartitionColumnName(Object partitionColumnName) { - this.partitionColumnName = partitionColumnName; - return this; - } - - /** - * Get the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionUpperBound value. - */ - public Object partitionUpperBound() { - return this.partitionUpperBound; - } - - /** - * Set the partitionUpperBound property: The maximum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionUpperBound the partitionUpperBound value to set. - * @return the TeradataPartitionSettings object itself. - */ - public TeradataPartitionSettings withPartitionUpperBound(Object partitionUpperBound) { - this.partitionUpperBound = partitionUpperBound; - return this; - } - - /** - * Get the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @return the partitionLowerBound value. - */ - public Object partitionLowerBound() { - return this.partitionLowerBound; - } - - /** - * Set the partitionLowerBound property: The minimum value of column specified in partitionColumnName that will be - * used for proceeding range partitioning. Type: string (or Expression with resultType string). - * - * @param partitionLowerBound the partitionLowerBound value to set. - * @return the TeradataPartitionSettings object itself. - */ - public TeradataPartitionSettings withPartitionLowerBound(Object partitionLowerBound) { - this.partitionLowerBound = partitionLowerBound; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataSource.java deleted file mode 100644 index 59e5ecde64307..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataSource.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Teradata source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TeradataSource") -@Fluent -public final class TeradataSource extends TabularSource { - /* - * Teradata query. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /* - * The partition mechanism that will be used for teradata read in parallel. - * Possible values include: "None", "Hash", "DynamicRange". - */ - @JsonProperty(value = "partitionOption") - private Object partitionOption; - - /* - * The settings that will be leveraged for teradata source partitioning. - */ - @JsonProperty(value = "partitionSettings") - private TeradataPartitionSettings partitionSettings; - - /** - * Get the query property: Teradata query. Type: string (or Expression with resultType string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: Teradata query. Type: string (or Expression with resultType string). - * - * @param query the query value to set. - * @return the TeradataSource object itself. - */ - public TeradataSource withQuery(Object query) { - this.query = query; - return this; - } - - /** - * Get the partitionOption property: The partition mechanism that will be used for teradata read in parallel. - * Possible values include: "None", "Hash", "DynamicRange". - * - * @return the partitionOption value. - */ - public Object partitionOption() { - return this.partitionOption; - } - - /** - * Set the partitionOption property: The partition mechanism that will be used for teradata read in parallel. - * Possible values include: "None", "Hash", "DynamicRange". - * - * @param partitionOption the partitionOption value to set. - * @return the TeradataSource object itself. - */ - public TeradataSource withPartitionOption(Object partitionOption) { - this.partitionOption = partitionOption; - return this; - } - - /** - * Get the partitionSettings property: The settings that will be leveraged for teradata source partitioning. - * - * @return the partitionSettings value. - */ - public TeradataPartitionSettings partitionSettings() { - return this.partitionSettings; - } - - /** - * Set the partitionSettings property: The settings that will be leveraged for teradata source partitioning. - * - * @param partitionSettings the partitionSettings value to set. - * @return the TeradataSource object itself. - */ - public TeradataSource withPartitionSettings(TeradataPartitionSettings partitionSettings) { - this.partitionSettings = partitionSettings; - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (partitionSettings() != null) { - partitionSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java deleted file mode 100644 index b8e2ae82791b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.TeradataTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The Teradata database dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TeradataTable") -@Fluent -public final class TeradataTableDataset extends Dataset { - /* - * Teradata dataset properties. - */ - @JsonProperty(value = "typeProperties") - private TeradataTableDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Teradata dataset properties. - * - * @return the innerTypeProperties value. - */ - private TeradataTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public TeradataTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public TeradataTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the TeradataTableDataset object itself. - */ - public TeradataTableDataset withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataTableDatasetTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Get the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the TeradataTableDataset object itself. - */ - public TeradataTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TextFormat.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TextFormat.java deleted file mode 100644 index 1286406d9a3a5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TextFormat.java +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The data stored in text format. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TextFormat") -@Fluent -public final class TextFormat extends DatasetStorageFormat { - /* - * The column delimiter. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "columnDelimiter") - private Object columnDelimiter; - - /* - * The row delimiter. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "rowDelimiter") - private Object rowDelimiter; - - /* - * The escape character. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "escapeChar") - private Object escapeChar; - - /* - * The quote character. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "quoteChar") - private Object quoteChar; - - /* - * The null value string. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nullValue") - private Object nullValue; - - /* - * The code page name of the preferred encoding. If miss, the default value - * is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to - * the ΓÇ£NameΓÇ¥ column of the table in the following link to set - * supported values: - * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * Treat empty column values in the text file as null. The default value is - * true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "treatEmptyAsNull") - private Object treatEmptyAsNull; - - /* - * The number of lines/rows to be skipped when parsing text files. The - * default value is 0. Type: integer (or Expression with resultType - * integer). - */ - @JsonProperty(value = "skipLineCount") - private Object skipLineCount; - - /* - * When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The - * default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "firstRowAsHeader") - private Object firstRowAsHeader; - - /** - * Get the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @return the columnDelimiter value. - */ - public Object columnDelimiter() { - return this.columnDelimiter; - } - - /** - * Set the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @param columnDelimiter the columnDelimiter value to set. - * @return the TextFormat object itself. - */ - public TextFormat withColumnDelimiter(Object columnDelimiter) { - this.columnDelimiter = columnDelimiter; - return this; - } - - /** - * Get the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @return the rowDelimiter value. - */ - public Object rowDelimiter() { - return this.rowDelimiter; - } - - /** - * Set the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @param rowDelimiter the rowDelimiter value to set. - * @return the TextFormat object itself. - */ - public TextFormat withRowDelimiter(Object rowDelimiter) { - this.rowDelimiter = rowDelimiter; - return this; - } - - /** - * Get the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @return the escapeChar value. - */ - public Object escapeChar() { - return this.escapeChar; - } - - /** - * Set the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @param escapeChar the escapeChar value to set. - * @return the TextFormat object itself. - */ - public TextFormat withEscapeChar(Object escapeChar) { - this.escapeChar = escapeChar; - return this; - } - - /** - * Get the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @return the quoteChar value. - */ - public Object quoteChar() { - return this.quoteChar; - } - - /** - * Set the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @param quoteChar the quoteChar value to set. - * @return the TextFormat object itself. - */ - public TextFormat withQuoteChar(Object quoteChar) { - this.quoteChar = quoteChar; - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.nullValue; - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the TextFormat object itself. - */ - public TextFormat withNullValue(Object nullValue) { - this.nullValue = nullValue; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If miss, the default value is - * ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the - * following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If miss, the default value is - * ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the - * following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the TextFormat object itself. - */ - public TextFormat withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the treatEmptyAsNull property: Treat empty column values in the text file as null. The default value is true. - * Type: boolean (or Expression with resultType boolean). - * - * @return the treatEmptyAsNull value. - */ - public Object treatEmptyAsNull() { - return this.treatEmptyAsNull; - } - - /** - * Set the treatEmptyAsNull property: Treat empty column values in the text file as null. The default value is true. - * Type: boolean (or Expression with resultType boolean). - * - * @param treatEmptyAsNull the treatEmptyAsNull value to set. - * @return the TextFormat object itself. - */ - public TextFormat withTreatEmptyAsNull(Object treatEmptyAsNull) { - this.treatEmptyAsNull = treatEmptyAsNull; - return this; - } - - /** - * Get the skipLineCount property: The number of lines/rows to be skipped when parsing text files. The default value - * is 0. Type: integer (or Expression with resultType integer). - * - * @return the skipLineCount value. - */ - public Object skipLineCount() { - return this.skipLineCount; - } - - /** - * Set the skipLineCount property: The number of lines/rows to be skipped when parsing text files. The default value - * is 0. Type: integer (or Expression with resultType integer). - * - * @param skipLineCount the skipLineCount value to set. - * @return the TextFormat object itself. - */ - public TextFormat withSkipLineCount(Object skipLineCount) { - this.skipLineCount = skipLineCount; - return this; - } - - /** - * Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowAsHeader value. - */ - public Object firstRowAsHeader() { - return this.firstRowAsHeader; - } - - /** - * Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowAsHeader the firstRowAsHeader value to set. - * @return the TextFormat object itself. - */ - public TextFormat withFirstRowAsHeader(Object firstRowAsHeader) { - this.firstRowAsHeader = firstRowAsHeader; - return this; - } - - /** {@inheritDoc} */ - @Override - public TextFormat withSerializer(Object serializer) { - super.withSerializer(serializer); - return this; - } - - /** {@inheritDoc} */ - @Override - public TextFormat withDeserializer(Object deserializer) { - super.withDeserializer(deserializer); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Transformation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Transformation.java deleted file mode 100644 index 5216329f09a7e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Transformation.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** A data flow transformation. */ -@Fluent -public class Transformation { - /* - * Transformation name. - */ - @JsonProperty(value = "name", required = true) - private String name; - - /* - * Transformation description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Dataset reference. - */ - @JsonProperty(value = "dataset") - private DatasetReference dataset; - - /* - * Linked service reference. - */ - @JsonProperty(value = "linkedService") - private LinkedServiceReference linkedService; - - /* - * Flowlet Reference - */ - @JsonProperty(value = "flowlet") - private DataFlowReference flowlet; - - /** - * Get the name property: Transformation name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Transformation name. - * - * @param name the name value to set. - * @return the Transformation object itself. - */ - public Transformation withName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Transformation description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Transformation description. - * - * @param description the description value to set. - * @return the Transformation object itself. - */ - public Transformation withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the dataset property: Dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: Dataset reference. - * - * @param dataset the dataset value to set. - * @return the Transformation object itself. - */ - public Transformation withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Get the linkedService property: Linked service reference. - * - * @return the linkedService value. - */ - public LinkedServiceReference linkedService() { - return this.linkedService; - } - - /** - * Set the linkedService property: Linked service reference. - * - * @param linkedService the linkedService value to set. - * @return the Transformation object itself. - */ - public Transformation withLinkedService(LinkedServiceReference linkedService) { - this.linkedService = linkedService; - return this; - } - - /** - * Get the flowlet property: Flowlet Reference. - * - * @return the flowlet value. - */ - public DataFlowReference flowlet() { - return this.flowlet; - } - - /** - * Set the flowlet property: Flowlet Reference. - * - * @param flowlet the flowlet value to set. - * @return the Transformation object itself. - */ - public Transformation withFlowlet(DataFlowReference flowlet) { - this.flowlet = flowlet; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model Transformation")); - } - if (dataset() != null) { - dataset().validate(); - } - if (linkedService() != null) { - linkedService().validate(); - } - if (flowlet() != null) { - flowlet().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Transformation.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Trigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Trigger.java deleted file mode 100644 index 047214e73afe2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Trigger.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Azure data factory nested object which contains information about creating pipeline run. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = Trigger.class) -@JsonTypeName("Trigger") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "MultiplePipelineTrigger", value = MultiplePipelineTrigger.class), - @JsonSubTypes.Type(name = "TumblingWindowTrigger", value = TumblingWindowTrigger.class), - @JsonSubTypes.Type(name = "RerunTumblingWindowTrigger", value = RerunTumblingWindowTrigger.class), - @JsonSubTypes.Type(name = "ChainingTrigger", value = ChainingTrigger.class) -}) -@Fluent -public class Trigger { - /* - * Trigger description. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Indicates if trigger is running or not. Updated when Start/Stop APIs are - * called on the Trigger. - */ - @JsonProperty(value = "runtimeState", access = JsonProperty.Access.WRITE_ONLY) - private TriggerRuntimeState runtimeState; - - /* - * List of tags that can be used for describing the trigger. - */ - @JsonProperty(value = "annotations") - private List annotations; - - /* - * Azure data factory nested object which contains information about - * creating pipeline run - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the description property: Trigger description. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Trigger description. - * - * @param description the description value to set. - * @return the Trigger object itself. - */ - public Trigger withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the runtimeState property: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on - * the Trigger. - * - * @return the runtimeState value. - */ - public TriggerRuntimeState runtimeState() { - return this.runtimeState; - } - - /** - * Get the annotations property: List of tags that can be used for describing the trigger. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: List of tags that can be used for describing the trigger. - * - * @param annotations the annotations value to set. - * @return the Trigger object itself. - */ - public Trigger withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the additionalProperties property: Azure data factory nested object which contains information about creating - * pipeline run. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Azure data factory nested object which contains information about creating - * pipeline run. - * - * @param additionalProperties the additionalProperties value to set. - * @return the Trigger object itself. - */ - public Trigger withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerDependencyReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerDependencyReference.java deleted file mode 100644 index 063ad0a8c0971..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerDependencyReference.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Trigger referenced dependency. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - defaultImpl = TriggerDependencyReference.class) -@JsonTypeName("TriggerDependencyReference") -@JsonSubTypes({ - @JsonSubTypes.Type( - name = "TumblingWindowTriggerDependencyReference", - value = TumblingWindowTriggerDependencyReference.class) -}) -@Fluent -public class TriggerDependencyReference extends DependencyReference { - /* - * Referenced trigger. - */ - @JsonProperty(value = "referenceTrigger", required = true) - private TriggerReference referenceTrigger; - - /** - * Get the referenceTrigger property: Referenced trigger. - * - * @return the referenceTrigger value. - */ - public TriggerReference referenceTrigger() { - return this.referenceTrigger; - } - - /** - * Set the referenceTrigger property: Referenced trigger. - * - * @param referenceTrigger the referenceTrigger value to set. - * @return the TriggerDependencyReference object itself. - */ - public TriggerDependencyReference withReferenceTrigger(TriggerReference referenceTrigger) { - this.referenceTrigger = referenceTrigger; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (referenceTrigger() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property referenceTrigger in model TriggerDependencyReference")); - } else { - referenceTrigger().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TriggerDependencyReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerFilterParameters.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerFilterParameters.java deleted file mode 100644 index 60e4445364489..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerFilterParameters.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Query parameters for triggers. */ -@Fluent -public final class TriggerFilterParameters { - /* - * The continuation token for getting the next page of results. Null for - * first page. - */ - @JsonProperty(value = "continuationToken") - private String continuationToken; - - /* - * The name of the parent TumblingWindowTrigger to get the child rerun - * triggers - */ - @JsonProperty(value = "parentTriggerName") - private String parentTriggerName; - - /** - * Get the continuationToken property: The continuation token for getting the next page of results. Null for first - * page. - * - * @return the continuationToken value. - */ - public String continuationToken() { - return this.continuationToken; - } - - /** - * Set the continuationToken property: The continuation token for getting the next page of results. Null for first - * page. - * - * @param continuationToken the continuationToken value to set. - * @return the TriggerFilterParameters object itself. - */ - public TriggerFilterParameters withContinuationToken(String continuationToken) { - this.continuationToken = continuationToken; - return this; - } - - /** - * Get the parentTriggerName property: The name of the parent TumblingWindowTrigger to get the child rerun triggers. - * - * @return the parentTriggerName value. - */ - public String parentTriggerName() { - return this.parentTriggerName; - } - - /** - * Set the parentTriggerName property: The name of the parent TumblingWindowTrigger to get the child rerun triggers. - * - * @param parentTriggerName the parentTriggerName value to set. - * @return the TriggerFilterParameters object itself. - */ - public TriggerFilterParameters withParentTriggerName(String parentTriggerName) { - this.parentTriggerName = parentTriggerName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerListResponse.java deleted file mode 100644 index 4b4eb2d819295..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerListResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of trigger resources. */ -@Fluent -public final class TriggerListResponse { - /* - * List of triggers. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: List of triggers. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of triggers. - * - * @param value the value value to set. - * @return the TriggerListResponse object itself. - */ - public TriggerListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the TriggerListResponse object itself. - */ - public TriggerListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model TriggerListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TriggerListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerPipelineReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerPipelineReference.java deleted file mode 100644 index 3943516098080..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerPipelineReference.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Pipeline that needs to be triggered with the given parameters. */ -@Fluent -public final class TriggerPipelineReference { - /* - * Pipeline reference. - */ - @JsonProperty(value = "pipelineReference") - private PipelineReference pipelineReference; - - /* - * Pipeline parameters. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /** - * Get the pipelineReference property: Pipeline reference. - * - * @return the pipelineReference value. - */ - public PipelineReference pipelineReference() { - return this.pipelineReference; - } - - /** - * Set the pipelineReference property: Pipeline reference. - * - * @param pipelineReference the pipelineReference value to set. - * @return the TriggerPipelineReference object itself. - */ - public TriggerPipelineReference withPipelineReference(PipelineReference pipelineReference) { - this.pipelineReference = pipelineReference; - return this; - } - - /** - * Get the parameters property: Pipeline parameters. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Pipeline parameters. - * - * @param parameters the parameters value to set. - * @return the TriggerPipelineReference object itself. - */ - public TriggerPipelineReference withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pipelineReference() != null) { - pipelineReference().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerQueryResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerQueryResponse.java deleted file mode 100644 index a9bd285e87d1d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerQueryResponse.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.TriggerQueryResponseInner; -import java.util.List; - -/** An immutable client-side representation of TriggerQueryResponse. */ -public interface TriggerQueryResponse { - /** - * Gets the value property: List of triggers. - * - * @return the value value. - */ - List value(); - - /** - * Gets the continuationToken property: The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - * - * @return the continuationToken value. - */ - String continuationToken(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.TriggerQueryResponseInner object. - * - * @return the inner object. - */ - TriggerQueryResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerReference.java deleted file mode 100644 index 2ca970e9833e6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerReference.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Trigger reference type. */ -@Fluent -public final class TriggerReference { - /* - * Trigger reference type. - */ - @JsonProperty(value = "type", required = true) - private String type = "TriggerReference"; - - /* - * Reference trigger name. - */ - @JsonProperty(value = "referenceName", required = true) - private String referenceName; - - /** Creates an instance of TriggerReference class. */ - public TriggerReference() { - type = "TriggerReference"; - } - - /** - * Get the type property: Trigger reference type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Trigger reference type. - * - * @param type the type value to set. - * @return the TriggerReference object itself. - */ - public TriggerReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference trigger name. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference trigger name. - * - * @param referenceName the referenceName value to set. - * @return the TriggerReference object itself. - */ - public TriggerReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property referenceName in model TriggerReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TriggerReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerResource.java deleted file mode 100644 index 1167808101ad5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerResource.java +++ /dev/null @@ -1,280 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; - -/** An immutable client-side representation of TriggerResource. */ -public interface TriggerResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Properties of the trigger. - * - * @return the properties value. - */ - Trigger properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner object. - * - * @return the inner object. - */ - TriggerResourceInner innerModel(); - - /** The entirety of the TriggerResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The TriggerResource definition stages. */ - interface DefinitionStages { - /** The first stage of the TriggerResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the TriggerResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithProperties withExistingFactory(String resourceGroupName, String factoryName); - } - /** The stage of the TriggerResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Properties of the trigger.. - * - * @param properties Properties of the trigger. - * @return the next definition stage. - */ - WithCreate withProperties(Trigger properties); - } - /** - * The stage of the TriggerResource definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - TriggerResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - TriggerResource create(Context context); - } - /** The stage of the TriggerResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the trigger entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the TriggerResource resource. - * - * @return the stage of resource update. - */ - TriggerResource.Update update(); - - /** The template for TriggerResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - TriggerResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - TriggerResource apply(Context context); - } - /** The TriggerResource update stages. */ - interface UpdateStages { - /** The stage of the TriggerResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Properties of the trigger.. - * - * @param properties Properties of the trigger. - * @return the next definition stage. - */ - Update withProperties(Trigger properties); - } - /** The stage of the TriggerResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the trigger entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - TriggerResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - TriggerResource refresh(Context context); - - /** - * Subscribe event trigger to events. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus subscribeToEvents(); - - /** - * Subscribe event trigger to events. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus subscribeToEvents(Context context); - - /** - * Get a trigger's event subscription status. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status. - */ - TriggerSubscriptionOperationStatus getEventSubscriptionStatus(); - - /** - * Get a trigger's event subscription status. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status along with {@link Response}. - */ - Response getEventSubscriptionStatusWithResponse(Context context); - - /** - * Unsubscribe event trigger from events. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus unsubscribeFromEvents(); - - /** - * Unsubscribe event trigger from events. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus unsubscribeFromEvents(Context context); - - /** - * Starts a trigger. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(); - - /** - * Starts a trigger. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(Context context); - - /** - * Stops a trigger. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(); - - /** - * Stops a trigger. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRun.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRun.java deleted file mode 100644 index ac80df42eb0be..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRun.java +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; - -/** Trigger runs. */ -@Fluent -public final class TriggerRun { - /* - * Trigger run id. - */ - @JsonProperty(value = "triggerRunId", access = JsonProperty.Access.WRITE_ONLY) - private String triggerRunId; - - /* - * Trigger name. - */ - @JsonProperty(value = "triggerName", access = JsonProperty.Access.WRITE_ONLY) - private String triggerName; - - /* - * Trigger type. - */ - @JsonProperty(value = "triggerType", access = JsonProperty.Access.WRITE_ONLY) - private String triggerType; - - /* - * Trigger run start time. - */ - @JsonProperty(value = "triggerRunTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime triggerRunTimestamp; - - /* - * Trigger run status. - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private TriggerRunStatus status; - - /* - * Trigger error message. - */ - @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) - private String message; - - /* - * List of property name and value related to trigger run. Name, value pair - * depends on type of trigger. - */ - @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map properties; - - /* - * List of pipeline name and run Id triggered by the trigger run. - */ - @JsonProperty(value = "triggeredPipelines", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map triggeredPipelines; - - /* - * Run dimension for which trigger was fired. - */ - @JsonProperty(value = "runDimension", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map runDimension; - - /* - * Status of the upstream pipelines. - */ - @JsonProperty(value = "dependencyStatus", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map dependencyStatus; - - /* - * Trigger runs. - */ - @JsonIgnore private Map additionalProperties; - - /** - * Get the triggerRunId property: Trigger run id. - * - * @return the triggerRunId value. - */ - public String triggerRunId() { - return this.triggerRunId; - } - - /** - * Get the triggerName property: Trigger name. - * - * @return the triggerName value. - */ - public String triggerName() { - return this.triggerName; - } - - /** - * Get the triggerType property: Trigger type. - * - * @return the triggerType value. - */ - public String triggerType() { - return this.triggerType; - } - - /** - * Get the triggerRunTimestamp property: Trigger run start time. - * - * @return the triggerRunTimestamp value. - */ - public OffsetDateTime triggerRunTimestamp() { - return this.triggerRunTimestamp; - } - - /** - * Get the status property: Trigger run status. - * - * @return the status value. - */ - public TriggerRunStatus status() { - return this.status; - } - - /** - * Get the message property: Trigger error message. - * - * @return the message value. - */ - public String message() { - return this.message; - } - - /** - * Get the properties property: List of property name and value related to trigger run. Name, value pair depends on - * type of trigger. - * - * @return the properties value. - */ - public Map properties() { - return this.properties; - } - - /** - * Get the triggeredPipelines property: List of pipeline name and run Id triggered by the trigger run. - * - * @return the triggeredPipelines value. - */ - public Map triggeredPipelines() { - return this.triggeredPipelines; - } - - /** - * Get the runDimension property: Run dimension for which trigger was fired. - * - * @return the runDimension value. - */ - public Map runDimension() { - return this.runDimension; - } - - /** - * Get the dependencyStatus property: Status of the upstream pipelines. - * - * @return the dependencyStatus value. - */ - public Map dependencyStatus() { - return this.dependencyStatus; - } - - /** - * Get the additionalProperties property: Trigger runs. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Trigger runs. - * - * @param additionalProperties the additionalProperties value to set. - * @return the TriggerRun object itself. - */ - public TriggerRun withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRunStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRunStatus.java deleted file mode 100644 index b14d8b73c90a2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRunStatus.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for TriggerRunStatus. */ -public final class TriggerRunStatus extends ExpandableStringEnum { - /** Static value Succeeded for TriggerRunStatus. */ - public static final TriggerRunStatus SUCCEEDED = fromString("Succeeded"); - - /** Static value Failed for TriggerRunStatus. */ - public static final TriggerRunStatus FAILED = fromString("Failed"); - - /** Static value Inprogress for TriggerRunStatus. */ - public static final TriggerRunStatus INPROGRESS = fromString("Inprogress"); - - /** - * Creates or finds a TriggerRunStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding TriggerRunStatus. - */ - @JsonCreator - public static TriggerRunStatus fromString(String name) { - return fromString(name, TriggerRunStatus.class); - } - - /** @return known TriggerRunStatus values. */ - public static Collection values() { - return values(TriggerRunStatus.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRuns.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRuns.java deleted file mode 100644 index 7c7a861b2e5aa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRuns.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of TriggerRuns. */ -public interface TriggerRuns { - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void rerun(String resourceGroupName, String factoryName, String triggerName, String runId); - - /** - * Rerun single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response rerunWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context); - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void cancel(String resourceGroupName, String factoryName, String triggerName, String runId); - - /** - * Cancel a single trigger instance by runId. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param runId The pipeline run identifier. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response cancelWithResponse( - String resourceGroupName, String factoryName, String triggerName, String runId, Context context); - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs. - */ - TriggerRunsQueryResponse queryByFactory( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters); - - /** - * Query trigger runs. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the pipeline run. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger runs along with {@link Response}. - */ - Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRunsQueryResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRunsQueryResponse.java deleted file mode 100644 index 780a67b9b05bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRunsQueryResponse.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner; -import java.util.List; - -/** An immutable client-side representation of TriggerRunsQueryResponse. */ -public interface TriggerRunsQueryResponse { - /** - * Gets the value property: List of trigger runs. - * - * @return the value value. - */ - List value(); - - /** - * Gets the continuationToken property: The continuation token for getting the next page of results, if any - * remaining results exist, null otherwise. - * - * @return the continuationToken value. - */ - String continuationToken(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner object. - * - * @return the inner object. - */ - TriggerRunsQueryResponseInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRuntimeState.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRuntimeState.java deleted file mode 100644 index 2066c732856ba..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerRuntimeState.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for TriggerRuntimeState. */ -public final class TriggerRuntimeState extends ExpandableStringEnum { - /** Static value Started for TriggerRuntimeState. */ - public static final TriggerRuntimeState STARTED = fromString("Started"); - - /** Static value Stopped for TriggerRuntimeState. */ - public static final TriggerRuntimeState STOPPED = fromString("Stopped"); - - /** Static value Disabled for TriggerRuntimeState. */ - public static final TriggerRuntimeState DISABLED = fromString("Disabled"); - - /** - * Creates or finds a TriggerRuntimeState from its string representation. - * - * @param name a name to look for. - * @return the corresponding TriggerRuntimeState. - */ - @JsonCreator - public static TriggerRuntimeState fromString(String name) { - return fromString(name, TriggerRuntimeState.class); - } - - /** @return known TriggerRuntimeState values. */ - public static Collection values() { - return values(TriggerRuntimeState.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerSubscriptionOperationStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerSubscriptionOperationStatus.java deleted file mode 100644 index 69068198dfe61..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TriggerSubscriptionOperationStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; - -/** An immutable client-side representation of TriggerSubscriptionOperationStatus. */ -public interface TriggerSubscriptionOperationStatus { - /** - * Gets the triggerName property: Trigger name. - * - * @return the triggerName value. - */ - String triggerName(); - - /** - * Gets the status property: Event Subscription Status. - * - * @return the status value. - */ - EventSubscriptionStatus status(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner - * object. - * - * @return the inner object. - */ - TriggerSubscriptionOperationStatusInner innerModel(); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Triggers.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Triggers.java deleted file mode 100644 index a5c2fc5568a70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Triggers.java +++ /dev/null @@ -1,315 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of Triggers. */ -public interface Triggers { - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * Lists triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers. - */ - TriggerQueryResponse queryByFactory( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters); - - /** - * Query triggers. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param filterParameters Parameters to filter the triggers. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a query of triggers along with {@link Response}. - */ - Response queryByFactoryWithResponse( - String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, Context context); - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger. - */ - TriggerResource get(String resourceGroupName, String factoryName, String triggerName); - - /** - * Gets a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, Context context); - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String triggerName); - - /** - * Deletes a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName); - - /** - * Subscribe event trigger to events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus subscribeToEvents( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status. - */ - TriggerSubscriptionOperationStatus getEventSubscriptionStatus( - String resourceGroupName, String factoryName, String triggerName); - - /** - * Get a trigger's event subscription status. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger's event subscription status along with {@link Response}. - */ - Response getEventSubscriptionStatusWithResponse( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName); - - /** - * Unsubscribe event trigger from events. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation. - */ - TriggerSubscriptionOperationStatus unsubscribeFromEvents( - String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(String resourceGroupName, String factoryName, String triggerName); - - /** - * Starts a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(String resourceGroupName, String factoryName, String triggerName); - - /** - * Stops a trigger. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param triggerName The trigger name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(String resourceGroupName, String factoryName, String triggerName, Context context); - - /** - * Gets a trigger. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger along with {@link Response}. - */ - TriggerResource getById(String id); - - /** - * Gets a trigger. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing - * entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a trigger along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a trigger. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a trigger. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new TriggerResource resource. - * - * @param name resource name. - * @return the first stage of the new TriggerResource definition. - */ - TriggerResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowFrequency.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowFrequency.java deleted file mode 100644 index 51e22024bdcf7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowFrequency.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for TumblingWindowFrequency. */ -public final class TumblingWindowFrequency extends ExpandableStringEnum { - /** Static value Minute for TumblingWindowFrequency. */ - public static final TumblingWindowFrequency MINUTE = fromString("Minute"); - - /** Static value Hour for TumblingWindowFrequency. */ - public static final TumblingWindowFrequency HOUR = fromString("Hour"); - - /** Static value Month for TumblingWindowFrequency. */ - public static final TumblingWindowFrequency MONTH = fromString("Month"); - - /** - * Creates or finds a TumblingWindowFrequency from its string representation. - * - * @param name a name to look for. - * @return the corresponding TumblingWindowFrequency. - */ - @JsonCreator - public static TumblingWindowFrequency fromString(String name) { - return fromString(name, TumblingWindowFrequency.class); - } - - /** @return known TumblingWindowFrequency values. */ - public static Collection values() { - return values(TumblingWindowFrequency.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java deleted file mode 100644 index 8069f3027cd5a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java +++ /dev/null @@ -1,302 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.TumblingWindowTriggerTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.List; - -/** - * Trigger that schedules pipeline runs for all fixed time interval windows from a start time without gaps and also - * supports backfill scenarios (when start time is in the past). - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TumblingWindowTrigger") -@Fluent -public final class TumblingWindowTrigger extends Trigger { - /* - * Pipeline for which runs are created when an event is fired for trigger - * window that is ready. - */ - @JsonProperty(value = "pipeline", required = true) - private TriggerPipelineReference pipeline; - - /* - * Tumbling Window Trigger properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private TumblingWindowTriggerTypeProperties innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - - /** - * Get the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is - * ready. - * - * @return the pipeline value. - */ - public TriggerPipelineReference pipeline() { - return this.pipeline; - } - - /** - * Set the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is - * ready. - * - * @param pipeline the pipeline value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withPipeline(TriggerPipelineReference pipeline) { - this.pipeline = pipeline; - return this; - } - - /** - * Get the innerTypeProperties property: Tumbling Window Trigger properties. - * - * @return the innerTypeProperties value. - */ - private TumblingWindowTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public TumblingWindowTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public TumblingWindowTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the frequency property: The frequency of the time windows. - * - * @return the frequency value. - */ - public TumblingWindowFrequency frequency() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().frequency(); - } - - /** - * Set the frequency property: The frequency of the time windows. - * - * @param frequency the frequency value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withFrequency(TumblingWindowFrequency frequency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withFrequency(frequency); - return this; - } - - /** - * Get the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes. - * - * @return the interval value. - */ - public int interval() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().interval(); - } - - /** - * Set the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes. - * - * @param interval the interval value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withInterval(int interval) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withInterval(interval); - return this; - } - - /** - * Get the startTime property: The start time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @return the startTime value. - */ - public OffsetDateTime startTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().startTime(); - } - - /** - * Set the startTime property: The start time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @param startTime the startTime value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withStartTime(OffsetDateTime startTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withStartTime(startTime); - return this; - } - - /** - * Get the endTime property: The end time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @return the endTime value. - */ - public OffsetDateTime endTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endTime(); - } - - /** - * Set the endTime property: The end time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @param endTime the endTime value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withEndTime(OffsetDateTime endTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withEndTime(endTime); - return this; - } - - /** - * Get the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't - * alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the delay value. - */ - public Object delay() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().delay(); - } - - /** - * Set the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't - * alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param delay the delay value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withDelay(Object delay) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withDelay(delay); - return this; - } - - /** - * Get the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new - * run is triggered. - * - * @return the maxConcurrency value. - */ - public int maxConcurrency() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().maxConcurrency(); - } - - /** - * Set the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new - * run is triggered. - * - * @param maxConcurrency the maxConcurrency value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withMaxConcurrency(int maxConcurrency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withMaxConcurrency(maxConcurrency); - return this; - } - - /** - * Get the retryPolicy property: Retry policy that will be applied for failed pipeline runs. - * - * @return the retryPolicy value. - */ - public RetryPolicy retryPolicy() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().retryPolicy(); - } - - /** - * Set the retryPolicy property: Retry policy that will be applied for failed pipeline runs. - * - * @param retryPolicy the retryPolicy value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withRetryPolicy(RetryPolicy retryPolicy) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRetryPolicy(retryPolicy); - return this; - } - - /** - * Get the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported. - * - * @return the dependsOn value. - */ - public List dependsOn() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dependsOn(); - } - - /** - * Set the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported. - * - * @param dependsOn the dependsOn value to set. - * @return the TumblingWindowTrigger object itself. - */ - public TumblingWindowTrigger withDependsOn(List dependsOn) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withDependsOn(dependsOn); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (pipeline() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property pipeline in model TumblingWindowTrigger")); - } else { - pipeline().validate(); - } - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model TumblingWindowTrigger")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TumblingWindowTrigger.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTriggerDependencyReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTriggerDependencyReference.java deleted file mode 100644 index 5fb26beb5ad7e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTriggerDependencyReference.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Referenced tumbling window trigger dependency. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("TumblingWindowTriggerDependencyReference") -@Fluent -public final class TumblingWindowTriggerDependencyReference extends TriggerDependencyReference { - /* - * Timespan applied to the start time of a tumbling window when evaluating - * dependency. - */ - @JsonProperty(value = "offset") - private String offset; - - /* - * The size of the window when evaluating the dependency. If undefined the - * frequency of the tumbling window will be used. - */ - @JsonProperty(value = "size") - private String size; - - /** - * Get the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency. - * - * @return the offset value. - */ - public String offset() { - return this.offset; - } - - /** - * Set the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency. - * - * @param offset the offset value to set. - * @return the TumblingWindowTriggerDependencyReference object itself. - */ - public TumblingWindowTriggerDependencyReference withOffset(String offset) { - this.offset = offset; - return this; - } - - /** - * Get the size property: The size of the window when evaluating the dependency. If undefined the frequency of the - * tumbling window will be used. - * - * @return the size value. - */ - public String size() { - return this.size; - } - - /** - * Set the size property: The size of the window when evaluating the dependency. If undefined the frequency of the - * tumbling window will be used. - * - * @param size the size value to set. - * @return the TumblingWindowTriggerDependencyReference object itself. - */ - public TumblingWindowTriggerDependencyReference withSize(String size) { - this.size = size; - return this; - } - - /** {@inheritDoc} */ - @Override - public TumblingWindowTriggerDependencyReference withReferenceTrigger(TriggerReference referenceTrigger) { - super.withReferenceTrigger(referenceTrigger); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TypeConversionSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TypeConversionSettings.java deleted file mode 100644 index 1638684380aee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TypeConversionSettings.java +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Type conversion settings. */ -@Fluent -public final class TypeConversionSettings { - /* - * Whether to allow data truncation when converting the data. Type: boolean - * (or Expression with resultType boolean). - */ - @JsonProperty(value = "allowDataTruncation") - private Object allowDataTruncation; - - /* - * Whether to treat boolean values as numbers. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "treatBooleanAsNumber") - private Object treatBooleanAsNumber; - - /* - * The format for DateTime values. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "dateTimeFormat") - private Object dateTimeFormat; - - /* - * The format for DateTimeOffset values. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "dateTimeOffsetFormat") - private Object dateTimeOffsetFormat; - - /* - * The format for TimeSpan values. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "timeSpanFormat") - private Object timeSpanFormat; - - /* - * The culture used to convert data from/to string. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "culture") - private Object culture; - - /** - * Get the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean - * (or Expression with resultType boolean). - * - * @return the allowDataTruncation value. - */ - public Object allowDataTruncation() { - return this.allowDataTruncation; - } - - /** - * Set the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean - * (or Expression with resultType boolean). - * - * @param allowDataTruncation the allowDataTruncation value to set. - * @return the TypeConversionSettings object itself. - */ - public TypeConversionSettings withAllowDataTruncation(Object allowDataTruncation) { - this.allowDataTruncation = allowDataTruncation; - return this; - } - - /** - * Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression - * with resultType boolean). - * - * @return the treatBooleanAsNumber value. - */ - public Object treatBooleanAsNumber() { - return this.treatBooleanAsNumber; - } - - /** - * Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression - * with resultType boolean). - * - * @param treatBooleanAsNumber the treatBooleanAsNumber value to set. - * @return the TypeConversionSettings object itself. - */ - public TypeConversionSettings withTreatBooleanAsNumber(Object treatBooleanAsNumber) { - this.treatBooleanAsNumber = treatBooleanAsNumber; - return this; - } - - /** - * Get the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType - * string). - * - * @return the dateTimeFormat value. - */ - public Object dateTimeFormat() { - return this.dateTimeFormat; - } - - /** - * Set the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType - * string). - * - * @param dateTimeFormat the dateTimeFormat value to set. - * @return the TypeConversionSettings object itself. - */ - public TypeConversionSettings withDateTimeFormat(Object dateTimeFormat) { - this.dateTimeFormat = dateTimeFormat; - return this; - } - - /** - * Get the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with - * resultType string). - * - * @return the dateTimeOffsetFormat value. - */ - public Object dateTimeOffsetFormat() { - return this.dateTimeOffsetFormat; - } - - /** - * Set the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with - * resultType string). - * - * @param dateTimeOffsetFormat the dateTimeOffsetFormat value to set. - * @return the TypeConversionSettings object itself. - */ - public TypeConversionSettings withDateTimeOffsetFormat(Object dateTimeOffsetFormat) { - this.dateTimeOffsetFormat = dateTimeOffsetFormat; - return this; - } - - /** - * Get the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType - * string). - * - * @return the timeSpanFormat value. - */ - public Object timeSpanFormat() { - return this.timeSpanFormat; - } - - /** - * Set the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType - * string). - * - * @param timeSpanFormat the timeSpanFormat value to set. - * @return the TypeConversionSettings object itself. - */ - public TypeConversionSettings withTimeSpanFormat(Object timeSpanFormat) { - this.timeSpanFormat = timeSpanFormat; - return this; - } - - /** - * Get the culture property: The culture used to convert data from/to string. Type: string (or Expression with - * resultType string). - * - * @return the culture value. - */ - public Object culture() { - return this.culture; - } - - /** - * Set the culture property: The culture used to convert data from/to string. Type: string (or Expression with - * resultType string). - * - * @param culture the culture value to set. - * @return the TypeConversionSettings object itself. - */ - public TypeConversionSettings withCulture(Object culture) { - this.culture = culture; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UntilActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UntilActivity.java deleted file mode 100644 index 0b09c7f74c7c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UntilActivity.java +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.UntilActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** - * This activity executes inner activities until the specified boolean expression results to true or timeout is reached, - * whichever is earlier. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Until") -@Fluent -public final class UntilActivity extends ControlActivity { - /* - * Until activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private UntilActivityTypeProperties innerTypeProperties = new UntilActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Until activity properties. - * - * @return the innerTypeProperties value. - */ - private UntilActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public UntilActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public UntilActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public UntilActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public UntilActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the expression property: An expression that would evaluate to Boolean. The loop will continue until this - * expression evaluates to true. - * - * @return the expression value. - */ - public Expression expression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().expression(); - } - - /** - * Set the expression property: An expression that would evaluate to Boolean. The loop will continue until this - * expression evaluates to true. - * - * @param expression the expression value to set. - * @return the UntilActivity object itself. - */ - public UntilActivity withExpression(Expression expression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new UntilActivityTypeProperties(); - } - this.innerTypeProperties().withExpression(expression); - return this; - } - - /** - * Get the timeout property: 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.innerTypeProperties() == null ? null : this.innerTypeProperties().timeout(); - } - - /** - * Set the timeout property: 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 UntilActivity object itself. - */ - public UntilActivity withTimeout(Object timeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new UntilActivityTypeProperties(); - } - this.innerTypeProperties().withTimeout(timeout); - return this; - } - - /** - * Get the activities property: List of activities to execute. - * - * @return the activities value. - */ - public List activities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().activities(); - } - - /** - * Set the activities property: List of activities to execute. - * - * @param activities the activities value to set. - * @return the UntilActivity object itself. - */ - public UntilActivity withActivities(List activities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new UntilActivityTypeProperties(); - } - this.innerTypeProperties().withActivities(activities); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model UntilActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(UntilActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UpdateIntegrationRuntimeNodeRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UpdateIntegrationRuntimeNodeRequest.java deleted file mode 100644 index 95fbaa009da30..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UpdateIntegrationRuntimeNodeRequest.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Update integration runtime node request. */ -@Fluent -public final class UpdateIntegrationRuntimeNodeRequest { - /* - * The number of concurrent jobs permitted to run on the integration - * runtime node. Values between 1 and maxConcurrentJobs(inclusive) are - * allowed. - */ - @JsonProperty(value = "concurrentJobsLimit") - private Integer concurrentJobsLimit; - - /** - * Get the concurrentJobsLimit property: The number of concurrent jobs permitted to run on the integration runtime - * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. - * - * @return the concurrentJobsLimit value. - */ - public Integer concurrentJobsLimit() { - return this.concurrentJobsLimit; - } - - /** - * Set the concurrentJobsLimit property: The number of concurrent jobs permitted to run on the integration runtime - * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. - * - * @param concurrentJobsLimit the concurrentJobsLimit value to set. - * @return the UpdateIntegrationRuntimeNodeRequest object itself. - */ - public UpdateIntegrationRuntimeNodeRequest withConcurrentJobsLimit(Integer concurrentJobsLimit) { - this.concurrentJobsLimit = concurrentJobsLimit; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UpdateIntegrationRuntimeRequest.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UpdateIntegrationRuntimeRequest.java deleted file mode 100644 index 9dcabffa189f0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UpdateIntegrationRuntimeRequest.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Update integration runtime request. */ -@Fluent -public final class UpdateIntegrationRuntimeRequest { - /* - * Enables or disables the auto-update feature of the self-hosted - * integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. - */ - @JsonProperty(value = "autoUpdate") - private IntegrationRuntimeAutoUpdate autoUpdate; - - /* - * The time offset (in hours) in the day, e.g., PT03H is 3 hours. The - * integration runtime auto update will happen on that time. - */ - @JsonProperty(value = "updateDelayOffset") - private String updateDelayOffset; - - /** - * Get the autoUpdate property: Enables or disables the auto-update feature of the self-hosted integration runtime. - * See https://go.microsoft.com/fwlink/?linkid=854189. - * - * @return the autoUpdate value. - */ - public IntegrationRuntimeAutoUpdate autoUpdate() { - return this.autoUpdate; - } - - /** - * Set the autoUpdate property: Enables or disables the auto-update feature of the self-hosted integration runtime. - * See https://go.microsoft.com/fwlink/?linkid=854189. - * - * @param autoUpdate the autoUpdate value to set. - * @return the UpdateIntegrationRuntimeRequest object itself. - */ - public UpdateIntegrationRuntimeRequest withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate) { - this.autoUpdate = autoUpdate; - return this; - } - - /** - * Get the updateDelayOffset property: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The - * integration runtime auto update will happen on that time. - * - * @return the updateDelayOffset value. - */ - public String updateDelayOffset() { - return this.updateDelayOffset; - } - - /** - * Set the updateDelayOffset property: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The - * integration runtime auto update will happen on that time. - * - * @param updateDelayOffset the updateDelayOffset value to set. - * @return the UpdateIntegrationRuntimeRequest object itself. - */ - public UpdateIntegrationRuntimeRequest withUpdateDelayOffset(String updateDelayOffset) { - this.updateDelayOffset = updateDelayOffset; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UserAccessPolicy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UserAccessPolicy.java deleted file mode 100644 index af6af7d8a8bbc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UserAccessPolicy.java +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Get Data Plane read only token request definition. */ -@Fluent -public final class UserAccessPolicy { - /* - * The string with permissions for Data Plane access. Currently only 'r' is - * supported which grants read only access. - */ - @JsonProperty(value = "permissions") - private String permissions; - - /* - * The resource path to get access relative to factory. Currently only - * empty string is supported which corresponds to the factory resource. - */ - @JsonProperty(value = "accessResourcePath") - private String accessResourcePath; - - /* - * The name of the profile. Currently only the default is supported. The - * default value is DefaultProfile. - */ - @JsonProperty(value = "profileName") - private String profileName; - - /* - * Start time for the token. If not specified the current time will be - * used. - */ - @JsonProperty(value = "startTime") - private String startTime; - - /* - * Expiration time for the token. Maximum duration for the token is eight - * hours and by default the token will expire in eight hours. - */ - @JsonProperty(value = "expireTime") - private String expireTime; - - /** - * Get the permissions property: The string with permissions for Data Plane access. Currently only 'r' is supported - * which grants read only access. - * - * @return the permissions value. - */ - public String permissions() { - return this.permissions; - } - - /** - * Set the permissions property: The string with permissions for Data Plane access. Currently only 'r' is supported - * which grants read only access. - * - * @param permissions the permissions value to set. - * @return the UserAccessPolicy object itself. - */ - public UserAccessPolicy withPermissions(String permissions) { - this.permissions = permissions; - return this; - } - - /** - * Get the accessResourcePath property: The resource path to get access relative to factory. Currently only empty - * string is supported which corresponds to the factory resource. - * - * @return the accessResourcePath value. - */ - public String accessResourcePath() { - return this.accessResourcePath; - } - - /** - * Set the accessResourcePath property: The resource path to get access relative to factory. Currently only empty - * string is supported which corresponds to the factory resource. - * - * @param accessResourcePath the accessResourcePath value to set. - * @return the UserAccessPolicy object itself. - */ - public UserAccessPolicy withAccessResourcePath(String accessResourcePath) { - this.accessResourcePath = accessResourcePath; - return this; - } - - /** - * Get the profileName property: The name of the profile. Currently only the default is supported. The default value - * is DefaultProfile. - * - * @return the profileName value. - */ - public String profileName() { - return this.profileName; - } - - /** - * Set the profileName property: The name of the profile. Currently only the default is supported. The default value - * is DefaultProfile. - * - * @param profileName the profileName value to set. - * @return the UserAccessPolicy object itself. - */ - public UserAccessPolicy withProfileName(String profileName) { - this.profileName = profileName; - return this; - } - - /** - * Get the startTime property: Start time for the token. If not specified the current time will be used. - * - * @return the startTime value. - */ - public String startTime() { - return this.startTime; - } - - /** - * Set the startTime property: Start time for the token. If not specified the current time will be used. - * - * @param startTime the startTime value to set. - * @return the UserAccessPolicy object itself. - */ - public UserAccessPolicy withStartTime(String startTime) { - this.startTime = startTime; - return this; - } - - /** - * Get the expireTime property: Expiration time for the token. Maximum duration for the token is eight hours and by - * default the token will expire in eight hours. - * - * @return the expireTime value. - */ - public String expireTime() { - return this.expireTime; - } - - /** - * Set the expireTime property: Expiration time for the token. Maximum duration for the token is eight hours and by - * default the token will expire in eight hours. - * - * @param expireTime the expireTime value to set. - * @return the UserAccessPolicy object itself. - */ - public UserAccessPolicy withExpireTime(String expireTime) { - this.expireTime = expireTime; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UserProperty.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UserProperty.java deleted file mode 100644 index 5d52bdb3e5bbc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UserProperty.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** User property. */ -@Fluent -public final class UserProperty { - /* - * User property name. - */ - @JsonProperty(value = "name", required = true) - private String name; - - /* - * User property value. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "value", required = true) - private Object value; - - /** - * Get the name property: User property name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: User property name. - * - * @param name the name value to set. - * @return the UserProperty object itself. - */ - public UserProperty withName(String name) { - this.name = name; - return this; - } - - /** - * Get the value property: User property value. Type: string (or Expression with resultType string). - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: User property value. Type: string (or Expression with resultType string). - * - * @param value the value value to set. - * @return the UserProperty object itself. - */ - public UserProperty withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model UserProperty")); - } - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model UserProperty")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(UserProperty.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ValidationActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ValidationActivity.java deleted file mode 100644 index 09b2c6bfae8f1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ValidationActivity.java +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ValidationActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** This activity verifies that an external resource exists. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Validation") -@Fluent -public final class ValidationActivity extends ControlActivity { - /* - * Validation activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ValidationActivityTypeProperties innerTypeProperties = new ValidationActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Validation activity properties. - * - * @return the innerTypeProperties value. - */ - private ValidationActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ValidationActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ValidationActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ValidationActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ValidationActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the timeout property: 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])). - * - * @return the timeout value. - */ - public Object timeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeout(); - } - - /** - * Set the timeout property: 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])). - * - * @param timeout the timeout value to set. - * @return the ValidationActivity object itself. - */ - public ValidationActivity withTimeout(Object timeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withTimeout(timeout); - return this; - } - - /** - * Get the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will - * be used as the default. Type: integer (or Expression with resultType integer). - * - * @return the sleep value. - */ - public Object sleep() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sleep(); - } - - /** - * Set the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will - * be used as the default. Type: integer (or Expression with resultType integer). - * - * @param sleep the sleep value to set. - * @return the ValidationActivity object itself. - */ - public ValidationActivity withSleep(Object sleep) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withSleep(sleep); - return this; - } - - /** - * Get the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in - * size to the value specified. Type: integer (or Expression with resultType integer). - * - * @return the minimumSize value. - */ - public Object minimumSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().minimumSize(); - } - - /** - * Set the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in - * size to the value specified. Type: integer (or Expression with resultType integer). - * - * @param minimumSize the minimumSize value to set. - * @return the ValidationActivity object itself. - */ - public ValidationActivity withMinimumSize(Object minimumSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withMinimumSize(minimumSize); - return this; - } - - /** - * Get the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at - * least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). - * - * @return the childItems value. - */ - public Object childItems() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().childItems(); - } - - /** - * Set the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at - * least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). - * - * @param childItems the childItems value to set. - * @return the ValidationActivity object itself. - */ - public ValidationActivity withChildItems(Object childItems) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withChildItems(childItems); - return this; - } - - /** - * Get the dataset property: Validation activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); - } - - /** - * Set the dataset property: Validation activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the ValidationActivity object itself. - */ - public ValidationActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ValidationActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ValidationActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VariableSpecification.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VariableSpecification.java deleted file mode 100644 index 28f481d3df271..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VariableSpecification.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Definition of a single variable for a Pipeline. */ -@Fluent -public final class VariableSpecification { - /* - * Variable type. - */ - @JsonProperty(value = "type", required = true) - private VariableType type; - - /* - * Default value of variable. - */ - @JsonProperty(value = "defaultValue") - private Object defaultValue; - - /** - * Get the type property: Variable type. - * - * @return the type value. - */ - public VariableType type() { - return this.type; - } - - /** - * Set the type property: Variable type. - * - * @param type the type value to set. - * @return the VariableSpecification object itself. - */ - public VariableSpecification withType(VariableType type) { - this.type = type; - return this; - } - - /** - * Get the defaultValue property: Default value of variable. - * - * @return the defaultValue value. - */ - public Object defaultValue() { - return this.defaultValue; - } - - /** - * Set the defaultValue property: Default value of variable. - * - * @param defaultValue the defaultValue value to set. - * @return the VariableSpecification object itself. - */ - public VariableSpecification withDefaultValue(Object defaultValue) { - this.defaultValue = defaultValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model VariableSpecification")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(VariableSpecification.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VariableType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VariableType.java deleted file mode 100644 index e15b052077ca9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VariableType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for VariableType. */ -public final class VariableType extends ExpandableStringEnum { - /** Static value String for VariableType. */ - public static final VariableType STRING = fromString("String"); - - /** Static value Bool for VariableType. */ - public static final VariableType BOOL = fromString("Bool"); - - /** Static value Array for VariableType. */ - public static final VariableType ARRAY = fromString("Array"); - - /** - * Creates or finds a VariableType from its string representation. - * - * @param name a name to look for. - * @return the corresponding VariableType. - */ - @JsonCreator - public static VariableType fromString(String name) { - return fromString(name, VariableType.class); - } - - /** @return known VariableType values. */ - public static Collection values() { - return values(VariableType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaLinkedService.java deleted file mode 100644 index d39dba9580da9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaLinkedService.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.VerticaLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Vertica linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Vertica") -@Fluent -public final class VerticaLinkedService extends LinkedService { - /* - * Vertica linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private VerticaLinkedServiceTypeProperties innerTypeProperties = new VerticaLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Vertica linked service properties. - * - * @return the innerTypeProperties value. - */ - private VerticaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the VerticaLinkedService object itself. - */ - public VerticaLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the VerticaLinkedService object itself. - */ - public VerticaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the VerticaLinkedService object itself. - */ - public VerticaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model VerticaLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(VerticaLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaSource.java deleted file mode 100644 index 06e99726f4084..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Vertica source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("VerticaSource") -@Fluent -public final class VerticaSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the VerticaSource object itself. - */ - public VerticaSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaTableDataset.java deleted file mode 100644 index 9b7ee63831d4e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaTableDataset.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.VerticaDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Vertica dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("VerticaTable") -@Fluent -public final class VerticaTableDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private VerticaDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private VerticaDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the VerticaTableDataset object itself. - */ - public VerticaTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The table name of the Vertica. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Vertica. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the VerticaTableDataset object itself. - */ - public VerticaTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the VerticaTableDataset object itself. - */ - public VerticaTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WaitActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WaitActivity.java deleted file mode 100644 index ea980a58cba5d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WaitActivity.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WaitActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** This activity suspends pipeline execution for the specified interval. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Wait") -@Fluent -public final class WaitActivity extends ControlActivity { - /* - * Wait activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private WaitActivityTypeProperties innerTypeProperties = new WaitActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Wait activity properties. - * - * @return the innerTypeProperties value. - */ - private WaitActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public WaitActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public WaitActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public WaitActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public WaitActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the waitTimeInSeconds property: Duration in seconds. - * - * @return the waitTimeInSeconds value. - */ - public Object waitTimeInSeconds() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().waitTimeInSeconds(); - } - - /** - * Set the waitTimeInSeconds property: Duration in seconds. - * - * @param waitTimeInSeconds the waitTimeInSeconds value to set. - * @return the WaitActivity object itself. - */ - public WaitActivity withWaitTimeInSeconds(Object waitTimeInSeconds) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WaitActivityTypeProperties(); - } - this.innerTypeProperties().withWaitTimeInSeconds(waitTimeInSeconds); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model WaitActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WaitActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java deleted file mode 100644 index 4e71ee7ed49cc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WebActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Web activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("WebActivity") -@Fluent -public final class WebActivity extends ExecutionActivity { - /* - * Web activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private WebActivityTypeProperties innerTypeProperties = new WebActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: Web activity properties. - * - * @return the innerTypeProperties value. - */ - private WebActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public WebActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public WebActivityMethod method() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().method(); - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the WebActivity object itself. - */ - public WebActivity withMethod(WebActivityMethod method) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withMethod(method); - return this; - } - - /** - * Get the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the WebActivity object itself. - */ - public WebActivity withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the headers property: 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.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); - } - - /** - * Set the headers property: 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 WebActivity object itself. - */ - public WebActivity withHeaders(Object headers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withHeaders(headers); - return this; - } - - /** - * Get the body property: 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.innerTypeProperties() == null ? null : this.innerTypeProperties().body(); - } - - /** - * Set the body property: 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 WebActivity object itself. - */ - public WebActivity withBody(Object body) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withBody(body); - return this; - } - - /** - * Get the authentication property: Authentication method used for calling the endpoint. - * - * @return the authentication value. - */ - public WebActivityAuthentication authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); - } - - /** - * Set the authentication property: Authentication method used for calling the endpoint. - * - * @param authentication the authentication value to set. - * @return the WebActivity object itself. - */ - public WebActivity withAuthentication(WebActivityAuthentication authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); - return this; - } - - /** - * Get the disableCertValidation property: When set to true, Certificate validation will be disabled. - * - * @return the disableCertValidation value. - */ - public Boolean disableCertValidation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().disableCertValidation(); - } - - /** - * Set the disableCertValidation property: When set to true, Certificate validation will be disabled. - * - * @param disableCertValidation the disableCertValidation value to set. - * @return the WebActivity object itself. - */ - public WebActivity withDisableCertValidation(Boolean disableCertValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withDisableCertValidation(disableCertValidation); - return this; - } - - /** - * Get the datasets property: List of datasets passed to web endpoint. - * - * @return the datasets value. - */ - public List datasets() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().datasets(); - } - - /** - * Set the datasets property: List of datasets passed to web endpoint. - * - * @param datasets the datasets value to set. - * @return the WebActivity object itself. - */ - public WebActivity withDatasets(List datasets) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withDatasets(datasets); - return this; - } - - /** - * Get the linkedServices property: List of linked services passed to web endpoint. - * - * @return the linkedServices value. - */ - public List linkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServices(); - } - - /** - * Set the linkedServices property: List of linked services passed to web endpoint. - * - * @param linkedServices the linkedServices value to set. - * @return the WebActivity object itself. - */ - public WebActivity withLinkedServices(List linkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withLinkedServices(linkedServices); - return this; - } - - /** - * Get the connectVia property: The integration runtime reference. - * - * @return the connectVia value. - */ - public IntegrationRuntimeReference connectVia() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectVia(); - } - - /** - * Set the connectVia property: The integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the WebActivity object itself. - */ - public WebActivity withConnectVia(IntegrationRuntimeReference connectVia) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withConnectVia(connectVia); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property innerTypeProperties in model WebActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivityAuthentication.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivityAuthentication.java deleted file mode 100644 index 9fc831afdaabe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivityAuthentication.java +++ /dev/null @@ -1,227 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Web activity authentication properties. */ -@Fluent -public final class WebActivityAuthentication { - /* - * Web activity authentication - * (Basic/ClientCertificate/MSI/ServicePrincipal) - */ - @JsonProperty(value = "type") - private String type; - - /* - * Base64-encoded contents of a PFX file or Certificate when used for - * ServicePrincipal - */ - @JsonProperty(value = "pfx") - private SecretBase pfx; - - /* - * Web activity authentication user name for basic authentication or - * ClientID when used for ServicePrincipal. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for the PFX file or basic authentication / Secret when used for - * ServicePrincipal - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Resource for which Azure Auth token will be requested when using MSI - * Authentication. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "resource") - private Object resource; - - /* - * TenantId for which Azure Auth token will be requested when using - * ServicePrincipal Authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userTenant") - private Object userTenant; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the type property: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal). - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal). - * - * @param type the type value to set. - * @return the WebActivityAuthentication object itself. - */ - public WebActivityAuthentication withType(String type) { - this.type = type; - return this; - } - - /** - * Get the pfx property: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal. - * - * @return the pfx value. - */ - public SecretBase pfx() { - return this.pfx; - } - - /** - * Set the pfx property: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal. - * - * @param pfx the pfx value to set. - * @return the WebActivityAuthentication object itself. - */ - public WebActivityAuthentication withPfx(SecretBase pfx) { - this.pfx = pfx; - return this; - } - - /** - * Get the username property: Web activity authentication user name for basic authentication or ClientID when used - * for ServicePrincipal. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Web activity authentication user name for basic authentication or ClientID when used - * for ServicePrincipal. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the WebActivityAuthentication object itself. - */ - public WebActivityAuthentication withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for the PFX file or basic authentication / Secret when used for - * ServicePrincipal. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for the PFX file or basic authentication / Secret when used for - * ServicePrincipal. - * - * @param password the password value to set. - * @return the WebActivityAuthentication object itself. - */ - public WebActivityAuthentication withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the resource property: Resource for which Azure Auth token will be requested when using MSI Authentication. - * Type: string (or Expression with resultType string). - * - * @return the resource value. - */ - public Object resource() { - return this.resource; - } - - /** - * Set the resource property: Resource for which Azure Auth token will be requested when using MSI Authentication. - * Type: string (or Expression with resultType string). - * - * @param resource the resource value to set. - * @return the WebActivityAuthentication object itself. - */ - public WebActivityAuthentication withResource(Object resource) { - this.resource = resource; - return this; - } - - /** - * Get the userTenant property: TenantId for which Azure Auth token will be requested when using ServicePrincipal - * Authentication. Type: string (or Expression with resultType string). - * - * @return the userTenant value. - */ - public Object userTenant() { - return this.userTenant; - } - - /** - * Set the userTenant property: TenantId for which Azure Auth token will be requested when using ServicePrincipal - * Authentication. Type: string (or Expression with resultType string). - * - * @param userTenant the userTenant value to set. - * @return the WebActivityAuthentication object itself. - */ - public WebActivityAuthentication withUserTenant(Object userTenant) { - this.userTenant = userTenant; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the WebActivityAuthentication object itself. - */ - public WebActivityAuthentication withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pfx() != null) { - pfx().validate(); - } - if (password() != null) { - password().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivityMethod.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivityMethod.java deleted file mode 100644 index 6bfc01a50af0a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivityMethod.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for WebActivityMethod. */ -public final class WebActivityMethod extends ExpandableStringEnum { - /** Static value GET for WebActivityMethod. */ - public static final WebActivityMethod GET = fromString("GET"); - - /** Static value POST for WebActivityMethod. */ - public static final WebActivityMethod POST = fromString("POST"); - - /** Static value PUT for WebActivityMethod. */ - public static final WebActivityMethod PUT = fromString("PUT"); - - /** Static value DELETE for WebActivityMethod. */ - public static final WebActivityMethod DELETE = fromString("DELETE"); - - /** - * Creates or finds a WebActivityMethod from its string representation. - * - * @param name a name to look for. - * @return the corresponding WebActivityMethod. - */ - @JsonCreator - public static WebActivityMethod fromString(String name) { - return fromString(name, WebActivityMethod.class); - } - - /** @return known WebActivityMethod values. */ - public static Collection values() { - return values(WebActivityMethod.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebAnonymousAuthentication.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebAnonymousAuthentication.java deleted file mode 100644 index 3c97d94761e53..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebAnonymousAuthentication.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType") -@JsonTypeName("Anonymous") -@Fluent -public final class WebAnonymousAuthentication extends WebLinkedServiceTypeProperties { - /** {@inheritDoc} */ - @Override - public WebAnonymousAuthentication withUrl(Object url) { - super.withUrl(url); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebAuthenticationType.java deleted file mode 100644 index 1d51047c0679c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebAuthenticationType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for WebAuthenticationType. */ -public final class WebAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for WebAuthenticationType. */ - public static final WebAuthenticationType BASIC = fromString("Basic"); - - /** Static value Anonymous for WebAuthenticationType. */ - public static final WebAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value ClientCertificate for WebAuthenticationType. */ - public static final WebAuthenticationType CLIENT_CERTIFICATE = fromString("ClientCertificate"); - - /** - * Creates or finds a WebAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding WebAuthenticationType. - */ - @JsonCreator - public static WebAuthenticationType fromString(String name) { - return fromString(name, WebAuthenticationType.class); - } - - /** @return known WebAuthenticationType values. */ - public static Collection values() { - return values(WebAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebBasicAuthentication.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebBasicAuthentication.java deleted file mode 100644 index c138a04ffe39a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebBasicAuthentication.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType") -@JsonTypeName("Basic") -@Fluent -public final class WebBasicAuthentication extends WebLinkedServiceTypeProperties { - /* - * User name for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password for Basic authentication. - */ - @JsonProperty(value = "password", required = true) - private SecretBase password; - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the WebBasicAuthentication object itself. - */ - public WebBasicAuthentication withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication. - * - * @param password the password value to set. - * @return the WebBasicAuthentication object itself. - */ - public WebBasicAuthentication withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** {@inheritDoc} */ - @Override - public WebBasicAuthentication withUrl(Object url) { - super.withUrl(url); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property username in model WebBasicAuthentication")); - } - if (password() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property password in model WebBasicAuthentication")); - } else { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebBasicAuthentication.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebClientCertificateAuthentication.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebClientCertificateAuthentication.java deleted file mode 100644 index fed445f4a77c3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebClientCertificateAuthentication.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * A WebLinkedService that uses client certificate based authentication to communicate with an HTTP endpoint. This - * scheme follows mutual authentication; the server must also provide valid credentials to the client. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType") -@JsonTypeName("ClientCertificate") -@Fluent -public final class WebClientCertificateAuthentication extends WebLinkedServiceTypeProperties { - /* - * Base64-encoded contents of a PFX file. - */ - @JsonProperty(value = "pfx", required = true) - private SecretBase pfx; - - /* - * Password for the PFX file. - */ - @JsonProperty(value = "password", required = true) - private SecretBase password; - - /** - * Get the pfx property: Base64-encoded contents of a PFX file. - * - * @return the pfx value. - */ - public SecretBase pfx() { - return this.pfx; - } - - /** - * Set the pfx property: Base64-encoded contents of a PFX file. - * - * @param pfx the pfx value to set. - * @return the WebClientCertificateAuthentication object itself. - */ - public WebClientCertificateAuthentication withPfx(SecretBase pfx) { - this.pfx = pfx; - return this; - } - - /** - * Get the password property: Password for the PFX file. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for the PFX file. - * - * @param password the password value to set. - * @return the WebClientCertificateAuthentication object itself. - */ - public WebClientCertificateAuthentication withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** {@inheritDoc} */ - @Override - public WebClientCertificateAuthentication withUrl(Object url) { - super.withUrl(url); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (pfx() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property pfx in model WebClientCertificateAuthentication")); - } else { - pfx().validate(); - } - if (password() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property password in model WebClientCertificateAuthentication")); - } else { - password().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebClientCertificateAuthentication.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebLinkedService.java deleted file mode 100644 index 9da98767e59cd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebLinkedService.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Web linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Web") -@Fluent -public final class WebLinkedService extends LinkedService { - /* - * Web linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private WebLinkedServiceTypeProperties typeProperties; - - /** - * Get the typeProperties property: Web linked service properties. - * - * @return the typeProperties value. - */ - public WebLinkedServiceTypeProperties typeProperties() { - return this.typeProperties; - } - - /** - * Set the typeProperties property: Web linked service properties. - * - * @param typeProperties the typeProperties value to set. - * @return the WebLinkedService object itself. - */ - public WebLinkedService withTypeProperties(WebLinkedServiceTypeProperties typeProperties) { - this.typeProperties = typeProperties; - return this; - } - - /** {@inheritDoc} */ - @Override - public WebLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (typeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property typeProperties in model WebLinkedService")); - } else { - typeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebLinkedServiceTypeProperties.java deleted file mode 100644 index f50820ca9f15c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebLinkedServiceTypeProperties.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * Base definition of WebLinkedServiceTypeProperties, this typeProperties is polymorphic based on authenticationType, so - * not flattened in SDK models. - */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "authenticationType", - defaultImpl = WebLinkedServiceTypeProperties.class) -@JsonTypeName("WebLinkedServiceTypeProperties") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Anonymous", value = WebAnonymousAuthentication.class), - @JsonSubTypes.Type(name = "Basic", value = WebBasicAuthentication.class), - @JsonSubTypes.Type(name = "ClientCertificate", value = WebClientCertificateAuthentication.class) -}) -@Fluent -public class WebLinkedServiceTypeProperties { - /* - * The URL of the web service endpoint, e.g. http://www.microsoft.com . - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /** - * Get the url property: The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or - * Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or - * Expression with resultType string). - * - * @param url the url value to set. - * @return the WebLinkedServiceTypeProperties object itself. - */ - public WebLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model WebLinkedServiceTypeProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebSource.java deleted file mode 100644 index 4368db8cf0458..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebSource.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity source for web page table. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("WebSource") -@Fluent -public final class WebSource extends CopySource { - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the WebSource object itself. - */ - public WebSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public WebSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebTableDataset.java deleted file mode 100644 index e3ec25e351f95..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebTableDataset.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WebTableDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** The dataset points to a HTML table in the web page. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("WebTable") -@Fluent -public final class WebTableDataset extends Dataset { - /* - * Web table dataset properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private WebTableDatasetTypeProperties innerTypeProperties = new WebTableDatasetTypeProperties(); - - /** - * Get the innerTypeProperties property: Web table dataset properties. - * - * @return the innerTypeProperties value. - */ - private WebTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public WebTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @return the index value. - */ - public Object index() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().index(); - } - - /** - * Set the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @param index the index value to set. - * @return the WebTableDataset object itself. - */ - public WebTableDataset withIndex(Object index) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebTableDatasetTypeProperties(); - } - this.innerTypeProperties().withIndex(index); - return this; - } - - /** - * Get the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @param path the path value to set. - * @return the WebTableDataset object itself. - */ - public WebTableDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebTableDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model WebTableDataset")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebTableDataset.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java deleted file mode 100644 index 2901491df4d56..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WebhookActivityTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** WebHook activity. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("WebHook") -@Fluent -public final class WebhookActivity extends ControlActivity { - /* - * WebHook activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private WebhookActivityTypeProperties innerTypeProperties = new WebhookActivityTypeProperties(); - - /** - * Get the innerTypeProperties property: WebHook activity properties. - * - * @return the innerTypeProperties value. - */ - private WebhookActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public WebhookActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebhookActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebhookActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public WebhookActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public WebhookActivityMethod method() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().method(); - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the WebhookActivity object itself. - */ - public WebhookActivity withMethod(WebhookActivityMethod method) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withMethod(method); - return this; - } - - /** - * Get the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType - * string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: 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) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the timeout property: The timeout within which the webhook should be called back. If there is no value - * specified, it defaults to 10 minutes. Type: string. Pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the timeout value. - */ - public String timeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeout(); - } - - /** - * Set the timeout property: The timeout within which the webhook should be called back. If there is no value - * specified, it defaults to 10 minutes. Type: 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(String timeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withTimeout(timeout); - return this; - } - - /** - * Get the headers property: 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.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); - } - - /** - * Set the headers property: 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) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withHeaders(headers); - return this; - } - - /** - * Get the body property: 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.innerTypeProperties() == null ? null : this.innerTypeProperties().body(); - } - - /** - * Set the body property: 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) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withBody(body); - return this; - } - - /** - * Get the authentication property: Authentication method used for calling the endpoint. - * - * @return the authentication value. - */ - public WebActivityAuthentication authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); - } - - /** - * Set the authentication property: Authentication method used for calling the endpoint. - * - * @param authentication the authentication value to set. - * @return the WebhookActivity object itself. - */ - public WebhookActivity withAuthentication(WebActivityAuthentication authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); - return this; - } - - /** - * Get the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback - * request. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the reportStatusOnCallBack value. - */ - public Object reportStatusOnCallBack() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().reportStatusOnCallBack(); - } - - /** - * Set the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback - * request. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param reportStatusOnCallBack the reportStatusOnCallBack value to set. - * @return the WebhookActivity object itself. - */ - public WebhookActivity withReportStatusOnCallBack(Object reportStatusOnCallBack) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withReportStatusOnCallBack(reportStatusOnCallBack); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model WebhookActivity")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebhookActivity.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivityMethod.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivityMethod.java deleted file mode 100644 index 8160ab4462a84..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivityMethod.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** 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/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WranglingDataFlow.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WranglingDataFlow.java deleted file mode 100644 index f21edd002baf1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WranglingDataFlow.java +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.PowerQueryTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; - -/** Power Query data flow. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("WranglingDataFlow") -@Fluent -public final class WranglingDataFlow extends DataFlow { - /* - * PowerQuery data flow type properties. - */ - @JsonProperty(value = "typeProperties") - private PowerQueryTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: PowerQuery data flow type properties. - * - * @return the innerTypeProperties value. - */ - private PowerQueryTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public WranglingDataFlow withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public WranglingDataFlow withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public WranglingDataFlow withFolder(DataFlowFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the sources property: List of sources in Power Query. - * - * @return the sources value. - */ - public List sources() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sources(); - } - - /** - * Set the sources property: List of sources in Power Query. - * - * @param sources the sources value to set. - * @return the WranglingDataFlow object itself. - */ - public WranglingDataFlow withSources(List sources) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PowerQueryTypeProperties(); - } - this.innerTypeProperties().withSources(sources); - return this; - } - - /** - * Get the script property: Power query mashup script. - * - * @return the script value. - */ - public String script() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().script(); - } - - /** - * Set the script property: Power query mashup script. - * - * @param script the script value to set. - * @return the WranglingDataFlow object itself. - */ - public WranglingDataFlow withScript(String script) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PowerQueryTypeProperties(); - } - this.innerTypeProperties().withScript(script); - return this; - } - - /** - * Get the documentLocale property: Locale of the Power query mashup document. - * - * @return the documentLocale value. - */ - public String documentLocale() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().documentLocale(); - } - - /** - * Set the documentLocale property: Locale of the Power query mashup document. - * - * @param documentLocale the documentLocale value to set. - * @return the WranglingDataFlow object itself. - */ - public WranglingDataFlow withDocumentLocale(String documentLocale) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PowerQueryTypeProperties(); - } - this.innerTypeProperties().withDocumentLocale(documentLocale); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroLinkedService.java deleted file mode 100644 index b48da080b9002..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroLinkedService.java +++ /dev/null @@ -1,279 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.XeroLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Xero Service linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Xero") -@Fluent -public final class XeroLinkedService extends LinkedService { - /* - * Xero Service linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private XeroLinkedServiceTypeProperties innerTypeProperties = new XeroLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Xero Service linked service properties. - * - * @return the innerTypeProperties value. - */ - private XeroLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public XeroLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionProperties property: Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); - } - - /** - * Set the connectionProperties property: Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); - return this; - } - - /** - * Get the host property: The endpoint of the Xero server. (i.e. api.xero.com). - * - * @return the host value. - */ - public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); - } - - /** - * Set the host property: The endpoint of the Xero server. (i.e. api.xero.com). - * - * @param host the host value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); - return this; - } - - /** - * Get the consumerKey property: The consumer key associated with the Xero application. - * - * @return the consumerKey value. - */ - public SecretBase consumerKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().consumerKey(); - } - - /** - * Set the consumerKey property: The consumer key associated with the Xero application. - * - * @param consumerKey the consumerKey value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withConsumerKey(SecretBase consumerKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConsumerKey(consumerKey); - return this; - } - - /** - * Get the privateKey property: The private key from the .pem file that was generated for your Xero private - * application. You must include all the text from the .pem file, including the Unix line endings( ). - * - * @return the privateKey value. - */ - public SecretBase privateKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().privateKey(); - } - - /** - * Set the privateKey property: The private key from the .pem file that was generated for your Xero private - * application. You must include all the text from the .pem file, including the Unix line endings( ). - * - * @param privateKey the privateKey value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withPrivateKey(SecretBase privateKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPrivateKey(privateKey); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the XeroLinkedService object itself. - */ - public XeroLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model XeroLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(XeroLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroObjectDataset.java deleted file mode 100644 index 5313ebae9b995..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Xero Service dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("XeroObject") -@Fluent -public final class XeroObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public XeroObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the XeroObjectDataset object itself. - */ - public XeroObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroSource.java deleted file mode 100644 index 721b1b5186c79..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Xero Service source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("XeroSource") -@Fluent -public final class XeroSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the XeroSource object itself. - */ - public XeroSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public XeroSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlDataset.java deleted file mode 100644 index 1f55c863f46b2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlDataset.java +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.XmlDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Xml dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Xml") -@Fluent -public final class XmlDataset extends Dataset { - /* - * Xml dataset properties. - */ - @JsonProperty(value = "typeProperties") - private XmlDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Xml dataset properties. - * - * @return the innerTypeProperties value. - */ - private XmlDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the location property: The location of the json data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the json data storage. - * - * @param location the location value to set. - * @return the XmlDataset object itself. - */ - public XmlDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encodingName(); - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the XmlDataset object itself. - */ - public XmlDataset withEncodingName(Object encodingName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withEncodingName(encodingName); - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nullValue(); - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the XmlDataset object itself. - */ - public XmlDataset withNullValue(Object nullValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withNullValue(nullValue); - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the XmlDataset object itself. - */ - public XmlDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlReadSettings.java deleted file mode 100644 index 89c772439a40e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlReadSettings.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** Xml read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("XmlReadSettings") -@Fluent -public final class XmlReadSettings extends FormatReadSettings { - /* - * Compression settings. - */ - @JsonProperty(value = "compressionProperties") - private CompressionReadSettings compressionProperties; - - /* - * Indicates what validation method is used when reading the xml files. - * Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "validationMode") - private Object validationMode; - - /* - * Indicates whether type detection is enabled when reading the xml files. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "detectDataType") - private Object detectDataType; - - /* - * Indicates whether namespace is enabled when reading the xml files. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "namespaces") - private Object namespaces; - - /* - * Namespace uri to prefix mappings to override the prefixes in column - * names when namespace is enabled, if no prefix is defined for a namespace - * uri, the prefix of xml element/attribute name in the xml data file will - * be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object - * (or Expression with resultType object). - */ - @JsonProperty(value = "namespacePrefixes") - private Object namespacePrefixes; - - /** - * Get the compressionProperties property: Compression settings. - * - * @return the compressionProperties value. - */ - public CompressionReadSettings compressionProperties() { - return this.compressionProperties; - } - - /** - * Set the compressionProperties property: Compression settings. - * - * @param compressionProperties the compressionProperties value to set. - * @return the XmlReadSettings object itself. - */ - public XmlReadSettings withCompressionProperties(CompressionReadSettings compressionProperties) { - this.compressionProperties = compressionProperties; - return this; - } - - /** - * Get the validationMode property: Indicates what validation method is used when reading the xml files. Allowed - * values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). - * - * @return the validationMode value. - */ - public Object validationMode() { - return this.validationMode; - } - - /** - * Set the validationMode property: Indicates what validation method is used when reading the xml files. Allowed - * values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). - * - * @param validationMode the validationMode value to set. - * @return the XmlReadSettings object itself. - */ - public XmlReadSettings withValidationMode(Object validationMode) { - this.validationMode = validationMode; - return this; - } - - /** - * Get the detectDataType property: Indicates whether type detection is enabled when reading the xml files. Type: - * boolean (or Expression with resultType boolean). - * - * @return the detectDataType value. - */ - public Object detectDataType() { - return this.detectDataType; - } - - /** - * Set the detectDataType property: Indicates whether type detection is enabled when reading the xml files. Type: - * boolean (or Expression with resultType boolean). - * - * @param detectDataType the detectDataType value to set. - * @return the XmlReadSettings object itself. - */ - public XmlReadSettings withDetectDataType(Object detectDataType) { - this.detectDataType = detectDataType; - return this; - } - - /** - * Get the namespaces property: Indicates whether namespace is enabled when reading the xml files. Type: boolean (or - * Expression with resultType boolean). - * - * @return the namespaces value. - */ - public Object namespaces() { - return this.namespaces; - } - - /** - * Set the namespaces property: Indicates whether namespace is enabled when reading the xml files. Type: boolean (or - * Expression with resultType boolean). - * - * @param namespaces the namespaces value to set. - * @return the XmlReadSettings object itself. - */ - public XmlReadSettings withNamespaces(Object namespaces) { - this.namespaces = namespaces; - return this; - } - - /** - * Get the namespacePrefixes property: Namespace uri to prefix mappings to override the prefixes in column names - * when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name - * in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression - * with resultType object). - * - * @return the namespacePrefixes value. - */ - public Object namespacePrefixes() { - return this.namespacePrefixes; - } - - /** - * Set the namespacePrefixes property: Namespace uri to prefix mappings to override the prefixes in column names - * when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name - * in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression - * with resultType object). - * - * @param namespacePrefixes the namespacePrefixes value to set. - * @return the XmlReadSettings object itself. - */ - public XmlReadSettings withNamespacePrefixes(Object namespacePrefixes) { - this.namespacePrefixes = namespacePrefixes; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (compressionProperties() != null) { - compressionProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlSource.java deleted file mode 100644 index 7da2475a2e35f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlSource.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Xml source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("XmlSource") -@Fluent -public final class XmlSource extends CopySource { - /* - * Xml store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * Xml format settings. - */ - @JsonProperty(value = "formatSettings") - private XmlReadSettings formatSettings; - - /* - * Specifies the additional columns to be added to source data. Type: array - * of objects(AdditionalColumns) (or Expression with resultType array of - * objects). - */ - @JsonProperty(value = "additionalColumns") - private Object additionalColumns; - - /** - * Get the storeSettings property: Xml store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Xml store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the XmlSource object itself. - */ - public XmlSource withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: Xml format settings. - * - * @return the formatSettings value. - */ - public XmlReadSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: Xml format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the XmlSource object itself. - */ - public XmlSource withFormatSettings(XmlReadSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** - * Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @return the additionalColumns value. - */ - public Object additionalColumns() { - return this.additionalColumns; - } - - /** - * Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of - * objects(AdditionalColumns) (or Expression with resultType array of objects). - * - * @param additionalColumns the additionalColumns value to set. - * @return the XmlSource object itself. - */ - public XmlSource withAdditionalColumns(Object additionalColumns) { - this.additionalColumns = additionalColumns; - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskAuthenticationType.java deleted file mode 100644 index 6c25547e8fbae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskAuthenticationType.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ZendeskAuthenticationType. */ -public final class ZendeskAuthenticationType extends ExpandableStringEnum { - /** Static value Basic for ZendeskAuthenticationType. */ - public static final ZendeskAuthenticationType BASIC = fromString("Basic"); - - /** Static value Token for ZendeskAuthenticationType. */ - public static final ZendeskAuthenticationType TOKEN = fromString("Token"); - - /** - * Creates or finds a ZendeskAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ZendeskAuthenticationType. - */ - @JsonCreator - public static ZendeskAuthenticationType fromString(String name) { - return fromString(name, ZendeskAuthenticationType.class); - } - - /** @return known ZendeskAuthenticationType values. */ - public static Collection values() { - return values(ZendeskAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskLinkedService.java deleted file mode 100644 index 28a7167b3f2fb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskLinkedService.java +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ZendeskLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for Zendesk. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Zendesk") -@Fluent -public final class ZendeskLinkedService extends LinkedService { - /* - * Zendesk linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ZendeskLinkedServiceTypeProperties innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Zendesk linked service properties. - * - * @return the innerTypeProperties value. - */ - private ZendeskLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ZendeskLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZendeskLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZendeskLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZendeskLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ZendeskAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ZendeskLinkedService object itself. - */ - public ZendeskLinkedService withAuthenticationType(ZendeskAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); - } - - /** - * Set the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the ZendeskLinkedService object itself. - */ - public ZendeskLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); - return this; - } - - /** - * Get the username property: The username of the Zendesk source. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); - } - - /** - * Set the username property: The username of the Zendesk source. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the ZendeskLinkedService object itself. - */ - public ZendeskLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); - return this; - } - - /** - * Get the password property: The password of the Zendesk source. - * - * @return the password value. - */ - public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); - } - - /** - * Set the password property: The password of the Zendesk source. - * - * @param password the password value to set. - * @return the ZendeskLinkedService object itself. - */ - public ZendeskLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); - return this; - } - - /** - * Get the apiToken property: The api token for the Zendesk source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiToken(); - } - - /** - * Set the apiToken property: The api token for the Zendesk source. - * - * @param apiToken the apiToken value to set. - * @return the ZendeskLinkedService object itself. - */ - public ZendeskLinkedService withApiToken(SecretBase apiToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiToken(apiToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ZendeskLinkedService object itself. - */ - public ZendeskLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ZendeskLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ZendeskLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZipDeflateReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZipDeflateReadSettings.java deleted file mode 100644 index 34c53c97e5b5b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZipDeflateReadSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** The ZipDeflate compression read settings. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ZipDeflateReadSettings") -@Fluent -public final class ZipDeflateReadSettings extends CompressionReadSettings { - /* - * Preserve the zip file name as folder path. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "preserveZipFileNameAsFolder") - private Object preserveZipFileNameAsFolder; - - /** - * Get the preserveZipFileNameAsFolder property: Preserve the zip file name as folder path. Type: boolean (or - * Expression with resultType boolean). - * - * @return the preserveZipFileNameAsFolder value. - */ - public Object preserveZipFileNameAsFolder() { - return this.preserveZipFileNameAsFolder; - } - - /** - * Set the preserveZipFileNameAsFolder property: Preserve the zip file name as folder path. Type: boolean (or - * Expression with resultType boolean). - * - * @param preserveZipFileNameAsFolder the preserveZipFileNameAsFolder value to set. - * @return the ZipDeflateReadSettings object itself. - */ - public ZipDeflateReadSettings withPreserveZipFileNameAsFolder(Object preserveZipFileNameAsFolder) { - this.preserveZipFileNameAsFolder = preserveZipFileNameAsFolder; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoLinkedService.java deleted file mode 100644 index 59c07be687a6b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoLinkedService.java +++ /dev/null @@ -1,254 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ZohoLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Zoho server linked service. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Zoho") -@Fluent -public final class ZohoLinkedService extends LinkedService { - /* - * Zoho server linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ZohoLinkedServiceTypeProperties innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - - /** - * Get the innerTypeProperties property: Zoho server linked service properties. - * - * @return the innerTypeProperties value. - */ - private ZohoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the connectionProperties property: Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); - } - - /** - * Set the connectionProperties property: Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the ZohoLinkedService object itself. - */ - public ZohoLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); - return this; - } - - /** - * Get the endpoint property: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); - } - - /** - * Set the endpoint property: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - * - * @param endpoint the endpoint value to set. - * @return the ZohoLinkedService object itself. - */ - public ZohoLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); - return this; - } - - /** - * Get the accessToken property: The access token for Zoho authentication. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); - } - - /** - * Set the accessToken property: The access token for Zoho authentication. - * - * @param accessToken the accessToken value to set. - * @return the ZohoLinkedService object itself. - */ - public ZohoLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ZohoLinkedService object itself. - */ - public ZohoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ZohoLinkedService object itself. - */ - public ZohoLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ZohoLinkedService object itself. - */ - public ZohoLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ZohoLinkedService object itself. - */ - public ZohoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ZohoLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ZohoLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoObjectDataset.java deleted file mode 100644 index 626fc42131b48..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoObjectDataset.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Zoho server dataset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ZohoObject") -@Fluent -public final class ZohoObjectDataset extends Dataset { - /* - * Properties specific to this dataset type. - */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. - */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ZohoObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ZohoObjectDataset object itself. - */ - public ZohoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoSource.java deleted file mode 100644 index b81dd4210c9d2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoSource.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** A copy activity Zoho server source. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("ZohoSource") -@Fluent -public final class ZohoSource extends TabularSource { - /* - * A query to retrieve data from source. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "query") - private Object query; - - /** - * Get the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @return the query value. - */ - public Object query() { - return this.query; - } - - /** - * Set the query property: A query to retrieve data from source. Type: string (or Expression with resultType - * string). - * - * @param query the query value to set. - * @return the ZohoSource object itself. - */ - public ZohoSource withQuery(Object query) { - this.query = query; - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoSource withQueryTimeout(Object queryTimeout) { - super.withQueryTimeout(queryTimeout); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoSource withAdditionalColumns(Object additionalColumns) { - super.withAdditionalColumns(additionalColumns); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoSource withSourceRetryCount(Object sourceRetryCount) { - super.withSourceRetryCount(sourceRetryCount); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoSource withSourceRetryWait(Object sourceRetryWait) { - super.withSourceRetryWait(sourceRetryWait); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoSource withMaxConcurrentConnections(Object maxConcurrentConnections) { - super.withMaxConcurrentConnections(maxConcurrentConnections); - return this; - } - - /** {@inheritDoc} */ - @Override - public ZohoSource withDisableMetricsCollection(Object disableMetricsCollection) { - super.withDisableMetricsCollection(disableMetricsCollection); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/package-info.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/package-info.java deleted file mode 100644 index 176640fbb7bfa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/package-info.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * Package containing the data models for DataFactoryManagementClient. The Azure Data Factory V2 management API provides - * a RESTful set of web services that interact with Azure Data Factory V2 services. - */ -package com.azure.resourcemanager.datafactory.models; diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/package-info.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/package-info.java deleted file mode 100644 index 2a4feeb0e3b80..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/package-info.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * Package containing the classes for DataFactoryManagementClient. The Azure Data Factory V2 management API provides a - * RESTful set of web services that interact with Azure Data Factory V2 services. - */ -package com.azure.resourcemanager.datafactory; diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/module-info.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/module-info.java deleted file mode 100644 index 85d4b4f052a5a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/module-info.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -module com.azure.resourcemanager.datafactory { - requires transitive com.azure.core.management; - - exports com.azure.resourcemanager.datafactory; - exports com.azure.resourcemanager.datafactory.fluent; - exports com.azure.resourcemanager.datafactory.fluent.models; - exports com.azure.resourcemanager.datafactory.models; - - opens com.azure.resourcemanager.datafactory.fluent.models to - com.azure.core, - com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.datafactory.models to - com.azure.core, - com.fasterxml.jackson.databind; -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java deleted file mode 100644 index 2b3eea7c3aca0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import java.time.OffsetDateTime; - -/** Samples for ActivityRuns QueryByPipelineRun. */ -public final class ActivityRunsQueryByPipelineRunSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json - */ - /** - * Sample code: ActivityRuns_QueryByPipelineRun. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void activityRunsQueryByPipelineRun( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .activityRuns() - .queryByPipelineRunWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - new RunFilterParameters() - .withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java deleted file mode 100644 index 7b7c706fa9da0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLinkedService; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DelimitedTextDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for DataFlowDebugSession AddDataFlow. */ -public final class DataFlowDebugSessionAddDataFlowSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json - */ - /** - * Sample code: DataFlowDebugSession_AddDataFlow. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionAddDataFlow(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .dataFlowDebugSessions() - .addDataFlowWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new DataFlowDebugPackage() - .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e") - .withDataFlow( - new DataFlowDebugResource() - .withName("dataflow1") - .withProperties( - new MappingDataFlow() - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("source1") - .withDataset( - new DatasetReference().withReferenceName("DelimitedText2")))) - .withSinks(Arrays.asList()) - .withTransformations(Arrays.asList()) - .withScript( - "\n\n" - + "source(output(\n" - + "\t\tColumn_1 as string\n" - + "\t),\n" - + "\tallowSchemaDrift: true,\n" - + "\tvalidateSchema: false) ~> source1"))) - .withDatasets( - Arrays - .asList( - new DatasetDebugResource() - .withName("dataset1") - .withProperties( - new DelimitedTextDataset() - .withSchema( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "[{\"type\":\"String\"}]", - Object.class, - SerializerEncoding.JSON)) - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("linkedService5")) - .withAnnotations(Arrays.asList()) - .withLocation( - new AzureBlobStorageLocation() - .withFileName("Ansiencoding.csv") - .withContainer("dataflow-sample-data")) - .withColumnDelimiter(",") - .withQuoteChar("\"") - .withEscapeChar("\\") - .withFirstRowAsHeader(true)))) - .withLinkedServices( - Arrays - .asList( - new LinkedServiceDebugResource() - .withName("linkedService1") - .withProperties( - new AzureBlobStorageLinkedService() - .withAnnotations(Arrays.asList()) - .withConnectionString( - "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;") - .withEncryptedCredential("")))) - .withDebugSettings( - new DataFlowDebugPackageDebugSettings() - .withSourceSettings( - Arrays - .asList( - new DataFlowSourceSetting() - .withSourceName("source1") - .withRowLimit(1000) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting() - .withSourceName("source2") - .withRowLimit(222) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("sourcePath", "Toy")) - .withDatasetParameters( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"Movies\":{\"path\":\"abc\"},\"Output\":{\"time\":\"def\"}}", - Object.class, - SerializerEncoding.JSON))) - .withAdditionalProperties(mapOf()), - Context.NONE); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionCreateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionCreateSamples.java deleted file mode 100644 index a2dcc9635769b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionCreateSamples.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowComputeType; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntime; -import java.util.HashMap; -import java.util.Map; - -/** Samples for DataFlowDebugSession Create. */ -public final class DataFlowDebugSessionCreateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json - */ - /** - * Sample code: DataFlowDebugSession_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlowDebugSessions() - .create( - "exampleResourceGroup", - "exampleFactoryName", - new CreateDataFlowDebugSessionRequest() - .withTimeToLive(60) - .withIntegrationRuntime( - new IntegrationRuntimeDebugResource() - .withName("ir1") - .withProperties( - new ManagedIntegrationRuntime() - .withComputeProperties( - new IntegrationRuntimeComputeProperties() - .withLocation("AutoResolve") - .withDataFlowProperties( - new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(48) - .withTimeToLive(10) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())))), - Context.NONE); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java deleted file mode 100644 index c22fa982922c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; - -/** Samples for DataFlowDebugSession Delete. */ -public final class DataFlowDebugSessionDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json - */ - /** - * Sample code: DataFlowDebugSession_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlowDebugSessions() - .deleteWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new DeleteDataFlowDebugSessionRequest().withSessionId("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionExecuteCommandSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionExecuteCommandSamples.java deleted file mode 100644 index 1fd0ccc08c606..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionExecuteCommandSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType; - -/** Samples for DataFlowDebugSession ExecuteCommand. */ -public final class DataFlowDebugSessionExecuteCommandSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json - */ - /** - * Sample code: DataFlowDebugSession_ExecuteCommand. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionExecuteCommand( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlowDebugSessions() - .executeCommand( - "exampleResourceGroup", - "exampleFactoryName", - new DataFlowDebugCommandRequest() - .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e") - .withCommand(DataFlowDebugCommandType.EXECUTE_PREVIEW_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("source1").withRowLimits(100)), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java deleted file mode 100644 index 60c2497233b15..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlowDebugSession QueryByFactory. */ -public final class DataFlowDebugSessionQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json - */ - /** - * Sample code: DataFlowDebugSession_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionQueryByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlowDebugSessions().queryByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java deleted file mode 100644 index 0164e1e84eaf3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import java.util.Arrays; - -/** Samples for DataFlows CreateOrUpdate. */ -public final class DataFlowsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json - */ - /** - * Sample code: DataFlows_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlows() - .define("exampleDataFlow") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new MappingDataFlow() - .withDescription( - "Sample demo data flow to convert currencies showing usage of union, derive and conditional" - + " split transformation.") - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("USDCurrency") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), - new DataFlowSource() - .withName("CADSource") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("USDSink") - .withDataset(new DatasetReference().withReferenceName("USDOutput")), - new DataFlowSink() - .withName("CADSink") - .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScript( - "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" - + " ~> USDCurrency\n" - + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" - + " ~> CADSource\n" - + "USDCurrency, CADSource union(byName: true)~> Union\n" - + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n" - + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" - + " ConditionalSplit1@(USD, CAD)\n" - + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" - + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json - */ - /** - * Sample code: DataFlows_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - DataFlowResource resource = - manager - .dataFlows() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new MappingDataFlow() - .withDescription( - "Sample demo data flow to convert currencies showing usage of union, derive and conditional" - + " split transformation.") - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("USDCurrency") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), - new DataFlowSource() - .withName("CADSource") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("USDSink") - .withDataset(new DatasetReference().withReferenceName("USDOutput")), - new DataFlowSink() - .withName("CADSink") - .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScript( - "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" - + " ~> USDCurrency\n" - + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" - + " ~> CADSource\n" - + "USDCurrency, CADSource union(byName: true)~> Union\n" - + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n" - + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" - + " ConditionalSplit1@(USD, CAD)\n" - + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" - + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) - .apply(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java deleted file mode 100644 index 69c352bbd9196..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlows Delete. */ -public final class DataFlowsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json - */ - /** - * Sample code: DataFlows_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlows() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java deleted file mode 100644 index 92fdede5d290f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlows Get. */ -public final class DataFlowsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json - */ - /** - * Sample code: DataFlows_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlows() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java deleted file mode 100644 index c7e87b2469e36..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlows ListByFactory. */ -public final class DataFlowsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json - */ - /** - * Sample code: DataFlows_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlows().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java deleted file mode 100644 index b15bf4c828a28..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureBlobDataset; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.TextFormat; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Datasets CreateOrUpdate. */ -public final class DatasetsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json - */ - /** - * Sample code: Datasets_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .datasets() - .define("exampleDataset") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new AzureBlobDataset() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) - .withParameters( - mapOf( - "MyFileName", - new ParameterSpecification().withType(ParameterType.STRING), - "MyFolderPath", - new ParameterSpecification().withType(ParameterType.STRING))) - .withFolderPath( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", - Object.class, - SerializerEncoding.JSON)) - .withFileName( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", - Object.class, - SerializerEncoding.JSON)) - .withFormat(new TextFormat())) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json - */ - /** - * Sample code: Datasets_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - DatasetResource resource = - manager - .datasets() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new AzureBlobDataset() - .withDescription("Example description") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) - .withParameters( - mapOf( - "MyFileName", - new ParameterSpecification().withType(ParameterType.STRING), - "MyFolderPath", - new ParameterSpecification().withType(ParameterType.STRING))) - .withFolderPath( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", - Object.class, - SerializerEncoding.JSON)) - .withFileName( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", - Object.class, - SerializerEncoding.JSON)) - .withFormat(new TextFormat())) - .apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java deleted file mode 100644 index 86fd91372c5e1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Datasets Delete. */ -public final class DatasetsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json - */ - /** - * Sample code: Datasets_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .datasets() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java deleted file mode 100644 index 3c40a0fac366f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Datasets Get. */ -public final class DatasetsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json - */ - /** - * Sample code: Datasets_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .datasets() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java deleted file mode 100644 index 085c0a9e51a4b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Datasets ListByFactory. */ -public final class DatasetsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json - */ - /** - * Sample code: Datasets_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.datasets().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java deleted file mode 100644 index 08a78dcd4d01e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; - -/** Samples for ExposureControl GetFeatureValueByFactory. */ -public final class ExposureControlGetFeatureValueByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json - */ - /** - * Sample code: ExposureControl_GetFeatureValueByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void exposureControlGetFeatureValueByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .exposureControls() - .getFeatureValueByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new ExposureControlRequest() - .withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java deleted file mode 100644 index 12be3f15c2060..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; - -/** Samples for ExposureControl GetFeatureValue. */ -public final class ExposureControlGetFeatureValueSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json - */ - /** - * Sample code: ExposureControl_GetFeatureValue. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void exposureControlGetFeatureValue( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .exposureControls() - .getFeatureValueWithResponse( - "WestEurope", - new ExposureControlRequest() - .withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java deleted file mode 100644 index 27965002e78c6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.util.Arrays; - -/** Samples for ExposureControl QueryFeatureValuesByFactory. */ -public final class ExposureControlQueryFeatureValuesByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json - */ - /** - * Sample code: ExposureControl_QueryFeatureValuesByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void exposureControlQueryFeatureValuesByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .exposureControls() - .queryFeatureValuesByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new ExposureControlBatchRequest() - .withExposureControlRequests( - Arrays - .asList( - new ExposureControlRequest() - .withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - new ExposureControlRequest() - .withFeatureName("ADFSampleFeature") - .withFeatureType("Feature"))), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java deleted file mode 100644 index c3f6a03f617da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; - -/** Samples for Factories ConfigureFactoryRepo. */ -public final class FactoriesConfigureFactoryRepoSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json - */ - /** - * Sample code: Factories_ConfigureFactoryRepo. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesConfigureFactoryRepo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .configureFactoryRepoWithResponse( - "East US", - new FactoryRepoUpdate() - .withFactoryResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName") - .withRepoConfiguration( - new FactoryVstsConfiguration() - .withAccountName("ADF") - .withRepositoryName("repo") - .withCollaborationBranch("master") - .withRootFolder("/") - .withLastCommitId("") - .withProjectName("project") - .withTenantId("")), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java deleted file mode 100644 index 3adecfa543cc1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -/** Samples for Factories CreateOrUpdate. */ -public final class FactoriesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json - */ - /** - * Sample code: Factories_CreateOrUpdate. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesCreateOrUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .define("exampleFactoryName") - .withRegion("East US") - .withExistingResourceGroup("exampleResourceGroup") - .create(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java deleted file mode 100644 index ebbf36212d46a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories Delete. */ -public final class FactoriesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json - */ - /** - * Sample code: Factories_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().deleteWithResponse("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java deleted file mode 100644 index d20e350ee38c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories GetByResourceGroup. */ -public final class FactoriesGetByResourceGroupSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json - */ - /** - * Sample code: Factories_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java deleted file mode 100644 index 25429b9f27300..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; - -/** Samples for Factories GetDataPlaneAccess. */ -public final class FactoriesGetDataPlaneAccessSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json - */ - /** - * Sample code: Factories_GetDataPlaneAccess. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesGetDataPlaneAccess(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .getDataPlaneAccessWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new UserAccessPolicy() - .withPermissions("r") - .withAccessResourcePath("") - .withProfileName("DefaultProfile") - .withStartTime("2018-11-10T02:46:20.2659347Z") - .withExpireTime("2018-11-10T09:46:20.2659347Z"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java deleted file mode 100644 index 1c6c1d1bfda60..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; - -/** Samples for Factories GetGitHubAccessToken. */ -public final class FactoriesGetGitHubAccessTokenSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json - */ - /** - * Sample code: Factories_GetGitHubAccessToken. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesGetGitHubAccessToken(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .getGitHubAccessTokenWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new GitHubAccessTokenRequest() - .withGitHubAccessCode("some") - .withGitHubClientId("some") - .withGitHubAccessTokenBaseUrl("some"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java deleted file mode 100644 index 820bd84176a7b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories ListByResourceGroup. */ -public final class FactoriesListByResourceGroupSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json - */ - /** - * Sample code: Factories_ListByResourceGroup. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesListByResourceGroup(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().listByResourceGroup("exampleResourceGroup", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java deleted file mode 100644 index 4918a603457fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories List. */ -public final class FactoriesListSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json - */ - /** - * Sample code: Factories_List. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().list(Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java deleted file mode 100644 index e26a3b243d5e6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.Factory; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Factories Update. */ -public final class FactoriesUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json - */ - /** - * Sample code: Factories_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - Factory resource = - manager - .factories() - .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, Context.NONE) - .getValue(); - resource.update().withTags(mapOf("exampleTag", "exampleValue")).apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java deleted file mode 100644 index cff8f2445df7c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeNodes Delete. */ -public final class IntegrationRuntimeNodesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json - */ - /** - * Sample code: IntegrationRuntimesNodes_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesNodesDelete( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .deleteWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java deleted file mode 100644 index 36d04b3d8ed0f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeNodes GetIpAddress. */ -public final class IntegrationRuntimeNodesGetIpAddressSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json - */ - /** - * Sample code: IntegrationRuntimeNodes_GetIpAddress. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeNodesGetIpAddress( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .getIpAddressWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java deleted file mode 100644 index 6970a6a719370..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeNodes Get. */ -public final class IntegrationRuntimeNodesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json - */ - /** - * Sample code: IntegrationRuntimeNodes_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeNodesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java deleted file mode 100644 index 7101453d2305e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; - -/** Samples for IntegrationRuntimeNodes Update. */ -public final class IntegrationRuntimeNodesUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json - */ - /** - * Sample code: IntegrationRuntimeNodes_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeNodesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .updateWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - "Node_1", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java deleted file mode 100644 index f63650f5093eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; - -/** Samples for IntegrationRuntimeObjectMetadata Get. */ -public final class IntegrationRuntimeObjectMetadataGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json - */ - /** - * Sample code: IntegrationRuntimeObjectMetadata_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeObjectMetadataGet( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .getWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "testactivityv2", - new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java deleted file mode 100644 index 669c72c17b047..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeObjectMetadata Refresh. */ -public final class IntegrationRuntimeObjectMetadataRefreshSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json - */ - /** - * Sample code: IntegrationRuntimeObjectMetadata_Refresh. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeObjectMetadataRefresh( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .refresh("exampleResourceGroup", "exampleFactoryName", "testactivityv2", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java deleted file mode 100644 index c9529005a49bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; - -/** Samples for IntegrationRuntimes CreateLinkedIntegrationRuntime. */ -public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json - */ - /** - * Sample code: IntegrationRuntimes_CreateLinkedIntegrationRuntime. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesCreateLinkedIntegrationRuntime( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .createLinkedIntegrationRuntimeWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - new CreateLinkedIntegrationRuntimeRequest() - .withName("bfa92911-9fb6-4fbe-8f23-beae87bc1c83") - .withSubscriptionId("061774c7-4b5a-4159-a55b-365581830283") - .withDataFactoryName("e9955d6d-56ea-4be3-841c-52a12c1a9981") - .withDataFactoryLocation("West US"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java deleted file mode 100644 index d1ec5a4a5c3fb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; - -/** Samples for IntegrationRuntimes CreateOrUpdate. */ -public final class IntegrationRuntimesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json - */ - /** - * Sample code: IntegrationRuntimes_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .define("exampleIntegrationRuntime") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime")) - .create(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java deleted file mode 100644 index 7096cad9b7274..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Delete. */ -public final class IntegrationRuntimesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json - */ - /** - * Sample code: IntegrationRuntimes_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .deleteWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java deleted file mode 100644 index 214af03e5890d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes GetConnectionInfo. */ -public final class IntegrationRuntimesGetConnectionInfoSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json - */ - /** - * Sample code: IntegrationRuntimes_GetConnectionInfo. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGetConnectionInfo( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getConnectionInfoWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java deleted file mode 100644 index cd39eaf3c99a4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes GetMonitoringData. */ -public final class IntegrationRuntimesGetMonitoringDataSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json - */ - /** - * Sample code: IntegrationRuntimes_GetMonitoringData. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGetMonitoringData( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getMonitoringDataWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java deleted file mode 100644 index 69264af895a63..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Get. */ -public final class IntegrationRuntimesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json - */ - /** - * Sample code: IntegrationRuntimes_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java deleted file mode 100644 index f9152bb3b400c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes GetStatus. */ -public final class IntegrationRuntimesGetStatusSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json - */ - /** - * Sample code: IntegrationRuntimes_GetStatus. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGetStatus(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getStatusWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java deleted file mode 100644 index db64fe3aba65a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes ListAuthKeys. */ -public final class IntegrationRuntimesListAuthKeysSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json - */ - /** - * Sample code: IntegrationRuntimes_ListAuthKeys. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesListAuthKeys( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .listAuthKeysWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java deleted file mode 100644 index c7161a7a1bde0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes ListByFactory. */ -public final class IntegrationRuntimesListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json - */ - /** - * Sample code: IntegrationRuntimes_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java deleted file mode 100644 index 45b151cbec07e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. */ -public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json - */ - /** - * Sample code: IntegrationRuntimes_OutboundNetworkDependenciesEndpoints. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesOutboundNetworkDependenciesEndpoints( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java deleted file mode 100644 index 27a666c814f11..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeyName; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; - -/** Samples for IntegrationRuntimes RegenerateAuthKey. */ -public final class IntegrationRuntimesRegenerateAuthKeySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json - */ - /** - * Sample code: IntegrationRuntimes_RegenerateAuthKey. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesRegenerateAuthKey( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .regenerateAuthKeyWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java deleted file mode 100644 index 55222df6845c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; - -/** Samples for IntegrationRuntimes RemoveLinks. */ -public final class IntegrationRuntimesRemoveLinksSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json - */ - /** - * Sample code: IntegrationRuntimes_Upgrade. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .removeLinksWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("exampleFactoryName-linked"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartSamples.java deleted file mode 100644 index 82178856feff2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Start. */ -public final class IntegrationRuntimesStartSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json - */ - /** - * Sample code: IntegrationRuntimes_Start. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .start("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopSamples.java deleted file mode 100644 index 3d5529be92b05..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Stop. */ -public final class IntegrationRuntimesStopSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json - */ - /** - * Sample code: IntegrationRuntimes_Stop. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .stop("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java deleted file mode 100644 index 53240d8f2ae51..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes SyncCredentials. */ -public final class IntegrationRuntimesSyncCredentialsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json - */ - /** - * Sample code: IntegrationRuntimes_SyncCredentials. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesSyncCredentials( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .syncCredentialsWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java deleted file mode 100644 index b59a4b2171011..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; - -/** Samples for IntegrationRuntimes Update. */ -public final class IntegrationRuntimesUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json - */ - /** - * Sample code: IntegrationRuntimes_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - IntegrationRuntimeResource resource = - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, Context.NONE) - .getValue(); - resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java deleted file mode 100644 index 2f0227921680a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Upgrade. */ -public final class IntegrationRuntimesUpgradeSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json - */ - /** - * Sample code: IntegrationRuntimes_Upgrade. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .upgradeWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java deleted file mode 100644 index da70d3f9504b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureStorageLinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import java.io.IOException; - -/** Samples for LinkedServices CreateOrUpdate. */ -public final class LinkedServicesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json - */ - /** - * Sample code: LinkedServices_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .linkedServices() - .define("exampleLinkedService") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new AzureStorageLinkedService() - .withConnectionString( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", - Object.class, - SerializerEncoding.JSON))) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json - */ - /** - * Sample code: LinkedServices_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - LinkedServiceResource resource = - manager - .linkedServices() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new AzureStorageLinkedService() - .withDescription("Example description") - .withConnectionString( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", - Object.class, - SerializerEncoding.JSON))) - .apply(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java deleted file mode 100644 index 8522ce6b2bf2c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for LinkedServices Delete. */ -public final class LinkedServicesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json - */ - /** - * Sample code: LinkedServices_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .linkedServices() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java deleted file mode 100644 index a23808e6a8616..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for LinkedServices Get. */ -public final class LinkedServicesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json - */ - /** - * Sample code: LinkedServices_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .linkedServices() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java deleted file mode 100644 index 800660c4f103a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for LinkedServices ListByFactory. */ -public final class LinkedServicesListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json - */ - /** - * Sample code: LinkedServices_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.linkedServices().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java deleted file mode 100644 index 8c53bf50f39b3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for ManagedPrivateEndpoints CreateOrUpdate. */ -public final class ManagedPrivateEndpointsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json - */ - /** - * Sample code: ManagedVirtualNetworks_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .define("exampleManagedPrivateEndpointName") - .withExistingManagedVirtualNetwork( - "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName") - .withProperties( - new ManagedPrivateEndpoint() - .withFqdns(Arrays.asList()) - .withGroupId("blob") - .withPrivateLinkResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage") - .withAdditionalProperties(mapOf())) - .create(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java deleted file mode 100644 index 42fe0e1013597..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedPrivateEndpoints Delete. */ -public final class ManagedPrivateEndpointsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json - */ - /** - * Sample code: ManagedVirtualNetworks_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .deleteWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleManagedVirtualNetworkName", - "exampleManagedPrivateEndpointName", - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java deleted file mode 100644 index 73c0f2c50588e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedPrivateEndpoints Get. */ -public final class ManagedPrivateEndpointsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json - */ - /** - * Sample code: ManagedPrivateEndpoints_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedPrivateEndpointsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .getWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleManagedVirtualNetworkName", - "exampleManagedPrivateEndpointName", - null, - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java deleted file mode 100644 index c3864d12ed962..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedPrivateEndpoints ListByFactory. */ -public final class ManagedPrivateEndpointsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json - */ - /** - * Sample code: ManagedPrivateEndpoints_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedPrivateEndpointsListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .listByFactory( - "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java deleted file mode 100644 index 31004ccbc33e5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; - -/** Samples for ManagedVirtualNetworks CreateOrUpdate. */ -public final class ManagedVirtualNetworksCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json - */ - /** - * Sample code: ManagedVirtualNetworks_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedVirtualNetworks() - .define("exampleManagedVirtualNetworkName") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new ManagedVirtualNetwork().withAdditionalProperties(mapOf())) - .create(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java deleted file mode 100644 index 67c402777c30c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedVirtualNetworks Get. */ -public final class ManagedVirtualNetworksGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json - */ - /** - * Sample code: ManagedVirtualNetworks_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedVirtualNetworks() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java deleted file mode 100644 index 47170a30b40bd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedVirtualNetworks ListByFactory. */ -public final class ManagedVirtualNetworksListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json - */ - /** - * Sample code: ManagedVirtualNetworks_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedVirtualNetworks().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java deleted file mode 100644 index 1d16c04301f20..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Operations List. */ -public final class OperationsListSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json - */ - /** - * Sample code: Operations_List. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void operationsList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.operations().list(Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java deleted file mode 100644 index 98996d4733df6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for PipelineRuns Cancel. */ -public final class PipelineRunsCancelSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json - */ - /** - * Sample code: PipelineRuns_Cancel. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelineRunsCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelineRuns() - .cancelWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "16ac5348-ff82-4f95-a80d-638c1d47b721", - null, - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java deleted file mode 100644 index 0af5695b20031..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for PipelineRuns Get. */ -public final class PipelineRunsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json - */ - /** - * Sample code: PipelineRuns_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelineRunsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelineRuns() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java deleted file mode 100644 index 3635688fc78d5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.time.OffsetDateTime; -import java.util.Arrays; - -/** Samples for PipelineRuns QueryByFactory. */ -public final class PipelineRunsQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json - */ - /** - * Sample code: PipelineRuns_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelineRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelineRuns() - .queryByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new RunFilterParameters() - .withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) - .withFilters( - Arrays - .asList( - new RunQueryFilter() - .withOperand(RunQueryFilterOperand.PIPELINE_NAME) - .withOperator(RunQueryFilterOperator.EQUALS) - .withValues(Arrays.asList("examplePipeline")))), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java deleted file mode 100644 index 70fba263625ca..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.BlobSink; -import com.azure.resourcemanager.datafactory.models.BlobSource; -import com.azure.resourcemanager.datafactory.models.CopyActivity; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.ForEachActivity; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Pipelines CreateOrUpdate. */ -public final class PipelinesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json - */ - /** - * Sample code: Pipelines_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .pipelines() - .define("examplePipeline") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withActivities( - Arrays - .asList( - new ForEachActivity() - .withName("ExampleForeachActivity") - .withIsSequential(true) - .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList")) - .withActivities( - Arrays - .asList( - new CopyActivity() - .withName("ExampleCopyActivity") - .withInputs( - Arrays - .asList( - new DatasetReference() - .withReferenceName("exampleDataset") - .withParameters( - mapOf( - "MyFileName", - "examplecontainer.csv", - "MyFolderPath", - "examplecontainer")))) - .withOutputs( - Arrays - .asList( - new DatasetReference() - .withReferenceName("exampleDataset") - .withParameters( - mapOf( - "MyFileName", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@item()\"}", - Object.class, - SerializerEncoding.JSON), - "MyFolderPath", - "examplecontainer")))) - .withSource(new BlobSource()) - .withSink(new BlobSink()) - .withDataIntegrationUnits(32))))) - .withParameters( - mapOf( - "JobId", - new ParameterSpecification().withType(ParameterType.STRING), - "OutputBlobNameList", - new ParameterSpecification().withType(ParameterType.ARRAY))) - .withVariables(mapOf("TestVariableArray", new VariableSpecification().withType(VariableType.ARRAY))) - .withRunDimensions( - mapOf( - "JobId", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.JobId\"}", - Object.class, - SerializerEncoding.JSON))) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json - */ - /** - * Sample code: Pipelines_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - PipelineResource resource = - manager - .pipelines() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, Context.NONE) - .getValue(); - resource - .update() - .withDescription("Example description") - .withActivities( - Arrays - .asList( - new ForEachActivity() - .withName("ExampleForeachActivity") - .withIsSequential(true) - .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList")) - .withActivities( - Arrays - .asList( - new CopyActivity() - .withName("ExampleCopyActivity") - .withInputs( - Arrays - .asList( - new DatasetReference() - .withReferenceName("exampleDataset") - .withParameters( - mapOf( - "MyFileName", - "examplecontainer.csv", - "MyFolderPath", - "examplecontainer")))) - .withOutputs( - Arrays - .asList( - new DatasetReference() - .withReferenceName("exampleDataset") - .withParameters( - mapOf( - "MyFileName", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@item()\"}", - Object.class, - SerializerEncoding.JSON), - "MyFolderPath", - "examplecontainer")))) - .withSource(new BlobSource()) - .withSink(new BlobSink()) - .withDataIntegrationUnits(32))))) - .withParameters(mapOf("OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY))) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) - .apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java deleted file mode 100644 index 13edf00d34d3f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Pipelines CreateRun. */ -public final class PipelinesCreateRunSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json - */ - /** - * Sample code: Pipelines_CreateRun. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesCreateRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .pipelines() - .createRunWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "examplePipeline", - null, - null, - null, - null, - mapOf( - "OutputBlobNameList", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)), - Context.NONE); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java deleted file mode 100644 index d66ba37801291..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Pipelines Delete. */ -public final class PipelinesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json - */ - /** - * Sample code: Pipelines_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelines() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java deleted file mode 100644 index 8365a4974a467..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Pipelines Get. */ -public final class PipelinesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json - */ - /** - * Sample code: Pipelines_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelines() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java deleted file mode 100644 index 83c9d4e7f5a40..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Pipelines ListByFactory. */ -public final class PipelinesListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json - */ - /** - * Sample code: Pipelines_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelines().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java deleted file mode 100644 index 5c141f97c9ae1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateEndPointConnections ListByFactory. */ -public final class PrivateEndPointConnectionsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json - */ - /** - * Sample code: privateEndPointConnections_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void privateEndPointConnectionsListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateEndPointConnections().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java deleted file mode 100644 index dd55ed300df59..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; - -/** Samples for PrivateEndpointConnectionOperation CreateOrUpdate. */ -public final class PrivateEndpointConnectionOperationCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json - */ - /** - * Sample code: Approves or rejects a private endpoint connection for a factory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void approvesOrRejectsAPrivateEndpointConnectionForAFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .privateEndpointConnectionOperations() - .define("connection") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("Approved") - .withDescription("Approved by admin.") - .withActionsRequired(""))) - .create(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java deleted file mode 100644 index 12a65773b3c2a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateEndpointConnectionOperation Delete. */ -public final class PrivateEndpointConnectionOperationDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json - */ - /** - * Sample code: Delete a private endpoint connection for a datafactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void deleteAPrivateEndpointConnectionForADatafactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .privateEndpointConnectionOperations() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java deleted file mode 100644 index 5ad6a87ea0a70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateEndpointConnectionOperation Get. */ -public final class PrivateEndpointConnectionOperationGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json - */ - /** - * Sample code: Get a private endpoint connection for a datafactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void getAPrivateEndpointConnectionForADatafactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .privateEndpointConnectionOperations() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java deleted file mode 100644 index bff68ed64efd1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateLinkResources Get. */ -public final class PrivateLinkResourcesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json - */ - /** - * Sample code: Get private link resources of a site. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void getPrivateLinkResourcesOfASite( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateLinkResources().getWithResponse("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java deleted file mode 100644 index 630ee7271bf5a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for TriggerRuns Cancel. */ -public final class TriggerRunsCancelSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json - */ - /** - * Sample code: Triggers_Cancel. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggerRuns() - .cancelWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleTrigger", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java deleted file mode 100644 index 3bf30e3b43242..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.time.OffsetDateTime; -import java.util.Arrays; - -/** Samples for TriggerRuns QueryByFactory. */ -public final class TriggerRunsQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json - */ - /** - * Sample code: TriggerRuns_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggerRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggerRuns() - .queryByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new RunFilterParameters() - .withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) - .withFilters( - Arrays - .asList( - new RunQueryFilter() - .withOperand(RunQueryFilterOperand.TRIGGER_NAME) - .withOperator(RunQueryFilterOperator.EQUALS) - .withValues(Arrays.asList("exampleTrigger")))), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java deleted file mode 100644 index 379c02f6f8528..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for TriggerRuns Rerun. */ -public final class TriggerRunsRerunSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json - */ - /** - * Sample code: Triggers_Rerun. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersRerun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggerRuns() - .rerunWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleTrigger", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java deleted file mode 100644 index d2a59d9086929..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.ScheduleTrigger; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Triggers CreateOrUpdate. */ -public final class TriggersCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json - */ - /** - * Sample code: Triggers_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .triggers() - .define("exampleTrigger") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new ScheduleTrigger() - .withPipelines( - Arrays - .asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline")) - .withParameters( - mapOf( - "OutputBlobNameList", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "[\"exampleoutput.csv\"]", - Object.class, - SerializerEncoding.JSON))))) - .withRecurrence( - new ScheduleTriggerRecurrence() - .withFrequency(RecurrenceFrequency.MINUTE) - .withInterval(4) - .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:13.8441801Z")) - .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:13.8441801Z")) - .withTimeZone("UTC") - .withAdditionalProperties(mapOf()))) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json - */ - /** - * Sample code: Triggers_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - TriggerResource resource = - manager - .triggers() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new ScheduleTrigger() - .withDescription("Example description") - .withPipelines( - Arrays - .asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline")) - .withParameters( - mapOf( - "OutputBlobNameList", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "[\"exampleoutput.csv\"]", - Object.class, - SerializerEncoding.JSON))))) - .withRecurrence( - new ScheduleTriggerRecurrence() - .withFrequency(RecurrenceFrequency.MINUTE) - .withInterval(4) - .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:14.905167Z")) - .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:14.905167Z")) - .withTimeZone("UTC") - .withAdditionalProperties(mapOf()))) - .apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java deleted file mode 100644 index 233a0221af72a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Delete. */ -public final class TriggersDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json - */ - /** - * Sample code: Triggers_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java deleted file mode 100644 index a6226b768033e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers GetEventSubscriptionStatus. */ -public final class TriggersGetEventSubscriptionStatusSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json - */ - /** - * Sample code: Triggers_GetEventSubscriptionStatus. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersGetEventSubscriptionStatus( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .getEventSubscriptionStatusWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java deleted file mode 100644 index 40312e9f76fb7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Get. */ -public final class TriggersGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json - */ - /** - * Sample code: Triggers_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java deleted file mode 100644 index 57326957f5863..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers ListByFactory. */ -public final class TriggersListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json - */ - /** - * Sample code: Triggers_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java deleted file mode 100644 index 9b50eb2a77a81..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; - -/** Samples for Triggers QueryByFactory. */ -public final class TriggersQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json - */ - /** - * Sample code: Triggers_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .queryByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new TriggerFilterParameters().withParentTriggerName("exampleTrigger"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStartSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStartSamples.java deleted file mode 100644 index 46f4c8827d400..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStartSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Start. */ -public final class TriggersStartSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json - */ - /** - * Sample code: Triggers_Start. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers().start("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStopSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStopSamples.java deleted file mode 100644 index 58da81cfe268a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStopSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Stop. */ -public final class TriggersStopSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json - */ - /** - * Sample code: Triggers_Stop. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers().stop("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsSamples.java deleted file mode 100644 index 138407cbdc040..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers SubscribeToEvents. */ -public final class TriggersSubscribeToEventsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json - */ - /** - * Sample code: Triggers_SubscribeToEvents. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersSubscribeToEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .subscribeToEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsSamples.java deleted file mode 100644 index 59470f3eee277..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers UnsubscribeFromEvents. */ -public final class TriggersUnsubscribeFromEventsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json - */ - /** - * Sample code: Triggers_UnsubscribeFromEvents. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersUnsubscribeFromEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .unsubscribeFromEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -}